@angular/router 9.0.3 → 9.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/router-testing.umd.js +1 -1
- package/bundles/router-testing.umd.min.js +1 -1
- package/bundles/router-testing.umd.min.js.map +1 -1
- package/bundles/router-upgrade.umd.js +1 -1
- package/bundles/router-upgrade.umd.min.js +1 -1
- package/bundles/router-upgrade.umd.min.js.map +1 -1
- package/bundles/router.umd.js +3 -2
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +3 -3
- package/bundles/router.umd.min.js.map +1 -1
- package/esm2015/src/directives/router_link.js +2 -1
- package/esm2015/src/version.js +1 -1
- package/esm5/src/directives/router_link.js +2 -1
- package/esm5/src/version.js +1 -1
- package/fesm2015/router.js +3 -2
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/fesm5/router.js +3 -2
- package/fesm5/router.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/fesm5/upgrade.js +1 -1
- package/package.json +4 -4
- package/router.d.ts +1 -1
- package/router.metadata.json +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/upgrade/upgrade.d.ts +1 -1
- package/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.0.
|
|
2
|
+
* @license Angular v9.0.7
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -169,7 +169,7 @@ function Te(t){throw t}function Ee(t,e,r){return e.parse("/")}function je(t,e){r
|
|
|
169
169
|
*
|
|
170
170
|
* Use of this source code is governed by an MIT-style license that can be
|
|
171
171
|
* found in the LICENSE file at https://angular.io/license
|
|
172
|
-
*/(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Wt(t))return Y(this.currentUrlTree,t,e);var r=this.parseUrl(t);return Y(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e[r]=n),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new v(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))},t.prototype.scheduleNavigation=function(t,e,r,n,o){var i,a,u,s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);o?(i=o.resolve,a=o.reject,u=o.promise):u=new Promise((function(t,e){i=t,a=e}));var c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:i,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,r,n){var o=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",u(u({},n),{navigationId:r})):this.location.go(o,"",u(u({},n),{navigationId:r}))},t.prototype.resetStateAndUrl=function(t,e,r){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),Ie=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:Me(this.skipLocationChange),replaceUrl:Me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:":not(a):not(area)[routerLink]"}),c(2,r.Attribute("tabindex")),l("design:paramtypes",[ke,Rt,String,r.Renderer2,r.ElementRef])],t)}(),Le=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe((function(t){t instanceof v&&n.updateTargetUrlAndHref()}))}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r,n){if(0!==t||e||r||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Me(this.skipLocationChange),replaceUrl:Me(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.HostBinding("attr.target"),r.Input(),l("design:type",String)],t.prototype,"target",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.HostBinding(),l("design:type",String)],t.prototype,"href",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),l("design:type",Function),l("design:paramtypes",[Number,Boolean,Boolean,Boolean]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:"a[routerLink],area[routerLink]"}),l("design:paramtypes",[ke,Rt,e.LocationStrategy])],t)}();function Me(t){return""===t||!!t}
|
|
172
|
+
*/(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Wt(t))return Y(this.currentUrlTree,t,e);var r=this.parseUrl(t);return Y(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e[r]=n),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new v(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))},t.prototype.scheduleNavigation=function(t,e,r,n,o){var i,a,u,s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);o?(i=o.resolve,a=o.reject,u=o.promise):u=new Promise((function(t,e){i=t,a=e}));var c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:i,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,r,n){var o=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",u(u({},n),{navigationId:r})):this.location.go(o,"",u(u({},n),{navigationId:r}))},t.prototype.resetStateAndUrl=function(t,e,r){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),Ie=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:Me(this.skipLocationChange),replaceUrl:Me(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:":not(a):not(area)[routerLink]"}),c(2,r.Attribute("tabindex")),l("design:paramtypes",[ke,Rt,String,r.Renderer2,r.ElementRef])],t)}(),Le=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe((function(t){t instanceof v&&n.updateTargetUrlAndHref()}))}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r,n){if(0!==t||e||r||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Me(this.skipLocationChange),replaceUrl:Me(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Me(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Me(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.HostBinding("attr.target"),r.Input(),l("design:type",String)],t.prototype,"target",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.HostBinding(),l("design:type",String)],t.prototype,"href",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),l("design:type",Function),l("design:paramtypes",[Number,Boolean,Boolean,Boolean]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:"a[routerLink],area[routerLink]"}),l("design:paramtypes",[ke,Rt,e.LocationStrategy])],t)}();function Me(t){return""===t||!!t}
|
|
173
173
|
/**
|
|
174
174
|
* @license
|
|
175
175
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -190,7 +190,7 @@ function Te(t){throw t}function Ee(t,e,r){return e.parse("/")}function je(t,e){r
|
|
|
190
190
|
*
|
|
191
191
|
* Use of this source code is governed by an MIT-style license that can be
|
|
192
192
|
* found in the LICENSE file at https://angular.io/license
|
|
193
|
-
*/var lr=new r.Version("9.0.
|
|
193
|
+
*/var lr=new r.Version("9.0.7");
|
|
194
194
|
/**
|
|
195
195
|
* @license
|
|
196
196
|
* Copyright Google Inc. All Rights Reserved.
|