dropdown.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. import type SlMenu from '../menu/menu';
  4. export default class SlDropdown extends LitElement {
  5. static styles: import("lit").CSSResult;
  6. trigger: HTMLElement;
  7. panel: HTMLElement;
  8. positioner: HTMLElement;
  9. private componentId;
  10. private hasInitialized;
  11. private popover;
  12. open: boolean;
  13. placement: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
  14. disabled: boolean;
  15. closeOnSelect: boolean;
  16. containingElement: HTMLElement;
  17. distance: number;
  18. skidding: number;
  19. hoist: boolean;
  20. slShow: EventEmitter<void>;
  21. slAfterShow: EventEmitter<void>;
  22. slHide: EventEmitter<void>;
  23. slAfterHide: EventEmitter<void>;
  24. connectedCallback(): void;
  25. firstUpdated(): void;
  26. disconnectedCallback(): void;
  27. focusOnTrigger(): void;
  28. getMenu(): SlMenu;
  29. handleDocumentKeyDown(event: KeyboardEvent): void;
  30. handleDocumentMouseDown(event: MouseEvent): void;
  31. handleMenuItemActivate(event: CustomEvent): void;
  32. handlePanelSelect(event: CustomEvent): void;
  33. handlePopoverOptionsChange(): void;
  34. handleTriggerClick(): void;
  35. handleTriggerKeyDown(event: KeyboardEvent): void;
  36. handleTriggerKeyUp(event: KeyboardEvent): void;
  37. handleTriggerSlotChange(): void;
  38. updateAccessibleTrigger(): void;
  39. show(): Promise<void>;
  40. hide(): Promise<void>;
  41. reposition(): void;
  42. handleOpenChange(): Promise<void>;
  43. render(): import("lit-html").TemplateResult<1>;
  44. }
  45. declare global {
  46. interface HTMLElementTagNameMap {
  47. 'sl-dropdown': SlDropdown;
  48. }
  49. }