@angular/router 21.2.9 → 21.2.10
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 +78 -59
- package/fesm2022/_router-chunk.mjs.map +1 -1
- package/fesm2022/_router_module-chunk.mjs +37 -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/upgrade.mjs +1 -1
- package/package.json +4 -4
- package/types/_router_module-chunk.d.ts +2 -1
- 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.10
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -327,7 +327,7 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
327
327
|
class UrlSerializer {
|
|
328
328
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
329
329
|
minVersion: "12.0.0",
|
|
330
|
-
version: "21.2.
|
|
330
|
+
version: "21.2.10",
|
|
331
331
|
ngImport: i0,
|
|
332
332
|
type: UrlSerializer,
|
|
333
333
|
deps: [],
|
|
@@ -335,7 +335,7 @@ class UrlSerializer {
|
|
|
335
335
|
});
|
|
336
336
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
337
337
|
minVersion: "12.0.0",
|
|
338
|
-
version: "21.2.
|
|
338
|
+
version: "21.2.10",
|
|
339
339
|
ngImport: i0,
|
|
340
340
|
type: UrlSerializer,
|
|
341
341
|
providedIn: 'root',
|
|
@@ -344,7 +344,7 @@ class UrlSerializer {
|
|
|
344
344
|
}
|
|
345
345
|
i0.ɵɵngDeclareClassMetadata({
|
|
346
346
|
minVersion: "12.0.0",
|
|
347
|
-
version: "21.2.
|
|
347
|
+
version: "21.2.10",
|
|
348
348
|
ngImport: i0,
|
|
349
349
|
type: UrlSerializer,
|
|
350
350
|
decorators: [{
|
|
@@ -1301,7 +1301,7 @@ class ChildrenOutletContexts {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1303
1303
|
minVersion: "12.0.0",
|
|
1304
|
-
version: "21.2.
|
|
1304
|
+
version: "21.2.10",
|
|
1305
1305
|
ngImport: i0,
|
|
1306
1306
|
type: ChildrenOutletContexts,
|
|
1307
1307
|
deps: [{
|
|
@@ -1311,7 +1311,7 @@ class ChildrenOutletContexts {
|
|
|
1311
1311
|
});
|
|
1312
1312
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1313
1313
|
minVersion: "12.0.0",
|
|
1314
|
-
version: "21.2.
|
|
1314
|
+
version: "21.2.10",
|
|
1315
1315
|
ngImport: i0,
|
|
1316
1316
|
type: ChildrenOutletContexts,
|
|
1317
1317
|
providedIn: 'root'
|
|
@@ -1319,7 +1319,7 @@ class ChildrenOutletContexts {
|
|
|
1319
1319
|
}
|
|
1320
1320
|
i0.ɵɵngDeclareClassMetadata({
|
|
1321
1321
|
minVersion: "12.0.0",
|
|
1322
|
-
version: "21.2.
|
|
1322
|
+
version: "21.2.10",
|
|
1323
1323
|
ngImport: i0,
|
|
1324
1324
|
type: ChildrenOutletContexts,
|
|
1325
1325
|
decorators: [{
|
|
@@ -1776,7 +1776,7 @@ class RouterOutlet {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1778
1778
|
minVersion: "12.0.0",
|
|
1779
|
-
version: "21.2.
|
|
1779
|
+
version: "21.2.10",
|
|
1780
1780
|
ngImport: i0,
|
|
1781
1781
|
type: RouterOutlet,
|
|
1782
1782
|
deps: [],
|
|
@@ -1784,7 +1784,7 @@ class RouterOutlet {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1786
1786
|
minVersion: "17.1.0",
|
|
1787
|
-
version: "21.2.
|
|
1787
|
+
version: "21.2.10",
|
|
1788
1788
|
type: RouterOutlet,
|
|
1789
1789
|
isStandalone: true,
|
|
1790
1790
|
selector: "router-outlet",
|
|
@@ -1817,7 +1817,7 @@ class RouterOutlet {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
i0.ɵɵngDeclareClassMetadata({
|
|
1819
1819
|
minVersion: "12.0.0",
|
|
1820
|
-
version: "21.2.
|
|
1820
|
+
version: "21.2.10",
|
|
1821
1821
|
ngImport: i0,
|
|
1822
1822
|
type: RouterOutlet,
|
|
1823
1823
|
decorators: [{
|
|
@@ -1926,7 +1926,7 @@ class RoutedComponentInputBinder {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1928
1928
|
minVersion: "12.0.0",
|
|
1929
|
-
version: "21.2.
|
|
1929
|
+
version: "21.2.10",
|
|
1930
1930
|
ngImport: i0,
|
|
1931
1931
|
type: RoutedComponentInputBinder,
|
|
1932
1932
|
deps: [],
|
|
@@ -1934,14 +1934,14 @@ class RoutedComponentInputBinder {
|
|
|
1934
1934
|
});
|
|
1935
1935
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1936
1936
|
minVersion: "12.0.0",
|
|
1937
|
-
version: "21.2.
|
|
1937
|
+
version: "21.2.10",
|
|
1938
1938
|
ngImport: i0,
|
|
1939
1939
|
type: RoutedComponentInputBinder
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
1942
|
i0.ɵɵngDeclareClassMetadata({
|
|
1943
1943
|
minVersion: "12.0.0",
|
|
1944
|
-
version: "21.2.
|
|
1944
|
+
version: "21.2.10",
|
|
1945
1945
|
ngImport: i0,
|
|
1946
1946
|
type: RoutedComponentInputBinder,
|
|
1947
1947
|
decorators: [{
|
|
@@ -1952,7 +1952,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1952
1952
|
class ɵEmptyOutletComponent {
|
|
1953
1953
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1954
1954
|
minVersion: "12.0.0",
|
|
1955
|
-
version: "21.2.
|
|
1955
|
+
version: "21.2.10",
|
|
1956
1956
|
ngImport: i0,
|
|
1957
1957
|
type: ɵEmptyOutletComponent,
|
|
1958
1958
|
deps: [],
|
|
@@ -1960,7 +1960,7 @@ class ɵEmptyOutletComponent {
|
|
|
1960
1960
|
});
|
|
1961
1961
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1962
1962
|
minVersion: "14.0.0",
|
|
1963
|
-
version: "21.2.
|
|
1963
|
+
version: "21.2.10",
|
|
1964
1964
|
type: ɵEmptyOutletComponent,
|
|
1965
1965
|
isStandalone: true,
|
|
1966
1966
|
selector: "ng-component",
|
|
@@ -1981,7 +1981,7 @@ class ɵEmptyOutletComponent {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
i0.ɵɵngDeclareClassMetadata({
|
|
1983
1983
|
minVersion: "12.0.0",
|
|
1984
|
-
version: "21.2.
|
|
1984
|
+
version: "21.2.10",
|
|
1985
1985
|
ngImport: i0,
|
|
1986
1986
|
type: ɵEmptyOutletComponent,
|
|
1987
1987
|
decorators: [{
|
|
@@ -3292,7 +3292,7 @@ class TitleStrategy {
|
|
|
3292
3292
|
}
|
|
3293
3293
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3294
3294
|
minVersion: "12.0.0",
|
|
3295
|
-
version: "21.2.
|
|
3295
|
+
version: "21.2.10",
|
|
3296
3296
|
ngImport: i0,
|
|
3297
3297
|
type: TitleStrategy,
|
|
3298
3298
|
deps: [],
|
|
@@ -3300,7 +3300,7 @@ class TitleStrategy {
|
|
|
3300
3300
|
});
|
|
3301
3301
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3302
3302
|
minVersion: "12.0.0",
|
|
3303
|
-
version: "21.2.
|
|
3303
|
+
version: "21.2.10",
|
|
3304
3304
|
ngImport: i0,
|
|
3305
3305
|
type: TitleStrategy,
|
|
3306
3306
|
providedIn: 'root',
|
|
@@ -3309,7 +3309,7 @@ class TitleStrategy {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
i0.ɵɵngDeclareClassMetadata({
|
|
3311
3311
|
minVersion: "12.0.0",
|
|
3312
|
-
version: "21.2.
|
|
3312
|
+
version: "21.2.10",
|
|
3313
3313
|
ngImport: i0,
|
|
3314
3314
|
type: TitleStrategy,
|
|
3315
3315
|
decorators: [{
|
|
@@ -3334,7 +3334,7 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3336
3336
|
minVersion: "12.0.0",
|
|
3337
|
-
version: "21.2.
|
|
3337
|
+
version: "21.2.10",
|
|
3338
3338
|
ngImport: i0,
|
|
3339
3339
|
type: DefaultTitleStrategy,
|
|
3340
3340
|
deps: [{
|
|
@@ -3344,7 +3344,7 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
3344
3344
|
});
|
|
3345
3345
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3346
3346
|
minVersion: "12.0.0",
|
|
3347
|
-
version: "21.2.
|
|
3347
|
+
version: "21.2.10",
|
|
3348
3348
|
ngImport: i0,
|
|
3349
3349
|
type: DefaultTitleStrategy,
|
|
3350
3350
|
providedIn: 'root'
|
|
@@ -3352,7 +3352,7 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
i0.ɵɵngDeclareClassMetadata({
|
|
3354
3354
|
minVersion: "12.0.0",
|
|
3355
|
-
version: "21.2.
|
|
3355
|
+
version: "21.2.10",
|
|
3356
3356
|
ngImport: i0,
|
|
3357
3357
|
type: DefaultTitleStrategy,
|
|
3358
3358
|
decorators: [{
|
|
@@ -3431,7 +3431,7 @@ class RouterConfigLoader {
|
|
|
3431
3431
|
}
|
|
3432
3432
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3433
3433
|
minVersion: "12.0.0",
|
|
3434
|
-
version: "21.2.
|
|
3434
|
+
version: "21.2.10",
|
|
3435
3435
|
ngImport: i0,
|
|
3436
3436
|
type: RouterConfigLoader,
|
|
3437
3437
|
deps: [],
|
|
@@ -3439,7 +3439,7 @@ class RouterConfigLoader {
|
|
|
3439
3439
|
});
|
|
3440
3440
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3441
3441
|
minVersion: "12.0.0",
|
|
3442
|
-
version: "21.2.
|
|
3442
|
+
version: "21.2.10",
|
|
3443
3443
|
ngImport: i0,
|
|
3444
3444
|
type: RouterConfigLoader,
|
|
3445
3445
|
providedIn: 'root'
|
|
@@ -3447,7 +3447,7 @@ class RouterConfigLoader {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
i0.ɵɵngDeclareClassMetadata({
|
|
3449
3449
|
minVersion: "12.0.0",
|
|
3450
|
-
version: "21.2.
|
|
3450
|
+
version: "21.2.10",
|
|
3451
3451
|
ngImport: i0,
|
|
3452
3452
|
type: RouterConfigLoader,
|
|
3453
3453
|
decorators: [{
|
|
@@ -3512,7 +3512,7 @@ async function maybeResolveResources(value) {
|
|
|
3512
3512
|
class UrlHandlingStrategy {
|
|
3513
3513
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3514
3514
|
minVersion: "12.0.0",
|
|
3515
|
-
version: "21.2.
|
|
3515
|
+
version: "21.2.10",
|
|
3516
3516
|
ngImport: i0,
|
|
3517
3517
|
type: UrlHandlingStrategy,
|
|
3518
3518
|
deps: [],
|
|
@@ -3520,7 +3520,7 @@ class UrlHandlingStrategy {
|
|
|
3520
3520
|
});
|
|
3521
3521
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3522
3522
|
minVersion: "12.0.0",
|
|
3523
|
-
version: "21.2.
|
|
3523
|
+
version: "21.2.10",
|
|
3524
3524
|
ngImport: i0,
|
|
3525
3525
|
type: UrlHandlingStrategy,
|
|
3526
3526
|
providedIn: 'root',
|
|
@@ -3529,7 +3529,7 @@ class UrlHandlingStrategy {
|
|
|
3529
3529
|
}
|
|
3530
3530
|
i0.ɵɵngDeclareClassMetadata({
|
|
3531
3531
|
minVersion: "12.0.0",
|
|
3532
|
-
version: "21.2.
|
|
3532
|
+
version: "21.2.10",
|
|
3533
3533
|
ngImport: i0,
|
|
3534
3534
|
type: UrlHandlingStrategy,
|
|
3535
3535
|
decorators: [{
|
|
@@ -3552,7 +3552,7 @@ class DefaultUrlHandlingStrategy {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3554
3554
|
minVersion: "12.0.0",
|
|
3555
|
-
version: "21.2.
|
|
3555
|
+
version: "21.2.10",
|
|
3556
3556
|
ngImport: i0,
|
|
3557
3557
|
type: DefaultUrlHandlingStrategy,
|
|
3558
3558
|
deps: [],
|
|
@@ -3560,7 +3560,7 @@ class DefaultUrlHandlingStrategy {
|
|
|
3560
3560
|
});
|
|
3561
3561
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3562
3562
|
minVersion: "12.0.0",
|
|
3563
|
-
version: "21.2.
|
|
3563
|
+
version: "21.2.10",
|
|
3564
3564
|
ngImport: i0,
|
|
3565
3565
|
type: DefaultUrlHandlingStrategy,
|
|
3566
3566
|
providedIn: 'root'
|
|
@@ -3568,7 +3568,7 @@ class DefaultUrlHandlingStrategy {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
i0.ɵɵngDeclareClassMetadata({
|
|
3570
3570
|
minVersion: "12.0.0",
|
|
3571
|
-
version: "21.2.
|
|
3571
|
+
version: "21.2.10",
|
|
3572
3572
|
ngImport: i0,
|
|
3573
3573
|
type: DefaultUrlHandlingStrategy,
|
|
3574
3574
|
decorators: [{
|
|
@@ -3967,7 +3967,7 @@ class NavigationTransitions {
|
|
|
3967
3967
|
}
|
|
3968
3968
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
3969
3969
|
minVersion: "12.0.0",
|
|
3970
|
-
version: "21.2.
|
|
3970
|
+
version: "21.2.10",
|
|
3971
3971
|
ngImport: i0,
|
|
3972
3972
|
type: NavigationTransitions,
|
|
3973
3973
|
deps: [],
|
|
@@ -3975,7 +3975,7 @@ class NavigationTransitions {
|
|
|
3975
3975
|
});
|
|
3976
3976
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
3977
3977
|
minVersion: "12.0.0",
|
|
3978
|
-
version: "21.2.
|
|
3978
|
+
version: "21.2.10",
|
|
3979
3979
|
ngImport: i0,
|
|
3980
3980
|
type: NavigationTransitions,
|
|
3981
3981
|
providedIn: 'root'
|
|
@@ -3983,7 +3983,7 @@ class NavigationTransitions {
|
|
|
3983
3983
|
}
|
|
3984
3984
|
i0.ɵɵngDeclareClassMetadata({
|
|
3985
3985
|
minVersion: "12.0.0",
|
|
3986
|
-
version: "21.2.
|
|
3986
|
+
version: "21.2.10",
|
|
3987
3987
|
ngImport: i0,
|
|
3988
3988
|
type: NavigationTransitions,
|
|
3989
3989
|
decorators: [{
|
|
@@ -4056,7 +4056,7 @@ function destroyDetachedRouteHandle(handle) {
|
|
|
4056
4056
|
class RouteReuseStrategy {
|
|
4057
4057
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4058
4058
|
minVersion: "12.0.0",
|
|
4059
|
-
version: "21.2.
|
|
4059
|
+
version: "21.2.10",
|
|
4060
4060
|
ngImport: i0,
|
|
4061
4061
|
type: RouteReuseStrategy,
|
|
4062
4062
|
deps: [],
|
|
@@ -4064,7 +4064,7 @@ class RouteReuseStrategy {
|
|
|
4064
4064
|
});
|
|
4065
4065
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4066
4066
|
minVersion: "12.0.0",
|
|
4067
|
-
version: "21.2.
|
|
4067
|
+
version: "21.2.10",
|
|
4068
4068
|
ngImport: i0,
|
|
4069
4069
|
type: RouteReuseStrategy,
|
|
4070
4070
|
providedIn: 'root',
|
|
@@ -4073,7 +4073,7 @@ class RouteReuseStrategy {
|
|
|
4073
4073
|
}
|
|
4074
4074
|
i0.ɵɵngDeclareClassMetadata({
|
|
4075
4075
|
minVersion: "12.0.0",
|
|
4076
|
-
version: "21.2.
|
|
4076
|
+
version: "21.2.10",
|
|
4077
4077
|
ngImport: i0,
|
|
4078
4078
|
type: RouteReuseStrategy,
|
|
4079
4079
|
decorators: [{
|
|
@@ -4105,7 +4105,7 @@ class BaseRouteReuseStrategy {
|
|
|
4105
4105
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4106
4106
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4107
4107
|
minVersion: "12.0.0",
|
|
4108
|
-
version: "21.2.
|
|
4108
|
+
version: "21.2.10",
|
|
4109
4109
|
ngImport: i0,
|
|
4110
4110
|
type: DefaultRouteReuseStrategy,
|
|
4111
4111
|
deps: null,
|
|
@@ -4113,7 +4113,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
|
4113
4113
|
});
|
|
4114
4114
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4115
4115
|
minVersion: "12.0.0",
|
|
4116
|
-
version: "21.2.
|
|
4116
|
+
version: "21.2.10",
|
|
4117
4117
|
ngImport: i0,
|
|
4118
4118
|
type: DefaultRouteReuseStrategy,
|
|
4119
4119
|
providedIn: 'root'
|
|
@@ -4121,7 +4121,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
|
4121
4121
|
}
|
|
4122
4122
|
i0.ɵɵngDeclareClassMetadata({
|
|
4123
4123
|
minVersion: "12.0.0",
|
|
4124
|
-
version: "21.2.
|
|
4124
|
+
version: "21.2.10",
|
|
4125
4125
|
ngImport: i0,
|
|
4126
4126
|
type: DefaultRouteReuseStrategy,
|
|
4127
4127
|
decorators: [{
|
|
@@ -4159,6 +4159,14 @@ class StateManager {
|
|
|
4159
4159
|
const path = url instanceof UrlTree ? this.urlSerializer.serialize(url) : url;
|
|
4160
4160
|
return path;
|
|
4161
4161
|
}
|
|
4162
|
+
routerUrlState(navigation) {
|
|
4163
|
+
if (navigation?.targetBrowserUrl === undefined || navigation?.finalUrl === undefined) {
|
|
4164
|
+
return {};
|
|
4165
|
+
}
|
|
4166
|
+
return {
|
|
4167
|
+
ɵrouterUrl: this.urlSerializer.serialize(navigation.finalUrl)
|
|
4168
|
+
};
|
|
4169
|
+
}
|
|
4162
4170
|
commitTransition({
|
|
4163
4171
|
targetRouterState,
|
|
4164
4172
|
finalUrl,
|
|
@@ -4195,7 +4203,7 @@ class StateManager {
|
|
|
4195
4203
|
}
|
|
4196
4204
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4197
4205
|
minVersion: "12.0.0",
|
|
4198
|
-
version: "21.2.
|
|
4206
|
+
version: "21.2.10",
|
|
4199
4207
|
ngImport: i0,
|
|
4200
4208
|
type: StateManager,
|
|
4201
4209
|
deps: [],
|
|
@@ -4203,7 +4211,7 @@ class StateManager {
|
|
|
4203
4211
|
});
|
|
4204
4212
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4205
4213
|
minVersion: "12.0.0",
|
|
4206
|
-
version: "21.2.
|
|
4214
|
+
version: "21.2.10",
|
|
4207
4215
|
ngImport: i0,
|
|
4208
4216
|
type: StateManager,
|
|
4209
4217
|
providedIn: 'root',
|
|
@@ -4212,7 +4220,7 @@ class StateManager {
|
|
|
4212
4220
|
}
|
|
4213
4221
|
i0.ɵɵngDeclareClassMetadata({
|
|
4214
4222
|
minVersion: "12.0.0",
|
|
4215
|
-
version: "21.2.
|
|
4223
|
+
version: "21.2.10",
|
|
4216
4224
|
ngImport: i0,
|
|
4217
4225
|
type: StateManager,
|
|
4218
4226
|
decorators: [{
|
|
@@ -4268,10 +4276,11 @@ class HistoryStateManager extends StateManager {
|
|
|
4268
4276
|
this.currentPageId = this.browserPageId;
|
|
4269
4277
|
}
|
|
4270
4278
|
}
|
|
4271
|
-
setBrowserUrl(path, {
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4279
|
+
setBrowserUrl(path, navigation) {
|
|
4280
|
+
const {
|
|
4281
|
+
extras,
|
|
4282
|
+
id
|
|
4283
|
+
} = navigation;
|
|
4275
4284
|
const {
|
|
4276
4285
|
replaceUrl,
|
|
4277
4286
|
state
|
|
@@ -4280,13 +4289,13 @@ class HistoryStateManager extends StateManager {
|
|
|
4280
4289
|
const currentBrowserPageId = this.browserPageId;
|
|
4281
4290
|
const newState = {
|
|
4282
4291
|
...state,
|
|
4283
|
-
...this.generateNgRouterState(id, currentBrowserPageId)
|
|
4292
|
+
...this.generateNgRouterState(id, currentBrowserPageId, navigation)
|
|
4284
4293
|
};
|
|
4285
4294
|
this.location.replaceState(path, '', newState);
|
|
4286
4295
|
} else {
|
|
4287
4296
|
const newState = {
|
|
4288
4297
|
...state,
|
|
4289
|
-
...this.generateNgRouterState(id, this.browserPageId + 1)
|
|
4298
|
+
...this.generateNgRouterState(id, this.browserPageId + 1, navigation)
|
|
4290
4299
|
};
|
|
4291
4300
|
this.location.go(path, '', newState);
|
|
4292
4301
|
}
|
|
@@ -4318,20 +4327,22 @@ class HistoryStateManager extends StateManager {
|
|
|
4318
4327
|
resetUrlToCurrentUrlTree() {
|
|
4319
4328
|
this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));
|
|
4320
4329
|
}
|
|
4321
|
-
generateNgRouterState(navigationId, routerPageId) {
|
|
4330
|
+
generateNgRouterState(navigationId, routerPageId, navigation) {
|
|
4322
4331
|
if (this.canceledNavigationResolution === 'computed') {
|
|
4323
4332
|
return {
|
|
4324
4333
|
navigationId,
|
|
4325
|
-
ɵrouterPageId: routerPageId
|
|
4334
|
+
ɵrouterPageId: routerPageId,
|
|
4335
|
+
...this.routerUrlState(navigation)
|
|
4326
4336
|
};
|
|
4327
4337
|
}
|
|
4328
4338
|
return {
|
|
4329
|
-
navigationId
|
|
4339
|
+
navigationId,
|
|
4340
|
+
...this.routerUrlState(navigation)
|
|
4330
4341
|
};
|
|
4331
4342
|
}
|
|
4332
4343
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4333
4344
|
minVersion: "12.0.0",
|
|
4334
|
-
version: "21.2.
|
|
4345
|
+
version: "21.2.10",
|
|
4335
4346
|
ngImport: i0,
|
|
4336
4347
|
type: HistoryStateManager,
|
|
4337
4348
|
deps: null,
|
|
@@ -4339,7 +4350,7 @@ class HistoryStateManager extends StateManager {
|
|
|
4339
4350
|
});
|
|
4340
4351
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4341
4352
|
minVersion: "12.0.0",
|
|
4342
|
-
version: "21.2.
|
|
4353
|
+
version: "21.2.10",
|
|
4343
4354
|
ngImport: i0,
|
|
4344
4355
|
type: HistoryStateManager,
|
|
4345
4356
|
providedIn: 'root'
|
|
@@ -4347,7 +4358,7 @@ class HistoryStateManager extends StateManager {
|
|
|
4347
4358
|
}
|
|
4348
4359
|
i0.ɵɵngDeclareClassMetadata({
|
|
4349
4360
|
minVersion: "12.0.0",
|
|
4350
|
-
version: "21.2.
|
|
4361
|
+
version: "21.2.10",
|
|
4351
4362
|
ngImport: i0,
|
|
4352
4363
|
type: HistoryStateManager,
|
|
4353
4364
|
decorators: [{
|
|
@@ -4477,17 +4488,25 @@ class Router {
|
|
|
4477
4488
|
}
|
|
4478
4489
|
navigateToSyncWithBrowser(url, source, state, extras) {
|
|
4479
4490
|
const restoredState = state?.navigationId ? state : null;
|
|
4491
|
+
const routerUrl = state?.ɵrouterUrl ?? url;
|
|
4492
|
+
if (state?.ɵrouterUrl) {
|
|
4493
|
+
extras = {
|
|
4494
|
+
...extras,
|
|
4495
|
+
browserUrl: url
|
|
4496
|
+
};
|
|
4497
|
+
}
|
|
4480
4498
|
if (state) {
|
|
4481
4499
|
const stateCopy = {
|
|
4482
4500
|
...state
|
|
4483
4501
|
};
|
|
4484
4502
|
delete stateCopy.navigationId;
|
|
4485
4503
|
delete stateCopy.ɵrouterPageId;
|
|
4504
|
+
delete stateCopy.ɵrouterUrl;
|
|
4486
4505
|
if (Object.keys(stateCopy).length !== 0) {
|
|
4487
4506
|
extras.state = stateCopy;
|
|
4488
4507
|
}
|
|
4489
4508
|
}
|
|
4490
|
-
const urlTree = this.parseUrl(
|
|
4509
|
+
const urlTree = this.parseUrl(routerUrl);
|
|
4491
4510
|
this.scheduleNavigation(urlTree, source, restoredState, extras).catch(e => {
|
|
4492
4511
|
if (this.disposed) {
|
|
4493
4512
|
return;
|
|
@@ -4650,7 +4669,7 @@ class Router {
|
|
|
4650
4669
|
}
|
|
4651
4670
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4652
4671
|
minVersion: "12.0.0",
|
|
4653
|
-
version: "21.2.
|
|
4672
|
+
version: "21.2.10",
|
|
4654
4673
|
ngImport: i0,
|
|
4655
4674
|
type: Router,
|
|
4656
4675
|
deps: [],
|
|
@@ -4658,7 +4677,7 @@ class Router {
|
|
|
4658
4677
|
});
|
|
4659
4678
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
4660
4679
|
minVersion: "12.0.0",
|
|
4661
|
-
version: "21.2.
|
|
4680
|
+
version: "21.2.10",
|
|
4662
4681
|
ngImport: i0,
|
|
4663
4682
|
type: Router,
|
|
4664
4683
|
providedIn: 'root'
|
|
@@ -4666,7 +4685,7 @@ class Router {
|
|
|
4666
4685
|
}
|
|
4667
4686
|
i0.ɵɵngDeclareClassMetadata({
|
|
4668
4687
|
minVersion: "12.0.0",
|
|
4669
|
-
version: "21.2.
|
|
4688
|
+
version: "21.2.10",
|
|
4670
4689
|
ngImport: i0,
|
|
4671
4690
|
type: Router,
|
|
4672
4691
|
decorators: [{
|