@angular/router 21.2.0-next.0 → 21.2.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.2.0-next.0
2
+ * @license Angular v21.2.0-next.2
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -45,7 +45,7 @@ class ReactiveRouterState {
45
45
  }
46
46
  static ɵfac = i0.ɵɵngDeclareFactory({
47
47
  minVersion: "12.0.0",
48
- version: "21.2.0-next.0",
48
+ version: "21.2.0-next.2",
49
49
  ngImport: i0,
50
50
  type: ReactiveRouterState,
51
51
  deps: [],
@@ -53,7 +53,7 @@ class ReactiveRouterState {
53
53
  });
54
54
  static ɵprov = i0.ɵɵngDeclareInjectable({
55
55
  minVersion: "12.0.0",
56
- version: "21.2.0-next.0",
56
+ version: "21.2.0-next.2",
57
57
  ngImport: i0,
58
58
  type: ReactiveRouterState,
59
59
  providedIn: 'root'
@@ -61,7 +61,7 @@ class ReactiveRouterState {
61
61
  }
62
62
  i0.ɵɵngDeclareClassMetadata({
63
63
  minVersion: "12.0.0",
64
- version: "21.2.0-next.0",
64
+ version: "21.2.0-next.2",
65
65
  ngImport: i0,
66
66
  type: ReactiveRouterState,
67
67
  decorators: [{
@@ -314,7 +314,7 @@ class RouterLink {
314
314
  }
315
315
  static ɵfac = i0.ɵɵngDeclareFactory({
316
316
  minVersion: "12.0.0",
317
- version: "21.2.0-next.0",
317
+ version: "21.2.0-next.2",
318
318
  ngImport: i0,
319
319
  type: RouterLink,
320
320
  deps: [{
@@ -335,7 +335,7 @@ class RouterLink {
335
335
  });
336
336
  static ɵdir = i0.ɵɵngDeclareDirective({
337
337
  minVersion: "16.1.0",
338
- version: "21.2.0-next.0",
338
+ version: "21.2.0-next.2",
339
339
  type: RouterLink,
340
340
  isStandalone: true,
341
341
  selector: "[routerLink]",
@@ -367,7 +367,7 @@ class RouterLink {
367
367
  }
368
368
  i0.ɵɵngDeclareClassMetadata({
369
369
  minVersion: "12.0.0",
370
- version: "21.2.0-next.0",
370
+ version: "21.2.0-next.2",
371
371
  ngImport: i0,
372
372
  type: RouterLink,
373
373
  decorators: [{
@@ -545,7 +545,7 @@ class RouterLinkActive {
545
545
  }
546
546
  static ɵfac = i0.ɵɵngDeclareFactory({
547
547
  minVersion: "12.0.0",
548
- version: "21.2.0-next.0",
548
+ version: "21.2.0-next.2",
549
549
  ngImport: i0,
550
550
  type: RouterLinkActive,
551
551
  deps: [{
@@ -561,7 +561,7 @@ class RouterLinkActive {
561
561
  });
562
562
  static ɵdir = i0.ɵɵngDeclareDirective({
563
563
  minVersion: "14.0.0",
564
- version: "21.2.0-next.0",
564
+ version: "21.2.0-next.2",
565
565
  type: RouterLinkActive,
566
566
  isStandalone: true,
567
567
  selector: "[routerLinkActive]",
@@ -585,7 +585,7 @@ class RouterLinkActive {
585
585
  }
586
586
  i0.ɵɵngDeclareClassMetadata({
587
587
  minVersion: "12.0.0",
588
- version: "21.2.0-next.0",
588
+ version: "21.2.0-next.2",
589
589
  ngImport: i0,
590
590
  type: RouterLinkActive,
591
591
  decorators: [{
@@ -626,7 +626,8 @@ i0.ɵɵngDeclareClassMetadata({
626
626
  }
627
627
  });
628
628
  function isActiveMatchOptions(options) {
629
- return !!options.paths;
629
+ const o = options;
630
+ return !!(o.paths || o.matrixParams || o.queryParams || o.fragment);
630
631
  }
631
632
 
632
633
  class PreloadingStrategy {}
@@ -636,7 +637,7 @@ class PreloadAllModules {
636
637
  }
637
638
  static ɵfac = i0.ɵɵngDeclareFactory({
638
639
  minVersion: "12.0.0",
639
- version: "21.2.0-next.0",
640
+ version: "21.2.0-next.2",
640
641
  ngImport: i0,
641
642
  type: PreloadAllModules,
642
643
  deps: [],
@@ -644,7 +645,7 @@ class PreloadAllModules {
644
645
  });
645
646
  static ɵprov = i0.ɵɵngDeclareInjectable({
646
647
  minVersion: "12.0.0",
647
- version: "21.2.0-next.0",
648
+ version: "21.2.0-next.2",
648
649
  ngImport: i0,
649
650
  type: PreloadAllModules,
650
651
  providedIn: 'root'
@@ -652,7 +653,7 @@ class PreloadAllModules {
652
653
  }
653
654
  i0.ɵɵngDeclareClassMetadata({
654
655
  minVersion: "12.0.0",
655
- version: "21.2.0-next.0",
656
+ version: "21.2.0-next.2",
656
657
  ngImport: i0,
657
658
  type: PreloadAllModules,
658
659
  decorators: [{
@@ -668,7 +669,7 @@ class NoPreloading {
668
669
  }
669
670
  static ɵfac = i0.ɵɵngDeclareFactory({
670
671
  minVersion: "12.0.0",
671
- version: "21.2.0-next.0",
672
+ version: "21.2.0-next.2",
672
673
  ngImport: i0,
673
674
  type: NoPreloading,
674
675
  deps: [],
@@ -676,7 +677,7 @@ class NoPreloading {
676
677
  });
677
678
  static ɵprov = i0.ɵɵngDeclareInjectable({
678
679
  minVersion: "12.0.0",
679
- version: "21.2.0-next.0",
680
+ version: "21.2.0-next.2",
680
681
  ngImport: i0,
681
682
  type: NoPreloading,
682
683
  providedIn: 'root'
@@ -684,7 +685,7 @@ class NoPreloading {
684
685
  }
685
686
  i0.ɵɵngDeclareClassMetadata({
686
687
  minVersion: "12.0.0",
687
- version: "21.2.0-next.0",
688
+ version: "21.2.0-next.2",
688
689
  ngImport: i0,
689
690
  type: NoPreloading,
690
691
  decorators: [{
@@ -765,7 +766,7 @@ class RouterPreloader {
765
766
  }
766
767
  static ɵfac = i0.ɵɵngDeclareFactory({
767
768
  minVersion: "12.0.0",
768
- version: "21.2.0-next.0",
769
+ version: "21.2.0-next.2",
769
770
  ngImport: i0,
770
771
  type: RouterPreloader,
771
772
  deps: [{
@@ -781,7 +782,7 @@ class RouterPreloader {
781
782
  });
782
783
  static ɵprov = i0.ɵɵngDeclareInjectable({
783
784
  minVersion: "12.0.0",
784
- version: "21.2.0-next.0",
785
+ version: "21.2.0-next.2",
785
786
  ngImport: i0,
786
787
  type: RouterPreloader,
787
788
  providedIn: 'root'
@@ -789,7 +790,7 @@ class RouterPreloader {
789
790
  }
790
791
  i0.ɵɵngDeclareClassMetadata({
791
792
  minVersion: "12.0.0",
792
- version: "21.2.0-next.0",
793
+ version: "21.2.0-next.2",
793
794
  ngImport: i0,
794
795
  type: RouterPreloader,
795
796
  decorators: [{
@@ -891,7 +892,7 @@ class RouterScroller {
891
892
  }
892
893
  static ɵfac = i0.ɵɵngDeclareFactory({
893
894
  minVersion: "12.0.0",
894
- version: "21.2.0-next.0",
895
+ version: "21.2.0-next.2",
895
896
  ngImport: i0,
896
897
  type: RouterScroller,
897
898
  deps: "invalid",
@@ -899,14 +900,14 @@ class RouterScroller {
899
900
  });
900
901
  static ɵprov = i0.ɵɵngDeclareInjectable({
901
902
  minVersion: "12.0.0",
902
- version: "21.2.0-next.0",
903
+ version: "21.2.0-next.2",
903
904
  ngImport: i0,
904
905
  type: RouterScroller
905
906
  });
906
907
  }
907
908
  i0.ɵɵngDeclareClassMetadata({
908
909
  minVersion: "12.0.0",
909
- version: "21.2.0-next.0",
910
+ version: "21.2.0-next.2",
910
911
  ngImport: i0,
911
912
  type: RouterScroller,
912
913
  decorators: [{
@@ -1032,7 +1033,7 @@ class NavigationStateManager extends StateManager {
1032
1033
  navigationEvent,
1033
1034
  commitUrl
1034
1035
  } = this.currentNavigation;
1035
- if (commitUrl || navigationEvent && (navigationEvent.navigationType === 'traverse' || navigationEvent.navigationType === 'reload') && this.eventAndRouterDestinationsMatch(navigationEvent, transition)) {
1036
+ if (commitUrl || navigationEvent && navigationEvent.navigationType === 'traverse' && this.eventAndRouterDestinationsMatch(navigationEvent, transition)) {
1036
1037
  return;
1037
1038
  }
1038
1039
  this.currentNavigation.removeAbortListener?.();
@@ -1111,7 +1112,7 @@ class NavigationStateManager extends StateManager {
1111
1112
  this.rawUrlTree = traversalReset ? this.stateMemento.rawUrlTree : this.urlHandlingStrategy.merge(this.currentUrlTree, finalUrl ?? this.rawUrlTree);
1112
1113
  }
1113
1114
  handleNavigate(event) {
1114
- if (!event.canIntercept) {
1115
+ if (!event.canIntercept || event.navigationType === 'reload') {
1115
1116
  return;
1116
1117
  }
1117
1118
  const routerInfo = event?.info?.ɵrouterInfo;
@@ -1212,7 +1213,7 @@ class NavigationStateManager extends StateManager {
1212
1213
  }
1213
1214
  static ɵfac = i0.ɵɵngDeclareFactory({
1214
1215
  minVersion: "12.0.0",
1215
- version: "21.2.0-next.0",
1216
+ version: "21.2.0-next.2",
1216
1217
  ngImport: i0,
1217
1218
  type: NavigationStateManager,
1218
1219
  deps: [],
@@ -1220,7 +1221,7 @@ class NavigationStateManager extends StateManager {
1220
1221
  });
1221
1222
  static ɵprov = i0.ɵɵngDeclareInjectable({
1222
1223
  minVersion: "12.0.0",
1223
- version: "21.2.0-next.0",
1224
+ version: "21.2.0-next.2",
1224
1225
  ngImport: i0,
1225
1226
  type: NavigationStateManager,
1226
1227
  providedIn: 'root'
@@ -1228,7 +1229,7 @@ class NavigationStateManager extends StateManager {
1228
1229
  }
1229
1230
  i0.ɵɵngDeclareClassMetadata({
1230
1231
  minVersion: "12.0.0",
1231
- version: "21.2.0-next.0",
1232
+ version: "21.2.0-next.2",
1232
1233
  ngImport: i0,
1233
1234
  type: NavigationStateManager,
1234
1235
  decorators: [{
@@ -1527,7 +1528,7 @@ class RouterModule {
1527
1528
  }
1528
1529
  static ɵfac = i0.ɵɵngDeclareFactory({
1529
1530
  minVersion: "12.0.0",
1530
- version: "21.2.0-next.0",
1531
+ version: "21.2.0-next.2",
1531
1532
  ngImport: i0,
1532
1533
  type: RouterModule,
1533
1534
  deps: [],
@@ -1535,7 +1536,7 @@ class RouterModule {
1535
1536
  });
1536
1537
  static ɵmod = i0.ɵɵngDeclareNgModule({
1537
1538
  minVersion: "14.0.0",
1538
- version: "21.2.0-next.0",
1539
+ version: "21.2.0-next.2",
1539
1540
  ngImport: i0,
1540
1541
  type: RouterModule,
1541
1542
  imports: [RouterOutlet, RouterLink, RouterLinkActive, _EmptyOutletComponent],
@@ -1543,14 +1544,14 @@ class RouterModule {
1543
1544
  });
1544
1545
  static ɵinj = i0.ɵɵngDeclareInjector({
1545
1546
  minVersion: "12.0.0",
1546
- version: "21.2.0-next.0",
1547
+ version: "21.2.0-next.2",
1547
1548
  ngImport: i0,
1548
1549
  type: RouterModule
1549
1550
  });
1550
1551
  }
1551
1552
  i0.ɵɵngDeclareClassMetadata({
1552
1553
  minVersion: "12.0.0",
1553
- version: "21.2.0-next.0",
1554
+ version: "21.2.0-next.2",
1554
1555
  ngImport: i0,
1555
1556
  type: RouterModule,
1556
1557
  decorators: [{