2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AbstractControl {
|
|
|
|
asyncValidator: AsyncValidatorFn;
|
2016-06-23 21:19:32 -04:00
|
|
|
dirty: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
errors: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
pending: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
pristine: boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
root: AbstractControl;
|
|
|
|
status: string;
|
|
|
|
statusChanges: Observable<any>;
|
2016-06-22 17:56:10 -04:00
|
|
|
touched: boolean;
|
|
|
|
untouched: boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
valid: boolean;
|
|
|
|
validator: ValidatorFn;
|
|
|
|
value: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
valueChanges: Observable<any>;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn);
|
|
|
|
find(path: Array<string | number> | string): AbstractControl;
|
|
|
|
getError(errorCode: string, path?: string[]): any;
|
|
|
|
hasError(errorCode: string, path?: string[]): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
markAsDirty({onlySelf}?: {
|
|
|
|
onlySelf?: boolean;
|
|
|
|
}): void;
|
|
|
|
markAsPending({onlySelf}?: {
|
|
|
|
onlySelf?: boolean;
|
|
|
|
}): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
markAsTouched(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
setErrors(errors: {
|
|
|
|
[key: string]: any;
|
|
|
|
}, {emitEvent}?: {
|
|
|
|
emitEvent?: boolean;
|
|
|
|
}): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
setParent(parent: ControlGroup | ControlArray): void;
|
|
|
|
updateValueAndValidity({onlySelf, emitEvent}?: {
|
|
|
|
onlySelf?: boolean;
|
|
|
|
emitEvent?: boolean;
|
|
|
|
}): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare abstract class AbstractControlDirective {
|
|
|
|
control: AbstractControl;
|
2016-06-23 21:19:32 -04:00
|
|
|
dirty: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
errors: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
path: string[];
|
2016-06-22 17:56:10 -04:00
|
|
|
pristine: boolean;
|
|
|
|
touched: boolean;
|
|
|
|
untouched: boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
valid: boolean;
|
|
|
|
value: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare const APP_BASE_HREF: OpaqueToken;
|
|
|
|
|
|
|
|
export declare class AsyncPipe implements OnDestroy {
|
|
|
|
constructor(_ref: ChangeDetectorRef);
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
transform(obj: Observable<any> | Promise<any> | EventEmitter<any>): any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class CheckboxControlValueAccessor implements ControlValueAccessor {
|
|
|
|
onChange: (_: any) => void;
|
|
|
|
onTouched: () => void;
|
|
|
|
constructor(_renderer: Renderer, _elementRef: ElementRef);
|
|
|
|
registerOnChange(fn: (_: any) => {}): void;
|
|
|
|
registerOnTouched(fn: () => {}): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
writeValue(value: any): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare const COMMON_DIRECTIVES: Type[][];
|
|
|
|
|
|
|
|
export declare const COMMON_PIPES: (typeof AsyncPipe | typeof SlicePipe | typeof ReplacePipe | typeof I18nPluralPipe | typeof I18nSelectPipe)[];
|
|
|
|
|
|
|
|
export declare class Control extends AbstractControl {
|
|
|
|
constructor(value?: any, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
2016-06-23 21:19:32 -04:00
|
|
|
registerOnChange(fn: Function): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?: {
|
|
|
|
onlySelf?: boolean;
|
|
|
|
emitEvent?: boolean;
|
|
|
|
emitModelToViewChange?: boolean;
|
|
|
|
}): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class ControlArray extends AbstractControl {
|
|
|
|
controls: AbstractControl[];
|
2016-06-23 21:19:32 -04:00
|
|
|
length: number;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
|
|
|
at(index: number): AbstractControl;
|
|
|
|
insert(index: number, control: AbstractControl): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
push(control: AbstractControl): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
removeAt(index: number): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class ControlContainer extends AbstractControlDirective {
|
|
|
|
formDirective: Form;
|
2016-06-23 21:19:32 -04:00
|
|
|
name: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
path: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class ControlGroup extends AbstractControl {
|
|
|
|
controls: {
|
|
|
|
[key: string]: AbstractControl;
|
|
|
|
};
|
|
|
|
constructor(controls: {
|
|
|
|
[key: string]: AbstractControl;
|
|
|
|
}, optionals?: {
|
|
|
|
[key: string]: boolean;
|
|
|
|
}, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
|
|
|
addControl(name: string, control: AbstractControl): void;
|
|
|
|
contains(controlName: string): boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
exclude(controlName: string): void;
|
|
|
|
include(controlName: string): void;
|
|
|
|
registerControl(name: string, control: AbstractControl): void;
|
|
|
|
removeControl(name: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ControlValueAccessor {
|
|
|
|
registerOnChange(fn: any): void;
|
|
|
|
registerOnTouched(fn: any): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
writeValue(obj: any): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare const CORE_DIRECTIVES: Type[];
|
|
|
|
|
|
|
|
export declare class CurrencyPipe implements PipeTransform {
|
|
|
|
transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class DatePipe implements PipeTransform {
|
|
|
|
transform(value: any, pattern?: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class DecimalPipe implements PipeTransform {
|
|
|
|
transform(value: any, digits?: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class DefaultValueAccessor implements ControlValueAccessor {
|
|
|
|
onChange: (_: any) => void;
|
|
|
|
onTouched: () => void;
|
|
|
|
constructor(_renderer: Renderer, _elementRef: ElementRef);
|
|
|
|
registerOnChange(fn: (_: any) => void): void;
|
|
|
|
registerOnTouched(fn: () => void): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
writeValue(value: any): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface Form {
|
|
|
|
addControl(dir: NgControl): void;
|
|
|
|
addControlGroup(dir: NgControlGroup): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
getControl(dir: NgControl): Control;
|
2016-06-22 17:56:10 -04:00
|
|
|
getControlGroup(dir: NgControlGroup): ControlGroup;
|
2016-06-23 21:19:32 -04:00
|
|
|
removeControl(dir: NgControl): void;
|
|
|
|
removeControlGroup(dir: NgControlGroup): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
updateModel(dir: NgControl, value: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare const FORM_DIRECTIVES: Type[];
|
|
|
|
|
|
|
|
export declare const FORM_PROVIDERS: Type[];
|
|
|
|
|
|
|
|
export declare class FormBuilder {
|
2016-06-23 21:19:32 -04:00
|
|
|
array(controlsConfig: any[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): ControlArray;
|
|
|
|
control(value: Object, validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn): Control;
|
2016-06-22 17:56:10 -04:00
|
|
|
group(controlsConfig: {
|
|
|
|
[key: string]: any;
|
|
|
|
}, extra?: {
|
|
|
|
[key: string]: any;
|
|
|
|
}): ControlGroup;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class HashLocationStrategy extends LocationStrategy {
|
|
|
|
constructor(_platformLocation: PlatformLocation, _baseHref?: string);
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
getBaseHref(): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
onPopState(fn: UrlChangeListener): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
path(): string;
|
|
|
|
prepareExternalUrl(internal: string): string;
|
|
|
|
pushState(state: any, title: string, path: string, queryParams: string): void;
|
|
|
|
replaceState(state: any, title: string, path: string, queryParams: string): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class I18nPluralPipe implements PipeTransform {
|
|
|
|
constructor(_localization: NgLocalization);
|
|
|
|
transform(value: number, pluralMap: {
|
|
|
|
[count: string]: string;
|
|
|
|
}): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class I18nSelectPipe implements PipeTransform {
|
|
|
|
transform(value: string, mapping: {
|
|
|
|
[key: string]: string;
|
|
|
|
}): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class JsonPipe implements PipeTransform {
|
|
|
|
transform(value: any): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class Location {
|
|
|
|
constructor(platformStrategy: LocationStrategy);
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
|
|
|
go(path: string, query?: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
isCurrentPathEqualTo(path: string, query?: string): boolean;
|
|
|
|
normalize(url: string): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
path(): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
prepareExternalUrl(url: string): string;
|
|
|
|
replaceState(path: string, query?: string): void;
|
|
|
|
subscribe(onNext: (value: any) => void, onThrow?: (exception: any) => void, onReturn?: () => void): Object;
|
|
|
|
static joinWithSlash(start: string, end: string): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
static normalizeQueryParams(params: string): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
static stripTrailingSlash(url: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare abstract class LocationStrategy {
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract back(): void;
|
|
|
|
abstract forward(): void;
|
|
|
|
abstract getBaseHref(): string;
|
|
|
|
abstract onPopState(fn: UrlChangeListener): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract path(): string;
|
|
|
|
abstract prepareExternalUrl(internal: string): string;
|
|
|
|
abstract pushState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
abstract replaceState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class LowerCasePipe implements PipeTransform {
|
|
|
|
transform(value: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class MaxLengthValidator implements Validator {
|
|
|
|
constructor(maxLength: string);
|
|
|
|
validate(c: AbstractControl): {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class MinLengthValidator implements Validator {
|
|
|
|
constructor(minLength: string);
|
|
|
|
validate(c: AbstractControl): {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare const NG_ASYNC_VALIDATORS: OpaqueToken;
|
|
|
|
|
|
|
|
export declare const NG_VALIDATORS: OpaqueToken;
|
|
|
|
|
|
|
|
export declare const NG_VALUE_ACCESSOR: OpaqueToken;
|
|
|
|
|
|
|
|
export declare class NgClass implements DoCheck, OnDestroy {
|
|
|
|
initialClasses: string;
|
|
|
|
rawClass: string | string[] | Set<string> | {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngDoCheck(): void;
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare abstract class NgControl extends AbstractControlDirective {
|
2016-06-23 21:19:32 -04:00
|
|
|
asyncValidator: AsyncValidatorFn;
|
2016-06-22 17:56:10 -04:00
|
|
|
name: string;
|
|
|
|
validator: ValidatorFn;
|
2016-06-23 21:19:32 -04:00
|
|
|
valueAccessor: ControlValueAccessor;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract viewToModelUpdate(newValue: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgControlGroup extends ControlContainer implements OnInit, OnDestroy {
|
2016-06-23 21:19:32 -04:00
|
|
|
asyncValidator: AsyncValidatorFn;
|
2016-06-22 17:56:10 -04:00
|
|
|
control: ControlGroup;
|
|
|
|
formDirective: Form;
|
2016-06-23 21:19:32 -04:00
|
|
|
path: string[];
|
2016-06-22 17:56:10 -04:00
|
|
|
validator: ValidatorFn;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(parent: ControlContainer, _validators: any[], _asyncValidators: any[]);
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
ngOnInit(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgControlName extends NgControl implements OnChanges, OnDestroy {
|
2016-06-23 21:19:32 -04:00
|
|
|
asyncValidator: AsyncValidatorFn;
|
|
|
|
control: Control;
|
|
|
|
formDirective: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
model: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
path: string[];
|
|
|
|
validator: ValidatorFn;
|
2016-06-22 17:56:10 -04:00
|
|
|
viewModel: any;
|
|
|
|
constructor(_parent: ControlContainer, _validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
|
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
viewToModelUpdate(newValue: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgControlStatus {
|
|
|
|
ngClassDirty: boolean;
|
|
|
|
ngClassInvalid: boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
ngClassPristine: boolean;
|
|
|
|
ngClassTouched: boolean;
|
|
|
|
ngClassUntouched: boolean;
|
|
|
|
ngClassValid: boolean;
|
|
|
|
constructor(cd: NgControl);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgFor implements DoCheck {
|
|
|
|
ngForOf: any;
|
|
|
|
ngForTemplate: TemplateRef<NgForRow>;
|
|
|
|
ngForTrackBy: TrackByFn;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<NgForRow>, _iterableDiffers: IterableDiffers, _cdr: ChangeDetectorRef);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngDoCheck(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgForm extends ControlContainer implements Form {
|
|
|
|
control: ControlGroup;
|
|
|
|
controls: {
|
|
|
|
[key: string]: AbstractControl;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
form: ControlGroup;
|
|
|
|
formDirective: Form;
|
|
|
|
ngSubmit: EventEmitter<{}>;
|
|
|
|
path: string[];
|
|
|
|
submitted: boolean;
|
|
|
|
constructor(validators: any[], asyncValidators: any[]);
|
2016-06-22 17:56:10 -04:00
|
|
|
addControl(dir: NgControl): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
addControlGroup(dir: NgControlGroup): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
getControl(dir: NgControl): Control;
|
2016-06-23 21:19:32 -04:00
|
|
|
getControlGroup(dir: NgControlGroup): ControlGroup;
|
|
|
|
onSubmit(): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
removeControl(dir: NgControl): void;
|
|
|
|
removeControlGroup(dir: NgControlGroup): void;
|
|
|
|
updateModel(dir: NgControl, value: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgFormControl extends NgControl implements OnChanges {
|
2016-06-23 21:19:32 -04:00
|
|
|
asyncValidator: AsyncValidatorFn;
|
|
|
|
control: Control;
|
2016-06-22 17:56:10 -04:00
|
|
|
form: Control;
|
|
|
|
model: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
path: string[];
|
|
|
|
update: EventEmitter<{}>;
|
|
|
|
validator: ValidatorFn;
|
2016-06-22 17:56:10 -04:00
|
|
|
viewModel: any;
|
|
|
|
constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
|
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
|
|
viewToModelUpdate(newValue: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgFormModel extends ControlContainer implements Form, OnChanges {
|
2016-06-23 21:19:32 -04:00
|
|
|
control: ControlGroup;
|
2016-06-22 17:56:10 -04:00
|
|
|
directives: NgControl[];
|
2016-06-23 21:19:32 -04:00
|
|
|
form: ControlGroup;
|
2016-06-22 17:56:10 -04:00
|
|
|
formDirective: Form;
|
2016-06-23 21:19:32 -04:00
|
|
|
ngSubmit: EventEmitter<{}>;
|
2016-06-22 17:56:10 -04:00
|
|
|
path: string[];
|
2016-06-23 21:19:32 -04:00
|
|
|
submitted: boolean;
|
|
|
|
constructor(_validators: any[], _asyncValidators: any[]);
|
2016-06-22 17:56:10 -04:00
|
|
|
addControl(dir: NgControl): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
addControlGroup(dir: NgControlGroup): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
getControl(dir: NgControl): Control;
|
2016-06-23 21:19:32 -04:00
|
|
|
getControlGroup(dir: NgControlGroup): ControlGroup;
|
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
|
|
onSubmit(): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
removeControl(dir: NgControl): void;
|
|
|
|
removeControlGroup(dir: NgControlGroup): void;
|
|
|
|
updateModel(dir: NgControl, value: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgIf {
|
|
|
|
ngIf: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<Object>);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare abstract class NgLocalization {
|
|
|
|
abstract getPluralCategory(value: any): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgModel extends NgControl implements OnChanges {
|
2016-06-23 21:19:32 -04:00
|
|
|
asyncValidator: AsyncValidatorFn;
|
|
|
|
control: Control;
|
2016-06-22 17:56:10 -04:00
|
|
|
model: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
path: string[];
|
|
|
|
update: EventEmitter<{}>;
|
|
|
|
validator: ValidatorFn;
|
2016-06-22 17:56:10 -04:00
|
|
|
viewModel: any;
|
|
|
|
constructor(_validators: any[], _asyncValidators: any[], valueAccessors: ControlValueAccessor[]);
|
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
|
|
viewToModelUpdate(newValue: any): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgPlural implements AfterContentInit {
|
|
|
|
cases: QueryList<NgPluralCase>;
|
|
|
|
ngPlural: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_localization: NgLocalization);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngAfterContentInit(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgPluralCase {
|
|
|
|
value: string;
|
|
|
|
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef);
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgSelectOption implements OnDestroy {
|
|
|
|
id: string;
|
|
|
|
ngValue: any;
|
|
|
|
value: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_element: ElementRef, _renderer: Renderer, _select: SelectControlValueAccessor);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngOnDestroy(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgStyle implements DoCheck {
|
|
|
|
rawStyle: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngDoCheck(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgSwitch {
|
|
|
|
ngSwitch: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgSwitchCase {
|
|
|
|
ngSwitchCase: any;
|
|
|
|
ngSwitchWhen: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgSwitchDefault {
|
|
|
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, sswitch: NgSwitch);
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class NgTemplateOutlet {
|
|
|
|
ngOutletContext: Object;
|
|
|
|
ngTemplateOutlet: TemplateRef<Object>;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_viewContainerRef: ViewContainerRef);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class PathLocationStrategy extends LocationStrategy {
|
|
|
|
constructor(_platformLocation: PlatformLocation, href?: string);
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
getBaseHref(): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
onPopState(fn: UrlChangeListener): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
path(): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
prepareExternalUrl(internal: string): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
pushState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
replaceState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class PatternValidator implements Validator {
|
|
|
|
constructor(pattern: string);
|
|
|
|
validate(c: AbstractControl): {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class PercentPipe implements PipeTransform {
|
|
|
|
transform(value: any, digits?: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare abstract class PlatformLocation {
|
2016-06-23 21:19:32 -04:00
|
|
|
hash: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
pathname: string;
|
|
|
|
search: string;
|
|
|
|
abstract back(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract forward(): void;
|
|
|
|
abstract getBaseHrefFromDOM(): string;
|
|
|
|
abstract onHashChange(fn: UrlChangeListener): void;
|
|
|
|
abstract onPopState(fn: UrlChangeListener): void;
|
|
|
|
abstract pushState(state: any, title: string, url: string): void;
|
|
|
|
abstract replaceState(state: any, title: string, url: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class RadioButtonState {
|
|
|
|
checked: boolean;
|
|
|
|
value: string;
|
|
|
|
constructor(checked: boolean, value: string);
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class ReplacePipe implements PipeTransform {
|
|
|
|
transform(value: any, pattern: string | RegExp, replacement: Function | string): any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class RequiredValidator {
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class SelectControlValueAccessor implements ControlValueAccessor {
|
|
|
|
onChange: (_: any) => void;
|
|
|
|
onTouched: () => void;
|
2016-06-23 21:19:32 -04:00
|
|
|
value: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(_renderer: Renderer, _elementRef: ElementRef);
|
|
|
|
registerOnChange(fn: (value: any) => any): void;
|
|
|
|
registerOnTouched(fn: () => any): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
writeValue(value: any): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class SlicePipe implements PipeTransform {
|
|
|
|
transform(value: any, start: number, end?: number): any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class UpperCasePipe implements PipeTransform {
|
|
|
|
transform(value: string): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UrlChangeEvent {
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UrlChangeListener {
|
|
|
|
(e: UrlChangeEvent): any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Validator {
|
|
|
|
validate(c: AbstractControl): {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class Validators {
|
2016-06-23 21:19:32 -04:00
|
|
|
static compose(validators: ValidatorFn[]): ValidatorFn;
|
|
|
|
static composeAsync(validators: AsyncValidatorFn[]): AsyncValidatorFn;
|
|
|
|
static maxLength(maxLength: number): ValidatorFn;
|
|
|
|
static minLength(minLength: number): ValidatorFn;
|
|
|
|
static nullValidator(c: AbstractControl): {
|
2016-06-22 17:56:10 -04:00
|
|
|
[key: string]: boolean;
|
|
|
|
};
|
|
|
|
static pattern(pattern: string): ValidatorFn;
|
2016-06-23 21:19:32 -04:00
|
|
|
static required(control: AbstractControl): {
|
2016-06-22 17:56:10 -04:00
|
|
|
[key: string]: boolean;
|
|
|
|
};
|
|
|
|
}
|