125 lines
3.5 KiB
TypeScript
125 lines
3.5 KiB
TypeScript
/** @experimental */
|
|
export declare abstract class AnimationDriver {
|
|
abstract animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
|
|
static NOOP: AnimationDriver;
|
|
}
|
|
|
|
/** @stable */
|
|
export declare class BrowserModule {
|
|
constructor(parentModule: BrowserModule);
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare class By {
|
|
static all(): Predicate<DebugElement>;
|
|
static css(selector: string): Predicate<DebugElement>;
|
|
static directive(type: Type<any>): Predicate<DebugElement>;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare function disableDebugTools(): void;
|
|
|
|
/** @stable */
|
|
export declare const DOCUMENT: InjectionToken<Document>;
|
|
|
|
/** @stable */
|
|
export declare abstract class DomSanitizer implements Sanitizer {
|
|
abstract bypassSecurityTrustHtml(value: string): SafeHtml;
|
|
abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
|
|
abstract bypassSecurityTrustScript(value: string): SafeScript;
|
|
abstract bypassSecurityTrustStyle(value: string): SafeStyle;
|
|
abstract bypassSecurityTrustUrl(value: string): SafeUrl;
|
|
abstract sanitize(context: SecurityContext, value: any): string;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
|
|
|
|
/** @stable */
|
|
export declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
|
|
|
|
/** @stable */
|
|
export declare class EventManager {
|
|
constructor(plugins: EventManagerPlugin[], _zone: NgZone);
|
|
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
|
addGlobalEventListener(target: string, eventName: string, handler: Function): Function;
|
|
getZone(): NgZone;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare const HAMMER_GESTURE_CONFIG: InjectionToken<HammerGestureConfig>;
|
|
|
|
/** @experimental */
|
|
export declare class HammerGestureConfig {
|
|
events: string[];
|
|
overrides: {
|
|
[key: string]: Object;
|
|
};
|
|
buildHammer(element: HTMLElement): HammerInstance;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare class Meta {
|
|
constructor(_dom: DomAdapter);
|
|
addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement;
|
|
addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
|
|
getTag(attrSelector: string): HTMLMetaElement;
|
|
getTags(attrSelector: string): HTMLMetaElement[];
|
|
removeTag(attrSelector: string): void;
|
|
removeTagElement(meta: HTMLMetaElement): void;
|
|
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement;
|
|
}
|
|
|
|
/** @experimental */
|
|
export interface MetaDefinition {
|
|
charset?: string;
|
|
content?: string;
|
|
httpEquiv?: string;
|
|
id?: string;
|
|
itemprop?: string;
|
|
name?: string;
|
|
property?: string;
|
|
scheme?: string;
|
|
url?: string;
|
|
[prop: string]: string;
|
|
}
|
|
|
|
/** @deprecated */
|
|
export declare class NgProbeToken {
|
|
name: string;
|
|
token: any;
|
|
constructor(name: string, token: any);
|
|
}
|
|
|
|
/** @stable */
|
|
export declare const platformBrowser: (extraProviders?: Provider[]) => PlatformRef;
|
|
|
|
/** @stable */
|
|
export interface SafeHtml extends SafeValue {
|
|
}
|
|
|
|
/** @stable */
|
|
export interface SafeResourceUrl extends SafeValue {
|
|
}
|
|
|
|
/** @stable */
|
|
export interface SafeScript extends SafeValue {
|
|
}
|
|
|
|
/** @stable */
|
|
export interface SafeStyle extends SafeValue {
|
|
}
|
|
|
|
/** @stable */
|
|
export interface SafeUrl extends SafeValue {
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare class Title {
|
|
getTitle(): string;
|
|
setTitle(newTitle: string): void;
|
|
}
|
|
|
|
/** @stable */
|
|
export declare const VERSION: Version;
|