@angular/router 22.0.0-next.5 → 22.0.0-next.7

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 v22.0.0-next.5
2
+ * @license Angular v22.0.0-next.7
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: "22.0.0-next.5",
330
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
338
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
347
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
1304
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
1314
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
1322
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
1779
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
1787
+ version: "22.0.0-next.7",
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: "22.0.0-next.5",
1820
+ version: "22.0.0-next.7",
1821
1821
  ngImport: i0,
1822
1822
  type: RouterOutlet,
1823
1823
  decorators: [{
@@ -1931,7 +1931,7 @@ class RoutedComponentInputBinder {
1931
1931
  }
1932
1932
  static ɵfac = i0.ɵɵngDeclareFactory({
1933
1933
  minVersion: "12.0.0",
1934
- version: "22.0.0-next.5",
1934
+ version: "22.0.0-next.7",
1935
1935
  ngImport: i0,
1936
1936
  type: RoutedComponentInputBinder,
1937
1937
  deps: "invalid",
@@ -1939,14 +1939,14 @@ class RoutedComponentInputBinder {
1939
1939
  });
1940
1940
  static ɵprov = i0.ɵɵngDeclareInjectable({
1941
1941
  minVersion: "12.0.0",
1942
- version: "22.0.0-next.5",
1942
+ version: "22.0.0-next.7",
1943
1943
  ngImport: i0,
1944
1944
  type: RoutedComponentInputBinder
1945
1945
  });
1946
1946
  }
1947
1947
  i0.ɵɵngDeclareClassMetadata({
1948
1948
  minVersion: "12.0.0",
1949
- version: "22.0.0-next.5",
1949
+ version: "22.0.0-next.7",
1950
1950
  ngImport: i0,
1951
1951
  type: RoutedComponentInputBinder,
1952
1952
  decorators: [{
@@ -1960,7 +1960,7 @@ i0.ɵɵngDeclareClassMetadata({
1960
1960
  class ɵEmptyOutletComponent {
1961
1961
  static ɵfac = i0.ɵɵngDeclareFactory({
1962
1962
  minVersion: "12.0.0",
1963
- version: "22.0.0-next.5",
1963
+ version: "22.0.0-next.7",
1964
1964
  ngImport: i0,
1965
1965
  type: ɵEmptyOutletComponent,
1966
1966
  deps: [],
@@ -1968,7 +1968,7 @@ class ɵEmptyOutletComponent {
1968
1968
  });
1969
1969
  static ɵcmp = i0.ɵɵngDeclareComponent({
1970
1970
  minVersion: "14.0.0",
1971
- version: "22.0.0-next.5",
1971
+ version: "22.0.0-next.7",
1972
1972
  type: ɵEmptyOutletComponent,
1973
1973
  isStandalone: true,
1974
1974
  selector: "ng-component",
@@ -1989,7 +1989,7 @@ class ɵEmptyOutletComponent {
1989
1989
  }
1990
1990
  i0.ɵɵngDeclareClassMetadata({
1991
1991
  minVersion: "12.0.0",
1992
- version: "22.0.0-next.5",
1992
+ version: "22.0.0-next.7",
1993
1993
  ngImport: i0,
1994
1994
  type: ɵEmptyOutletComponent,
1995
1995
  decorators: [{
@@ -2831,8 +2831,8 @@ function match(segmentGroup, route, segments) {
2831
2831
  positionalParamSegments: res.posParams ?? {}
2832
2832
  };
2833
2833
  }
2834
- function split(segmentGroup, consumedSegments, slicedSegments, config) {
2835
- if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {
2834
+ function split(segmentGroup, consumedSegments, slicedSegments, config, outlet) {
2835
+ if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config, outlet)) {
2836
2836
  const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));
2837
2837
  return {
2838
2838
  segmentGroup: s,
@@ -2876,8 +2876,15 @@ function createChildrenForEmptyPaths(routes, primarySegment) {
2876
2876
  }
2877
2877
  return res;
2878
2878
  }
2879
- function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {
2880
- return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);
2879
+ function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes, outlet) {
2880
+ return routes.some(r => {
2881
+ const matchesEmpty = emptyPathMatch(segmentGroup, slicedSegments, r);
2882
+ if (!matchesEmpty) return false;
2883
+ const isNamedOutlet = getOutlet(r) !== PRIMARY_OUTLET;
2884
+ if (!isNamedOutlet) return false;
2885
+ const isSelfEvaluating = outlet !== undefined && getOutlet(r) === outlet;
2886
+ return !isSelfEvaluating;
2887
+ });
2881
2888
  }
2882
2889
  function containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {
2883
2890
  return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r));
@@ -3079,7 +3086,7 @@ class Recognizer {
3079
3086
  const {
3080
3087
  segmentGroup,
3081
3088
  slicedSegments
3082
- } = split(rawSegment, consumedSegments, remainingSegments, childConfig);
3089
+ } = split(rawSegment, consumedSegments, remainingSegments, childConfig, outlet);
3083
3090
  if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
3084
3091
  const children = await this.processChildren(childInjector, childConfig, segmentGroup, snapshot);
3085
3092
  return new TreeNode(snapshot, children);
@@ -3293,7 +3300,7 @@ class TitleStrategy {
3293
3300
  }
3294
3301
  static ɵfac = i0.ɵɵngDeclareFactory({
3295
3302
  minVersion: "12.0.0",
3296
- version: "22.0.0-next.5",
3303
+ version: "22.0.0-next.7",
3297
3304
  ngImport: i0,
3298
3305
  type: TitleStrategy,
3299
3306
  deps: [],
@@ -3301,7 +3308,7 @@ class TitleStrategy {
3301
3308
  });
3302
3309
  static ɵprov = i0.ɵɵngDeclareInjectable({
3303
3310
  minVersion: "12.0.0",
3304
- version: "22.0.0-next.5",
3311
+ version: "22.0.0-next.7",
3305
3312
  ngImport: i0,
3306
3313
  type: TitleStrategy,
3307
3314
  providedIn: 'root',
@@ -3310,7 +3317,7 @@ class TitleStrategy {
3310
3317
  }
3311
3318
  i0.ɵɵngDeclareClassMetadata({
3312
3319
  minVersion: "12.0.0",
3313
- version: "22.0.0-next.5",
3320
+ version: "22.0.0-next.7",
3314
3321
  ngImport: i0,
3315
3322
  type: TitleStrategy,
3316
3323
  decorators: [{
@@ -3335,7 +3342,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3335
3342
  }
3336
3343
  static ɵfac = i0.ɵɵngDeclareFactory({
3337
3344
  minVersion: "12.0.0",
3338
- version: "22.0.0-next.5",
3345
+ version: "22.0.0-next.7",
3339
3346
  ngImport: i0,
3340
3347
  type: DefaultTitleStrategy,
3341
3348
  deps: [{
@@ -3345,7 +3352,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3345
3352
  });
3346
3353
  static ɵprov = i0.ɵɵngDeclareInjectable({
3347
3354
  minVersion: "12.0.0",
3348
- version: "22.0.0-next.5",
3355
+ version: "22.0.0-next.7",
3349
3356
  ngImport: i0,
3350
3357
  type: DefaultTitleStrategy,
3351
3358
  providedIn: 'root'
@@ -3353,7 +3360,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3353
3360
  }
3354
3361
  i0.ɵɵngDeclareClassMetadata({
3355
3362
  minVersion: "12.0.0",
3356
- version: "22.0.0-next.5",
3363
+ version: "22.0.0-next.7",
3357
3364
  ngImport: i0,
3358
3365
  type: DefaultTitleStrategy,
3359
3366
  decorators: [{
@@ -3432,7 +3439,7 @@ class RouterConfigLoader {
3432
3439
  }
3433
3440
  static ɵfac = i0.ɵɵngDeclareFactory({
3434
3441
  minVersion: "12.0.0",
3435
- version: "22.0.0-next.5",
3442
+ version: "22.0.0-next.7",
3436
3443
  ngImport: i0,
3437
3444
  type: RouterConfigLoader,
3438
3445
  deps: [],
@@ -3440,7 +3447,7 @@ class RouterConfigLoader {
3440
3447
  });
3441
3448
  static ɵprov = i0.ɵɵngDeclareInjectable({
3442
3449
  minVersion: "12.0.0",
3443
- version: "22.0.0-next.5",
3450
+ version: "22.0.0-next.7",
3444
3451
  ngImport: i0,
3445
3452
  type: RouterConfigLoader,
3446
3453
  providedIn: 'root'
@@ -3448,7 +3455,7 @@ class RouterConfigLoader {
3448
3455
  }
3449
3456
  i0.ɵɵngDeclareClassMetadata({
3450
3457
  minVersion: "12.0.0",
3451
- version: "22.0.0-next.5",
3458
+ version: "22.0.0-next.7",
3452
3459
  ngImport: i0,
3453
3460
  type: RouterConfigLoader,
3454
3461
  decorators: [{
@@ -3513,7 +3520,7 @@ async function maybeResolveResources(value) {
3513
3520
  class UrlHandlingStrategy {
3514
3521
  static ɵfac = i0.ɵɵngDeclareFactory({
3515
3522
  minVersion: "12.0.0",
3516
- version: "22.0.0-next.5",
3523
+ version: "22.0.0-next.7",
3517
3524
  ngImport: i0,
3518
3525
  type: UrlHandlingStrategy,
3519
3526
  deps: [],
@@ -3521,7 +3528,7 @@ class UrlHandlingStrategy {
3521
3528
  });
3522
3529
  static ɵprov = i0.ɵɵngDeclareInjectable({
3523
3530
  minVersion: "12.0.0",
3524
- version: "22.0.0-next.5",
3531
+ version: "22.0.0-next.7",
3525
3532
  ngImport: i0,
3526
3533
  type: UrlHandlingStrategy,
3527
3534
  providedIn: 'root',
@@ -3530,7 +3537,7 @@ class UrlHandlingStrategy {
3530
3537
  }
3531
3538
  i0.ɵɵngDeclareClassMetadata({
3532
3539
  minVersion: "12.0.0",
3533
- version: "22.0.0-next.5",
3540
+ version: "22.0.0-next.7",
3534
3541
  ngImport: i0,
3535
3542
  type: UrlHandlingStrategy,
3536
3543
  decorators: [{
@@ -3553,7 +3560,7 @@ class DefaultUrlHandlingStrategy {
3553
3560
  }
3554
3561
  static ɵfac = i0.ɵɵngDeclareFactory({
3555
3562
  minVersion: "12.0.0",
3556
- version: "22.0.0-next.5",
3563
+ version: "22.0.0-next.7",
3557
3564
  ngImport: i0,
3558
3565
  type: DefaultUrlHandlingStrategy,
3559
3566
  deps: [],
@@ -3561,7 +3568,7 @@ class DefaultUrlHandlingStrategy {
3561
3568
  });
3562
3569
  static ɵprov = i0.ɵɵngDeclareInjectable({
3563
3570
  minVersion: "12.0.0",
3564
- version: "22.0.0-next.5",
3571
+ version: "22.0.0-next.7",
3565
3572
  ngImport: i0,
3566
3573
  type: DefaultUrlHandlingStrategy,
3567
3574
  providedIn: 'root'
@@ -3569,7 +3576,7 @@ class DefaultUrlHandlingStrategy {
3569
3576
  }
3570
3577
  i0.ɵɵngDeclareClassMetadata({
3571
3578
  minVersion: "12.0.0",
3572
- version: "22.0.0-next.5",
3579
+ version: "22.0.0-next.7",
3573
3580
  ngImport: i0,
3574
3581
  type: DefaultUrlHandlingStrategy,
3575
3582
  decorators: [{
@@ -3968,7 +3975,7 @@ class NavigationTransitions {
3968
3975
  }
3969
3976
  static ɵfac = i0.ɵɵngDeclareFactory({
3970
3977
  minVersion: "12.0.0",
3971
- version: "22.0.0-next.5",
3978
+ version: "22.0.0-next.7",
3972
3979
  ngImport: i0,
3973
3980
  type: NavigationTransitions,
3974
3981
  deps: [],
@@ -3976,7 +3983,7 @@ class NavigationTransitions {
3976
3983
  });
3977
3984
  static ɵprov = i0.ɵɵngDeclareInjectable({
3978
3985
  minVersion: "12.0.0",
3979
- version: "22.0.0-next.5",
3986
+ version: "22.0.0-next.7",
3980
3987
  ngImport: i0,
3981
3988
  type: NavigationTransitions,
3982
3989
  providedIn: 'root'
@@ -3984,7 +3991,7 @@ class NavigationTransitions {
3984
3991
  }
3985
3992
  i0.ɵɵngDeclareClassMetadata({
3986
3993
  minVersion: "12.0.0",
3987
- version: "22.0.0-next.5",
3994
+ version: "22.0.0-next.7",
3988
3995
  ngImport: i0,
3989
3996
  type: NavigationTransitions,
3990
3997
  decorators: [{
@@ -4057,7 +4064,7 @@ function destroyDetachedRouteHandle(handle) {
4057
4064
  class RouteReuseStrategy {
4058
4065
  static ɵfac = i0.ɵɵngDeclareFactory({
4059
4066
  minVersion: "12.0.0",
4060
- version: "22.0.0-next.5",
4067
+ version: "22.0.0-next.7",
4061
4068
  ngImport: i0,
4062
4069
  type: RouteReuseStrategy,
4063
4070
  deps: [],
@@ -4065,7 +4072,7 @@ class RouteReuseStrategy {
4065
4072
  });
4066
4073
  static ɵprov = i0.ɵɵngDeclareInjectable({
4067
4074
  minVersion: "12.0.0",
4068
- version: "22.0.0-next.5",
4075
+ version: "22.0.0-next.7",
4069
4076
  ngImport: i0,
4070
4077
  type: RouteReuseStrategy,
4071
4078
  providedIn: 'root',
@@ -4074,7 +4081,7 @@ class RouteReuseStrategy {
4074
4081
  }
4075
4082
  i0.ɵɵngDeclareClassMetadata({
4076
4083
  minVersion: "12.0.0",
4077
- version: "22.0.0-next.5",
4084
+ version: "22.0.0-next.7",
4078
4085
  ngImport: i0,
4079
4086
  type: RouteReuseStrategy,
4080
4087
  decorators: [{
@@ -4106,7 +4113,7 @@ class BaseRouteReuseStrategy {
4106
4113
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4107
4114
  static ɵfac = i0.ɵɵngDeclareFactory({
4108
4115
  minVersion: "12.0.0",
4109
- version: "22.0.0-next.5",
4116
+ version: "22.0.0-next.7",
4110
4117
  ngImport: i0,
4111
4118
  type: DefaultRouteReuseStrategy,
4112
4119
  deps: null,
@@ -4114,7 +4121,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4114
4121
  });
4115
4122
  static ɵprov = i0.ɵɵngDeclareInjectable({
4116
4123
  minVersion: "12.0.0",
4117
- version: "22.0.0-next.5",
4124
+ version: "22.0.0-next.7",
4118
4125
  ngImport: i0,
4119
4126
  type: DefaultRouteReuseStrategy,
4120
4127
  providedIn: 'root'
@@ -4122,7 +4129,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4122
4129
  }
4123
4130
  i0.ɵɵngDeclareClassMetadata({
4124
4131
  minVersion: "12.0.0",
4125
- version: "22.0.0-next.5",
4132
+ version: "22.0.0-next.7",
4126
4133
  ngImport: i0,
4127
4134
  type: DefaultRouteReuseStrategy,
4128
4135
  decorators: [{
@@ -4196,7 +4203,7 @@ class StateManager {
4196
4203
  }
4197
4204
  static ɵfac = i0.ɵɵngDeclareFactory({
4198
4205
  minVersion: "12.0.0",
4199
- version: "22.0.0-next.5",
4206
+ version: "22.0.0-next.7",
4200
4207
  ngImport: i0,
4201
4208
  type: StateManager,
4202
4209
  deps: [],
@@ -4204,7 +4211,7 @@ class StateManager {
4204
4211
  });
4205
4212
  static ɵprov = i0.ɵɵngDeclareInjectable({
4206
4213
  minVersion: "12.0.0",
4207
- version: "22.0.0-next.5",
4214
+ version: "22.0.0-next.7",
4208
4215
  ngImport: i0,
4209
4216
  type: StateManager,
4210
4217
  providedIn: 'root',
@@ -4213,7 +4220,7 @@ class StateManager {
4213
4220
  }
4214
4221
  i0.ɵɵngDeclareClassMetadata({
4215
4222
  minVersion: "12.0.0",
4216
- version: "22.0.0-next.5",
4223
+ version: "22.0.0-next.7",
4217
4224
  ngImport: i0,
4218
4225
  type: StateManager,
4219
4226
  decorators: [{
@@ -4332,7 +4339,7 @@ class HistoryStateManager extends StateManager {
4332
4339
  }
4333
4340
  static ɵfac = i0.ɵɵngDeclareFactory({
4334
4341
  minVersion: "12.0.0",
4335
- version: "22.0.0-next.5",
4342
+ version: "22.0.0-next.7",
4336
4343
  ngImport: i0,
4337
4344
  type: HistoryStateManager,
4338
4345
  deps: null,
@@ -4340,7 +4347,7 @@ class HistoryStateManager extends StateManager {
4340
4347
  });
4341
4348
  static ɵprov = i0.ɵɵngDeclareInjectable({
4342
4349
  minVersion: "12.0.0",
4343
- version: "22.0.0-next.5",
4350
+ version: "22.0.0-next.7",
4344
4351
  ngImport: i0,
4345
4352
  type: HistoryStateManager,
4346
4353
  providedIn: 'root'
@@ -4348,7 +4355,7 @@ class HistoryStateManager extends StateManager {
4348
4355
  }
4349
4356
  i0.ɵɵngDeclareClassMetadata({
4350
4357
  minVersion: "12.0.0",
4351
- version: "22.0.0-next.5",
4358
+ version: "22.0.0-next.7",
4352
4359
  ngImport: i0,
4353
4360
  type: HistoryStateManager,
4354
4361
  decorators: [{
@@ -4651,7 +4658,7 @@ class Router {
4651
4658
  }
4652
4659
  static ɵfac = i0.ɵɵngDeclareFactory({
4653
4660
  minVersion: "12.0.0",
4654
- version: "22.0.0-next.5",
4661
+ version: "22.0.0-next.7",
4655
4662
  ngImport: i0,
4656
4663
  type: Router,
4657
4664
  deps: [],
@@ -4659,7 +4666,7 @@ class Router {
4659
4666
  });
4660
4667
  static ɵprov = i0.ɵɵngDeclareInjectable({
4661
4668
  minVersion: "12.0.0",
4662
- version: "22.0.0-next.5",
4669
+ version: "22.0.0-next.7",
4663
4670
  ngImport: i0,
4664
4671
  type: Router,
4665
4672
  providedIn: 'root'
@@ -4667,7 +4674,7 @@ class Router {
4667
4674
  }
4668
4675
  i0.ɵɵngDeclareClassMetadata({
4669
4676
  minVersion: "12.0.0",
4670
- version: "22.0.0-next.5",
4677
+ version: "22.0.0-next.7",
4671
4678
  ngImport: i0,
4672
4679
  type: Router,
4673
4680
  decorators: [{