radio.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlRadio 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. checked: boolean;
  13. invalid: boolean;
  14. slBlur: EventEmitter<void>;
  15. slChange: EventEmitter<void>;
  16. slFocus: EventEmitter<void>;
  17. click(): void;
  18. focus(options?: FocusOptions): void;
  19. blur(): void;
  20. reportValidity(): boolean;
  21. setCustomValidity(message: string): void;
  22. getAllRadios(): this[];
  23. getSiblingRadios(): this[];
  24. handleCheckedChange(): void;
  25. handleClick(): void;
  26. handleBlur(): void;
  27. handleFocus(): void;
  28. handleKeyDown(event: KeyboardEvent): void;
  29. handleMouseDown(event: MouseEvent): void;
  30. render(): import("lit-html").TemplateResult<1>;
  31. }
  32. declare global {
  33. interface HTMLElementTagNameMap {
  34. 'sl-radio': SlRadio;
  35. }
  36. }