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

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,14 +1,14 @@
1
1
  /**
2
- * @license Angular v22.0.0-next.3
2
+ * @license Angular v22.0.0-next.5
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i3 from '@angular/common';
8
- import { ViewportScroller, PlatformNavigation, PlatformLocation, ɵPRECOMMIT_HANDLER_SUPPORTED as _PRECOMMIT_HANDLER_SUPPORTED, Location, ɵNavigationAdapterForLocation as _NavigationAdapterForLocation, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';
8
+ import { ViewportScroller, PlatformNavigation, PlatformLocation, ɵPRECOMMIT_HANDLER_SUPPORTED as _PRECOMMIT_HANDLER_SUPPORTED, LOCATION_INITIALIZED, Location, ɵNavigationAdapterForLocation as _NavigationAdapterForLocation, HashLocationStrategy, LocationStrategy, PathLocationStrategy } from '@angular/common';
9
9
  import * as i0 from '@angular/core';
10
- import { inject, signal, Injectable, HostAttributeToken, linkedSignal, untracked, input, ɵINTERNAL_APPLICATION_ERROR_HANDLER as _INTERNAL_APPLICATION_ERROR_HANDLER, effect, ɵRuntimeError as _RuntimeError, computed, booleanAttribute, Directive, Attribute, Input, HostListener, EventEmitter, ContentChildren, Output, createEnvironmentInjector, InjectionToken, NgZone, EnvironmentInjector, DestroyRef, afterNextRender, ɵpromiseWithResolvers as _promiseWithResolvers, ɵpublishExternalGlobalUtil as _publishExternalGlobalUtil, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, provideEnvironmentInitializer, Injector, ApplicationRef, ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION as _IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, provideAppInitializer, ɵperformanceMarkFeature as _performanceMarkFeature, ENVIRONMENT_INITIALIZER, NgModule } from '@angular/core';
11
- import { Router, StateManager, UrlSerializer, NavigationEnd, UrlTree, ROUTER_CONFIGURATION, isUrlTree, ActivatedRoute, isActive, exactMatchOptions, subsetMatchOptions, RouterConfigLoader, IMPERATIVE_NAVIGATION, NavigationTransitions, NavigationStart, NavigationSkipped, NavigationSkippedCode, Scroll, BeforeRoutesRecognized, BeforeActivateRoutes, NavigationCancel, NavigationError, isRedirectingEvent, NavigationCancellationCode, ROUTES, afterNextNavigation, ROUTE_INJECTOR_CLEANUP, routeInjectorCleanup, stringifyEvent, NAVIGATION_ERROR_HANDLER, RoutedComponentInputBinder, INPUT_BINDER, CREATE_VIEW_TRANSITION, createViewTransition, VIEW_TRANSITION_OPTIONS, DefaultUrlSerializer, ChildrenOutletContexts, RouterOutlet, ɵEmptyOutletComponent as _EmptyOutletComponent } from './_router-chunk.mjs';
10
+ import { inject, HostAttributeToken, linkedSignal, untracked, signal, input, ɵINTERNAL_APPLICATION_ERROR_HANDLER as _INTERNAL_APPLICATION_ERROR_HANDLER, effect, ɵRuntimeError as _RuntimeError, computed, booleanAttribute, Injectable, HostListener, Input, Attribute, Directive, EventEmitter, Output, ContentChildren, createEnvironmentInjector, InjectionToken, NgZone, EnvironmentInjector, DestroyRef, afterNextRender, ɵpromiseWithResolvers as _promiseWithResolvers, ɵpublishExternalGlobalUtil as _publishExternalGlobalUtil, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, provideAppInitializer, ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION as _IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, Injector, provideEnvironmentInitializer, ɵperformanceMarkFeature as _performanceMarkFeature, ApplicationRef, ENVIRONMENT_INITIALIZER, NgModule } from '@angular/core';
11
+ import { ROUTER_CONFIGURATION, isUrlTree, Router, ActivatedRoute, StateManager, UrlSerializer, NavigationEnd, UrlTree, isActive, exactMatchOptions, subsetMatchOptions, RouterConfigLoader, IMPERATIVE_NAVIGATION, NavigationTransitions, NavigationStart, NavigationSkipped, NavigationSkippedCode, Scroll, BeforeRoutesRecognized, BeforeActivateRoutes, NavigationCancel, NavigationError, isRedirectingEvent, NavigationCancellationCode, ROUTES, afterNextNavigation, NAVIGATION_ERROR_HANDLER, routeInjectorCleanup, ROUTE_INJECTOR_CLEANUP, RoutedComponentInputBinder, INPUT_BINDER, createViewTransition, CREATE_VIEW_TRANSITION, VIEW_TRANSITION_OPTIONS, stringifyEvent, DefaultUrlSerializer, ChildrenOutletContexts, RouterOutlet, ɵEmptyOutletComponent as _EmptyOutletComponent } from './_router-chunk.mjs';
12
12
  import { Subject, of, from } from 'rxjs';
13
13
  import { mergeAll, catchError, filter, concatMap, mergeMap } from 'rxjs/operators';
14
14
 
@@ -45,7 +45,7 @@ class ReactiveRouterState {
45
45
  }
46
46
  static ɵfac = i0.ɵɵngDeclareFactory({
47
47
  minVersion: "12.0.0",
48
- version: "22.0.0-next.3",
48
+ version: "22.0.0-next.5",
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: "22.0.0-next.3",
56
+ version: "22.0.0-next.5",
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: "22.0.0-next.3",
64
+ version: "22.0.0-next.5",
65
65
  ngImport: i0,
66
66
  type: ReactiveRouterState,
67
67
  decorators: [{
@@ -321,7 +321,7 @@ class RouterLink {
321
321
  }
322
322
  static ɵfac = i0.ɵɵngDeclareFactory({
323
323
  minVersion: "12.0.0",
324
- version: "22.0.0-next.3",
324
+ version: "22.0.0-next.5",
325
325
  ngImport: i0,
326
326
  type: RouterLink,
327
327
  deps: [{
@@ -342,7 +342,7 @@ class RouterLink {
342
342
  });
343
343
  static ɵdir = i0.ɵɵngDeclareDirective({
344
344
  minVersion: "17.1.0",
345
- version: "22.0.0-next.3",
345
+ version: "22.0.0-next.5",
346
346
  type: RouterLink,
347
347
  isStandalone: true,
348
348
  selector: "[routerLink]",
@@ -447,7 +447,7 @@ class RouterLink {
447
447
  }
448
448
  i0.ɵɵngDeclareClassMetadata({
449
449
  minVersion: "12.0.0",
450
- version: "22.0.0-next.3",
450
+ version: "22.0.0-next.5",
451
451
  ngImport: i0,
452
452
  type: RouterLink,
453
453
  decorators: [{
@@ -633,7 +633,7 @@ class RouterLinkActive {
633
633
  }
634
634
  static ɵfac = i0.ɵɵngDeclareFactory({
635
635
  minVersion: "12.0.0",
636
- version: "22.0.0-next.3",
636
+ version: "22.0.0-next.5",
637
637
  ngImport: i0,
638
638
  type: RouterLinkActive,
639
639
  deps: [{
@@ -649,7 +649,7 @@ class RouterLinkActive {
649
649
  });
650
650
  static ɵdir = i0.ɵɵngDeclareDirective({
651
651
  minVersion: "14.0.0",
652
- version: "22.0.0-next.3",
652
+ version: "22.0.0-next.5",
653
653
  type: RouterLinkActive,
654
654
  isStandalone: true,
655
655
  selector: "[routerLinkActive]",
@@ -673,7 +673,7 @@ class RouterLinkActive {
673
673
  }
674
674
  i0.ɵɵngDeclareClassMetadata({
675
675
  minVersion: "12.0.0",
676
- version: "22.0.0-next.3",
676
+ version: "22.0.0-next.5",
677
677
  ngImport: i0,
678
678
  type: RouterLinkActive,
679
679
  decorators: [{
@@ -725,7 +725,7 @@ class PreloadAllModules {
725
725
  }
726
726
  static ɵfac = i0.ɵɵngDeclareFactory({
727
727
  minVersion: "12.0.0",
728
- version: "22.0.0-next.3",
728
+ version: "22.0.0-next.5",
729
729
  ngImport: i0,
730
730
  type: PreloadAllModules,
731
731
  deps: [],
@@ -733,7 +733,7 @@ class PreloadAllModules {
733
733
  });
734
734
  static ɵprov = i0.ɵɵngDeclareInjectable({
735
735
  minVersion: "12.0.0",
736
- version: "22.0.0-next.3",
736
+ version: "22.0.0-next.5",
737
737
  ngImport: i0,
738
738
  type: PreloadAllModules,
739
739
  providedIn: 'root'
@@ -741,7 +741,7 @@ class PreloadAllModules {
741
741
  }
742
742
  i0.ɵɵngDeclareClassMetadata({
743
743
  minVersion: "12.0.0",
744
- version: "22.0.0-next.3",
744
+ version: "22.0.0-next.5",
745
745
  ngImport: i0,
746
746
  type: PreloadAllModules,
747
747
  decorators: [{
@@ -757,7 +757,7 @@ class NoPreloading {
757
757
  }
758
758
  static ɵfac = i0.ɵɵngDeclareFactory({
759
759
  minVersion: "12.0.0",
760
- version: "22.0.0-next.3",
760
+ version: "22.0.0-next.5",
761
761
  ngImport: i0,
762
762
  type: NoPreloading,
763
763
  deps: [],
@@ -765,7 +765,7 @@ class NoPreloading {
765
765
  });
766
766
  static ɵprov = i0.ɵɵngDeclareInjectable({
767
767
  minVersion: "12.0.0",
768
- version: "22.0.0-next.3",
768
+ version: "22.0.0-next.5",
769
769
  ngImport: i0,
770
770
  type: NoPreloading,
771
771
  providedIn: 'root'
@@ -773,7 +773,7 @@ class NoPreloading {
773
773
  }
774
774
  i0.ɵɵngDeclareClassMetadata({
775
775
  minVersion: "12.0.0",
776
- version: "22.0.0-next.3",
776
+ version: "22.0.0-next.5",
777
777
  ngImport: i0,
778
778
  type: NoPreloading,
779
779
  decorators: [{
@@ -854,7 +854,7 @@ class RouterPreloader {
854
854
  }
855
855
  static ɵfac = i0.ɵɵngDeclareFactory({
856
856
  minVersion: "12.0.0",
857
- version: "22.0.0-next.3",
857
+ version: "22.0.0-next.5",
858
858
  ngImport: i0,
859
859
  type: RouterPreloader,
860
860
  deps: [{
@@ -870,7 +870,7 @@ class RouterPreloader {
870
870
  });
871
871
  static ɵprov = i0.ɵɵngDeclareInjectable({
872
872
  minVersion: "12.0.0",
873
- version: "22.0.0-next.3",
873
+ version: "22.0.0-next.5",
874
874
  ngImport: i0,
875
875
  type: RouterPreloader,
876
876
  providedIn: 'root'
@@ -878,7 +878,7 @@ class RouterPreloader {
878
878
  }
879
879
  i0.ɵɵngDeclareClassMetadata({
880
880
  minVersion: "12.0.0",
881
- version: "22.0.0-next.3",
881
+ version: "22.0.0-next.5",
882
882
  ngImport: i0,
883
883
  type: RouterPreloader,
884
884
  decorators: [{
@@ -980,7 +980,7 @@ class RouterScroller {
980
980
  }
981
981
  static ɵfac = i0.ɵɵngDeclareFactory({
982
982
  minVersion: "12.0.0",
983
- version: "22.0.0-next.3",
983
+ version: "22.0.0-next.5",
984
984
  ngImport: i0,
985
985
  type: RouterScroller,
986
986
  deps: "invalid",
@@ -988,14 +988,14 @@ class RouterScroller {
988
988
  });
989
989
  static ɵprov = i0.ɵɵngDeclareInjectable({
990
990
  minVersion: "12.0.0",
991
- version: "22.0.0-next.3",
991
+ version: "22.0.0-next.5",
992
992
  ngImport: i0,
993
993
  type: RouterScroller
994
994
  });
995
995
  }
996
996
  i0.ɵɵngDeclareClassMetadata({
997
997
  minVersion: "12.0.0",
998
- version: "22.0.0-next.3",
998
+ version: "22.0.0-next.5",
999
999
  ngImport: i0,
1000
1000
  type: RouterScroller,
1001
1001
  decorators: [{
@@ -1305,7 +1305,7 @@ class NavigationStateManager extends StateManager {
1305
1305
  }
1306
1306
  static ɵfac = i0.ɵɵngDeclareFactory({
1307
1307
  minVersion: "12.0.0",
1308
- version: "22.0.0-next.3",
1308
+ version: "22.0.0-next.5",
1309
1309
  ngImport: i0,
1310
1310
  type: NavigationStateManager,
1311
1311
  deps: [],
@@ -1313,7 +1313,7 @@ class NavigationStateManager extends StateManager {
1313
1313
  });
1314
1314
  static ɵprov = i0.ɵɵngDeclareInjectable({
1315
1315
  minVersion: "12.0.0",
1316
- version: "22.0.0-next.3",
1316
+ version: "22.0.0-next.5",
1317
1317
  ngImport: i0,
1318
1318
  type: NavigationStateManager,
1319
1319
  providedIn: 'root'
@@ -1321,7 +1321,7 @@ class NavigationStateManager extends StateManager {
1321
1321
  }
1322
1322
  i0.ɵɵngDeclareClassMetadata({
1323
1323
  minVersion: "12.0.0",
1324
- version: "22.0.0-next.3",
1324
+ version: "22.0.0-next.5",
1325
1325
  ngImport: i0,
1326
1326
  type: NavigationStateManager,
1327
1327
  decorators: [{
@@ -1523,10 +1523,10 @@ function withExperimentalAutoCleanupInjectors() {
1523
1523
  useValue: routeInjectorCleanup
1524
1524
  }]);
1525
1525
  }
1526
- function withComponentInputBinding() {
1527
- const providers = [RoutedComponentInputBinder, {
1526
+ function withComponentInputBinding(options = {}) {
1527
+ const providers = [{
1528
1528
  provide: INPUT_BINDER,
1529
- useExisting: RoutedComponentInputBinder
1529
+ useFactory: () => new RoutedComponentInputBinder(options)
1530
1530
  }];
1531
1531
  return routerFeature(8, providers);
1532
1532
  }
@@ -1578,7 +1578,7 @@ class RouterModule {
1578
1578
  } : [], {
1579
1579
  provide: ROUTER_CONFIGURATION,
1580
1580
  useValue: config ? config : {}
1581
- }, config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(), provideRouterScroller(), config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [], config?.initialNavigation ? provideInitialNavigation(config) : [], config?.bindToComponentInputs ? withComponentInputBinding().ɵproviders : [], config?.enableViewTransitions ? withViewTransitions().ɵproviders : [], provideRouterInitializer()]
1581
+ }, config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(), provideRouterScroller(), config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [], config?.initialNavigation ? provideInitialNavigation(config) : [], config?.bindToComponentInputs ? withComponentInputBinding(typeof config.bindToComponentInputs === 'object' ? config.bindToComponentInputs : {}).ɵproviders : [], config?.enableViewTransitions ? withViewTransitions().ɵproviders : [], provideRouterInitializer()]
1582
1582
  };
1583
1583
  }
1584
1584
  static forChild(routes) {
@@ -1593,7 +1593,7 @@ class RouterModule {
1593
1593
  }
1594
1594
  static ɵfac = i0.ɵɵngDeclareFactory({
1595
1595
  minVersion: "12.0.0",
1596
- version: "22.0.0-next.3",
1596
+ version: "22.0.0-next.5",
1597
1597
  ngImport: i0,
1598
1598
  type: RouterModule,
1599
1599
  deps: [],
@@ -1601,7 +1601,7 @@ class RouterModule {
1601
1601
  });
1602
1602
  static ɵmod = i0.ɵɵngDeclareNgModule({
1603
1603
  minVersion: "14.0.0",
1604
- version: "22.0.0-next.3",
1604
+ version: "22.0.0-next.5",
1605
1605
  ngImport: i0,
1606
1606
  type: RouterModule,
1607
1607
  imports: [RouterOutlet, RouterLink, RouterLinkActive, _EmptyOutletComponent],
@@ -1609,14 +1609,14 @@ class RouterModule {
1609
1609
  });
1610
1610
  static ɵinj = i0.ɵɵngDeclareInjector({
1611
1611
  minVersion: "12.0.0",
1612
- version: "22.0.0-next.3",
1612
+ version: "22.0.0-next.5",
1613
1613
  ngImport: i0,
1614
1614
  type: RouterModule
1615
1615
  });
1616
1616
  }
1617
1617
  i0.ɵɵngDeclareClassMetadata({
1618
1618
  minVersion: "12.0.0",
1619
- version: "22.0.0-next.3",
1619
+ version: "22.0.0-next.5",
1620
1620
  ngImport: i0,
1621
1621
  type: RouterModule,
1622
1622
  decorators: [{