@angular/router 21.1.0-next.0 → 21.1.0-next.2

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.0
2
+ * @license Angular v21.1.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -308,7 +308,7 @@ function mapChildrenIntoArray(segment, fn) {
308
308
  class UrlSerializer {
309
309
  static ɵfac = i0.ɵɵngDeclareFactory({
310
310
  minVersion: "12.0.0",
311
- version: "21.1.0-next.0",
311
+ version: "21.1.0-next.2",
312
312
  ngImport: i0,
313
313
  type: UrlSerializer,
314
314
  deps: [],
@@ -316,7 +316,7 @@ class UrlSerializer {
316
316
  });
317
317
  static ɵprov = i0.ɵɵngDeclareInjectable({
318
318
  minVersion: "12.0.0",
319
- version: "21.1.0-next.0",
319
+ version: "21.1.0-next.2",
320
320
  ngImport: i0,
321
321
  type: UrlSerializer,
322
322
  providedIn: 'root',
@@ -325,7 +325,7 @@ class UrlSerializer {
325
325
  }
326
326
  i0.ɵɵngDeclareClassMetadata({
327
327
  minVersion: "12.0.0",
328
- version: "21.1.0-next.0",
328
+ version: "21.1.0-next.2",
329
329
  ngImport: i0,
330
330
  type: UrlSerializer,
331
331
  decorators: [{
@@ -999,6 +999,9 @@ class NavigationCancel extends RouterEvent {
999
999
  return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;
1000
1000
  }
1001
1001
  }
1002
+ function isRedirectingEvent(event) {
1003
+ return event instanceof NavigationCancel && (event.code === NavigationCancellationCode.Redirect || event.code === NavigationCancellationCode.SupersededByNewNavigation);
1004
+ }
1002
1005
  class NavigationSkipped extends RouterEvent {
1003
1006
  reason;
1004
1007
  code;
@@ -1275,7 +1278,7 @@ class ChildrenOutletContexts {
1275
1278
  }
1276
1279
  static ɵfac = i0.ɵɵngDeclareFactory({
1277
1280
  minVersion: "12.0.0",
1278
- version: "21.1.0-next.0",
1281
+ version: "21.1.0-next.2",
1279
1282
  ngImport: i0,
1280
1283
  type: ChildrenOutletContexts,
1281
1284
  deps: [{
@@ -1285,7 +1288,7 @@ class ChildrenOutletContexts {
1285
1288
  });
1286
1289
  static ɵprov = i0.ɵɵngDeclareInjectable({
1287
1290
  minVersion: "12.0.0",
1288
- version: "21.1.0-next.0",
1291
+ version: "21.1.0-next.2",
1289
1292
  ngImport: i0,
1290
1293
  type: ChildrenOutletContexts,
1291
1294
  providedIn: 'root'
@@ -1293,7 +1296,7 @@ class ChildrenOutletContexts {
1293
1296
  }
1294
1297
  i0.ɵɵngDeclareClassMetadata({
1295
1298
  minVersion: "12.0.0",
1296
- version: "21.1.0-next.0",
1299
+ version: "21.1.0-next.2",
1297
1300
  ngImport: i0,
1298
1301
  type: ChildrenOutletContexts,
1299
1302
  decorators: [{
@@ -1623,7 +1626,7 @@ function hasStaticTitle(config) {
1623
1626
  return typeof config.title === 'string' || config.title === null;
1624
1627
  }
1625
1628
 
1626
- const ROUTER_OUTLET_DATA = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'RouterOutlet data' : '');
1629
+ const ROUTER_OUTLET_DATA = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'RouterOutlet data' : '');
1627
1630
  class RouterOutlet {
1628
1631
  activated = null;
1629
1632
  get activatedComponentRef() {
@@ -1635,11 +1638,9 @@ class RouterOutlet {
1635
1638
  deactivateEvents = new EventEmitter();
1636
1639
  attachEvents = new EventEmitter();
1637
1640
  detachEvents = new EventEmitter();
1638
- routerOutletData = input(undefined, {
1639
- ...(ngDevMode ? {
1640
- debugName: "routerOutletData"
1641
- } : {})
1642
- });
1641
+ routerOutletData = input(...(ngDevMode ? [undefined, {
1642
+ debugName: "routerOutletData"
1643
+ }] : []));
1643
1644
  parentContexts = inject(ChildrenOutletContexts);
1644
1645
  location = inject(ViewContainerRef);
1645
1646
  changeDetector = inject(ChangeDetectorRef);
@@ -1752,7 +1753,7 @@ class RouterOutlet {
1752
1753
  }
1753
1754
  static ɵfac = i0.ɵɵngDeclareFactory({
1754
1755
  minVersion: "12.0.0",
1755
- version: "21.1.0-next.0",
1756
+ version: "21.1.0-next.2",
1756
1757
  ngImport: i0,
1757
1758
  type: RouterOutlet,
1758
1759
  deps: [],
@@ -1760,7 +1761,7 @@ class RouterOutlet {
1760
1761
  });
1761
1762
  static ɵdir = i0.ɵɵngDeclareDirective({
1762
1763
  minVersion: "17.1.0",
1763
- version: "21.1.0-next.0",
1764
+ version: "21.1.0-next.2",
1764
1765
  type: RouterOutlet,
1765
1766
  isStandalone: true,
1766
1767
  selector: "router-outlet",
@@ -1793,7 +1794,7 @@ class RouterOutlet {
1793
1794
  }
1794
1795
  i0.ɵɵngDeclareClassMetadata({
1795
1796
  minVersion: "12.0.0",
1796
- version: "21.1.0-next.0",
1797
+ version: "21.1.0-next.2",
1797
1798
  ngImport: i0,
1798
1799
  type: RouterOutlet,
1799
1800
  decorators: [{
@@ -1902,7 +1903,7 @@ class RoutedComponentInputBinder {
1902
1903
  }
1903
1904
  static ɵfac = i0.ɵɵngDeclareFactory({
1904
1905
  minVersion: "12.0.0",
1905
- version: "21.1.0-next.0",
1906
+ version: "21.1.0-next.2",
1906
1907
  ngImport: i0,
1907
1908
  type: RoutedComponentInputBinder,
1908
1909
  deps: [],
@@ -1910,14 +1911,14 @@ class RoutedComponentInputBinder {
1910
1911
  });
1911
1912
  static ɵprov = i0.ɵɵngDeclareInjectable({
1912
1913
  minVersion: "12.0.0",
1913
- version: "21.1.0-next.0",
1914
+ version: "21.1.0-next.2",
1914
1915
  ngImport: i0,
1915
1916
  type: RoutedComponentInputBinder
1916
1917
  });
1917
1918
  }
1918
1919
  i0.ɵɵngDeclareClassMetadata({
1919
1920
  minVersion: "12.0.0",
1920
- version: "21.1.0-next.0",
1921
+ version: "21.1.0-next.2",
1921
1922
  ngImport: i0,
1922
1923
  type: RoutedComponentInputBinder,
1923
1924
  decorators: [{
@@ -1928,7 +1929,7 @@ i0.ɵɵngDeclareClassMetadata({
1928
1929
  class ɵEmptyOutletComponent {
1929
1930
  static ɵfac = i0.ɵɵngDeclareFactory({
1930
1931
  minVersion: "12.0.0",
1931
- version: "21.1.0-next.0",
1932
+ version: "21.1.0-next.2",
1932
1933
  ngImport: i0,
1933
1934
  type: ɵEmptyOutletComponent,
1934
1935
  deps: [],
@@ -1936,7 +1937,7 @@ class ɵEmptyOutletComponent {
1936
1937
  });
1937
1938
  static ɵcmp = i0.ɵɵngDeclareComponent({
1938
1939
  minVersion: "14.0.0",
1939
- version: "21.1.0-next.0",
1940
+ version: "21.1.0-next.2",
1940
1941
  type: ɵEmptyOutletComponent,
1941
1942
  isStandalone: true,
1942
1943
  selector: "ng-component",
@@ -1956,7 +1957,7 @@ class ɵEmptyOutletComponent {
1956
1957
  }
1957
1958
  i0.ɵɵngDeclareClassMetadata({
1958
1959
  minVersion: "12.0.0",
1959
- version: "21.1.0-next.0",
1960
+ version: "21.1.0-next.2",
1960
1961
  ngImport: i0,
1961
1962
  type: ɵEmptyOutletComponent,
1962
1963
  decorators: [{
@@ -2058,10 +2059,6 @@ function isNavigationCancelingError(error) {
2058
2059
  }
2059
2060
 
2060
2061
  let warnedAboutUnsupportedInputBinding = false;
2061
- const activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent, inputBindingEnabled) => map(t => {
2062
- new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent, inputBindingEnabled).activate(rootContexts);
2063
- return t;
2064
- });
2065
2062
  class ActivateRoutes {
2066
2063
  routeReuseStrategy;
2067
2064
  futureState;
@@ -3684,7 +3681,7 @@ class TitleStrategy {
3684
3681
  }
3685
3682
  static ɵfac = i0.ɵɵngDeclareFactory({
3686
3683
  minVersion: "12.0.0",
3687
- version: "21.1.0-next.0",
3684
+ version: "21.1.0-next.2",
3688
3685
  ngImport: i0,
3689
3686
  type: TitleStrategy,
3690
3687
  deps: [],
@@ -3692,7 +3689,7 @@ class TitleStrategy {
3692
3689
  });
3693
3690
  static ɵprov = i0.ɵɵngDeclareInjectable({
3694
3691
  minVersion: "12.0.0",
3695
- version: "21.1.0-next.0",
3692
+ version: "21.1.0-next.2",
3696
3693
  ngImport: i0,
3697
3694
  type: TitleStrategy,
3698
3695
  providedIn: 'root',
@@ -3701,7 +3698,7 @@ class TitleStrategy {
3701
3698
  }
3702
3699
  i0.ɵɵngDeclareClassMetadata({
3703
3700
  minVersion: "12.0.0",
3704
- version: "21.1.0-next.0",
3701
+ version: "21.1.0-next.2",
3705
3702
  ngImport: i0,
3706
3703
  type: TitleStrategy,
3707
3704
  decorators: [{
@@ -3726,7 +3723,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3726
3723
  }
3727
3724
  static ɵfac = i0.ɵɵngDeclareFactory({
3728
3725
  minVersion: "12.0.0",
3729
- version: "21.1.0-next.0",
3726
+ version: "21.1.0-next.2",
3730
3727
  ngImport: i0,
3731
3728
  type: DefaultTitleStrategy,
3732
3729
  deps: [{
@@ -3736,7 +3733,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3736
3733
  });
3737
3734
  static ɵprov = i0.ɵɵngDeclareInjectable({
3738
3735
  minVersion: "12.0.0",
3739
- version: "21.1.0-next.0",
3736
+ version: "21.1.0-next.2",
3740
3737
  ngImport: i0,
3741
3738
  type: DefaultTitleStrategy,
3742
3739
  providedIn: 'root'
@@ -3744,7 +3741,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3744
3741
  }
3745
3742
  i0.ɵɵngDeclareClassMetadata({
3746
3743
  minVersion: "12.0.0",
3747
- version: "21.1.0-next.0",
3744
+ version: "21.1.0-next.2",
3748
3745
  ngImport: i0,
3749
3746
  type: DefaultTitleStrategy,
3750
3747
  decorators: [{
@@ -3762,7 +3759,7 @@ const ROUTER_CONFIGURATION = new InjectionToken(typeof ngDevMode === 'undefined'
3762
3759
  factory: () => ({})
3763
3760
  });
3764
3761
 
3765
- const ROUTES = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'ROUTES' : '');
3762
+ const ROUTES = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'ROUTES' : '');
3766
3763
  class RouterConfigLoader {
3767
3764
  componentLoaders = new WeakMap();
3768
3765
  childrenLoaders = new WeakMap();
@@ -3822,7 +3819,7 @@ class RouterConfigLoader {
3822
3819
  }
3823
3820
  static ɵfac = i0.ɵɵngDeclareFactory({
3824
3821
  minVersion: "12.0.0",
3825
- version: "21.1.0-next.0",
3822
+ version: "21.1.0-next.2",
3826
3823
  ngImport: i0,
3827
3824
  type: RouterConfigLoader,
3828
3825
  deps: [],
@@ -3830,7 +3827,7 @@ class RouterConfigLoader {
3830
3827
  });
3831
3828
  static ɵprov = i0.ɵɵngDeclareInjectable({
3832
3829
  minVersion: "12.0.0",
3833
- version: "21.1.0-next.0",
3830
+ version: "21.1.0-next.2",
3834
3831
  ngImport: i0,
3835
3832
  type: RouterConfigLoader,
3836
3833
  providedIn: 'root'
@@ -3838,7 +3835,7 @@ class RouterConfigLoader {
3838
3835
  }
3839
3836
  i0.ɵɵngDeclareClassMetadata({
3840
3837
  minVersion: "12.0.0",
3841
- version: "21.1.0-next.0",
3838
+ version: "21.1.0-next.2",
3842
3839
  ngImport: i0,
3843
3840
  type: RouterConfigLoader,
3844
3841
  decorators: [{
@@ -3900,7 +3897,7 @@ async function maybeResolveResources(value) {
3900
3897
  class UrlHandlingStrategy {
3901
3898
  static ɵfac = i0.ɵɵngDeclareFactory({
3902
3899
  minVersion: "12.0.0",
3903
- version: "21.1.0-next.0",
3900
+ version: "21.1.0-next.2",
3904
3901
  ngImport: i0,
3905
3902
  type: UrlHandlingStrategy,
3906
3903
  deps: [],
@@ -3908,7 +3905,7 @@ class UrlHandlingStrategy {
3908
3905
  });
3909
3906
  static ɵprov = i0.ɵɵngDeclareInjectable({
3910
3907
  minVersion: "12.0.0",
3911
- version: "21.1.0-next.0",
3908
+ version: "21.1.0-next.2",
3912
3909
  ngImport: i0,
3913
3910
  type: UrlHandlingStrategy,
3914
3911
  providedIn: 'root',
@@ -3917,7 +3914,7 @@ class UrlHandlingStrategy {
3917
3914
  }
3918
3915
  i0.ɵɵngDeclareClassMetadata({
3919
3916
  minVersion: "12.0.0",
3920
- version: "21.1.0-next.0",
3917
+ version: "21.1.0-next.2",
3921
3918
  ngImport: i0,
3922
3919
  type: UrlHandlingStrategy,
3923
3920
  decorators: [{
@@ -3940,7 +3937,7 @@ class DefaultUrlHandlingStrategy {
3940
3937
  }
3941
3938
  static ɵfac = i0.ɵɵngDeclareFactory({
3942
3939
  minVersion: "12.0.0",
3943
- version: "21.1.0-next.0",
3940
+ version: "21.1.0-next.2",
3944
3941
  ngImport: i0,
3945
3942
  type: DefaultUrlHandlingStrategy,
3946
3943
  deps: [],
@@ -3948,7 +3945,7 @@ class DefaultUrlHandlingStrategy {
3948
3945
  });
3949
3946
  static ɵprov = i0.ɵɵngDeclareInjectable({
3950
3947
  minVersion: "12.0.0",
3951
- version: "21.1.0-next.0",
3948
+ version: "21.1.0-next.2",
3952
3949
  ngImport: i0,
3953
3950
  type: DefaultUrlHandlingStrategy,
3954
3951
  providedIn: 'root'
@@ -3956,7 +3953,7 @@ class DefaultUrlHandlingStrategy {
3956
3953
  }
3957
3954
  i0.ɵɵngDeclareClassMetadata({
3958
3955
  minVersion: "12.0.0",
3959
- version: "21.1.0-next.0",
3956
+ version: "21.1.0-next.2",
3960
3957
  ngImport: i0,
3961
3958
  type: DefaultUrlHandlingStrategy,
3962
3959
  decorators: [{
@@ -3967,8 +3964,8 @@ i0.ɵɵngDeclareClassMetadata({
3967
3964
  }]
3968
3965
  });
3969
3966
 
3970
- const CREATE_VIEW_TRANSITION = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'view transition helper' : '');
3971
- const VIEW_TRANSITION_OPTIONS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'view transition options' : '');
3967
+ const CREATE_VIEW_TRANSITION = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'view transition helper' : '');
3968
+ const VIEW_TRANSITION_OPTIONS = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'view transition options' : '');
3972
3969
  function createViewTransition(injector, from, to) {
3973
3970
  const transitionOptions = injector.get(VIEW_TRANSITION_OPTIONS);
3974
3971
  const document = injector.get(DOCUMENT);
@@ -3989,6 +3986,11 @@ function createViewTransition(injector, from, to) {
3989
3986
  console.error(error);
3990
3987
  }
3991
3988
  });
3989
+ transition.finished.catch(error => {
3990
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
3991
+ console.error(error);
3992
+ }
3993
+ });
3992
3994
  const {
3993
3995
  onViewTransitionCreated
3994
3996
  } = transitionOptions;
@@ -4021,11 +4023,9 @@ class NavigationTransitions {
4021
4023
  equal: () => false
4022
4024
  });
4023
4025
  currentTransition = null;
4024
- lastSuccessfulNavigation = signal(null, {
4025
- ...(ngDevMode ? {
4026
- debugName: "lastSuccessfulNavigation"
4027
- } : {})
4028
- });
4026
+ lastSuccessfulNavigation = signal(null, ...(ngDevMode ? [{
4027
+ debugName: "lastSuccessfulNavigation"
4028
+ }] : []));
4029
4029
  events = new Subject();
4030
4030
  transitionAbortWithErrorSubject = new Subject();
4031
4031
  configLoader = inject(RouterConfigLoader);
@@ -4240,9 +4240,9 @@ class NavigationTransitions {
4240
4240
  } = overallTransitionState;
4241
4241
  const viewTransitionStarted = this.createViewTransition?.(this.environmentInjector, currentSnapshot.root, targetSnapshot.root);
4242
4242
  return viewTransitionStarted ? from(viewTransitionStarted).pipe(map(() => overallTransitionState)) : of(overallTransitionState);
4243
- }), map(t => {
4243
+ }), take(1), map(t => {
4244
4244
  const targetRouterState = createRouterState(router.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);
4245
- this.currentTransition = overallTransitionState = {
4245
+ this.currentTransition = overallTransitionState = t = {
4246
4246
  ...t,
4247
4247
  targetRouterState
4248
4248
  };
@@ -4250,23 +4250,26 @@ class NavigationTransitions {
4250
4250
  nav.targetRouterState = targetRouterState;
4251
4251
  return nav;
4252
4252
  });
4253
- return overallTransitionState;
4254
- }), tap(() => {
4255
4253
  this.events.next(new BeforeActivateRoutes());
4256
- }), activateRoutes(this.rootContexts, router.routeReuseStrategy, evt => this.events.next(evt), this.inputBindingEnabled), take(1), takeUntil(abortSignalToObservable(abortController.signal).pipe(filter(() => !completedOrAborted && !overallTransitionState.targetRouterState), tap(() => {
4254
+ if (!shouldContinueNavigation()) {
4255
+ return;
4256
+ }
4257
+ new ActivateRoutes(router.routeReuseStrategy, overallTransitionState.targetRouterState, overallTransitionState.currentRouterState, evt => this.events.next(evt), this.inputBindingEnabled).activate(this.rootContexts);
4258
+ if (!shouldContinueNavigation()) {
4259
+ return;
4260
+ }
4261
+ completedOrAborted = true;
4262
+ this.currentNavigation.update(nav => {
4263
+ nav.abort = noop;
4264
+ return nav;
4265
+ });
4266
+ this.lastSuccessfulNavigation.set(untracked(this.currentNavigation));
4267
+ this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));
4268
+ this.titleStrategy?.updateTitle(t.targetRouterState.snapshot);
4269
+ t.resolve(true);
4270
+ }), takeUntil(abortSignalToObservable(abortController.signal).pipe(filter(() => !completedOrAborted && !overallTransitionState.targetRouterState), tap(() => {
4257
4271
  this.cancelNavigationTransition(overallTransitionState, abortController.signal.reason + '', NavigationCancellationCode.Aborted);
4258
4272
  }))), tap({
4259
- next: t => {
4260
- completedOrAborted = true;
4261
- this.currentNavigation.update(nav => {
4262
- nav.abort = noop;
4263
- return nav;
4264
- });
4265
- this.lastSuccessfulNavigation.set(untracked(this.currentNavigation));
4266
- this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));
4267
- this.titleStrategy?.updateTitle(t.targetRouterState.snapshot);
4268
- t.resolve(true);
4269
- },
4270
4273
  complete: () => {
4271
4274
  completedOrAborted = true;
4272
4275
  }
@@ -4283,11 +4286,11 @@ class NavigationTransitions {
4283
4286
  this.currentTransition = null;
4284
4287
  }
4285
4288
  }), catchError(e => {
4289
+ completedOrAborted = true;
4286
4290
  if (this.destroyed) {
4287
4291
  overallTransitionState.resolve(false);
4288
4292
  return EMPTY;
4289
4293
  }
4290
- completedOrAborted = true;
4291
4294
  if (isNavigationCancelingError(e)) {
4292
4295
  this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e.message, e.cancellationCode));
4293
4296
  if (!isRedirectingNavigationCancelingError(e)) {
@@ -4338,7 +4341,7 @@ class NavigationTransitions {
4338
4341
  }
4339
4342
  static ɵfac = i0.ɵɵngDeclareFactory({
4340
4343
  minVersion: "12.0.0",
4341
- version: "21.1.0-next.0",
4344
+ version: "21.1.0-next.2",
4342
4345
  ngImport: i0,
4343
4346
  type: NavigationTransitions,
4344
4347
  deps: [],
@@ -4346,7 +4349,7 @@ class NavigationTransitions {
4346
4349
  });
4347
4350
  static ɵprov = i0.ɵɵngDeclareInjectable({
4348
4351
  minVersion: "12.0.0",
4349
- version: "21.1.0-next.0",
4352
+ version: "21.1.0-next.2",
4350
4353
  ngImport: i0,
4351
4354
  type: NavigationTransitions,
4352
4355
  providedIn: 'root'
@@ -4354,7 +4357,7 @@ class NavigationTransitions {
4354
4357
  }
4355
4358
  i0.ɵɵngDeclareClassMetadata({
4356
4359
  minVersion: "12.0.0",
4357
- version: "21.1.0-next.0",
4360
+ version: "21.1.0-next.2",
4358
4361
  ngImport: i0,
4359
4362
  type: NavigationTransitions,
4360
4363
  decorators: [{
@@ -4372,7 +4375,7 @@ function isBrowserTriggeredNavigation(source) {
4372
4375
  class RouteReuseStrategy {
4373
4376
  static ɵfac = i0.ɵɵngDeclareFactory({
4374
4377
  minVersion: "12.0.0",
4375
- version: "21.1.0-next.0",
4378
+ version: "21.1.0-next.2",
4376
4379
  ngImport: i0,
4377
4380
  type: RouteReuseStrategy,
4378
4381
  deps: [],
@@ -4380,7 +4383,7 @@ class RouteReuseStrategy {
4380
4383
  });
4381
4384
  static ɵprov = i0.ɵɵngDeclareInjectable({
4382
4385
  minVersion: "12.0.0",
4383
- version: "21.1.0-next.0",
4386
+ version: "21.1.0-next.2",
4384
4387
  ngImport: i0,
4385
4388
  type: RouteReuseStrategy,
4386
4389
  providedIn: 'root',
@@ -4389,7 +4392,7 @@ class RouteReuseStrategy {
4389
4392
  }
4390
4393
  i0.ɵɵngDeclareClassMetadata({
4391
4394
  minVersion: "12.0.0",
4392
- version: "21.1.0-next.0",
4395
+ version: "21.1.0-next.2",
4393
4396
  ngImport: i0,
4394
4397
  type: RouteReuseStrategy,
4395
4398
  decorators: [{
@@ -4418,7 +4421,7 @@ class BaseRouteReuseStrategy {
4418
4421
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4419
4422
  static ɵfac = i0.ɵɵngDeclareFactory({
4420
4423
  minVersion: "12.0.0",
4421
- version: "21.1.0-next.0",
4424
+ version: "21.1.0-next.2",
4422
4425
  ngImport: i0,
4423
4426
  type: DefaultRouteReuseStrategy,
4424
4427
  deps: null,
@@ -4426,7 +4429,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4426
4429
  });
4427
4430
  static ɵprov = i0.ɵɵngDeclareInjectable({
4428
4431
  minVersion: "12.0.0",
4429
- version: "21.1.0-next.0",
4432
+ version: "21.1.0-next.2",
4430
4433
  ngImport: i0,
4431
4434
  type: DefaultRouteReuseStrategy,
4432
4435
  providedIn: 'root'
@@ -4434,7 +4437,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4434
4437
  }
4435
4438
  i0.ɵɵngDeclareClassMetadata({
4436
4439
  minVersion: "12.0.0",
4437
- version: "21.1.0-next.0",
4440
+ version: "21.1.0-next.2",
4438
4441
  ngImport: i0,
4439
4442
  type: DefaultRouteReuseStrategy,
4440
4443
  decorators: [{
@@ -4508,7 +4511,7 @@ class StateManager {
4508
4511
  }
4509
4512
  static ɵfac = i0.ɵɵngDeclareFactory({
4510
4513
  minVersion: "12.0.0",
4511
- version: "21.1.0-next.0",
4514
+ version: "21.1.0-next.2",
4512
4515
  ngImport: i0,
4513
4516
  type: StateManager,
4514
4517
  deps: [],
@@ -4516,7 +4519,7 @@ class StateManager {
4516
4519
  });
4517
4520
  static ɵprov = i0.ɵɵngDeclareInjectable({
4518
4521
  minVersion: "12.0.0",
4519
- version: "21.1.0-next.0",
4522
+ version: "21.1.0-next.2",
4520
4523
  ngImport: i0,
4521
4524
  type: StateManager,
4522
4525
  providedIn: 'root',
@@ -4525,7 +4528,7 @@ class StateManager {
4525
4528
  }
4526
4529
  i0.ɵɵngDeclareClassMetadata({
4527
4530
  minVersion: "12.0.0",
4528
- version: "21.1.0-next.0",
4531
+ version: "21.1.0-next.2",
4529
4532
  ngImport: i0,
4530
4533
  type: StateManager,
4531
4534
  decorators: [{
@@ -4570,7 +4573,7 @@ class HistoryStateManager extends StateManager {
4570
4573
  if (this.urlUpdateStrategy === 'deferred' && !currentTransition.extras.skipLocationChange) {
4571
4574
  this.setBrowserUrl(this.createBrowserPath(currentTransition), currentTransition);
4572
4575
  }
4573
- } else if (e instanceof NavigationCancel && e.code !== NavigationCancellationCode.SupersededByNewNavigation && e.code !== NavigationCancellationCode.Redirect) {
4576
+ } else if (e instanceof NavigationCancel && !isRedirectingEvent(e)) {
4574
4577
  this.restoreHistory(currentTransition);
4575
4578
  } else if (e instanceof NavigationError) {
4576
4579
  this.restoreHistory(currentTransition, true);
@@ -4642,7 +4645,7 @@ class HistoryStateManager extends StateManager {
4642
4645
  }
4643
4646
  static ɵfac = i0.ɵɵngDeclareFactory({
4644
4647
  minVersion: "12.0.0",
4645
- version: "21.1.0-next.0",
4648
+ version: "21.1.0-next.2",
4646
4649
  ngImport: i0,
4647
4650
  type: HistoryStateManager,
4648
4651
  deps: null,
@@ -4650,7 +4653,7 @@ class HistoryStateManager extends StateManager {
4650
4653
  });
4651
4654
  static ɵprov = i0.ɵɵngDeclareInjectable({
4652
4655
  minVersion: "12.0.0",
4653
- version: "21.1.0-next.0",
4656
+ version: "21.1.0-next.2",
4654
4657
  ngImport: i0,
4655
4658
  type: HistoryStateManager,
4656
4659
  providedIn: 'root'
@@ -4658,7 +4661,7 @@ class HistoryStateManager extends StateManager {
4658
4661
  }
4659
4662
  i0.ɵɵngDeclareClassMetadata({
4660
4663
  minVersion: "12.0.0",
4661
- version: "21.1.0-next.0",
4664
+ version: "21.1.0-next.2",
4662
4665
  ngImport: i0,
4663
4666
  type: HistoryStateManager,
4664
4667
  decorators: [{
@@ -4973,7 +4976,7 @@ class Router {
4973
4976
  }
4974
4977
  static ɵfac = i0.ɵɵngDeclareFactory({
4975
4978
  minVersion: "12.0.0",
4976
- version: "21.1.0-next.0",
4979
+ version: "21.1.0-next.2",
4977
4980
  ngImport: i0,
4978
4981
  type: Router,
4979
4982
  deps: [],
@@ -4981,7 +4984,7 @@ class Router {
4981
4984
  });
4982
4985
  static ɵprov = i0.ɵɵngDeclareInjectable({
4983
4986
  minVersion: "12.0.0",
4984
- version: "21.1.0-next.0",
4987
+ version: "21.1.0-next.2",
4985
4988
  ngImport: i0,
4986
4989
  type: Router,
4987
4990
  providedIn: 'root'
@@ -4989,7 +4992,7 @@ class Router {
4989
4992
  }
4990
4993
  i0.ɵɵngDeclareClassMetadata({
4991
4994
  minVersion: "12.0.0",
4992
- version: "21.1.0-next.0",
4995
+ version: "21.1.0-next.2",
4993
4996
  ngImport: i0,
4994
4997
  type: Router,
4995
4998
  decorators: [{
@@ -5009,5 +5012,5 @@ function validateCommands(commands) {
5009
5012
  }
5010
5013
  }
5011
5014
 
5012
- export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, BeforeActivateRoutes, CREATE_VIEW_TRANSITION, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, IMPERATIVE_NAVIGATION, INPUT_BINDER, NAVIGATION_ERROR_HANDLER, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NavigationTransitions, OutletContext, PRIMARY_OUTLET, ROUTER_CONFIGURATION, ROUTER_OUTLET_DATA, ROUTES, RedirectCommand, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, RoutedComponentInputBinder, Router, RouterConfigLoader, RouterEvent, RouterOutlet, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, StateManager, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VIEW_TRANSITION_OPTIONS, afterNextNavigation, convertToParamMap, createUrlTreeFromSnapshot, createViewTransition, defaultUrlMatcher, isUrlTree, loadChildren, provideSometimesSyncRecognize, stringifyEvent, ɵEmptyOutletComponent };
5015
+ export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, BeforeActivateRoutes, CREATE_VIEW_TRANSITION, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, IMPERATIVE_NAVIGATION, INPUT_BINDER, NAVIGATION_ERROR_HANDLER, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NavigationTransitions, OutletContext, PRIMARY_OUTLET, ROUTER_CONFIGURATION, ROUTER_OUTLET_DATA, ROUTES, RedirectCommand, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, RoutedComponentInputBinder, Router, RouterConfigLoader, RouterEvent, RouterOutlet, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, StateManager, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VIEW_TRANSITION_OPTIONS, afterNextNavigation, convertToParamMap, createUrlTreeFromSnapshot, createViewTransition, defaultUrlMatcher, isRedirectingEvent, isUrlTree, loadChildren, provideSometimesSyncRecognize, stringifyEvent, ɵEmptyOutletComponent };
5013
5016
  //# sourceMappingURL=_router-chunk.mjs.map