123456789101112131415161718192021222324252627282930313233343536373839 |
- import { LitElement } from 'lit';
- import { EventEmitter } from '../../internal/decorators';
- export default class SlRating extends LitElement {
- static styles: import("lit").CSSResult;
- rating: HTMLElement;
- private hoverValue;
- private isHovering;
- value: number;
- max: number;
- precision: number;
- readonly: boolean;
- disabled: boolean;
- getSymbol: (value?: number | undefined) => string;
- slChange: EventEmitter<void>;
- focus(options?: FocusOptions): void;
- blur(): void;
- connectedCallback(): void;
- disconnectedCallback(): void;
- getValueFromMousePosition(event: MouseEvent): number;
- getValueFromTouchPosition(event: TouchEvent): number;
- getValueFromXCoordinate(coordinate: number): number;
- handleClick(event: MouseEvent): void;
- setValue(newValue: number): void;
- handleKeyDown(event: KeyboardEvent): void;
- handleMouseEnter(): void;
- handleMouseMove(event: MouseEvent): void;
- handleMouseLeave(): void;
- handleTouchStart(event: TouchEvent): void;
- handleTouchMove(event: TouchEvent): void;
- handleTouchEnd(event: TouchEvent): void;
- handleValueChange(): void;
- roundToPrecision(numberToRound: number, precision?: number): number;
- render(): import("lit-html").TemplateResult<1>;
- }
- declare global {
- interface HTMLElementTagNameMap {
- 'sl-rating': SlRating;
- }
- }
|