switch.d.ts 1010 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlSwitch extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. input: HTMLInputElement;
  6. private switchId;
  7. private labelId;
  8. private hasFocus;
  9. name: string;
  10. value: string;
  11. disabled: boolean;
  12. required: boolean;
  13. checked: boolean;
  14. invalid: boolean;
  15. slBlur: EventEmitter<void>;
  16. slChange: EventEmitter<void>;
  17. slFocus: EventEmitter<void>;
  18. click(): void;
  19. focus(options?: FocusOptions): void;
  20. blur(): void;
  21. reportValidity(): boolean;
  22. setCustomValidity(message: string): void;
  23. handleClick(): void;
  24. handleBlur(): void;
  25. handleFocus(): void;
  26. handleKeyDown(event: KeyboardEvent): void;
  27. handleMouseDown(event: MouseEvent): void;
  28. handleCheckedChange(): void;
  29. render(): import("lit-html").TemplateResult<1>;
  30. }
  31. declare global {
  32. interface HTMLElementTagNameMap {
  33. 'sl-switch': SlSwitch;
  34. }
  35. }