parent
ef32e6b0d0
commit
7a4c25535d
6
tools/public_api_guard/common/index.d.ts
vendored
6
tools/public_api_guard/common/index.d.ts
vendored
@ -231,9 +231,9 @@ export declare class PercentPipe implements PipeTransform {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class PlatformLocation {
|
export declare abstract class PlatformLocation {
|
||||||
hash: string;
|
readonly hash: string;
|
||||||
pathname: string;
|
readonly pathname: string;
|
||||||
search: string;
|
readonly search: string;
|
||||||
abstract back(): void;
|
abstract back(): void;
|
||||||
abstract forward(): void;
|
abstract forward(): void;
|
||||||
abstract getBaseHrefFromDOM(): string;
|
abstract getBaseHrefFromDOM(): string;
|
||||||
|
122
tools/public_api_guard/core/index.d.ts
vendored
122
tools/public_api_guard/core/index.d.ts
vendored
@ -40,7 +40,7 @@ export declare class AnimationEntryMetadata {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
|
export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
|
||||||
steps: AnimationMetadata[];
|
readonly steps: AnimationMetadata[];
|
||||||
constructor(_steps: AnimationMetadata[]);
|
constructor(_steps: AnimationMetadata[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ export declare abstract class AnimationPlayer {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class AnimationSequenceMetadata extends AnimationWithStepsMetadata {
|
export declare class AnimationSequenceMetadata extends AnimationWithStepsMetadata {
|
||||||
steps: AnimationMetadata[];
|
readonly steps: AnimationMetadata[];
|
||||||
constructor(_steps: AnimationMetadata[]);
|
constructor(_steps: AnimationMetadata[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ export declare class AnimationTransitionEvent {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare abstract class AnimationWithStepsMetadata extends AnimationMetadata {
|
export declare abstract class AnimationWithStepsMetadata extends AnimationMetadata {
|
||||||
steps: AnimationMetadata[];
|
readonly steps: AnimationMetadata[];
|
||||||
constructor();
|
constructor();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,8 +158,8 @@ export declare const APP_INITIALIZER: InjectionToken<(() => void)[]>;
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class ApplicationInitStatus {
|
export declare class ApplicationInitStatus {
|
||||||
done: boolean;
|
readonly done: boolean;
|
||||||
donePromise: Promise<any>;
|
readonly donePromise: Promise<any>;
|
||||||
constructor(appInits: (() => any)[]);
|
constructor(appInits: (() => any)[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,9 +169,9 @@ export declare class ApplicationModule {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class ApplicationRef {
|
export declare abstract class ApplicationRef {
|
||||||
componentTypes: Type<any>[];
|
readonly abstract componentTypes: Type<any>[];
|
||||||
components: ComponentRef<any>[];
|
readonly abstract components: ComponentRef<any>[];
|
||||||
viewCount: number;
|
readonly abstract viewCount: number;
|
||||||
abstract attachView(view: ViewRef): void;
|
abstract attachView(view: ViewRef): void;
|
||||||
abstract bootstrap<C>(componentFactory: ComponentFactory<C> | Type<C>): ComponentRef<C>;
|
abstract bootstrap<C>(componentFactory: ComponentFactory<C> | Type<C>): ComponentRef<C>;
|
||||||
abstract detachView(view: ViewRef): void;
|
abstract detachView(view: ViewRef): void;
|
||||||
@ -188,7 +188,7 @@ export declare function assertPlatform(requiredToken: any): PlatformRef;
|
|||||||
export declare const Attribute: AttributeDecorator;
|
export declare const Attribute: AttributeDecorator;
|
||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare const AUTO_STYLE: string;
|
export declare const AUTO_STYLE = "*";
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare enum ChangeDetectionStrategy {
|
export declare enum ChangeDetectionStrategy {
|
||||||
@ -238,13 +238,7 @@ export declare class Compiler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare const COMPILER_OPTIONS: InjectionToken<{
|
export declare const COMPILER_OPTIONS: InjectionToken<CompilerOptions[]>;
|
||||||
useDebug?: boolean;
|
|
||||||
useJit?: boolean;
|
|
||||||
defaultEncapsulation?: ViewEncapsulation;
|
|
||||||
providers?: any[];
|
|
||||||
missingTranslation?: MissingTranslationStrategy;
|
|
||||||
}[]>;
|
|
||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare abstract class CompilerFactory {
|
export declare abstract class CompilerFactory {
|
||||||
@ -285,12 +279,12 @@ export declare abstract class ComponentFactoryResolver {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class ComponentRef<C> {
|
export declare abstract class ComponentRef<C> {
|
||||||
changeDetectorRef: ChangeDetectorRef;
|
readonly abstract changeDetectorRef: ChangeDetectorRef;
|
||||||
componentType: Type<any>;
|
readonly abstract componentType: Type<any>;
|
||||||
hostView: ViewRef;
|
readonly abstract hostView: ViewRef;
|
||||||
injector: Injector;
|
readonly abstract injector: Injector;
|
||||||
instance: C;
|
readonly abstract instance: C;
|
||||||
location: ElementRef;
|
readonly abstract location: ElementRef;
|
||||||
abstract destroy(): void;
|
abstract destroy(): void;
|
||||||
abstract onDestroy(callback: Function): void;
|
abstract onDestroy(callback: Function): void;
|
||||||
}
|
}
|
||||||
@ -338,7 +332,7 @@ export declare class DebugElement extends DebugNode {
|
|||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
childNodes: DebugNode[];
|
childNodes: DebugNode[];
|
||||||
children: DebugElement[];
|
readonly children: DebugElement[];
|
||||||
classes: {
|
classes: {
|
||||||
[key: string]: boolean;
|
[key: string]: boolean;
|
||||||
};
|
};
|
||||||
@ -362,25 +356,25 @@ export declare class DebugElement extends DebugNode {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class DebugNode {
|
export declare class DebugNode {
|
||||||
componentInstance: any;
|
readonly componentInstance: any;
|
||||||
context: any;
|
readonly context: any;
|
||||||
injector: Injector;
|
readonly injector: Injector;
|
||||||
listeners: EventListener[];
|
listeners: EventListener[];
|
||||||
nativeNode: any;
|
nativeNode: any;
|
||||||
parent: DebugElement;
|
parent: DebugElement;
|
||||||
providerTokens: any[];
|
readonly providerTokens: any[];
|
||||||
references: {
|
readonly references: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
source: string;
|
readonly source: string;
|
||||||
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
|
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, IterableChanges<V> {
|
export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, IterableChanges<V> {
|
||||||
collection: NgIterable<V>;
|
readonly collection: NgIterable<V>;
|
||||||
isDirty: boolean;
|
readonly isDirty: boolean;
|
||||||
length: number;
|
readonly length: number;
|
||||||
constructor(_trackByFn?: TrackByFunction<V>);
|
constructor(_trackByFn?: TrackByFunction<V>);
|
||||||
check(collection: NgIterable<V>): boolean;
|
check(collection: NgIterable<V>): boolean;
|
||||||
diff(collection: NgIterable<V>): DefaultIterableDiffer<V>;
|
diff(collection: NgIterable<V>): DefaultIterableDiffer<V>;
|
||||||
@ -420,8 +414,8 @@ export declare class ElementRef {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
||||||
context: C;
|
readonly abstract context: C;
|
||||||
rootNodes: any[];
|
readonly abstract rootNodes: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
@ -647,7 +641,7 @@ export declare const NgModule: NgModuleDecorator;
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class NgModuleFactory<T> {
|
export declare class NgModuleFactory<T> {
|
||||||
moduleType: Type<T>;
|
readonly moduleType: Type<T>;
|
||||||
constructor(_injectorClass: {
|
constructor(_injectorClass: {
|
||||||
new (parentInjector: Injector): NgModuleInjector<T>;
|
new (parentInjector: Injector): NgModuleInjector<T>;
|
||||||
}, _moduleType: Type<T>);
|
}, _moduleType: Type<T>);
|
||||||
@ -661,9 +655,9 @@ export declare abstract class NgModuleFactoryLoader {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class NgModuleRef<T> {
|
export declare abstract class NgModuleRef<T> {
|
||||||
componentFactoryResolver: ComponentFactoryResolver;
|
readonly abstract componentFactoryResolver: ComponentFactoryResolver;
|
||||||
injector: Injector;
|
readonly abstract injector: Injector;
|
||||||
instance: T;
|
readonly abstract instance: T;
|
||||||
abstract destroy(): void;
|
abstract destroy(): void;
|
||||||
abstract onDestroy(callback: () => void): void;
|
abstract onDestroy(callback: () => void): void;
|
||||||
}
|
}
|
||||||
@ -677,13 +671,13 @@ export declare class NgProbeToken {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class NgZone {
|
export declare class NgZone {
|
||||||
hasPendingMacrotasks: boolean;
|
readonly hasPendingMacrotasks: boolean;
|
||||||
hasPendingMicrotasks: boolean;
|
readonly hasPendingMicrotasks: boolean;
|
||||||
isStable: boolean;
|
readonly isStable: boolean;
|
||||||
onError: EventEmitter<any>;
|
readonly onError: EventEmitter<any>;
|
||||||
onMicrotaskEmpty: EventEmitter<any>;
|
readonly onMicrotaskEmpty: EventEmitter<any>;
|
||||||
onStable: EventEmitter<any>;
|
readonly onStable: EventEmitter<any>;
|
||||||
onUnstable: EventEmitter<any>;
|
readonly onUnstable: EventEmitter<any>;
|
||||||
constructor({enableLongStackTrace}: {
|
constructor({enableLongStackTrace}: {
|
||||||
enableLongStackTrace?: boolean;
|
enableLongStackTrace?: boolean;
|
||||||
});
|
});
|
||||||
@ -751,8 +745,8 @@ export declare const platformCore: (extraProviders?: Provider[]) => PlatformRef;
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class PlatformRef {
|
export declare abstract class PlatformRef {
|
||||||
destroyed: boolean;
|
readonly abstract destroyed: boolean;
|
||||||
injector: Injector;
|
readonly abstract injector: Injector;
|
||||||
/** @stable */ abstract bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: CompilerOptions | CompilerOptions[]): Promise<NgModuleRef<M>>;
|
/** @stable */ abstract bootstrapModule<M>(moduleType: Type<M>, compilerOptions?: CompilerOptions | CompilerOptions[]): Promise<NgModuleRef<M>>;
|
||||||
/** @experimental */ abstract bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>): Promise<NgModuleRef<M>>;
|
/** @experimental */ abstract bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>): Promise<NgModuleRef<M>>;
|
||||||
abstract destroy(): void;
|
abstract destroy(): void;
|
||||||
@ -768,11 +762,11 @@ export declare abstract class Query {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class QueryList<T> {
|
export declare class QueryList<T> {
|
||||||
changes: Observable<any>;
|
readonly changes: Observable<any>;
|
||||||
dirty: boolean;
|
readonly dirty: boolean;
|
||||||
first: T;
|
readonly first: T;
|
||||||
last: T;
|
readonly last: T;
|
||||||
length: number;
|
readonly length: number;
|
||||||
filter(fn: (item: T, index: number, array: T[]) => boolean): T[];
|
filter(fn: (item: T, index: number, array: T[]) => boolean): T[];
|
||||||
find(fn: (item: T, index: number, array: T[]) => boolean): T;
|
find(fn: (item: T, index: number, array: T[]) => boolean): T;
|
||||||
forEach(fn: (item: T, index: number, array: T[]) => void): void;
|
forEach(fn: (item: T, index: number, array: T[]) => void): void;
|
||||||
@ -788,7 +782,7 @@ export declare class QueryList<T> {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class ReflectiveInjector implements Injector {
|
export declare abstract class ReflectiveInjector implements Injector {
|
||||||
parent: Injector;
|
readonly abstract parent: Injector;
|
||||||
abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
|
abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
|
||||||
abstract get(token: any, notFoundValue?: any): any;
|
abstract get(token: any, notFoundValue?: any): any;
|
||||||
abstract instantiateResolved(provider: ResolvedReflectiveProvider): any;
|
abstract instantiateResolved(provider: ResolvedReflectiveProvider): any;
|
||||||
@ -801,11 +795,11 @@ export declare abstract class ReflectiveInjector implements Injector {
|
|||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare class ReflectiveKey {
|
export declare class ReflectiveKey {
|
||||||
displayName: string;
|
readonly displayName: string;
|
||||||
id: number;
|
id: number;
|
||||||
token: Object;
|
token: Object;
|
||||||
constructor(token: Object, id: number);
|
constructor(token: Object, id: number);
|
||||||
static numberOfKeys: number;
|
static readonly numberOfKeys: number;
|
||||||
static get(token: Object): ReflectiveKey;
|
static get(token: Object): ReflectiveKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -953,7 +947,7 @@ export declare abstract class SystemJsNgModuleLoaderConfig {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class TemplateRef<C> {
|
export declare abstract class TemplateRef<C> {
|
||||||
elementRef: ElementRef;
|
readonly abstract elementRef: ElementRef;
|
||||||
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1026,9 +1020,9 @@ export interface ValueProvider {
|
|||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class Version {
|
export declare class Version {
|
||||||
full: string;
|
full: string;
|
||||||
major: string;
|
readonly major: string;
|
||||||
minor: string;
|
readonly minor: string;
|
||||||
patch: string;
|
readonly patch: string;
|
||||||
constructor(full: string);
|
constructor(full: string);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1063,10 +1057,10 @@ export interface ViewChildrenDecorator {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class ViewContainerRef {
|
export declare abstract class ViewContainerRef {
|
||||||
element: ElementRef;
|
readonly abstract element: ElementRef;
|
||||||
injector: Injector;
|
readonly abstract injector: Injector;
|
||||||
length: number;
|
readonly abstract length: number;
|
||||||
parentInjector: Injector;
|
readonly abstract parentInjector: Injector;
|
||||||
abstract clear(): void;
|
abstract clear(): void;
|
||||||
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][]): ComponentRef<C>;
|
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][]): ComponentRef<C>;
|
||||||
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;
|
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;
|
||||||
@ -1087,7 +1081,7 @@ export declare enum ViewEncapsulation {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class ViewRef extends ChangeDetectorRef {
|
export declare abstract class ViewRef extends ChangeDetectorRef {
|
||||||
destroyed: boolean;
|
readonly abstract destroyed: boolean;
|
||||||
abstract destroy(): void;
|
abstract destroy(): void;
|
||||||
abstract onDestroy(callback: Function): any;
|
abstract onDestroy(callback: Function): any;
|
||||||
}
|
}
|
||||||
|
138
tools/public_api_guard/forms/index.d.ts
vendored
138
tools/public_api_guard/forms/index.d.ts
vendored
@ -1,25 +1,25 @@
|
|||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class AbstractControl {
|
export declare abstract class AbstractControl {
|
||||||
asyncValidator: AsyncValidatorFn;
|
asyncValidator: AsyncValidatorFn;
|
||||||
dirty: boolean;
|
readonly dirty: boolean;
|
||||||
disabled: boolean;
|
readonly disabled: boolean;
|
||||||
enabled: boolean;
|
readonly enabled: boolean;
|
||||||
errors: {
|
readonly errors: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
invalid: boolean;
|
readonly invalid: boolean;
|
||||||
parent: FormGroup | FormArray;
|
readonly parent: FormGroup | FormArray;
|
||||||
pending: boolean;
|
readonly pending: boolean;
|
||||||
pristine: boolean;
|
readonly pristine: boolean;
|
||||||
root: AbstractControl;
|
readonly root: AbstractControl;
|
||||||
status: string;
|
readonly status: string;
|
||||||
statusChanges: Observable<any>;
|
readonly statusChanges: Observable<any>;
|
||||||
touched: boolean;
|
readonly touched: boolean;
|
||||||
untouched: boolean;
|
readonly untouched: boolean;
|
||||||
valid: boolean;
|
readonly valid: boolean;
|
||||||
validator: ValidatorFn;
|
validator: ValidatorFn;
|
||||||
value: any;
|
readonly value: any;
|
||||||
valueChanges: Observable<any>;
|
readonly valueChanges: Observable<any>;
|
||||||
constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn);
|
constructor(validator: ValidatorFn, asyncValidator: AsyncValidatorFn);
|
||||||
clearAsyncValidators(): void;
|
clearAsyncValidators(): void;
|
||||||
clearValidators(): void;
|
clearValidators(): void;
|
||||||
@ -68,23 +68,23 @@ export declare abstract class AbstractControl {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class AbstractControlDirective {
|
export declare abstract class AbstractControlDirective {
|
||||||
control: AbstractControl;
|
readonly control: AbstractControl;
|
||||||
dirty: boolean;
|
readonly dirty: boolean;
|
||||||
disabled: boolean;
|
readonly disabled: boolean;
|
||||||
enabled: boolean;
|
readonly enabled: boolean;
|
||||||
errors: {
|
readonly errors: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
invalid: boolean;
|
readonly invalid: boolean;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
pending: boolean;
|
readonly pending: boolean;
|
||||||
pristine: boolean;
|
readonly pristine: boolean;
|
||||||
statusChanges: Observable<any>;
|
readonly statusChanges: Observable<any>;
|
||||||
touched: boolean;
|
readonly touched: boolean;
|
||||||
untouched: boolean;
|
readonly untouched: boolean;
|
||||||
valid: boolean;
|
readonly valid: boolean;
|
||||||
value: any;
|
readonly value: any;
|
||||||
valueChanges: Observable<any>;
|
readonly valueChanges: Observable<any>;
|
||||||
getError(errorCode: string, path?: string[]): any;
|
getError(errorCode: string, path?: string[]): any;
|
||||||
hasError(errorCode: string, path?: string[]): boolean;
|
hasError(errorCode: string, path?: string[]): boolean;
|
||||||
reset(value?: any): void;
|
reset(value?: any): void;
|
||||||
@ -92,11 +92,11 @@ export declare abstract class AbstractControlDirective {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {
|
export declare class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {
|
||||||
asyncValidator: AsyncValidatorFn;
|
readonly asyncValidator: AsyncValidatorFn;
|
||||||
control: FormGroup;
|
readonly control: FormGroup;
|
||||||
formDirective: Form;
|
readonly formDirective: Form;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
validator: ValidatorFn;
|
readonly validator: ValidatorFn;
|
||||||
ngOnDestroy(): void;
|
ngOnDestroy(): void;
|
||||||
ngOnInit(): void;
|
ngOnInit(): void;
|
||||||
}
|
}
|
||||||
@ -126,9 +126,9 @@ export declare class CheckboxRequiredValidator extends RequiredValidator {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class ControlContainer extends AbstractControlDirective {
|
export declare class ControlContainer extends AbstractControlDirective {
|
||||||
formDirective: Form;
|
readonly formDirective: Form;
|
||||||
name: string;
|
name: string;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
@ -173,7 +173,7 @@ export interface Form {
|
|||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class FormArray extends AbstractControl {
|
export declare class FormArray extends AbstractControl {
|
||||||
controls: AbstractControl[];
|
controls: AbstractControl[];
|
||||||
length: number;
|
readonly length: number;
|
||||||
constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
constructor(controls: AbstractControl[], validator?: ValidatorFn, asyncValidator?: AsyncValidatorFn);
|
||||||
at(index: number): AbstractControl;
|
at(index: number): AbstractControl;
|
||||||
getRawValue(): any[];
|
getRawValue(): any[];
|
||||||
@ -197,12 +197,12 @@ export declare class FormArray extends AbstractControl {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class FormArrayName extends ControlContainer implements OnInit, OnDestroy {
|
export declare class FormArrayName extends ControlContainer implements OnInit, OnDestroy {
|
||||||
asyncValidator: AsyncValidatorFn;
|
readonly asyncValidator: AsyncValidatorFn;
|
||||||
control: FormArray;
|
readonly control: FormArray;
|
||||||
formDirective: FormGroupDirective;
|
readonly formDirective: FormGroupDirective;
|
||||||
name: string;
|
name: string;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
validator: ValidatorFn;
|
readonly validator: ValidatorFn;
|
||||||
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
|
constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
|
||||||
ngOnDestroy(): void;
|
ngOnDestroy(): void;
|
||||||
ngOnInit(): void;
|
ngOnInit(): void;
|
||||||
@ -244,14 +244,14 @@ export declare class FormControl extends AbstractControl {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class FormControlDirective extends NgControl implements OnChanges {
|
export declare class FormControlDirective extends NgControl implements OnChanges {
|
||||||
asyncValidator: AsyncValidatorFn;
|
readonly asyncValidator: AsyncValidatorFn;
|
||||||
control: FormControl;
|
readonly control: FormControl;
|
||||||
form: FormControl;
|
form: FormControl;
|
||||||
isDisabled: boolean;
|
isDisabled: boolean;
|
||||||
model: any;
|
model: any;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
update: EventEmitter<{}>;
|
update: EventEmitter<{}>;
|
||||||
validator: ValidatorFn;
|
readonly validator: ValidatorFn;
|
||||||
viewModel: any;
|
viewModel: any;
|
||||||
constructor(validators: Array<Validator | ValidatorFn>, asyncValidators: Array<Validator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
constructor(validators: Array<Validator | ValidatorFn>, asyncValidators: Array<Validator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
||||||
ngOnChanges(changes: SimpleChanges): void;
|
ngOnChanges(changes: SimpleChanges): void;
|
||||||
@ -260,15 +260,15 @@ export declare class FormControlDirective extends NgControl implements OnChanges
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class FormControlName extends NgControl implements OnChanges, OnDestroy {
|
export declare class FormControlName extends NgControl implements OnChanges, OnDestroy {
|
||||||
asyncValidator: AsyncValidatorFn;
|
readonly asyncValidator: AsyncValidatorFn;
|
||||||
control: FormControl;
|
readonly control: FormControl;
|
||||||
formDirective: any;
|
readonly formDirective: any;
|
||||||
isDisabled: boolean;
|
isDisabled: boolean;
|
||||||
model: any;
|
model: any;
|
||||||
name: string;
|
name: string;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
update: EventEmitter<{}>;
|
update: EventEmitter<{}>;
|
||||||
validator: ValidatorFn;
|
readonly validator: ValidatorFn;
|
||||||
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<Validator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<Validator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
||||||
ngOnChanges(changes: SimpleChanges): void;
|
ngOnChanges(changes: SimpleChanges): void;
|
||||||
ngOnDestroy(): void;
|
ngOnDestroy(): void;
|
||||||
@ -309,13 +309,13 @@ export declare class FormGroup extends AbstractControl {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges {
|
export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges {
|
||||||
control: FormGroup;
|
readonly control: FormGroup;
|
||||||
directives: FormControlName[];
|
directives: FormControlName[];
|
||||||
form: FormGroup;
|
form: FormGroup;
|
||||||
formDirective: Form;
|
readonly formDirective: Form;
|
||||||
ngSubmit: EventEmitter<{}>;
|
ngSubmit: EventEmitter<{}>;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
submitted: boolean;
|
readonly submitted: boolean;
|
||||||
constructor(_validators: any[], _asyncValidators: any[]);
|
constructor(_validators: any[], _asyncValidators: any[]);
|
||||||
addControl(dir: FormControlName): FormControl;
|
addControl(dir: FormControlName): FormControl;
|
||||||
addFormArray(dir: FormArrayName): void;
|
addFormArray(dir: FormArrayName): void;
|
||||||
@ -374,9 +374,9 @@ export declare const NG_VALUE_ACCESSOR: InjectionToken<ControlValueAccessor>;
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare abstract class NgControl extends AbstractControlDirective {
|
export declare abstract class NgControl extends AbstractControlDirective {
|
||||||
asyncValidator: AsyncValidatorFn;
|
readonly asyncValidator: AsyncValidatorFn;
|
||||||
name: string;
|
name: string;
|
||||||
validator: ValidatorFn;
|
readonly validator: ValidatorFn;
|
||||||
valueAccessor: ControlValueAccessor;
|
valueAccessor: ControlValueAccessor;
|
||||||
abstract viewToModelUpdate(newValue: any): void;
|
abstract viewToModelUpdate(newValue: any): void;
|
||||||
}
|
}
|
||||||
@ -393,15 +393,15 @@ export declare class NgControlStatusGroup extends AbstractControlStatus {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class NgForm extends ControlContainer implements Form {
|
export declare class NgForm extends ControlContainer implements Form {
|
||||||
control: FormGroup;
|
readonly control: FormGroup;
|
||||||
controls: {
|
readonly controls: {
|
||||||
[key: string]: AbstractControl;
|
[key: string]: AbstractControl;
|
||||||
};
|
};
|
||||||
form: FormGroup;
|
form: FormGroup;
|
||||||
formDirective: Form;
|
readonly formDirective: Form;
|
||||||
ngSubmit: EventEmitter<{}>;
|
ngSubmit: EventEmitter<{}>;
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
submitted: boolean;
|
readonly submitted: boolean;
|
||||||
constructor(validators: any[], asyncValidators: any[]);
|
constructor(validators: any[], asyncValidators: any[]);
|
||||||
addControl(dir: NgModel): void;
|
addControl(dir: NgModel): void;
|
||||||
addFormGroup(dir: NgModelGroup): void;
|
addFormGroup(dir: NgModelGroup): void;
|
||||||
@ -420,9 +420,9 @@ export declare class NgForm extends ControlContainer implements Form {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
||||||
asyncValidator: AsyncValidatorFn;
|
readonly asyncValidator: AsyncValidatorFn;
|
||||||
control: FormControl;
|
readonly control: FormControl;
|
||||||
formDirective: any;
|
readonly formDirective: any;
|
||||||
isDisabled: boolean;
|
isDisabled: boolean;
|
||||||
model: any;
|
model: any;
|
||||||
name: string;
|
name: string;
|
||||||
@ -430,9 +430,9 @@ export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
|
|||||||
name?: string;
|
name?: string;
|
||||||
standalone?: boolean;
|
standalone?: boolean;
|
||||||
};
|
};
|
||||||
path: string[];
|
readonly path: string[];
|
||||||
update: EventEmitter<{}>;
|
update: EventEmitter<{}>;
|
||||||
validator: ValidatorFn;
|
readonly validator: ValidatorFn;
|
||||||
viewModel: any;
|
viewModel: any;
|
||||||
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<Validator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<Validator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
|
||||||
compositionEnd(): void;
|
compositionEnd(): void;
|
||||||
|
50
tools/public_api_guard/router/index.d.ts
vendored
50
tools/public_api_guard/router/index.d.ts
vendored
@ -1,17 +1,17 @@
|
|||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class ActivatedRoute {
|
export declare class ActivatedRoute {
|
||||||
children: ActivatedRoute[];
|
readonly children: ActivatedRoute[];
|
||||||
component: Type<any> | string;
|
component: Type<any> | string;
|
||||||
data: Observable<Data>;
|
data: Observable<Data>;
|
||||||
firstChild: ActivatedRoute;
|
readonly firstChild: ActivatedRoute;
|
||||||
fragment: Observable<string>;
|
fragment: Observable<string>;
|
||||||
outlet: string;
|
outlet: string;
|
||||||
params: Observable<Params>;
|
params: Observable<Params>;
|
||||||
parent: ActivatedRoute;
|
readonly parent: ActivatedRoute;
|
||||||
pathFromRoot: ActivatedRoute[];
|
readonly pathFromRoot: ActivatedRoute[];
|
||||||
queryParams: Observable<Params>;
|
queryParams: Observable<Params>;
|
||||||
root: ActivatedRoute;
|
readonly root: ActivatedRoute;
|
||||||
routeConfig: Route;
|
readonly routeConfig: Route;
|
||||||
snapshot: ActivatedRouteSnapshot;
|
snapshot: ActivatedRouteSnapshot;
|
||||||
url: Observable<UrlSegment[]>;
|
url: Observable<UrlSegment[]>;
|
||||||
toString(): string;
|
toString(): string;
|
||||||
@ -19,18 +19,18 @@ export declare class ActivatedRoute {
|
|||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class ActivatedRouteSnapshot {
|
export declare class ActivatedRouteSnapshot {
|
||||||
children: ActivatedRouteSnapshot[];
|
readonly children: ActivatedRouteSnapshot[];
|
||||||
component: Type<any> | string;
|
component: Type<any> | string;
|
||||||
data: Data;
|
data: Data;
|
||||||
firstChild: ActivatedRouteSnapshot;
|
readonly firstChild: ActivatedRouteSnapshot;
|
||||||
fragment: string;
|
fragment: string;
|
||||||
outlet: string;
|
outlet: string;
|
||||||
params: Params;
|
params: Params;
|
||||||
parent: ActivatedRouteSnapshot;
|
readonly parent: ActivatedRouteSnapshot;
|
||||||
pathFromRoot: ActivatedRouteSnapshot[];
|
readonly pathFromRoot: ActivatedRouteSnapshot[];
|
||||||
queryParams: Params;
|
queryParams: Params;
|
||||||
root: ActivatedRouteSnapshot;
|
readonly root: ActivatedRouteSnapshot;
|
||||||
routeConfig: Route;
|
readonly routeConfig: Route;
|
||||||
url: UrlSegment[];
|
url: UrlSegment[];
|
||||||
toString(): string;
|
toString(): string;
|
||||||
}
|
}
|
||||||
@ -166,7 +166,7 @@ export declare abstract class PreloadingStrategy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare const PRIMARY_OUTLET: string;
|
export declare const PRIMARY_OUTLET = "primary";
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare function provideRoutes(routes: Routes): any;
|
export declare function provideRoutes(routes: Routes): any;
|
||||||
@ -203,11 +203,11 @@ export interface Route {
|
|||||||
export declare class Router {
|
export declare class Router {
|
||||||
config: Routes;
|
config: Routes;
|
||||||
errorHandler: ErrorHandler;
|
errorHandler: ErrorHandler;
|
||||||
events: Observable<Event>;
|
readonly events: Observable<Event>;
|
||||||
navigated: boolean;
|
navigated: boolean;
|
||||||
routeReuseStrategy: RouteReuseStrategy;
|
routeReuseStrategy: RouteReuseStrategy;
|
||||||
routerState: RouterState;
|
readonly routerState: RouterState;
|
||||||
url: string;
|
readonly url: string;
|
||||||
urlHandlingStrategy: UrlHandlingStrategy;
|
urlHandlingStrategy: UrlHandlingStrategy;
|
||||||
constructor(rootComponentType: Type<any>, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes);
|
constructor(rootComponentType: Type<any>, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes);
|
||||||
createUrlTree(commands: any[], {relativeTo, queryParams, fragment, preserveQueryParams, queryParamsHandling, preserveFragment}?: NavigationExtras): UrlTree;
|
createUrlTree(commands: any[], {relativeTo, queryParams, fragment, preserveQueryParams, queryParamsHandling, preserveFragment}?: NavigationExtras): UrlTree;
|
||||||
@ -250,14 +250,14 @@ export declare class RouterLink {
|
|||||||
replaceUrl: boolean;
|
replaceUrl: boolean;
|
||||||
routerLink: any[] | string;
|
routerLink: any[] | string;
|
||||||
skipLocationChange: boolean;
|
skipLocationChange: boolean;
|
||||||
urlTree: UrlTree;
|
readonly urlTree: UrlTree;
|
||||||
constructor(router: Router, route: ActivatedRoute, tabIndex: string, renderer: Renderer, el: ElementRef);
|
constructor(router: Router, route: ActivatedRoute, tabIndex: string, renderer: Renderer, el: ElementRef);
|
||||||
onClick(): boolean;
|
onClick(): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
||||||
isActive: boolean;
|
readonly isActive: boolean;
|
||||||
links: QueryList<RouterLink>;
|
links: QueryList<RouterLink>;
|
||||||
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||||
routerLinkActive: string[] | string;
|
routerLinkActive: string[] | string;
|
||||||
@ -284,7 +284,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
|
|||||||
routerLink: any[] | string;
|
routerLink: any[] | string;
|
||||||
skipLocationChange: boolean;
|
skipLocationChange: boolean;
|
||||||
target: string;
|
target: string;
|
||||||
urlTree: UrlTree;
|
readonly urlTree: UrlTree;
|
||||||
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy);
|
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy);
|
||||||
ngOnChanges(changes: {}): any;
|
ngOnChanges(changes: {}): any;
|
||||||
ngOnDestroy(): any;
|
ngOnDestroy(): any;
|
||||||
@ -301,12 +301,12 @@ export declare class RouterModule {
|
|||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class RouterOutlet implements OnDestroy {
|
export declare class RouterOutlet implements OnDestroy {
|
||||||
activateEvents: EventEmitter<any>;
|
activateEvents: EventEmitter<any>;
|
||||||
activatedRoute: ActivatedRoute;
|
readonly activatedRoute: ActivatedRoute;
|
||||||
component: Object;
|
readonly component: Object;
|
||||||
deactivateEvents: EventEmitter<any>;
|
deactivateEvents: EventEmitter<any>;
|
||||||
isActivated: boolean;
|
readonly isActivated: boolean;
|
||||||
locationFactoryResolver: ComponentFactoryResolver;
|
readonly locationFactoryResolver: ComponentFactoryResolver;
|
||||||
locationInjector: Injector;
|
readonly locationInjector: Injector;
|
||||||
outletMap: RouterOutletMap;
|
outletMap: RouterOutletMap;
|
||||||
constructor(parentOutletMap: RouterOutletMap, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string);
|
constructor(parentOutletMap: RouterOutletMap, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string);
|
||||||
activate(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver, injector: Injector, providers: ResolvedReflectiveProvider[], outletMap: RouterOutletMap): void;
|
activate(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver, injector: Injector, providers: ResolvedReflectiveProvider[], outletMap: RouterOutletMap): void;
|
||||||
@ -385,7 +385,7 @@ export declare class UrlSegmentGroup {
|
|||||||
children: {
|
children: {
|
||||||
[key: string]: UrlSegmentGroup;
|
[key: string]: UrlSegmentGroup;
|
||||||
};
|
};
|
||||||
numberOfChildren: number;
|
readonly numberOfChildren: number;
|
||||||
parent: UrlSegmentGroup;
|
parent: UrlSegmentGroup;
|
||||||
segments: UrlSegment[];
|
segments: UrlSegment[];
|
||||||
constructor(
|
constructor(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user