@angular/router 21.2.0-rc.0 → 21.2.1
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/fesm2022/_router-chunk.mjs +49 -49
- package/fesm2022/_router-chunk.mjs.map +1 -1
- package/fesm2022/_router_module-chunk.mjs +35 -31
- package/fesm2022/_router_module-chunk.mjs.map +1 -1
- package/fesm2022/router.mjs +2 -2
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +1 -1
- package/fesm2022/upgrade.mjs.map +1 -1
- package/package.json +4 -4
- package/types/_router_module-chunk.d.ts +97 -86
- package/types/router.d.ts +1 -1
- package/types/testing.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.
|
|
2
|
+
* @license Angular v21.2.1
|
|
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.
|
|
48
|
+
version: "21.2.1",
|
|
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.
|
|
56
|
+
version: "21.2.1",
|
|
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.
|
|
64
|
+
version: "21.2.1",
|
|
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.
|
|
317
|
+
version: "21.2.1",
|
|
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.
|
|
338
|
+
version: "21.2.1",
|
|
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.
|
|
370
|
+
version: "21.2.1",
|
|
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.
|
|
548
|
+
version: "21.2.1",
|
|
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.
|
|
564
|
+
version: "21.2.1",
|
|
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.
|
|
588
|
+
version: "21.2.1",
|
|
589
589
|
ngImport: i0,
|
|
590
590
|
type: RouterLinkActive,
|
|
591
591
|
decorators: [{
|
|
@@ -637,7 +637,7 @@ class PreloadAllModules {
|
|
|
637
637
|
}
|
|
638
638
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
639
639
|
minVersion: "12.0.0",
|
|
640
|
-
version: "21.2.
|
|
640
|
+
version: "21.2.1",
|
|
641
641
|
ngImport: i0,
|
|
642
642
|
type: PreloadAllModules,
|
|
643
643
|
deps: [],
|
|
@@ -645,7 +645,7 @@ class PreloadAllModules {
|
|
|
645
645
|
});
|
|
646
646
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
647
647
|
minVersion: "12.0.0",
|
|
648
|
-
version: "21.2.
|
|
648
|
+
version: "21.2.1",
|
|
649
649
|
ngImport: i0,
|
|
650
650
|
type: PreloadAllModules,
|
|
651
651
|
providedIn: 'root'
|
|
@@ -653,7 +653,7 @@ class PreloadAllModules {
|
|
|
653
653
|
}
|
|
654
654
|
i0.ɵɵngDeclareClassMetadata({
|
|
655
655
|
minVersion: "12.0.0",
|
|
656
|
-
version: "21.2.
|
|
656
|
+
version: "21.2.1",
|
|
657
657
|
ngImport: i0,
|
|
658
658
|
type: PreloadAllModules,
|
|
659
659
|
decorators: [{
|
|
@@ -669,7 +669,7 @@ class NoPreloading {
|
|
|
669
669
|
}
|
|
670
670
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
671
671
|
minVersion: "12.0.0",
|
|
672
|
-
version: "21.2.
|
|
672
|
+
version: "21.2.1",
|
|
673
673
|
ngImport: i0,
|
|
674
674
|
type: NoPreloading,
|
|
675
675
|
deps: [],
|
|
@@ -677,7 +677,7 @@ class NoPreloading {
|
|
|
677
677
|
});
|
|
678
678
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
679
679
|
minVersion: "12.0.0",
|
|
680
|
-
version: "21.2.
|
|
680
|
+
version: "21.2.1",
|
|
681
681
|
ngImport: i0,
|
|
682
682
|
type: NoPreloading,
|
|
683
683
|
providedIn: 'root'
|
|
@@ -685,7 +685,7 @@ class NoPreloading {
|
|
|
685
685
|
}
|
|
686
686
|
i0.ɵɵngDeclareClassMetadata({
|
|
687
687
|
minVersion: "12.0.0",
|
|
688
|
-
version: "21.2.
|
|
688
|
+
version: "21.2.1",
|
|
689
689
|
ngImport: i0,
|
|
690
690
|
type: NoPreloading,
|
|
691
691
|
decorators: [{
|
|
@@ -766,7 +766,7 @@ class RouterPreloader {
|
|
|
766
766
|
}
|
|
767
767
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
768
768
|
minVersion: "12.0.0",
|
|
769
|
-
version: "21.2.
|
|
769
|
+
version: "21.2.1",
|
|
770
770
|
ngImport: i0,
|
|
771
771
|
type: RouterPreloader,
|
|
772
772
|
deps: [{
|
|
@@ -782,7 +782,7 @@ class RouterPreloader {
|
|
|
782
782
|
});
|
|
783
783
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
784
784
|
minVersion: "12.0.0",
|
|
785
|
-
version: "21.2.
|
|
785
|
+
version: "21.2.1",
|
|
786
786
|
ngImport: i0,
|
|
787
787
|
type: RouterPreloader,
|
|
788
788
|
providedIn: 'root'
|
|
@@ -790,7 +790,7 @@ class RouterPreloader {
|
|
|
790
790
|
}
|
|
791
791
|
i0.ɵɵngDeclareClassMetadata({
|
|
792
792
|
minVersion: "12.0.0",
|
|
793
|
-
version: "21.2.
|
|
793
|
+
version: "21.2.1",
|
|
794
794
|
ngImport: i0,
|
|
795
795
|
type: RouterPreloader,
|
|
796
796
|
decorators: [{
|
|
@@ -892,7 +892,7 @@ class RouterScroller {
|
|
|
892
892
|
}
|
|
893
893
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
894
894
|
minVersion: "12.0.0",
|
|
895
|
-
version: "21.2.
|
|
895
|
+
version: "21.2.1",
|
|
896
896
|
ngImport: i0,
|
|
897
897
|
type: RouterScroller,
|
|
898
898
|
deps: "invalid",
|
|
@@ -900,14 +900,14 @@ class RouterScroller {
|
|
|
900
900
|
});
|
|
901
901
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
902
902
|
minVersion: "12.0.0",
|
|
903
|
-
version: "21.2.
|
|
903
|
+
version: "21.2.1",
|
|
904
904
|
ngImport: i0,
|
|
905
905
|
type: RouterScroller
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
i0.ɵɵngDeclareClassMetadata({
|
|
909
909
|
minVersion: "12.0.0",
|
|
910
|
-
version: "21.2.
|
|
910
|
+
version: "21.2.1",
|
|
911
911
|
ngImport: i0,
|
|
912
912
|
type: RouterScroller,
|
|
913
913
|
decorators: [{
|
|
@@ -1165,7 +1165,11 @@ class NavigationStateManager extends StateManager {
|
|
|
1165
1165
|
if (this.deferredCommitSupported(event)) {
|
|
1166
1166
|
const redirect = new Promise(resolve => {
|
|
1167
1167
|
interceptOptions.precommitHandler = controller => {
|
|
1168
|
-
|
|
1168
|
+
if (this.navigation.transition?.navigationType === 'traverse') {
|
|
1169
|
+
resolve(() => {});
|
|
1170
|
+
} else {
|
|
1171
|
+
resolve(controller.redirect.bind(controller));
|
|
1172
|
+
}
|
|
1169
1173
|
return precommitHandlerPromise;
|
|
1170
1174
|
};
|
|
1171
1175
|
});
|
|
@@ -1209,11 +1213,11 @@ class NavigationStateManager extends StateManager {
|
|
|
1209
1213
|
return new URL(routerDestination, eventDestination.origin).href === eventDestination.href;
|
|
1210
1214
|
}
|
|
1211
1215
|
deferredCommitSupported(event) {
|
|
1212
|
-
return this.precommitHandlerSupported && event.cancelable
|
|
1216
|
+
return this.precommitHandlerSupported && event.cancelable;
|
|
1213
1217
|
}
|
|
1214
1218
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1215
1219
|
minVersion: "12.0.0",
|
|
1216
|
-
version: "21.2.
|
|
1220
|
+
version: "21.2.1",
|
|
1217
1221
|
ngImport: i0,
|
|
1218
1222
|
type: NavigationStateManager,
|
|
1219
1223
|
deps: [],
|
|
@@ -1221,7 +1225,7 @@ class NavigationStateManager extends StateManager {
|
|
|
1221
1225
|
});
|
|
1222
1226
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1223
1227
|
minVersion: "12.0.0",
|
|
1224
|
-
version: "21.2.
|
|
1228
|
+
version: "21.2.1",
|
|
1225
1229
|
ngImport: i0,
|
|
1226
1230
|
type: NavigationStateManager,
|
|
1227
1231
|
providedIn: 'root'
|
|
@@ -1229,7 +1233,7 @@ class NavigationStateManager extends StateManager {
|
|
|
1229
1233
|
}
|
|
1230
1234
|
i0.ɵɵngDeclareClassMetadata({
|
|
1231
1235
|
minVersion: "12.0.0",
|
|
1232
|
-
version: "21.2.
|
|
1236
|
+
version: "21.2.1",
|
|
1233
1237
|
ngImport: i0,
|
|
1234
1238
|
type: NavigationStateManager,
|
|
1235
1239
|
decorators: [{
|
|
@@ -1528,7 +1532,7 @@ class RouterModule {
|
|
|
1528
1532
|
}
|
|
1529
1533
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1530
1534
|
minVersion: "12.0.0",
|
|
1531
|
-
version: "21.2.
|
|
1535
|
+
version: "21.2.1",
|
|
1532
1536
|
ngImport: i0,
|
|
1533
1537
|
type: RouterModule,
|
|
1534
1538
|
deps: [],
|
|
@@ -1536,7 +1540,7 @@ class RouterModule {
|
|
|
1536
1540
|
});
|
|
1537
1541
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1538
1542
|
minVersion: "14.0.0",
|
|
1539
|
-
version: "21.2.
|
|
1543
|
+
version: "21.2.1",
|
|
1540
1544
|
ngImport: i0,
|
|
1541
1545
|
type: RouterModule,
|
|
1542
1546
|
imports: [RouterOutlet, RouterLink, RouterLinkActive, _EmptyOutletComponent],
|
|
@@ -1544,14 +1548,14 @@ class RouterModule {
|
|
|
1544
1548
|
});
|
|
1545
1549
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1546
1550
|
minVersion: "12.0.0",
|
|
1547
|
-
version: "21.2.
|
|
1551
|
+
version: "21.2.1",
|
|
1548
1552
|
ngImport: i0,
|
|
1549
1553
|
type: RouterModule
|
|
1550
1554
|
});
|
|
1551
1555
|
}
|
|
1552
1556
|
i0.ɵɵngDeclareClassMetadata({
|
|
1553
1557
|
minVersion: "12.0.0",
|
|
1554
|
-
version: "21.2.
|
|
1558
|
+
version: "21.2.1",
|
|
1555
1559
|
ngImport: i0,
|
|
1556
1560
|
type: RouterModule,
|
|
1557
1561
|
decorators: [{
|