alert.d.ts 948 B

12345678910111213141516171819202122232425262728293031
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlAlert extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. private autoHideTimeout;
  6. private hasInitialized;
  7. base: HTMLElement;
  8. open: boolean;
  9. closable: boolean;
  10. type: 'primary' | 'success' | 'info' | 'warning' | 'danger';
  11. duration: number;
  12. slShow: EventEmitter<void>;
  13. slAfterShow: EventEmitter<void>;
  14. slHide: EventEmitter<void>;
  15. slAfterHide: EventEmitter<void>;
  16. firstUpdated(): void;
  17. show(): Promise<void>;
  18. hide(): Promise<void>;
  19. toast(): Promise<void>;
  20. restartAutoHide(): void;
  21. handleCloseClick(): void;
  22. handleMouseMove(): void;
  23. handleOpenChange(): Promise<void>;
  24. handleDurationChange(): void;
  25. render(): import("lit-html").TemplateResult<1>;
  26. }
  27. declare global {
  28. interface HTMLElementTagNameMap {
  29. 'sl-alert': SlAlert;
  30. }
  31. }