12345678910111213141516171819202122232425262728293031 |
- import { LitElement } from 'lit';
- import { EventEmitter } from '../../internal/decorators';
- export default class SlAlert extends LitElement {
- static styles: import("lit").CSSResult;
- private autoHideTimeout;
- private hasInitialized;
- base: HTMLElement;
- open: boolean;
- closable: boolean;
- type: 'primary' | 'success' | 'info' | 'warning' | 'danger';
- duration: number;
- slShow: EventEmitter<void>;
- slAfterShow: EventEmitter<void>;
- slHide: EventEmitter<void>;
- slAfterHide: EventEmitter<void>;
- firstUpdated(): void;
- show(): Promise<void>;
- hide(): Promise<void>;
- toast(): Promise<void>;
- restartAutoHide(): void;
- handleCloseClick(): void;
- handleMouseMove(): void;
- handleOpenChange(): Promise<void>;
- handleDurationChange(): void;
- render(): import("lit-html").TemplateResult<1>;
- }
- declare global {
- interface HTMLElementTagNameMap {
- 'sl-alert': SlAlert;
- }
- }
|