@angular/router 21.2.6 → 21.2.8

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.6
2
+ * @license Angular v21.2.8
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.6",
330
+ version: "21.2.8",
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.6",
338
+ version: "21.2.8",
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.6",
347
+ version: "21.2.8",
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.6",
1304
+ version: "21.2.8",
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.6",
1314
+ version: "21.2.8",
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.6",
1322
+ version: "21.2.8",
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.6",
1779
+ version: "21.2.8",
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.6",
1787
+ version: "21.2.8",
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.6",
1820
+ version: "21.2.8",
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.6",
1929
+ version: "21.2.8",
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.6",
1937
+ version: "21.2.8",
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.6",
1944
+ version: "21.2.8",
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.6",
1955
+ version: "21.2.8",
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.6",
1963
+ version: "21.2.8",
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.6",
1984
+ version: "21.2.8",
1985
1985
  ngImport: i0,
1986
1986
  type: ɵEmptyOutletComponent,
1987
1987
  decorators: [{
@@ -2823,8 +2823,8 @@ function match(segmentGroup, route, segments) {
2823
2823
  positionalParamSegments: res.posParams ?? {}
2824
2824
  };
2825
2825
  }
2826
- function split(segmentGroup, consumedSegments, slicedSegments, config) {
2827
- if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {
2826
+ function split(segmentGroup, consumedSegments, slicedSegments, config, outlet) {
2827
+ if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config, outlet)) {
2828
2828
  const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));
2829
2829
  return {
2830
2830
  segmentGroup: s,
@@ -2868,8 +2868,15 @@ function createChildrenForEmptyPaths(routes, primarySegment) {
2868
2868
  }
2869
2869
  return res;
2870
2870
  }
2871
- function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {
2872
- return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);
2871
+ function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes, outlet) {
2872
+ return routes.some(r => {
2873
+ const matchesEmpty = emptyPathMatch(segmentGroup, slicedSegments, r);
2874
+ if (!matchesEmpty) return false;
2875
+ const isNamedOutlet = getOutlet(r) !== PRIMARY_OUTLET;
2876
+ if (!isNamedOutlet) return false;
2877
+ const isSelfEvaluating = outlet !== undefined && getOutlet(r) === outlet;
2878
+ return !isSelfEvaluating;
2879
+ });
2873
2880
  }
2874
2881
  function containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {
2875
2882
  return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r));
@@ -3071,7 +3078,7 @@ class Recognizer {
3071
3078
  const {
3072
3079
  segmentGroup,
3073
3080
  slicedSegments
3074
- } = split(rawSegment, consumedSegments, remainingSegments, childConfig);
3081
+ } = split(rawSegment, consumedSegments, remainingSegments, childConfig, outlet);
3075
3082
  if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
3076
3083
  const children = await this.processChildren(childInjector, childConfig, segmentGroup, snapshot);
3077
3084
  return new TreeNode(snapshot, children);
@@ -3285,7 +3292,7 @@ class TitleStrategy {
3285
3292
  }
3286
3293
  static ɵfac = i0.ɵɵngDeclareFactory({
3287
3294
  minVersion: "12.0.0",
3288
- version: "21.2.6",
3295
+ version: "21.2.8",
3289
3296
  ngImport: i0,
3290
3297
  type: TitleStrategy,
3291
3298
  deps: [],
@@ -3293,7 +3300,7 @@ class TitleStrategy {
3293
3300
  });
3294
3301
  static ɵprov = i0.ɵɵngDeclareInjectable({
3295
3302
  minVersion: "12.0.0",
3296
- version: "21.2.6",
3303
+ version: "21.2.8",
3297
3304
  ngImport: i0,
3298
3305
  type: TitleStrategy,
3299
3306
  providedIn: 'root',
@@ -3302,7 +3309,7 @@ class TitleStrategy {
3302
3309
  }
3303
3310
  i0.ɵɵngDeclareClassMetadata({
3304
3311
  minVersion: "12.0.0",
3305
- version: "21.2.6",
3312
+ version: "21.2.8",
3306
3313
  ngImport: i0,
3307
3314
  type: TitleStrategy,
3308
3315
  decorators: [{
@@ -3327,7 +3334,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3327
3334
  }
3328
3335
  static ɵfac = i0.ɵɵngDeclareFactory({
3329
3336
  minVersion: "12.0.0",
3330
- version: "21.2.6",
3337
+ version: "21.2.8",
3331
3338
  ngImport: i0,
3332
3339
  type: DefaultTitleStrategy,
3333
3340
  deps: [{
@@ -3337,7 +3344,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3337
3344
  });
3338
3345
  static ɵprov = i0.ɵɵngDeclareInjectable({
3339
3346
  minVersion: "12.0.0",
3340
- version: "21.2.6",
3347
+ version: "21.2.8",
3341
3348
  ngImport: i0,
3342
3349
  type: DefaultTitleStrategy,
3343
3350
  providedIn: 'root'
@@ -3345,7 +3352,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3345
3352
  }
3346
3353
  i0.ɵɵngDeclareClassMetadata({
3347
3354
  minVersion: "12.0.0",
3348
- version: "21.2.6",
3355
+ version: "21.2.8",
3349
3356
  ngImport: i0,
3350
3357
  type: DefaultTitleStrategy,
3351
3358
  decorators: [{
@@ -3424,7 +3431,7 @@ class RouterConfigLoader {
3424
3431
  }
3425
3432
  static ɵfac = i0.ɵɵngDeclareFactory({
3426
3433
  minVersion: "12.0.0",
3427
- version: "21.2.6",
3434
+ version: "21.2.8",
3428
3435
  ngImport: i0,
3429
3436
  type: RouterConfigLoader,
3430
3437
  deps: [],
@@ -3432,7 +3439,7 @@ class RouterConfigLoader {
3432
3439
  });
3433
3440
  static ɵprov = i0.ɵɵngDeclareInjectable({
3434
3441
  minVersion: "12.0.0",
3435
- version: "21.2.6",
3442
+ version: "21.2.8",
3436
3443
  ngImport: i0,
3437
3444
  type: RouterConfigLoader,
3438
3445
  providedIn: 'root'
@@ -3440,7 +3447,7 @@ class RouterConfigLoader {
3440
3447
  }
3441
3448
  i0.ɵɵngDeclareClassMetadata({
3442
3449
  minVersion: "12.0.0",
3443
- version: "21.2.6",
3450
+ version: "21.2.8",
3444
3451
  ngImport: i0,
3445
3452
  type: RouterConfigLoader,
3446
3453
  decorators: [{
@@ -3505,7 +3512,7 @@ async function maybeResolveResources(value) {
3505
3512
  class UrlHandlingStrategy {
3506
3513
  static ɵfac = i0.ɵɵngDeclareFactory({
3507
3514
  minVersion: "12.0.0",
3508
- version: "21.2.6",
3515
+ version: "21.2.8",
3509
3516
  ngImport: i0,
3510
3517
  type: UrlHandlingStrategy,
3511
3518
  deps: [],
@@ -3513,7 +3520,7 @@ class UrlHandlingStrategy {
3513
3520
  });
3514
3521
  static ɵprov = i0.ɵɵngDeclareInjectable({
3515
3522
  minVersion: "12.0.0",
3516
- version: "21.2.6",
3523
+ version: "21.2.8",
3517
3524
  ngImport: i0,
3518
3525
  type: UrlHandlingStrategy,
3519
3526
  providedIn: 'root',
@@ -3522,7 +3529,7 @@ class UrlHandlingStrategy {
3522
3529
  }
3523
3530
  i0.ɵɵngDeclareClassMetadata({
3524
3531
  minVersion: "12.0.0",
3525
- version: "21.2.6",
3532
+ version: "21.2.8",
3526
3533
  ngImport: i0,
3527
3534
  type: UrlHandlingStrategy,
3528
3535
  decorators: [{
@@ -3545,7 +3552,7 @@ class DefaultUrlHandlingStrategy {
3545
3552
  }
3546
3553
  static ɵfac = i0.ɵɵngDeclareFactory({
3547
3554
  minVersion: "12.0.0",
3548
- version: "21.2.6",
3555
+ version: "21.2.8",
3549
3556
  ngImport: i0,
3550
3557
  type: DefaultUrlHandlingStrategy,
3551
3558
  deps: [],
@@ -3553,7 +3560,7 @@ class DefaultUrlHandlingStrategy {
3553
3560
  });
3554
3561
  static ɵprov = i0.ɵɵngDeclareInjectable({
3555
3562
  minVersion: "12.0.0",
3556
- version: "21.2.6",
3563
+ version: "21.2.8",
3557
3564
  ngImport: i0,
3558
3565
  type: DefaultUrlHandlingStrategy,
3559
3566
  providedIn: 'root'
@@ -3561,7 +3568,7 @@ class DefaultUrlHandlingStrategy {
3561
3568
  }
3562
3569
  i0.ɵɵngDeclareClassMetadata({
3563
3570
  minVersion: "12.0.0",
3564
- version: "21.2.6",
3571
+ version: "21.2.8",
3565
3572
  ngImport: i0,
3566
3573
  type: DefaultUrlHandlingStrategy,
3567
3574
  decorators: [{
@@ -3960,7 +3967,7 @@ class NavigationTransitions {
3960
3967
  }
3961
3968
  static ɵfac = i0.ɵɵngDeclareFactory({
3962
3969
  minVersion: "12.0.0",
3963
- version: "21.2.6",
3970
+ version: "21.2.8",
3964
3971
  ngImport: i0,
3965
3972
  type: NavigationTransitions,
3966
3973
  deps: [],
@@ -3968,7 +3975,7 @@ class NavigationTransitions {
3968
3975
  });
3969
3976
  static ɵprov = i0.ɵɵngDeclareInjectable({
3970
3977
  minVersion: "12.0.0",
3971
- version: "21.2.6",
3978
+ version: "21.2.8",
3972
3979
  ngImport: i0,
3973
3980
  type: NavigationTransitions,
3974
3981
  providedIn: 'root'
@@ -3976,7 +3983,7 @@ class NavigationTransitions {
3976
3983
  }
3977
3984
  i0.ɵɵngDeclareClassMetadata({
3978
3985
  minVersion: "12.0.0",
3979
- version: "21.2.6",
3986
+ version: "21.2.8",
3980
3987
  ngImport: i0,
3981
3988
  type: NavigationTransitions,
3982
3989
  decorators: [{
@@ -4049,7 +4056,7 @@ function destroyDetachedRouteHandle(handle) {
4049
4056
  class RouteReuseStrategy {
4050
4057
  static ɵfac = i0.ɵɵngDeclareFactory({
4051
4058
  minVersion: "12.0.0",
4052
- version: "21.2.6",
4059
+ version: "21.2.8",
4053
4060
  ngImport: i0,
4054
4061
  type: RouteReuseStrategy,
4055
4062
  deps: [],
@@ -4057,7 +4064,7 @@ class RouteReuseStrategy {
4057
4064
  });
4058
4065
  static ɵprov = i0.ɵɵngDeclareInjectable({
4059
4066
  minVersion: "12.0.0",
4060
- version: "21.2.6",
4067
+ version: "21.2.8",
4061
4068
  ngImport: i0,
4062
4069
  type: RouteReuseStrategy,
4063
4070
  providedIn: 'root',
@@ -4066,7 +4073,7 @@ class RouteReuseStrategy {
4066
4073
  }
4067
4074
  i0.ɵɵngDeclareClassMetadata({
4068
4075
  minVersion: "12.0.0",
4069
- version: "21.2.6",
4076
+ version: "21.2.8",
4070
4077
  ngImport: i0,
4071
4078
  type: RouteReuseStrategy,
4072
4079
  decorators: [{
@@ -4098,7 +4105,7 @@ class BaseRouteReuseStrategy {
4098
4105
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4099
4106
  static ɵfac = i0.ɵɵngDeclareFactory({
4100
4107
  minVersion: "12.0.0",
4101
- version: "21.2.6",
4108
+ version: "21.2.8",
4102
4109
  ngImport: i0,
4103
4110
  type: DefaultRouteReuseStrategy,
4104
4111
  deps: null,
@@ -4106,7 +4113,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4106
4113
  });
4107
4114
  static ɵprov = i0.ɵɵngDeclareInjectable({
4108
4115
  minVersion: "12.0.0",
4109
- version: "21.2.6",
4116
+ version: "21.2.8",
4110
4117
  ngImport: i0,
4111
4118
  type: DefaultRouteReuseStrategy,
4112
4119
  providedIn: 'root'
@@ -4114,7 +4121,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4114
4121
  }
4115
4122
  i0.ɵɵngDeclareClassMetadata({
4116
4123
  minVersion: "12.0.0",
4117
- version: "21.2.6",
4124
+ version: "21.2.8",
4118
4125
  ngImport: i0,
4119
4126
  type: DefaultRouteReuseStrategy,
4120
4127
  decorators: [{
@@ -4188,7 +4195,7 @@ class StateManager {
4188
4195
  }
4189
4196
  static ɵfac = i0.ɵɵngDeclareFactory({
4190
4197
  minVersion: "12.0.0",
4191
- version: "21.2.6",
4198
+ version: "21.2.8",
4192
4199
  ngImport: i0,
4193
4200
  type: StateManager,
4194
4201
  deps: [],
@@ -4196,7 +4203,7 @@ class StateManager {
4196
4203
  });
4197
4204
  static ɵprov = i0.ɵɵngDeclareInjectable({
4198
4205
  minVersion: "12.0.0",
4199
- version: "21.2.6",
4206
+ version: "21.2.8",
4200
4207
  ngImport: i0,
4201
4208
  type: StateManager,
4202
4209
  providedIn: 'root',
@@ -4205,7 +4212,7 @@ class StateManager {
4205
4212
  }
4206
4213
  i0.ɵɵngDeclareClassMetadata({
4207
4214
  minVersion: "12.0.0",
4208
- version: "21.2.6",
4215
+ version: "21.2.8",
4209
4216
  ngImport: i0,
4210
4217
  type: StateManager,
4211
4218
  decorators: [{
@@ -4324,7 +4331,7 @@ class HistoryStateManager extends StateManager {
4324
4331
  }
4325
4332
  static ɵfac = i0.ɵɵngDeclareFactory({
4326
4333
  minVersion: "12.0.0",
4327
- version: "21.2.6",
4334
+ version: "21.2.8",
4328
4335
  ngImport: i0,
4329
4336
  type: HistoryStateManager,
4330
4337
  deps: null,
@@ -4332,7 +4339,7 @@ class HistoryStateManager extends StateManager {
4332
4339
  });
4333
4340
  static ɵprov = i0.ɵɵngDeclareInjectable({
4334
4341
  minVersion: "12.0.0",
4335
- version: "21.2.6",
4342
+ version: "21.2.8",
4336
4343
  ngImport: i0,
4337
4344
  type: HistoryStateManager,
4338
4345
  providedIn: 'root'
@@ -4340,7 +4347,7 @@ class HistoryStateManager extends StateManager {
4340
4347
  }
4341
4348
  i0.ɵɵngDeclareClassMetadata({
4342
4349
  minVersion: "12.0.0",
4343
- version: "21.2.6",
4350
+ version: "21.2.8",
4344
4351
  ngImport: i0,
4345
4352
  type: HistoryStateManager,
4346
4353
  decorators: [{
@@ -4643,7 +4650,7 @@ class Router {
4643
4650
  }
4644
4651
  static ɵfac = i0.ɵɵngDeclareFactory({
4645
4652
  minVersion: "12.0.0",
4646
- version: "21.2.6",
4653
+ version: "21.2.8",
4647
4654
  ngImport: i0,
4648
4655
  type: Router,
4649
4656
  deps: [],
@@ -4651,7 +4658,7 @@ class Router {
4651
4658
  });
4652
4659
  static ɵprov = i0.ɵɵngDeclareInjectable({
4653
4660
  minVersion: "12.0.0",
4654
- version: "21.2.6",
4661
+ version: "21.2.8",
4655
4662
  ngImport: i0,
4656
4663
  type: Router,
4657
4664
  providedIn: 'root'
@@ -4659,7 +4666,7 @@ class Router {
4659
4666
  }
4660
4667
  i0.ɵɵngDeclareClassMetadata({
4661
4668
  minVersion: "12.0.0",
4662
- version: "21.2.6",
4669
+ version: "21.2.8",
4663
4670
  ngImport: i0,
4664
4671
  type: Router,
4665
4672
  decorators: [{