@angular/router 7.2.0-rc.0 → 7.2.3

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.
Files changed (128) hide show
  1. package/bundles/router-testing.umd.js +4 -4
  2. package/bundles/router-testing.umd.js.map +1 -1
  3. package/bundles/router-testing.umd.min.js +2 -2
  4. package/bundles/router-testing.umd.min.js.map +1 -1
  5. package/bundles/router-upgrade.umd.js +4 -4
  6. package/bundles/router-upgrade.umd.js.map +1 -1
  7. package/bundles/router-upgrade.umd.min.js +2 -2
  8. package/bundles/router-upgrade.umd.min.js.map +1 -1
  9. package/bundles/router.umd.js +23 -13
  10. package/bundles/router.umd.js.map +1 -1
  11. package/bundles/router.umd.min.js +20 -20
  12. package/bundles/router.umd.min.js.map +1 -1
  13. package/esm2015/index.js +1 -1
  14. package/esm2015/public_api.js +1 -1
  15. package/esm2015/router.js +1 -1
  16. package/esm2015/src/apply_redirects.js +1 -1
  17. package/esm2015/src/components/empty_outlet.js +1 -1
  18. package/esm2015/src/config.js +1 -1
  19. package/esm2015/src/create_router_state.js +1 -1
  20. package/esm2015/src/create_url_tree.js +1 -1
  21. package/esm2015/src/directives/router_link.js +2 -2
  22. package/esm2015/src/directives/router_link_active.js +1 -1
  23. package/esm2015/src/directives/router_outlet.js +1 -1
  24. package/esm2015/src/events.js +1 -1
  25. package/esm2015/src/index.js +1 -1
  26. package/esm2015/src/interfaces.js +2 -2
  27. package/esm2015/src/operators/activate_routes.js +1 -1
  28. package/esm2015/src/operators/apply_redirects.js +1 -1
  29. package/esm2015/src/operators/check_guards.js +1 -1
  30. package/esm2015/src/operators/prioritized_guard_value.js +1 -1
  31. package/esm2015/src/operators/recognize.js +1 -1
  32. package/esm2015/src/operators/resolve_data.js +1 -1
  33. package/esm2015/src/operators/switch_tap.js +1 -1
  34. package/esm2015/src/private_export.js +1 -1
  35. package/esm2015/src/recognize.js +1 -1
  36. package/esm2015/src/route_reuse_strategy.js +1 -1
  37. package/esm2015/src/router.js +21 -6
  38. package/esm2015/src/router_config_loader.js +1 -1
  39. package/esm2015/src/router_module.js +1 -1
  40. package/esm2015/src/router_outlet_context.js +1 -1
  41. package/esm2015/src/router_preloader.js +1 -1
  42. package/esm2015/src/router_scroller.js +1 -1
  43. package/esm2015/src/router_state.js +1 -1
  44. package/esm2015/src/shared.js +1 -1
  45. package/esm2015/src/url_handling_strategy.js +1 -1
  46. package/esm2015/src/url_tree.js +1 -1
  47. package/esm2015/src/utils/collection.js +1 -1
  48. package/esm2015/src/utils/preactivation.js +1 -1
  49. package/esm2015/src/utils/tree.js +1 -1
  50. package/esm2015/src/utils/type_guards.js +1 -1
  51. package/esm2015/src/version.js +2 -2
  52. package/esm2015/testing/index.js +1 -1
  53. package/esm2015/testing/public_api.js +1 -1
  54. package/esm2015/testing/src/router_testing_module.js +1 -1
  55. package/esm2015/testing/src/testing.js +1 -1
  56. package/esm2015/testing/testing.js +1 -1
  57. package/esm2015/upgrade/index.js +1 -1
  58. package/esm2015/upgrade/public_api.js +1 -1
  59. package/esm2015/upgrade/src/upgrade.js +1 -1
  60. package/esm2015/upgrade/upgrade.js +1 -1
  61. package/esm5/index.js +1 -1
  62. package/esm5/public_api.js +1 -1
  63. package/esm5/router.js +1 -1
  64. package/esm5/src/apply_redirects.js +1 -1
  65. package/esm5/src/components/empty_outlet.js +1 -1
  66. package/esm5/src/config.js +1 -1
  67. package/esm5/src/create_router_state.js +1 -1
  68. package/esm5/src/create_url_tree.js +1 -1
  69. package/esm5/src/directives/router_link.js +2 -2
  70. package/esm5/src/directives/router_link_active.js +1 -1
  71. package/esm5/src/directives/router_outlet.js +1 -1
  72. package/esm5/src/events.js +1 -1
  73. package/esm5/src/index.js +1 -1
  74. package/esm5/src/interfaces.js +1 -1
  75. package/esm5/src/operators/activate_routes.js +1 -1
  76. package/esm5/src/operators/apply_redirects.js +1 -1
  77. package/esm5/src/operators/check_guards.js +1 -1
  78. package/esm5/src/operators/prioritized_guard_value.js +1 -1
  79. package/esm5/src/operators/recognize.js +1 -1
  80. package/esm5/src/operators/resolve_data.js +1 -1
  81. package/esm5/src/operators/switch_tap.js +1 -1
  82. package/esm5/src/private_export.js +1 -1
  83. package/esm5/src/recognize.js +1 -1
  84. package/esm5/src/route_reuse_strategy.js +1 -1
  85. package/esm5/src/router.js +16 -6
  86. package/esm5/src/router_config_loader.js +1 -1
  87. package/esm5/src/router_module.js +1 -1
  88. package/esm5/src/router_outlet_context.js +1 -1
  89. package/esm5/src/router_preloader.js +1 -1
  90. package/esm5/src/router_scroller.js +1 -1
  91. package/esm5/src/router_state.js +1 -1
  92. package/esm5/src/shared.js +1 -1
  93. package/esm5/src/url_handling_strategy.js +1 -1
  94. package/esm5/src/url_tree.js +1 -1
  95. package/esm5/src/utils/collection.js +1 -1
  96. package/esm5/src/utils/preactivation.js +1 -1
  97. package/esm5/src/utils/tree.js +1 -1
  98. package/esm5/src/utils/type_guards.js +1 -1
  99. package/esm5/src/version.js +2 -2
  100. package/esm5/testing/index.js +1 -1
  101. package/esm5/testing/public_api.js +1 -1
  102. package/esm5/testing/src/router_testing_module.js +1 -1
  103. package/esm5/testing/src/testing.js +1 -1
  104. package/esm5/testing/testing.js +1 -1
  105. package/esm5/upgrade/index.js +1 -1
  106. package/esm5/upgrade/public_api.js +1 -1
  107. package/esm5/upgrade/src/upgrade.js +1 -1
  108. package/esm5/upgrade/upgrade.js +1 -1
  109. package/fesm2015/router.js +22 -12
  110. package/fesm2015/router.js.map +1 -1
  111. package/fesm2015/testing.js +4 -4
  112. package/fesm2015/testing.js.map +1 -1
  113. package/fesm2015/upgrade.js +1 -1
  114. package/fesm2015/upgrade.js.map +1 -1
  115. package/fesm5/router.js +22 -12
  116. package/fesm5/router.js.map +1 -1
  117. package/fesm5/testing.js +4 -4
  118. package/fesm5/testing.js.map +1 -1
  119. package/fesm5/upgrade.js +1 -1
  120. package/fesm5/upgrade.js.map +1 -1
  121. package/package.json +4 -4
  122. package/router.metadata.json +1 -1
  123. package/src/config.d.ts +2 -1
  124. package/src/directives/router_link.d.ts +1 -1
  125. package/src/interfaces.d.ts +1 -1
  126. package/src/router.d.ts +1 -0
  127. package/testing.d.ts +2 -3
  128. package/upgrade.d.ts +2 -3
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Angular v7.2.0-rc.0
2
+ * @license Angular v7.2.3
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { Component, ɵisObservable, ɵisPromise, NgModuleRef, InjectionToken, NgModuleFactory, NgZone, isDevMode, ɵConsole, Attribute, Directive, ElementRef, HostBinding, HostListener, Input, Renderer2, ChangeDetectorRef, ContentChildren, ComponentFactoryResolver, EventEmitter, Output, ViewContainerRef, Compiler, Injectable, Injector, NgModuleFactoryLoader, ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, Inject, NgModule, NgProbeToken, Optional, SkipSelf, SystemJsNgModuleLoader, Version } from '@angular/core';
8
- import { from, of, BehaviorSubject, EmptyError, Observable, combineLatest, defer, EMPTY, Subject } from 'rxjs';
9
- import { concatAll, last, map, catchError, every, first, mergeMap, switchMap, filter, scan, startWith, take, concatMap, reduce, finalize, tap, mergeAll } from 'rxjs/operators';
10
- import { LocationStrategy, APP_BASE_HREF, HashLocationStrategy, LOCATION_INITIALIZED, Location, PathLocationStrategy, PlatformLocation, ViewportScroller } from '@angular/common';
7
+ import { LocationStrategy, Location, PlatformLocation, APP_BASE_HREF, ViewportScroller, HashLocationStrategy, PathLocationStrategy, LOCATION_INITIALIZED } from '@angular/common';
8
+ import { Component, ɵisObservable, ɵisPromise, NgModuleRef, InjectionToken, NgModuleFactory, ɵConsole, NgZone, isDevMode, Directive, Attribute, Renderer2, ElementRef, Input, HostListener, HostBinding, ChangeDetectorRef, ContentChildren, EventEmitter, ViewContainerRef, ComponentFactoryResolver, Output, Injectable, NgModuleFactoryLoader, Compiler, Injector, ApplicationRef, Optional, SystemJsNgModuleLoader, NgProbeToken, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, Inject, APP_INITIALIZER, APP_BOOTSTRAP_LISTENER, NgModule, Version } from '@angular/core';
9
+ import { of, from, BehaviorSubject, EmptyError, Observable, combineLatest, defer, Subject, EMPTY } from 'rxjs';
10
+ import { map, concatAll, last, catchError, first, mergeMap, every, switchMap, take, startWith, scan, filter, concatMap, reduce, tap, finalize, mergeAll } from 'rxjs/operators';
11
11
  import { ɵgetDOM } from '@angular/platform-browser';
12
12
 
13
13
  /**
@@ -5028,6 +5028,7 @@ class Router {
5028
5028
  this.resetConfig(config);
5029
5029
  this.currentUrlTree = createEmptyUrlTree();
5030
5030
  this.rawUrlTree = this.currentUrlTree;
5031
+ this.browserUrlTree = this.currentUrlTree;
5031
5032
  this.configLoader = new RouterConfigLoader(loader, compiler, onLoadStart, onLoadEnd);
5032
5033
  this.routerState = createEmptyState(this.currentUrlTree, this.rootComponentType);
5033
5034
  this.transitions = new BehaviorSubject({
@@ -5084,7 +5085,7 @@ class Router {
5084
5085
  let errored = false;
5085
5086
  return of(t).pipe(switchMap(t => {
5086
5087
  /** @type {?} */
5087
- const urlTransition = !this.navigated || t.extractedUrl.toString() !== this.currentUrlTree.toString();
5088
+ const urlTransition = !this.navigated || t.extractedUrl.toString() !== this.browserUrlTree.toString();
5088
5089
  /** @type {?} */
5089
5090
  const processCurrentUrl = (this.onSameUrlNavigation === 'reload' ? true : urlTransition) &&
5090
5091
  this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);
@@ -5112,8 +5113,14 @@ class Router {
5112
5113
  // Recognize
5113
5114
  recognize$1(this.rootComponentType, this.config, (url) => this.serializeUrl(url), this.paramsInheritanceStrategy, this.relativeLinkResolution),
5114
5115
  // Update URL if in `eager` update mode
5115
- tap(t => this.urlUpdateStrategy === 'eager' && !t.extras.skipLocationChange &&
5116
- this.setBrowserUrl(t.urlAfterRedirects, !!t.extras.replaceUrl, t.id)),
5116
+ tap(t => {
5117
+ if (this.urlUpdateStrategy === 'eager') {
5118
+ if (!t.extras.skipLocationChange) {
5119
+ this.setBrowserUrl(t.urlAfterRedirects, !!t.extras.replaceUrl, t.id);
5120
+ }
5121
+ this.browserUrlTree = t.urlAfterRedirects;
5122
+ }
5123
+ }),
5117
5124
  // Fire RoutesRecognized
5118
5125
  tap(t => {
5119
5126
  /** @type {?} */
@@ -5226,8 +5233,11 @@ class Router {
5226
5233
  this.currentUrlTree = t.urlAfterRedirects;
5227
5234
  this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, t.rawUrl);
5228
5235
  ((/** @type {?} */ (this))).routerState = (/** @type {?} */ (t.targetRouterState));
5229
- if (this.urlUpdateStrategy === 'deferred' && !t.extras.skipLocationChange) {
5230
- this.setBrowserUrl(this.rawUrlTree, !!t.extras.replaceUrl, t.id, t.extras.state);
5236
+ if (this.urlUpdateStrategy === 'deferred') {
5237
+ if (!t.extras.skipLocationChange) {
5238
+ this.setBrowserUrl(this.rawUrlTree, !!t.extras.replaceUrl, t.id, t.extras.state);
5239
+ }
5240
+ this.browserUrlTree = t.urlAfterRedirects;
5231
5241
  }
5232
5242
  }), activateRoutes(this.rootContexts, this.routeReuseStrategy, (evt) => this.triggerEvent(evt)), tap({ /**
5233
5243
  * @return {?}
@@ -5785,7 +5795,7 @@ function validateCommands(commands) {
5785
5795
  * </a>
5786
5796
  * ```
5787
5797
  *
5788
- * You can tell the directive to how to handle queryParams, available options are:
5798
+ * You can tell the directive how to handle queryParams. Available options are:
5789
5799
  * - `'merge'`: merge the queryParams into the current queryParams
5790
5800
  * - `'preserve'`: preserve the current queryParams
5791
5801
  * - default/`''`: use the queryParams only
@@ -7262,7 +7272,7 @@ function provideRouterInitializer() {
7262
7272
  * \@publicApi
7263
7273
  * @type {?}
7264
7274
  */
7265
- const VERSION = new Version('7.2.0-rc.0');
7275
+ const VERSION = new Version('7.2.3');
7266
7276
 
7267
7277
  /**
7268
7278
  * @fileoverview added by tsickle