import { Platform } from '@angular/cdk/platform'; import { AutofillMonitor } from '@angular/cdk/text-field'; import { DoCheck, ElementRef, NgZone, OnChanges, OnDestroy, OnInit } from '@angular/core'; import { FormGroupDirective, NgControl, NgForm } from '@angular/forms'; import { CanSize, ErrorStateMatcher, ThemeSize } from '@ngx-simple/core/common-behaviors'; import { SimFormFieldControl } from '@ngx-simple/simple-ui/form-field'; declare class SimInputBase { _elementRef: ElementRef; _defaultErrorStateMatcher: ErrorStateMatcher; _parentForm: NgForm; _parentFormGroup: FormGroupDirective; ngControl: NgControl; constructor(_elementRef: ElementRef, _defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl); } declare const _SimInputMixinBase: import("../../../dist/libs/core/common-behaviors/constructor").Constructor & import("../../../dist/libs/core/common-behaviors/constructor").Constructor & typeof SimInputBase; export declare class SimInputDirective extends _SimInputMixinBase implements OnChanges, OnInit, DoCheck, OnDestroy, CanSize, SimFormFieldControl { ngControl: NgControl; private _autofillMonitor; size: ThemeSize; /** * ignore white spaces/empty spaces。 * fix validate Successful, content display error */ ignoreWhitespace: boolean; get value(): string; set value(value: string); get disabled(): boolean; set disabled(value: boolean); /** 控件是否为空 */ get empty(): boolean; id: string; /** 提示占位符 */ placeholder: string; /** 是否只读 */ readonly: boolean; /** 是否必填 */ required: boolean; /** 控件是否聚焦 */ focused: boolean; controlType: string; autofilled: boolean; private _disabled; private _previousNativeValue; private _inputValueAccessor; constructor(_elementRef: ElementRef, _platform: Platform, ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher, _autofillMonitor: AutofillMonitor, inputValueAccessor: any, ngZone: NgZone); ngOnChanges(): void; ngOnInit(): void; ngDoCheck(): void; ngOnDestroy(): void; /** 为了同时支持Ivy和ViewEngine,我们必须使用一个“HostListener”。在Ivy中,当这个类被扩展时,“host”绑定会被合并,而在ViewEngine中,它们会被覆盖。 */ _onInput(): void; _focusChanged(isFocused: boolean): void; focus(options?: FocusOptions): void; setDescribedByIds(ids: string[]): void; onContainerClick(event: MouseEvent): void; clearValue(): void; /** 对原生input的value属性进行一些手动脏检查。 */ private _dirtyCheckNativeValue; } export {};