UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

87 lines (86 loc) 3.68 kB
import { OnInit, ElementRef, EventEmitter } from '@angular/core'; import { IHasData } from '../../../../../component/IHasData'; import { TextBox } from '../../../../../component/dataview/input/TextBox.component'; import { ValidationResult } from '../../../../../component/model/ValidationResult'; import { IHasHelp } from '../../../../../component/IHasHelp'; import { NeedFocusService } from '../../../../../service/NeedFocusService.service'; import { IFormatter } from '../../../../../share/formatter/IFormatter'; import { FormatterFactory } from '../../../../../service/FormatterFactory.service'; export declare class MaterialTextBox extends TextBox implements OnInit, IHasHelp { static readonly TYPE_NAME: string; protected dataParent: IHasData; protected ignoreParentData: boolean; protected data: any; protected ignoreParentDisabled: boolean; protected delegateHistory: boolean; protected onDisabled: Function; protected onEnabled: Function; protected loadingEnabled: boolean; protected i18nKey: string; protected bypass: boolean; protected options: any; protected disabled: boolean; protected field: string; protected name: string; protected typeOfData: string; protected readOnly: boolean; protected help: any; protected formatter: IFormatter; protected formatterName: string; protected formatterOptions: any; protected formatterUsePropertyValue: boolean; protected type: string; protected width: string; protected label: string; protected description: string; protected maxLength: number; protected buttonIcon: string; protected buttonPosition: string; protected buttonHandler: Function; protected showClearButton: boolean; protected loadEvent: EventEmitter<any>; protected startValidateEvent: EventEmitter<any>; protected endValidateEvent: EventEmitter<any>; protected beforeFocusEvent: EventEmitter<any>; protected focusEvent: EventEmitter<any>; protected beforeLostFocusEvent: EventEmitter<any>; protected lostFocusEvent: EventEmitter<any>; protected beforeChangeEvent: EventEmitter<any>; protected changeEvent: EventEmitter<any>; protected beforeKeyUpEvent: EventEmitter<any>; protected keyUpEvent: EventEmitter<any>; protected beforeKeyDownEvent: EventEmitter<any>; protected keyDownEvent: EventEmitter<any>; private active; private classFocused; private clearFunc; constructor(elementRef: ElementRef, formatterFactory: FormatterFactory, needFocusService: NeedFocusService); ngOnInit(): void; _displayHelp(): boolean; private refreshActiveTextBox(); protected onValidationEnd(inputValue: any, results: ValidationResult[]): void; protected onDataChange(data: any, inputVal: any): void; protected doFocus($event: Event): void; protected doLostFocus($event: Event): void; getClassMatFocused(): any; _isActive(): boolean; _isClassFocused(): boolean; onValueChanged($event: Event): void; selfSaveData(data: any): void; getDescription(): string; setDescription(description: string): void; getLabel(): string; setLabel(label: string): void; resetValidationResult(): void; onBtnClick($event: Event): void; isShowClearButton(): boolean; setShowClearButton(showClearButton: boolean): void; getButtonIcon(): string; setButtonIcon(buttonIcon: string): void; getButtonPosition(): string; setButtonPosition(buttonPosition: string): void; getButtonHandler(): Function; setButtonHandler(buttonHandler: Function): void; onKeyUp($event: any): void; onKeyDown($event: any): void; }