import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, Renderer2 } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; import { IControlWithErrors, NControlsValidationErrors, NInputErrorMessages } from "../public_components"; import { ErrorMessagesFactory } from "../../services/error-messages-factory.service"; import { IAutoSizeComponent } from "../../directives/autoSize.directive"; export declare class NInputComponent implements ControlValueAccessor, OnInit, IAutoSizeComponent, IControlWithErrors { private renderer; private host; private cd; private messageFactory; /** * Input placeholder with field if empty */ placeholder: string; theme: "" | "flat"; isClearable: boolean | "nofocus"; /** * No trim value */ noTrim: boolean; pattern: string; /** * Input type */ type: "text" | "email" | "number" | "date" | "tel" | "password"; /** * Marks fields as read only */ readonly: boolean; /** * Custom error message for input */ errorMessages: NInputErrorMessages; /** * Mark field as required (only styles) */ required: boolean; /** * Remove all appear styles (only styles) */ noappear: boolean; /** * maxlength property for input */ maxlength: number; /** * Icon of the input */ icon: string; iconSet: string; /** * id param for inner input field */ inputId: string; focus: EventEmitter; blur: EventEmitter; domInput: ElementRef; errorMessage: string; showClear: boolean; readonly wide: boolean; private container; private propagateChange; private propagateTouch; private compositionMode; private composing; private propagationDisabled; constructor(renderer: Renderer2, host: ElementRef, cd: ChangeDetectorRef, messageFactory: ErrorMessagesFactory, wide: string); /** * autocorrect property for input */ private _autocorrect; set autocorrect(value: boolean); get autocorrectProperty(): "on" | "off" | null; private _autocomplete; /** * autocomplete property for input (true by default) */ set autocomplete(val: boolean | string); get autocompleteProperty(): string | null; private _disabled; get disabled(): boolean; set disabled(val: boolean); set isDisabled(val: boolean); /** * User can clear input text * if "nofocus" is passed, then field is not focused after cleaning */ set clearable(val: boolean | "nofocus"); setErrors(errors: NControlsValidationErrors): void; setDisabledState(disabled: boolean): void; getInputElement(): HTMLInputElement; ngOnInit(): void; disablePropagation(): void; enablePropagaton(): void; onChange(val: any): void; onBlur(): void; onMouseLeave(): void; onMouseOver(): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setFocus(): void; writeValue(obj: any): void; compositionStart(): void; compositionEnd(value: any): void; clear(): void; private invalidateStyles; private processErrors; }