chore(router): update the npm dist

This commit is contained in:
vsavkin 2016-06-03 14:29:15 -07:00
parent 6ce7a5a1ea
commit 9b094e42a3
8 changed files with 234 additions and 61 deletions

View File

@ -1,4 +1,4 @@
export { Router } from './router'; export { Router, Event, NavigationStart, NavigationEnd, NavigationCancel, NavigationError } from './router';
export { UrlSerializer, DefaultUrlSerializer } from './url_serializer'; export { UrlSerializer, DefaultUrlSerializer } from './url_serializer';
export { RouterState, ActivatedRoute, RouterStateSnapshot, ActivatedRouteSnapshot } from './router_state'; export { RouterState, ActivatedRoute, RouterStateSnapshot, ActivatedRouteSnapshot } from './router_state';
export { UrlTree, UrlSegment } from './url_tree'; export { UrlTree, UrlSegment } from './url_tree';

View File

@ -1,4 +1,4 @@
export { Router } from './router'; export { Router, NavigationStart, NavigationEnd, NavigationCancel, NavigationError } from './router';
export { UrlSerializer, DefaultUrlSerializer } from './url_serializer'; export { UrlSerializer, DefaultUrlSerializer } from './url_serializer';
export { RouterState, ActivatedRoute, RouterStateSnapshot, ActivatedRouteSnapshot } from './router_state'; export { RouterState, ActivatedRoute, RouterStateSnapshot, ActivatedRouteSnapshot } from './router_state';
export { UrlTree, UrlSegment } from './url_tree'; export { UrlTree, UrlSegment } from './url_tree';
@ -8,4 +8,4 @@ export { provideRouter } from './router_providers';
import { RouterOutlet } from './directives/router_outlet'; import { RouterOutlet } from './directives/router_outlet';
import { RouterLink } from './directives/router_link'; import { RouterLink } from './directives/router_link';
export const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink]; export const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsU0FBUyxNQUFNLFFBQVEsVUFBVSxDQUFDO0FBQ2xDLFNBQVMsYUFBY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W1wb3J0IHsgUm91dGVyTGluayB9IGZyb20gJy4vZGlyZWN0aXZlcy9yb3V0ZXJfbGluayc7XG5cbmV4cG9ydCBjb25zdCBST1VURVJfRElSRUNUSVZFUyA9IFtSb3V0ZXJPdXRsZXQsIFJvdXRlckxpbmtdOyJdfQ==

View File

@ -10,11 +10,35 @@ import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map'; import 'rxjs/add/operator/map';
import 'rxjs/add/operator/scan'; import 'rxjs/add/operator/scan';
import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/concat';
import 'rxjs/add/operator/concatMap';
export interface NavigationExtras { export interface NavigationExtras {
relativeTo?: ActivatedRoute; relativeTo?: ActivatedRoute;
queryParameters?: Params; queryParameters?: Params;
fragment?: string; fragment?: string;
} }
export declare class NavigationStart {
id: number;
url: UrlTree;
constructor(id: number, url: UrlTree);
}
export declare class NavigationEnd {
id: number;
url: UrlTree;
constructor(id: number, url: UrlTree);
}
export declare class NavigationCancel {
id: number;
url: UrlTree;
constructor(id: number, url: UrlTree);
}
export declare class NavigationError {
id: number;
url: UrlTree;
error: any;
constructor(id: number, url: UrlTree, error: any);
}
export declare type Event = NavigationStart | NavigationEnd | NavigationCancel | NavigationError;
export declare class Router { export declare class Router {
private rootComponentType; private rootComponentType;
private resolver; private resolver;
@ -26,16 +50,20 @@ export declare class Router {
private currentRouterState; private currentRouterState;
private config; private config;
private locationSubscription; private locationSubscription;
private routerEvents;
private navigationId;
constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector); constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector);
readonly routerState: RouterState; readonly routerState: RouterState;
readonly urlTree: UrlTree; readonly urlTree: UrlTree;
navigateByUrl(url: string): Observable<void>; readonly events: Observable<Event>;
navigateByUrl(url: string): Promise<boolean>;
resetConfig(config: RouterConfig): void; resetConfig(config: RouterConfig): void;
dispose(): void; dispose(): void;
createUrlTree(commands: any[], {relativeTo, queryParameters, fragment}?: NavigationExtras): UrlTree; createUrlTree(commands: any[], {relativeTo, queryParameters, fragment}?: NavigationExtras): UrlTree;
navigate(commands: any[], extras?: NavigationExtras): Observable<void>; navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
serializeUrl(url: UrlTree): string; serializeUrl(url: UrlTree): string;
parseUrl(url: string): UrlTree; parseUrl(url: string): UrlTree;
private scheduleNavigation(url, pop);
private setUpLocationChangeListener(); private setUpLocationChangeListener();
private runNavigate(url, pop?); private runNavigate(url, pop, id);
} }

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
export { Router } from './router'; export { Router, Event, NavigationStart, NavigationEnd, NavigationCancel, NavigationError } from './router';
export { UrlSerializer, DefaultUrlSerializer } from './url_serializer'; export { UrlSerializer, DefaultUrlSerializer } from './url_serializer';
export { RouterState, ActivatedRoute, RouterStateSnapshot, ActivatedRouteSnapshot } from './router_state'; export { RouterState, ActivatedRoute, RouterStateSnapshot, ActivatedRouteSnapshot } from './router_state';
export { UrlTree, UrlSegment } from './url_tree'; export { UrlTree, UrlSegment } from './url_tree';

View File

@ -1,6 +1,10 @@
"use strict"; "use strict";
var router_1 = require('./router'); var router_1 = require('./router');
exports.Router = router_1.Router; exports.Router = router_1.Router;
exports.NavigationStart = router_1.NavigationStart;
exports.NavigationEnd = router_1.NavigationEnd;
exports.NavigationCancel = router_1.NavigationCancel;
exports.NavigationError = router_1.NavigationError;
var url_serializer_1 = require('./url_serializer'); var url_serializer_1 = require('./url_serializer');
exports.UrlSerializer = url_serializer_1.UrlSerializer; exports.UrlSerializer = url_serializer_1.UrlSerializer;
exports.DefaultUrlSerializer = url_serializer_1.DefaultUrlSerializer; exports.DefaultUrlSerializer = url_serializer_1.DefaultUrlSerializer;
@ -21,4 +25,4 @@ exports.provideRouter = router_providers_1.provideRouter;
var router_outlet_1 = require('./directives/router_outlet'); var router_outlet_1 = require('./directives/router_outlet');
var router_link_1 = require('./directives/router_link'); var router_link_1 = require('./directives/router_link');
exports.ROUTER_DIRECTIVES = [router_outlet_1.RouterOutlet, router_link_1.RouterLink]; exports.ROUTER_DIRECTIVES = [router_outlet_1.RouterOutlet, router_link_1.RouterLink];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHVCQUF1QixVQUFVLENBQUM7QUFBekIsaUNBQXlCO0FBQ2xDLCtCQUFvRCxrQkFBa0IsQ0FBQztBQUE5RCx1REFBYTtBQUFFLHFFQUErQztBQUN2RSw2QkFBeUYsZ0JBQWdCLENBQUM7QUFBakcsaURBQVc7QUFBRSx1REFBYztBQUFFLGlFQUFtQjtBQUFFLHVFQUErQztBQUMxRyx5QkFBbUMsWUFBWSxDQUFDO0FBQXZDLHFDQUFPO0FBQUUsMkNBQThCO0FBQ2hELGtDQUFnQyxxQkFBcUIsQ0FBQztBQUE3Qyw4REFBNkM7QUFFdEQsdUJBQXVDLFVBQVUsQ0FBQztBQUFqQyxpREFBaUM7QUFDbEQsaUNBQThCLG9CQUFvQixDQUFDO0FBQTFDLHlEQUEwQztBQUduRCw4QkFBNkIsNEJBQTRCLENBQUMsQ0FBQTtBQUMxRCw0QkFBMkIsMEJBQTBCLENBQUMsQ0FBQTtBQUV6Qyx5QkFBaUIsR0FBRyxDQUFDLDRCQUFZLEVBQUUsd0JBQVUsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgUm91dGVyIH0gZnJvbSAnLi9yb3V0ZXInO1xuZXhwb3J0IHsgVXJsU2VyaWFsaXplciwgRGVmYXVsdFVybFNlcmlhbGl6ZXIgfSBmcm9tICcuL3VybF9zZXJpYWxpem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NYXAgfSBmcm9tICcuL3JvdXRlcl9vdXRsZXRfbWFwJztcbmV4cG9ydCB7IFJvdXRlckNvbmZpZywgUm91dGUgfSBmcm9tICcuL2NvbmZpZyc7XG5leHBvcnQgeyBQYXJhbXMsIFBSSU1BUllfT1VUTEVUIH0gZnJvbSAnLi9zaGFyZWQnO1xuZXhwb3J0IHsgcHJvdmlkZVJvdXRlciB9IGZyb20gJy4vcm91dGVyX3Byb3ZpZGVycyc7XG5leHBvcnQgeyBDYW5BY3RpdmF0ZSwgQ2FuRGVhY3RpdmF0ZSB9IGZyb20gJy4vaW50ZXJmYWNlcyc7XG5cbmltcG9ydCB7IFJvdXRlck91dGxldCB9IGZyb20gJy4vZGlyZWN0aXZlcy9yb3V0ZXJfb3V0bGV0JztcbmltcG9ydCB7IFJvdXRlckxpbmsgfSBmcm9tICcuL2RpcmVjdGl2ZXMvcm91dGVyX2xpbmsnO1xuXG5leHBvcnQgY29uc3QgUk9VVEVSX0RJUkVDVElWRVMgPSBbUm91dGVyT3V0bGV0LCBSb3V0ZXJMaW5rXTsiXX0=

View File

@ -10,11 +10,35 @@ import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map'; import 'rxjs/add/operator/map';
import 'rxjs/add/operator/scan'; import 'rxjs/add/operator/scan';
import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/mergeMap';
import 'rxjs/add/operator/concat';
import 'rxjs/add/operator/concatMap';
export interface NavigationExtras { export interface NavigationExtras {
relativeTo?: ActivatedRoute; relativeTo?: ActivatedRoute;
queryParameters?: Params; queryParameters?: Params;
fragment?: string; fragment?: string;
} }
export declare class NavigationStart {
id: number;
url: UrlTree;
constructor(id: number, url: UrlTree);
}
export declare class NavigationEnd {
id: number;
url: UrlTree;
constructor(id: number, url: UrlTree);
}
export declare class NavigationCancel {
id: number;
url: UrlTree;
constructor(id: number, url: UrlTree);
}
export declare class NavigationError {
id: number;
url: UrlTree;
error: any;
constructor(id: number, url: UrlTree, error: any);
}
export declare type Event = NavigationStart | NavigationEnd | NavigationCancel | NavigationError;
export declare class Router { export declare class Router {
private rootComponentType; private rootComponentType;
private resolver; private resolver;
@ -26,16 +50,20 @@ export declare class Router {
private currentRouterState; private currentRouterState;
private config; private config;
private locationSubscription; private locationSubscription;
private routerEvents;
private navigationId;
constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector); constructor(rootComponentType: Type, resolver: ComponentResolver, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector);
readonly routerState: RouterState; readonly routerState: RouterState;
readonly urlTree: UrlTree; readonly urlTree: UrlTree;
navigateByUrl(url: string): Observable<void>; readonly events: Observable<Event>;
navigateByUrl(url: string): Promise<boolean>;
resetConfig(config: RouterConfig): void; resetConfig(config: RouterConfig): void;
dispose(): void; dispose(): void;
createUrlTree(commands: any[], {relativeTo, queryParameters, fragment}?: NavigationExtras): UrlTree; createUrlTree(commands: any[], {relativeTo, queryParameters, fragment}?: NavigationExtras): UrlTree;
navigate(commands: any[], extras?: NavigationExtras): Observable<void>; navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
serializeUrl(url: UrlTree): string; serializeUrl(url: UrlTree): string;
parseUrl(url: string): UrlTree; parseUrl(url: string): UrlTree;
private scheduleNavigation(url, pop);
private setUpLocationChangeListener(); private setUpLocationChangeListener();
private runNavigate(url, pop?); private runNavigate(url, pop, id);
} }

File diff suppressed because one or more lines are too long