1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import { LitElement } from 'lit';
- import { EventEmitter } from '../../internal/decorators';
- export default class SlInput extends LitElement {
- static styles: import("lit").CSSResult;
- input: HTMLInputElement;
- private inputId;
- private helpTextId;
- private labelId;
- private hasFocus;
- private hasHelpTextSlot;
- private hasLabelSlot;
- private isPasswordVisible;
- type: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url';
- size: 'small' | 'medium' | 'large';
- name: string;
- value: string;
- pill: boolean;
- label: string;
- helpText: string;
- clearable: boolean;
- togglePassword: boolean;
- placeholder: string;
- disabled: boolean;
- readonly: boolean;
- minlength: number;
- maxlength: number;
- min: number | string;
- max: number | string;
- step: number;
- pattern: string;
- required: boolean;
- invalid: boolean;
- autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
- autocorrect: string;
- autocomplete: string;
- autofocus: boolean;
- spellcheck: boolean;
- inputmode: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
- slChange: EventEmitter<void>;
- slClear: EventEmitter<void>;
- slInput: EventEmitter<void>;
- slFocus: EventEmitter<void>;
- slBlur: EventEmitter<void>;
- connectedCallback(): void;
- disconnectedCallback(): void;
- focus(options?: FocusOptions): void;
- blur(): void;
- select(): void;
- setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none'): void;
- setRangeText(replacement: string, start: number, end: number, selectMode?: 'select' | 'start' | 'end' | 'preserve'): void;
- reportValidity(): boolean;
- setCustomValidity(message: string): void;
- handleChange(): void;
- handleInput(): void;
- handleInvalid(): void;
- handleBlur(): void;
- handleFocus(): void;
- handleClearClick(event: MouseEvent): void;
- handlePasswordToggle(): void;
- handleSlotChange(): void;
- handleValueChange(): void;
- render(): import("lit-html").TemplateResult<1>;
- }
- declare global {
- interface HTMLElementTagNameMap {
- 'sl-input': SlInput;
- }
- }
|