dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
49 lines (48 loc) • 1.76 kB
TypeScript
import { PropertyValueMap } from 'lit';
import { InputTypes } from '../../common/types';
import { GenericFormElement } from '../../internal/mixin/genericFormElement';
export declare class InputBaseElement extends GenericFormElement {
input: HTMLInputElement;
private readonly _addonBeforeNode;
private readonly _addonAfterNode;
private readonly _prefixNode;
private readonly _postfixNode;
type: InputTypes;
placeholder?: string;
minlength?: number;
maxlength?: number;
min?: number;
max?: number;
pattern?: string;
step?: number | 'any';
inputmode?: string;
loading: boolean;
manualValueSet: boolean;
disableEnter: boolean;
private _hasAddonBefore;
private _hasAddonAfter;
private _hasPrefix;
private _hasPostfix;
static readonly styles: import('lit').CSSResult;
get nativeControl(): HTMLInputElement;
private _handleSlotChange;
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
attributeChangedCallback(name: string, oldValue: any, newValue: any): void;
onInput: () => void;
formResetCallback(): void;
onBlur(): void;
onFocus(): void;
onChange(): void;
onKeydown(event: KeyboardEvent): void;
get focusElement(): HTMLInputElement;
/**
* Gets the aria-describedby attribute value by combining description and feedback IDs.
* @returns {string | undefined} Space-separated IDs or undefined if none exist
* @private
*/
private getAriaDescribedBy;
handleInvalid(event: Event): void;
renderDefaultContent(): import('lit-html').TemplateResult<1>;
renderInput(content?: unknown): import('lit-html').TemplateResult<1>;
private _renderFeedback;
}