drawer.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlDrawer extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. drawer: 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. placement: 'top' | 'end' | 'bottom' | 'start';
  16. contained: boolean;
  17. noHeader: boolean;
  18. slShow: EventEmitter<void>;
  19. slAfterShow: EventEmitter<void>;
  20. slHide: EventEmitter<void>;
  21. slAfterHide: EventEmitter<void>;
  22. slInitialFocus: EventEmitter<void>;
  23. slOverlayDismiss: EventEmitter<void>;
  24. connectedCallback(): void;
  25. firstUpdated(): void;
  26. disconnectedCallback(): void;
  27. show(): Promise<void>;
  28. hide(): Promise<void>;
  29. handleCloseClick(): void;
  30. handleKeyDown(event: KeyboardEvent): void;
  31. handleOpenChange(): Promise<void>;
  32. handleOverlayClick(): void;
  33. handleSlotChange(): void;
  34. render(): import("lit-html").TemplateResult<1>;
  35. }
  36. declare global {
  37. interface HTMLElementTagNameMap {
  38. 'sl-drawer': SlDrawer;
  39. }
  40. }