range.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { LitElement } from 'lit';
  2. import { EventEmitter } from '../../internal/decorators';
  3. export default class SlRange extends LitElement {
  4. static styles: import("lit").CSSResult;
  5. input: HTMLInputElement;
  6. output: HTMLOutputElement;
  7. private inputId;
  8. private helpTextId;
  9. private labelId;
  10. private resizeObserver;
  11. private hasFocus;
  12. private hasHelpTextSlot;
  13. private hasLabelSlot;
  14. private hasTooltip;
  15. name: string;
  16. value: number;
  17. label: string;
  18. helpText: string;
  19. disabled: boolean;
  20. invalid: boolean;
  21. min: number;
  22. max: number;
  23. step: number;
  24. tooltip: 'top' | 'bottom' | 'none';
  25. tooltipFormatter: (value: number) => string;
  26. slChange: EventEmitter<void>;
  27. slBlur: EventEmitter<void>;
  28. slFocus: EventEmitter<void>;
  29. connectedCallback(): void;
  30. disconnectedCallback(): void;
  31. focus(options?: FocusOptions): void;
  32. blur(): void;
  33. setCustomValidity(message: string): void;
  34. handleInput(): void;
  35. handleBlur(): void;
  36. handleFocus(): void;
  37. handleSlotChange(): void;
  38. handleTouchStart(): void;
  39. syncTooltip(): void;
  40. render(): import("lit-html").TemplateResult<1>;
  41. }
  42. declare global {
  43. interface HTMLElementTagNameMap {
  44. 'sl-range': SlRange;
  45. }
  46. }