tooltip.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlTooltip extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. positioner: HTMLElement;
  6. tooltip: HTMLElement;
  7. private componentId;
  8. private hasInitialized;
  9. private target;
  10. private popover;
  11. private hoverTimeout;
  12. content: string;
  13. placement: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
  14. disabled: boolean;
  15. distance: number;
  16. open: boolean;
  17. skidding: number;
  18. trigger: string;
  19. slShow: EventEmitter<void>;
  20. slAfterShow: EventEmitter<void>;
  21. slHide: EventEmitter<void>;
  22. slAfterHide: EventEmitter<void>;
  23. connectedCallback(): void;
  24. firstUpdated(): void;
  25. disconnectedCallback(): void;
  26. show(): Promise<void>;
  27. hide(): Promise<void>;
  28. getTarget(): HTMLElement;
  29. handleBlur(): void;
  30. handleClick(): void;
  31. handleFocus(): void;
  32. handleKeyDown(event: KeyboardEvent): void;
  33. handleMouseOver(): void;
  34. handleMouseOut(): void;
  35. handleOpenChange(): Promise<void>;
  36. handleOptionsChange(): void;
  37. handleDisabledChange(): void;
  38. handleSlotChange(): void;
  39. hasTrigger(triggerType: string): boolean;
  40. syncOptions(): void;
  41. render(): import("lit-html").TemplateResult<1>;
  42. }
  43. declare global {
  44. interface HTMLElementTagNameMap {
  45. 'sl-tooltip': SlTooltip;
  46. }
  47. }