dialog.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlDialog extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. dialog: HTMLElement;
  6. panel: HTMLElement;
  7. overlay: HTMLElement;
  8. private componentId;
  9. private hasInitialized;
  10. private modal;
  11. private originalTrigger;
  12. private hasFooter;
  13. open: boolean;
  14. label: string;
  15. noHeader: boolean;
  16. slShow: EventEmitter<void>;
  17. slAfterShow: EventEmitter<void>;
  18. slHide: EventEmitter<void>;
  19. slAfterHide: EventEmitter<void>;
  20. slInitialFocus: EventEmitter<void>;
  21. slOverlayDismiss: EventEmitter<void>;
  22. connectedCallback(): void;
  23. firstUpdated(): void;
  24. disconnectedCallback(): void;
  25. show(): Promise<void>;
  26. hide(): Promise<void>;
  27. handleCloseClick(): void;
  28. handleKeyDown(event: KeyboardEvent): void;
  29. handleOpenChange(): Promise<void>;
  30. handleOverlayClick(): void;
  31. handleSlotChange(): void;
  32. render(): import("lit-html").TemplateResult<1>;
  33. }
  34. declare global {
  35. interface HTMLElementTagNameMap {
  36. 'sl-dialog': SlDialog;
  37. }
  38. }