2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AbstractProviderError extends BaseException {
|
2016-06-23 21:19:32 -04:00
|
|
|
context: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(injector: ReflectiveInjector, key: ReflectiveKey, constructResolvingMessage: Function);
|
|
|
|
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AfterContentChecked {
|
|
|
|
abstract ngAfterContentChecked(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AfterContentInit {
|
|
|
|
abstract ngAfterContentInit(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AfterViewChecked {
|
|
|
|
abstract ngAfterViewChecked(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AfterViewInit {
|
|
|
|
abstract ngAfterViewInit(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function animate(timing: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata): AnimationAnimateMetadata;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationAnimateMetadata extends AnimationMetadata {
|
|
|
|
styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata;
|
2016-06-23 21:19:32 -04:00
|
|
|
timings: string | number;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(timings: string | number, styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationEntryMetadata {
|
|
|
|
definitions: AnimationStateMetadata[];
|
2016-06-23 21:19:32 -04:00
|
|
|
name: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(name: string, definitions: AnimationStateMetadata[]);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationGroupMetadata extends AnimationWithStepsMetadata {
|
|
|
|
steps: AnimationMetadata[];
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_steps: AnimationMetadata[]);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationKeyframesSequenceMetadata extends AnimationMetadata {
|
|
|
|
steps: AnimationStyleMetadata[];
|
|
|
|
constructor(steps: AnimationStyleMetadata[]);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AnimationMetadata {
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AnimationPlayer {
|
2016-06-23 21:19:32 -04:00
|
|
|
parentPlayer: AnimationPlayer;
|
|
|
|
abstract destroy(): void;
|
|
|
|
abstract finish(): void;
|
|
|
|
abstract getPosition(): number;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract onDone(fn: Function): void;
|
|
|
|
abstract pause(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract play(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract reset(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract restart(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract setPosition(p: any): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationSequenceMetadata extends AnimationWithStepsMetadata {
|
|
|
|
steps: AnimationMetadata[];
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_steps: AnimationMetadata[]);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationStateDeclarationMetadata extends AnimationStateMetadata {
|
|
|
|
stateNameExpr: string;
|
|
|
|
styles: AnimationStyleMetadata;
|
|
|
|
constructor(stateNameExpr: string, styles: AnimationStyleMetadata);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AnimationStateMetadata {
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationStateTransitionMetadata extends AnimationStateMetadata {
|
|
|
|
stateChangeExpr: string;
|
|
|
|
steps: AnimationMetadata;
|
|
|
|
constructor(stateChangeExpr: string, steps: AnimationMetadata);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AnimationStyleMetadata extends AnimationMetadata {
|
2016-06-23 21:19:32 -04:00
|
|
|
offset: number;
|
2016-06-22 17:56:10 -04:00
|
|
|
styles: Array<string | {
|
|
|
|
[key: string]: string | number;
|
|
|
|
}>;
|
|
|
|
constructor(styles: Array<string | {
|
|
|
|
[key: string]: string | number;
|
|
|
|
}>, offset?: number);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class AnimationWithStepsMetadata extends AnimationMetadata {
|
|
|
|
steps: AnimationMetadata[];
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor();
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const APP_ID: any;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const APP_INITIALIZER: any;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const APPLICATION_COMMON_PROVIDERS: Array<Type | {
|
|
|
|
[k: string]: any;
|
|
|
|
} | any[]>;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ApplicationRef {
|
2016-06-23 21:19:32 -04:00
|
|
|
componentTypes: Type[];
|
2016-06-22 17:56:10 -04:00
|
|
|
injector: Injector;
|
|
|
|
zone: NgZone;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract bootstrap<C>(componentFactory: ComponentFactory<C>): ComponentRef<C>;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract dispose(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract registerBootstrapListener(listener: (ref: ComponentRef<any>) => void): void;
|
|
|
|
abstract registerDisposeListener(dispose: () => void): void;
|
|
|
|
abstract run(callback: Function): any;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract tick(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract waitForAsyncInitializers(): Promise<any>;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function asNativeElements(debugEls: DebugElement[]): any;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function assertPlatform(requiredToken: any): PlatformRef;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Attribute: AttributeMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AttributeMetadata extends DependencyMetadata {
|
|
|
|
attributeName: string;
|
|
|
|
token: AttributeMetadata;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(attributeName: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface AttributeMetadataFactory {
|
|
|
|
(name: string): TypeDecorator;
|
|
|
|
new (name: string): AttributeMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const AUTO_STYLE: string;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class BaseException extends Error {
|
|
|
|
message: string;
|
|
|
|
stack: any;
|
|
|
|
constructor(message?: string);
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function bind(token: any): ProviderBuilder;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class Binding extends Provider {
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */ toAlias: any;
|
|
|
|
/** @deprecated */ toClass: Type;
|
|
|
|
/** @deprecated */ toFactory: Function;
|
|
|
|
/** @deprecated */ toValue: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(token: any, {toClass, toValue, toAlias, toFactory, deps, multi}: {
|
|
|
|
toClass?: Type;
|
|
|
|
toValue?: any;
|
|
|
|
toAlias?: any;
|
|
|
|
toFactory: Function;
|
|
|
|
deps?: Object[];
|
|
|
|
multi?: boolean;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare enum ChangeDetectionStrategy {
|
2016-06-27 23:00:30 -04:00
|
|
|
OnPush = 0,
|
|
|
|
Default = 1,
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ChangeDetectorRef {
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract checkNoChanges(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract detach(): void;
|
|
|
|
abstract detectChanges(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract markForCheck(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract reattach(): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function Class(clsDef: ClassDefinition): ConcreteType;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ClassDefinition {
|
|
|
|
constructor: Function | any[];
|
2016-06-23 21:19:32 -04:00
|
|
|
extends?: Type;
|
2016-06-22 17:56:10 -04:00
|
|
|
[x: string]: Type | Function | any[];
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class CollectionChangeRecord {
|
|
|
|
currentIndex: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
item: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
previousIndex: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
trackById: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(item: any, trackById: any);
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Component: ComponentMetadataFactory;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ComponentDecorator extends TypeDecorator {
|
|
|
|
View(obj: {
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
renderer?: string;
|
|
|
|
styles?: string[];
|
|
|
|
styleUrls?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
interpolation?: [string, string];
|
|
|
|
}): ViewDecorator;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ComponentFactory<C> {
|
2016-06-23 21:19:32 -04:00
|
|
|
componentType: Type;
|
2016-06-22 17:56:10 -04:00
|
|
|
selector: string;
|
|
|
|
constructor(selector: string, _viewFactory: Function, _componentType: Type);
|
|
|
|
create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string | any): ComponentRef<C>;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ComponentFactoryResolver {
|
|
|
|
abstract resolveComponentFactory<T>(component: ClassWithConstructor<T>): ComponentFactory<T>;
|
2016-06-23 21:19:32 -04:00
|
|
|
static NULL: ComponentFactoryResolver;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ComponentMetadata extends DirectiveMetadata {
|
|
|
|
animations: AnimationEntryMetadata[];
|
2016-06-23 21:19:32 -04:00
|
|
|
changeDetection: ChangeDetectionStrategy;
|
2016-06-22 17:56:10 -04:00
|
|
|
directives: Array<Type | any[]>;
|
|
|
|
encapsulation: ViewEncapsulation;
|
|
|
|
interpolation: [string, string];
|
2016-06-23 21:19:32 -04:00
|
|
|
moduleId: string;
|
|
|
|
pipes: Array<Type | any[]>;
|
2016-06-22 17:56:10 -04:00
|
|
|
precompile: Array<Type | any[]>;
|
2016-06-23 21:19:32 -04:00
|
|
|
styleUrls: string[];
|
|
|
|
styles: string[];
|
|
|
|
template: string;
|
|
|
|
templateUrl: string;
|
|
|
|
viewProviders: any[];
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor({selector, inputs, outputs, properties, events, host, exportAs, moduleId, providers, viewProviders, changeDetection, queries, templateUrl, template, styleUrls, styles, animations, directives, pipes, encapsulation, interpolation, precompile}?: {
|
|
|
|
selector?: string;
|
|
|
|
inputs?: string[];
|
|
|
|
outputs?: string[]; properties?: string[]; events?: string[];
|
|
|
|
host?: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
providers?: any[];
|
|
|
|
exportAs?: string;
|
|
|
|
moduleId?: string;
|
|
|
|
viewProviders?: any[];
|
|
|
|
queries?: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
changeDetection?: ChangeDetectionStrategy;
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
styleUrls?: string[];
|
|
|
|
styles?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
encapsulation?: ViewEncapsulation;
|
|
|
|
interpolation?: [string, string];
|
|
|
|
precompile?: Array<Type | any[]>;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ComponentMetadataFactory {
|
|
|
|
(obj: {
|
|
|
|
selector?: string;
|
|
|
|
inputs?: string[];
|
|
|
|
outputs?: string[];
|
|
|
|
properties?: string[];
|
|
|
|
events?: string[];
|
|
|
|
host?: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
providers?: any[];
|
|
|
|
exportAs?: string;
|
|
|
|
moduleId?: string;
|
|
|
|
queries?: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
viewProviders?: any[];
|
|
|
|
changeDetection?: ChangeDetectionStrategy;
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
styleUrls?: string[];
|
|
|
|
styles?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
encapsulation?: ViewEncapsulation;
|
|
|
|
interpolation?: [string, string];
|
|
|
|
precompile?: Array<Type | any[]>;
|
|
|
|
}): ComponentDecorator;
|
|
|
|
new (obj: {
|
|
|
|
selector?: string;
|
|
|
|
inputs?: string[];
|
|
|
|
outputs?: string[];
|
|
|
|
properties?: string[];
|
|
|
|
events?: string[];
|
|
|
|
host?: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
providers?: any[];
|
|
|
|
exportAs?: string;
|
|
|
|
moduleId?: string;
|
|
|
|
queries?: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
viewProviders?: any[];
|
|
|
|
changeDetection?: ChangeDetectionStrategy;
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
styleUrls?: string[];
|
|
|
|
styles?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
encapsulation?: ViewEncapsulation;
|
|
|
|
interpolation?: [string, string];
|
|
|
|
precompile?: Array<Type | any[]>;
|
|
|
|
}): ComponentMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ComponentRef<C> {
|
|
|
|
changeDetectorRef: ChangeDetectorRef;
|
|
|
|
componentType: Type;
|
2016-06-23 21:19:32 -04:00
|
|
|
hostView: ViewRef;
|
|
|
|
injector: Injector;
|
|
|
|
instance: C;
|
|
|
|
location: ElementRef;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract destroy(): void;
|
|
|
|
abstract onDestroy(callback: Function): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ComponentResolver {
|
|
|
|
abstract clearCache(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract resolveComponent(component: Type | string): Promise<ComponentFactory<any>>;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var ContentChild: ContentChildMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ContentChildMetadata extends QueryMetadata {
|
|
|
|
constructor(_selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ContentChildMetadataFactory {
|
|
|
|
(selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
}): any;
|
|
|
|
new (selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
}): ContentChildMetadataFactory;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var ContentChildren: ContentChildrenMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ContentChildrenMetadata extends QueryMetadata {
|
|
|
|
constructor(_selector: Type | string, {descendants, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
read?: any;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ContentChildrenMetadataFactory {
|
|
|
|
(selector: Type | string, {descendants, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
read?: any;
|
|
|
|
}): any;
|
|
|
|
new (selector: Type | string, {descendants, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
read?: any;
|
|
|
|
}): ContentChildrenMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function coreBootstrap<C>(componentFactory: ComponentFactory<C>, injector: Injector): ComponentRef<C>;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function coreLoadAndBootstrap(componentType: Type, injector: Injector): Promise<ComponentRef<any>>;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function createNgZone(): NgZone;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function createPlatform(injector: Injector): PlatformRef;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class CyclicDependencyError extends AbstractProviderError {
|
|
|
|
constructor(injector: ReflectiveInjector, key: ReflectiveKey);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DebugElement extends DebugNode {
|
|
|
|
attributes: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
childNodes: DebugNode[];
|
|
|
|
children: DebugElement[];
|
2016-06-22 17:56:10 -04:00
|
|
|
classes: {
|
|
|
|
[key: string]: boolean;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
name: string;
|
|
|
|
nativeElement: any;
|
|
|
|
properties: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2016-06-22 17:56:10 -04:00
|
|
|
styles: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
constructor(nativeNode: any, parent: any, _debugInfo: RenderDebugInfo);
|
|
|
|
addChild(child: DebugNode): void;
|
|
|
|
insertChildrenAfter(child: DebugNode, newChildren: DebugNode[]): void;
|
|
|
|
query(predicate: Predicate<DebugElement>): DebugElement;
|
|
|
|
queryAll(predicate: Predicate<DebugElement>): DebugElement[];
|
|
|
|
queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[];
|
2016-06-23 21:19:32 -04:00
|
|
|
removeChild(child: DebugNode): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
triggerEventHandler(eventName: string, eventObj: any): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DebugNode {
|
|
|
|
componentInstance: any;
|
|
|
|
context: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
injector: Injector;
|
|
|
|
listeners: EventListener[];
|
|
|
|
nativeNode: any;
|
|
|
|
parent: DebugElement;
|
|
|
|
providerTokens: any[];
|
2016-06-22 17:56:10 -04:00
|
|
|
references: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
source: string;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(nativeNode: any, parent: DebugNode, _debugInfo: RenderDebugInfo);
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */ inject(token: any): any;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DefaultIterableDiffer implements IterableDiffer {
|
|
|
|
collection: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
isDirty: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
length: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_trackByFn?: TrackByFn);
|
|
|
|
check(collection: any): boolean;
|
|
|
|
diff(collection: any): DefaultIterableDiffer;
|
2016-06-22 17:56:10 -04:00
|
|
|
forEachAddedItem(fn: Function): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
forEachIdentityChange(fn: Function): void;
|
|
|
|
forEachItem(fn: Function): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
forEachMovedItem(fn: Function): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
forEachPreviousItem(fn: Function): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
forEachRemovedItem(fn: Function): void;
|
|
|
|
onDestroy(): void;
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Directive: DirectiveMetadataFactory;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface DirectiveDecorator extends TypeDecorator {
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DirectiveMetadata extends InjectableMetadata {
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */ events: string[];
|
2016-06-23 21:19:32 -04:00
|
|
|
exportAs: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
host: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
inputs: string[];
|
|
|
|
outputs: string[];
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */ properties: string[];
|
2016-06-22 17:56:10 -04:00
|
|
|
providers: any[];
|
|
|
|
queries: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
selector: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor({selector, inputs, outputs, properties, events, host, providers, exportAs, queries}?: {
|
|
|
|
selector?: string;
|
|
|
|
inputs?: string[];
|
|
|
|
outputs?: string[]; properties?: string[]; events?: string[];
|
|
|
|
host?: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
providers?: any[];
|
|
|
|
exportAs?: string;
|
|
|
|
queries?: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface DirectiveMetadataFactory {
|
|
|
|
(obj: {
|
|
|
|
selector?: string;
|
|
|
|
inputs?: string[];
|
|
|
|
outputs?: string[];
|
|
|
|
properties?: string[];
|
|
|
|
events?: string[];
|
|
|
|
host?: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
providers?: any[];
|
|
|
|
exportAs?: string;
|
|
|
|
queries?: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
}): DirectiveDecorator;
|
|
|
|
new (obj: {
|
|
|
|
selector?: string;
|
|
|
|
inputs?: string[];
|
|
|
|
outputs?: string[];
|
|
|
|
properties?: string[];
|
|
|
|
events?: string[];
|
|
|
|
host?: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
|
|
|
providers?: any[];
|
|
|
|
exportAs?: string;
|
|
|
|
queries?: {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
}): DirectiveMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function disposePlatform(): void;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class DoCheck {
|
|
|
|
abstract ngDoCheck(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class DynamicComponentLoader {
|
|
|
|
abstract loadAsRoot(type: Type, overrideSelectorOrNode: string | any, injector: Injector, onDispose?: () => void, projectableNodes?: any[][]): Promise<ComponentRef<any>>;
|
|
|
|
abstract loadNextToLocation(type: Type, location: ViewContainerRef, providers?: ResolvedReflectiveProvider[], projectableNodes?: any[][]): Promise<ComponentRef<any>>;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ElementRef {
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */ nativeElement: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(nativeElement: any);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class EmbeddedViewRef<C> extends ViewRef {
|
|
|
|
context: C;
|
|
|
|
rootNodes: any[];
|
|
|
|
abstract destroy(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function enableProdMode(): void;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class EventEmitter<T> extends Subject<T> {
|
|
|
|
__isAsync: boolean;
|
|
|
|
constructor(isAsync?: boolean);
|
|
|
|
emit(value: T): void;
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */ next(value: any): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
subscribe(generatorOrNext?: any, error?: any, complete?: any): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ExceptionHandler {
|
|
|
|
constructor(_logger: any, _rethrowException?: boolean);
|
|
|
|
call(exception: any, stackTrace?: any, reason?: string): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
static exceptionToString(exception: any, stackTrace?: any, reason?: string): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ExpressionChangedAfterItHasBeenCheckedException extends BaseException {
|
|
|
|
constructor(oldValue: any, currValue: any, context: any);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function forwardRef(forwardRefFn: ForwardRefFn): Type;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ForwardRefFn {
|
|
|
|
(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function getDebugNode(nativeNode: any): DebugNode;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function getPlatform(): PlatformRef;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface GetTestability {
|
|
|
|
addToWindow(registry: TestabilityRegistry): void;
|
|
|
|
findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function group(steps: AnimationMetadata[]): AnimationGroupMetadata;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Host: HostMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var HostBinding: HostBindingMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class HostBindingMetadata {
|
|
|
|
hostPropertyName: string;
|
|
|
|
constructor(hostPropertyName?: string);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface HostBindingMetadataFactory {
|
|
|
|
(hostPropertyName?: string): any;
|
|
|
|
new (hostPropertyName?: string): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var HostListener: HostListenerMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class HostListenerMetadata {
|
|
|
|
args: string[];
|
2016-06-23 21:19:32 -04:00
|
|
|
eventName: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(eventName: string, args?: string[]);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface HostListenerMetadataFactory {
|
|
|
|
(eventName: string, args?: string[]): any;
|
|
|
|
new (eventName: string, args?: string[]): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class HostMetadata {
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface HostMetadataFactory {
|
|
|
|
(): any;
|
|
|
|
new (): HostMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Inject: InjectMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Injectable: InjectableMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class InjectableMetadata {
|
|
|
|
constructor();
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface InjectableMetadataFactory {
|
|
|
|
(): any;
|
|
|
|
new (): InjectableMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class InjectMetadata {
|
|
|
|
token: any;
|
|
|
|
constructor(token: any);
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface InjectMetadataFactory {
|
|
|
|
(token: any): any;
|
|
|
|
new (token: any): InjectMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class Injector {
|
|
|
|
get(token: any, notFoundValue?: any): any;
|
2016-06-23 21:19:32 -04:00
|
|
|
static THROW_IF_NOT_FOUND: Object;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Input: InputMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class InputMetadata {
|
|
|
|
bindingPropertyName: string;
|
|
|
|
constructor(
|
|
|
|
bindingPropertyName?: string);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface InputMetadataFactory {
|
|
|
|
(bindingPropertyName?: string): any;
|
|
|
|
new (bindingPropertyName?: string): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class InstantiationError extends WrappedException {
|
|
|
|
causeKey: ReflectiveKey;
|
|
|
|
context: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
wrapperMessage: string;
|
|
|
|
constructor(injector: ReflectiveInjector, originalException: any, originalStack: any, key: ReflectiveKey);
|
|
|
|
addKey(injector: ReflectiveInjector, key: ReflectiveKey): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class InvalidProviderError extends BaseException {
|
|
|
|
constructor(provider: any);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function isDevMode(): boolean;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface IterableDiffer {
|
|
|
|
diff(object: any): any;
|
|
|
|
onDestroy(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface IterableDifferFactory {
|
|
|
|
create(cdRef: ChangeDetectorRef, trackByFn?: TrackByFn): IterableDiffer;
|
2016-06-23 21:19:32 -04:00
|
|
|
supports(objects: any): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class IterableDiffers {
|
|
|
|
factories: IterableDifferFactory[];
|
|
|
|
constructor(factories: IterableDifferFactory[]);
|
2016-06-23 21:19:32 -04:00
|
|
|
find(iterable: any): IterableDifferFactory;
|
2016-06-22 17:56:10 -04:00
|
|
|
static create(factories: IterableDifferFactory[], parent?: IterableDiffers): IterableDiffers;
|
|
|
|
static extend(factories: IterableDifferFactory[]): Provider;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class KeyValueChangeRecord {
|
2016-06-23 21:19:32 -04:00
|
|
|
currentValue: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
key: any;
|
|
|
|
previousValue: any;
|
|
|
|
constructor(key: any);
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface KeyValueDiffer {
|
|
|
|
diff(object: any): any;
|
|
|
|
onDestroy(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface KeyValueDifferFactory {
|
|
|
|
create(cdRef: ChangeDetectorRef): KeyValueDiffer;
|
2016-06-23 21:19:32 -04:00
|
|
|
supports(objects: any): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class KeyValueDiffers {
|
|
|
|
factories: KeyValueDifferFactory[];
|
|
|
|
constructor(factories: KeyValueDifferFactory[]);
|
2016-06-23 21:19:32 -04:00
|
|
|
find(kv: Object): KeyValueDifferFactory;
|
2016-06-22 17:56:10 -04:00
|
|
|
static create(factories: KeyValueDifferFactory[], parent?: KeyValueDiffers): KeyValueDiffers;
|
|
|
|
static extend(factories: KeyValueDifferFactory[]): Provider;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function lockRunMode(): void;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgZone {
|
2016-06-23 21:19:32 -04:00
|
|
|
hasPendingMacrotasks: boolean;
|
|
|
|
hasPendingMicrotasks: boolean;
|
|
|
|
isStable: boolean;
|
|
|
|
onError: EventEmitter<any>;
|
|
|
|
onMicrotaskEmpty: EventEmitter<any>;
|
|
|
|
onStable: EventEmitter<any>;
|
|
|
|
onUnstable: EventEmitter<any>;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor({enableLongStackTrace}: {
|
|
|
|
enableLongStackTrace?: boolean;
|
|
|
|
});
|
|
|
|
run(fn: () => any): any;
|
|
|
|
runGuarded(fn: () => any): any;
|
|
|
|
runOutsideAngular(fn: () => any): any;
|
2016-06-23 21:19:32 -04:00
|
|
|
static assertInAngularZone(): void;
|
|
|
|
static assertNotInAngularZone(): void;
|
|
|
|
static isInAngularZone(): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgZoneError {
|
|
|
|
error: any;
|
|
|
|
stackTrace: any;
|
|
|
|
constructor(error: any, stackTrace: any);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NoAnnotationError extends BaseException {
|
|
|
|
constructor(typeOrFunc: any, params: any[][]);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NoComponentFactoryError extends BaseException {
|
|
|
|
component: Function;
|
|
|
|
constructor(component: Function);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NoProviderError extends AbstractProviderError {
|
|
|
|
constructor(injector: ReflectiveInjector, key: ReflectiveKey);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class OnChanges {
|
|
|
|
abstract ngOnChanges(changes: SimpleChanges): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class OnDestroy {
|
|
|
|
abstract ngOnDestroy(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class OnInit {
|
|
|
|
abstract ngOnInit(): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class OpaqueToken {
|
|
|
|
constructor(_desc: string);
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Optional: OptionalMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class OptionalMetadata {
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface OptionalMetadataFactory {
|
|
|
|
(): any;
|
|
|
|
new (): OptionalMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class OutOfBoundsError extends BaseException {
|
|
|
|
constructor(index: any);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Output: OutputMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class OutputMetadata {
|
|
|
|
bindingPropertyName: string;
|
|
|
|
constructor(bindingPropertyName?: string);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface OutputMetadataFactory {
|
|
|
|
(bindingPropertyName?: string): any;
|
|
|
|
new (bindingPropertyName?: string): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const PACKAGE_ROOT_URL: any;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Pipe: PipeMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class PipeMetadata extends InjectableMetadata {
|
|
|
|
name: string;
|
2016-06-23 21:19:32 -04:00
|
|
|
pure: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor({name, pure}: {
|
|
|
|
name: string;
|
|
|
|
pure?: boolean;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface PipeMetadataFactory {
|
|
|
|
(obj: {
|
|
|
|
name: string;
|
|
|
|
pure?: boolean;
|
|
|
|
}): any;
|
|
|
|
new (obj: {
|
|
|
|
name: string;
|
|
|
|
pure?: boolean;
|
|
|
|
}): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface PipeTransform {
|
|
|
|
transform(value: any, ...args: any[]): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const PLATFORM_COMMON_PROVIDERS: Array<any | Type | Provider | any[]>;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const PLATFORM_DIRECTIVES: OpaqueToken;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const PLATFORM_INITIALIZER: any;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const PLATFORM_PIPES: OpaqueToken;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class PlatformRef {
|
2016-06-23 21:19:32 -04:00
|
|
|
disposed: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
injector: Injector;
|
|
|
|
abstract dispose(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract registerDisposeListener(dispose: () => void): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function provide(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: {
|
|
|
|
useClass?: Type;
|
|
|
|
useValue?: any;
|
|
|
|
useExisting?: any;
|
|
|
|
useFactory?: Function;
|
|
|
|
deps?: Object[];
|
|
|
|
multi?: boolean;
|
|
|
|
}): Provider;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class Provider {
|
2016-06-23 21:19:32 -04:00
|
|
|
dependencies: Object[];
|
|
|
|
multi: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
token: any;
|
|
|
|
useClass: Type;
|
|
|
|
useExisting: any;
|
|
|
|
useFactory: Function;
|
2016-06-23 21:19:32 -04:00
|
|
|
useValue: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(token: any, {useClass, useValue, useExisting, useFactory, deps, multi}: {
|
|
|
|
useClass?: Type;
|
|
|
|
useValue?: any;
|
|
|
|
useExisting?: any;
|
|
|
|
useFactory?: Function;
|
|
|
|
deps?: Object[];
|
|
|
|
multi?: boolean;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ProviderBuilder {
|
|
|
|
token: any;
|
|
|
|
constructor(token: any);
|
|
|
|
toAlias(aliasToken: any): Provider;
|
2016-06-23 21:19:32 -04:00
|
|
|
toClass(type: Type): Provider;
|
2016-06-22 17:56:10 -04:00
|
|
|
toFactory(factory: Function, dependencies?: any[]): Provider;
|
2016-06-23 21:19:32 -04:00
|
|
|
toValue(value: any): Provider;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Query: QueryMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class QueryList<T> {
|
|
|
|
changes: Observable<any>;
|
2016-06-23 21:19:32 -04:00
|
|
|
dirty: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
first: T;
|
|
|
|
last: T;
|
2016-06-23 21:19:32 -04:00
|
|
|
length: number;
|
2016-06-22 17:56:10 -04:00
|
|
|
filter(fn: (item: T, index: number, array: T[]) => boolean): T[];
|
|
|
|
forEach(fn: (item: T, index: number, array: T[]) => void): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
map<U>(fn: (item: T, index: number, array: T[]) => U): U[];
|
|
|
|
notifyOnChanges(): void;
|
|
|
|
reduce<U>(fn: (prevValue: U, curValue: T, curIndex: number, array: T[]) => U, init: U): U;
|
|
|
|
reset(res: Array<T | any[]>): void;
|
|
|
|
setDirty(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
some(fn: (value: T, index: number, array: T[]) => boolean): boolean;
|
|
|
|
toArray(): T[];
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class QueryMetadata extends DependencyMetadata {
|
|
|
|
descendants: boolean;
|
|
|
|
first: boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
isVarBindingQuery: boolean;
|
|
|
|
isViewQuery: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
read: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
selector: any;
|
|
|
|
varBindings: string[];
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(_selector: Type | string, {descendants, first, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
first?: boolean;
|
|
|
|
read?: any;
|
|
|
|
});
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface QueryMetadataFactory {
|
|
|
|
(selector: Type | string, {descendants, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
read?: any;
|
|
|
|
}): ParameterDecorator;
|
|
|
|
new (selector: Type | string, {descendants, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
read?: any;
|
|
|
|
}): QueryMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ReflectiveInjector implements Injector {
|
2016-06-23 21:19:32 -04:00
|
|
|
parent: Injector;
|
|
|
|
createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
|
|
|
|
abstract get(token: any, notFoundValue?: any): any;
|
|
|
|
instantiateResolved(provider: ResolvedReflectiveProvider): any;
|
|
|
|
resolveAndCreateChild(providers: Array<Type | Provider | {
|
|
|
|
[k: string]: any;
|
|
|
|
} | any[]>): ReflectiveInjector;
|
|
|
|
resolveAndInstantiate(provider: Type | Provider): any;
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */ static fromResolvedBindings(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
|
|
|
|
/** @experimental */ static fromResolvedProviders(providers: ResolvedReflectiveProvider[], parent?: Injector): ReflectiveInjector;
|
2016-06-22 17:56:10 -04:00
|
|
|
static resolve(providers: Array<Type | Provider | {
|
|
|
|
[k: string]: any;
|
|
|
|
} | any[]>): ResolvedReflectiveProvider[];
|
|
|
|
static resolveAndCreate(providers: Array<Type | Provider | {
|
|
|
|
[k: string]: any;
|
|
|
|
} | any[]>, parent?: Injector): ReflectiveInjector;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ReflectiveKey {
|
2016-06-23 21:19:32 -04:00
|
|
|
displayName: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
id: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
token: Object;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(token: Object, id: number);
|
|
|
|
static numberOfKeys: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
static get(token: Object): ReflectiveKey;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class RenderComponentType {
|
2016-06-23 21:19:32 -04:00
|
|
|
encapsulation: ViewEncapsulation;
|
2016-06-22 17:56:10 -04:00
|
|
|
id: string;
|
|
|
|
slotCount: number;
|
|
|
|
styles: Array<string | any[]>;
|
2016-06-23 21:19:32 -04:00
|
|
|
templateUrl: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(id: string, templateUrl: string, slotCount: number, encapsulation: ViewEncapsulation, styles: Array<string | any[]>);
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class Renderer {
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string): AnimationPlayer;
|
|
|
|
abstract attachViewAfter(node: any, viewRootNodes: any[]): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo): any;
|
|
|
|
abstract createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo): any;
|
|
|
|
abstract createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo): any;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract createViewRoot(hostElement: any): any;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract destroyView(hostElement: any, viewAllNodes: any[]): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract detachView(viewRootNodes: any[]): void;
|
|
|
|
abstract invokeElementMethod(renderElement: any, methodName: string, args?: any[]): any;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract listen(renderElement: any, name: string, callback: Function): Function;
|
|
|
|
abstract listenGlobal(target: string, name: string, callback: Function): Function;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract projectNodes(parentElement: any, nodes: any[]): void;
|
|
|
|
abstract selectRootElement(selectorOrNode: string | any, debugInfo?: RenderDebugInfo): any;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract setElementClass(renderElement: any, className: string, isAdd: boolean): any;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract setElementStyle(renderElement: any, styleName: string, styleValue: string): any;
|
|
|
|
abstract setText(renderNode: any, text: string): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ResolvedReflectiveBinding extends ResolvedReflectiveProvider {
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ResolvedReflectiveFactory {
|
|
|
|
dependencies: ReflectiveDependency[];
|
2016-06-23 21:19:32 -04:00
|
|
|
factory: Function;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(
|
|
|
|
factory: Function,
|
|
|
|
dependencies: ReflectiveDependency[]);
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ResolvedReflectiveProvider {
|
|
|
|
key: ReflectiveKey;
|
|
|
|
multiProvider: boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
resolvedFactories: ResolvedReflectiveFactory[];
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function resolveForwardRef(type: any): any;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class RootRenderer {
|
|
|
|
abstract renderComponent(componentType: RenderComponentType): Renderer;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Self: SelfMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SelfMetadata {
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface SelfMetadataFactory {
|
|
|
|
(): any;
|
|
|
|
new (): SelfMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function sequence(steps: AnimationMetadata[]): AnimationSequenceMetadata;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function setTestabilityGetter(getter: GetTestability): void;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SimpleChange {
|
|
|
|
currentValue: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
previousValue: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(previousValue: any, currentValue: any);
|
|
|
|
isFirstChange(): boolean;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface SimpleChanges {
|
|
|
|
[propName: string]: SimpleChange;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var SkipSelf: SkipSelfMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SkipSelfMetadata {
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface SkipSelfMetadataFactory {
|
|
|
|
(): any;
|
|
|
|
new (): SkipSelfMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function state(stateNameExpr: string, styles: AnimationStyleMetadata): AnimationStateDeclarationMetadata;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function style(tokens: string | {
|
|
|
|
[key: string]: string | number;
|
|
|
|
} | Array<string | {
|
|
|
|
[key: string]: string | number;
|
|
|
|
}>): AnimationStyleMetadata;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SystemJsCmpFactoryResolver implements ComponentResolver {
|
|
|
|
clearCache(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SystemJsComponentResolver implements ComponentResolver {
|
|
|
|
constructor(_resolver: ComponentResolver);
|
|
|
|
clearCache(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
resolveComponent(componentType: string | Type): Promise<ComponentFactory<any>>;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class TemplateRef<C> {
|
|
|
|
elementRef: ElementRef;
|
|
|
|
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class Testability {
|
|
|
|
constructor(_ngZone: NgZone);
|
|
|
|
decreasePendingRequestCount(): number;
|
|
|
|
findBindings(using: any, provider: string, exactMatch: boolean): any[];
|
|
|
|
findProviders(using: any, provider: string, exactMatch: boolean): any[];
|
2016-06-23 21:19:32 -04:00
|
|
|
getPendingRequestCount(): number;
|
|
|
|
increasePendingRequestCount(): number;
|
|
|
|
isStable(): boolean;
|
|
|
|
whenStable(callback: Function): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class TestabilityRegistry {
|
|
|
|
constructor();
|
|
|
|
findTestabilityInTree(elem: Node, findInAncestors?: boolean): Testability;
|
2016-06-23 21:19:32 -04:00
|
|
|
getAllRootElements(): any[];
|
|
|
|
getAllTestabilities(): Testability[];
|
|
|
|
getTestability(elem: any): Testability;
|
|
|
|
registerApplication(token: any, testability: Testability): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface TrackByFn {
|
|
|
|
(index: number, item: any): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]): AnimationStateTransitionMetadata;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare function trigger(name: string, animation: AnimationMetadata[]): AnimationEntryMetadata;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var Type: FunctionConstructor;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface TypeDecorator {
|
|
|
|
annotations: any[];
|
2016-06-23 21:19:32 -04:00
|
|
|
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
|
|
|
|
<T extends Type>(type: T): T;
|
2016-06-22 17:56:10 -04:00
|
|
|
Class(obj: ClassDefinition): ConcreteType;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var ViewChild: ViewChildMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ViewChildMetadata extends ViewQueryMetadata {
|
|
|
|
constructor(_selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ViewChildMetadataFactory {
|
|
|
|
(selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
}): any;
|
|
|
|
new (selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
}): ViewChildMetadataFactory;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var ViewChildren: ViewChildrenMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ViewChildrenMetadata extends ViewQueryMetadata {
|
|
|
|
constructor(_selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ViewChildrenMetadataFactory {
|
|
|
|
(selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
}): any;
|
|
|
|
new (selector: Type | string, {read}?: {
|
|
|
|
read?: any;
|
|
|
|
}): ViewChildrenMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ViewContainerRef {
|
|
|
|
element: ElementRef;
|
|
|
|
injector: Injector;
|
2016-06-23 21:19:32 -04:00
|
|
|
length: number;
|
2016-06-22 17:56:10 -04:00
|
|
|
parentInjector: Injector;
|
|
|
|
abstract clear(): void;
|
|
|
|
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][]): ComponentRef<C>;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;
|
|
|
|
abstract detach(index?: number): ViewRef;
|
|
|
|
abstract get(index: number): ViewRef;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract indexOf(viewRef: ViewRef): number;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract insert(viewRef: ViewRef, index?: number): ViewRef;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract remove(index?: number): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ViewDecorator extends TypeDecorator {
|
|
|
|
View(obj: {
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
renderer?: string;
|
|
|
|
styles?: string[];
|
|
|
|
styleUrls?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
interpolation?: [string, string];
|
|
|
|
}): ViewDecorator;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare enum ViewEncapsulation {
|
|
|
|
Emulated = 0,
|
|
|
|
Native = 1,
|
|
|
|
None = 2,
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ViewMetadata {
|
2016-06-23 21:19:32 -04:00
|
|
|
animations: AnimationEntryMetadata[];
|
2016-06-22 17:56:10 -04:00
|
|
|
directives: Array<Type | any[]>;
|
|
|
|
encapsulation: ViewEncapsulation;
|
|
|
|
interpolation: [string, string];
|
2016-06-23 21:19:32 -04:00
|
|
|
pipes: Array<Type | any[]>;
|
|
|
|
styleUrls: string[];
|
|
|
|
styles: string[];
|
|
|
|
template: string;
|
|
|
|
templateUrl: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls, animations, interpolation}?: {
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
encapsulation?: ViewEncapsulation;
|
|
|
|
styles?: string[];
|
|
|
|
styleUrls?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
interpolation?: [string, string];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ViewMetadataFactory {
|
|
|
|
(obj: {
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
encapsulation?: ViewEncapsulation;
|
|
|
|
styles?: string[];
|
|
|
|
styleUrls?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
interpolation?: [string, string];
|
|
|
|
}): ViewDecorator;
|
|
|
|
new (obj: {
|
|
|
|
templateUrl?: string;
|
|
|
|
template?: string;
|
|
|
|
directives?: Array<Type | any[]>;
|
|
|
|
pipes?: Array<Type | any[]>;
|
|
|
|
encapsulation?: ViewEncapsulation;
|
|
|
|
styles?: string[];
|
|
|
|
styleUrls?: string[];
|
|
|
|
animations?: AnimationEntryMetadata[];
|
|
|
|
interpolation?: [string, string];
|
|
|
|
}): ViewMetadata;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var ViewQuery: QueryMetadataFactory;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @deprecated */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ViewQueryMetadata extends QueryMetadata {
|
2016-06-23 21:19:32 -04:00
|
|
|
isViewQuery: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(_selector: Type | string, {descendants, first, read}?: {
|
|
|
|
descendants?: boolean;
|
|
|
|
first?: boolean;
|
|
|
|
read?: any;
|
|
|
|
});
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class ViewRef {
|
|
|
|
destroyed: boolean;
|
|
|
|
abstract onDestroy(callback: Function): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class WrappedException extends BaseWrappedException {
|
|
|
|
context: any;
|
|
|
|
message: string;
|
2016-06-23 21:19:32 -04:00
|
|
|
originalException: any;
|
|
|
|
originalStack: any;
|
|
|
|
wrapperMessage: string;
|
|
|
|
wrapperStack: any;
|
|
|
|
constructor(_wrapperMessage: string, _originalException: any, _originalStack?: any, _context?: any);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class WrappedValue {
|
|
|
|
wrapped: any;
|
|
|
|
constructor(wrapped: any);
|
|
|
|
static wrap(value: any): WrappedValue;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var wtfEndTimeRange: (range: any) => void;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface WtfScopeFn {
|
|
|
|
(arg0?: any, arg1?: any): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
|