Update MdPanel in angular-material.d.ts file

Adds interceptor logic and updates offsetX and offsetY to accept new param types.
This commit is contained in:
Erin Coughlan
2016-09-23 10:59:37 -07:00
committed by GitHub
parent 8eedd1b9f7
commit aab9092524

View File

@@ -355,6 +355,9 @@ declare namespace angular.material {
removeClass(oldClass: string): void;
toggleClass(toggleClass: string): void;
updatePosition(position: IPanelPosition): void;
registerInterceptor(type: string, callback: () => angular.IPromise<any>): IPanelRef;
removeInterceptor(type: string, callback: () => angular.IPromise<any>): IPanelRef;
removeAllInterceptors(type?: string): IPanelRef;
}
interface IPanelPosition {
@@ -370,8 +373,8 @@ declare namespace angular.material {
centerVertically(): IPanelPosition;
center(): IPanelPosition;
addPanelPosition(xPosition: string, yPosition: string): IPanelPosition;
withOffsetX(offsetX: string): IPanelPosition;
withOffsetY(offsetY: string): IPanelPosition;
withOffsetX(offsetX: string|((panel: IPanelPosition) => string)): IPanelPosition;
withOffsetY(offsetY: string|((panel: IPanelPosition) => string)): IPanelPosition;
}
interface IPanelAnimation {
@@ -404,5 +407,8 @@ declare namespace angular.material {
SCALE: string,
FADE: string,
};
interceptorTypes: {
CLOSE: string,
};
}
}