UNPKG

@ipi-soft/ng-components

Version:

Custom Angular Components

48 lines (47 loc) 1.69 kB
import { ChangeDetectorRef, EventEmitter } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { TooltipPosition } from '@ipi-soft/ng-components/tooltip'; import * as i0 from "@angular/core"; export interface IpiInputOptions { label: string; type?: string; tooltip?: string; disabled?: boolean; placeholder?: string; helperText?: string; helperRoute?: string; prefixImg?: string; suffixImg?: string; formGroup?: FormGroup; formControlName?: string; errors?: IpiControlErrors; } export interface IpiControlErrors { [x: string]: string; } export declare class IpiInputComponent { private changeDetectorRef; constructor(changeDetectorRef: ChangeDetectorRef); options: IpiInputOptions; inputChange: EventEmitter<string>; suffixImgChange: EventEmitter<void>; helperTextChange: EventEmitter<void>; label: string; controlInvalid: boolean; tooltipPosition: typeof TooltipPosition; private controlSubscription; private control; ngOnInit(): void; ngOnDestroy(): void; onInput(event: any): void; onSuffixImage(): void; onHelperText(): void; onFocusOut(): void; private setControl; private initChange; private checkIfControlInvalid; private checkIfControlDisabled; private getLabel; static ɵfac: i0.ɵɵFactoryDeclaration<IpiInputComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<IpiInputComponent, "ipi-input", never, { "options": { "alias": "options"; "required": false; }; }, { "inputChange": "inputChange"; "suffixImgChange": "suffixImgChange"; "helperTextChange": "helperTextChange"; }, never, never, true, never>; }