checkbox.d.ts 1.0 KB

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