@angular/router 19.1.0-rc.0 → 19.1.0
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.mjs +82 -88
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +14 -18
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.1.0
|
|
2
|
+
* @license Angular v19.1.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -433,10 +433,10 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
433
433
|
* @publicApi
|
|
434
434
|
*/
|
|
435
435
|
class UrlSerializer {
|
|
436
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
437
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
437
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });
|
|
438
438
|
}
|
|
439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
440
440
|
type: Injectable,
|
|
441
441
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
442
442
|
}] });
|
|
@@ -2123,10 +2123,10 @@ class ChildrenOutletContexts {
|
|
|
2123
2123
|
getContext(childName) {
|
|
2124
2124
|
return this.contexts.get(childName) || null;
|
|
2125
2125
|
}
|
|
2126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
2127
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
2126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ChildrenOutletContexts, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2127
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });
|
|
2128
2128
|
}
|
|
2129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
2130
2130
|
type: Injectable,
|
|
2131
2131
|
args: [{ providedIn: 'root' }]
|
|
2132
2132
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
@@ -2518,7 +2518,7 @@ class ActivatedRouteSnapshot {
|
|
|
2518
2518
|
* You can compute all params (or data) in the router state or to get params outside
|
|
2519
2519
|
* of an activated component by traversing the `RouterState` tree as in the following
|
|
2520
2520
|
* example:
|
|
2521
|
-
* ```
|
|
2521
|
+
* ```ts
|
|
2522
2522
|
* collectRouteParams(router: Router) {
|
|
2523
2523
|
* let params = {};
|
|
2524
2524
|
* let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];
|
|
@@ -2913,10 +2913,10 @@ class RouterOutlet {
|
|
|
2913
2913
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2914
2914
|
this.activateEvents.emit(this.activated.instance);
|
|
2915
2915
|
}
|
|
2916
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
2917
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.0
|
|
2916
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2917
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.0", type: RouterOutlet, isStandalone: true, selector: "router-outlet", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: false, isRequired: false, transformFunction: null }, routerOutletData: { classPropertyName: "routerOutletData", publicName: "routerOutletData", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activateEvents: "activate", deactivateEvents: "deactivate", attachEvents: "attach", detachEvents: "detach" }, exportAs: ["outlet"], usesOnChanges: true, ngImport: i0 });
|
|
2918
2918
|
}
|
|
2919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
2919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2920
2920
|
type: Directive,
|
|
2921
2921
|
args: [{
|
|
2922
2922
|
selector: 'router-outlet',
|
|
@@ -3044,10 +3044,10 @@ class RoutedComponentInputBinder {
|
|
|
3044
3044
|
});
|
|
3045
3045
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
3046
3046
|
}
|
|
3047
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
3048
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
3047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3048
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RoutedComponentInputBinder });
|
|
3049
3049
|
}
|
|
3050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
3050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
3051
3051
|
type: Injectable
|
|
3052
3052
|
}] });
|
|
3053
3053
|
|
|
@@ -4383,10 +4383,10 @@ class TitleStrategy {
|
|
|
4383
4383
|
getResolvedTitleForRoute(snapshot) {
|
|
4384
4384
|
return snapshot.data[RouteTitleKey];
|
|
4385
4385
|
}
|
|
4386
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
4387
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
4386
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4387
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });
|
|
4388
4388
|
}
|
|
4389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
4389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4390
4390
|
type: Injectable,
|
|
4391
4391
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4392
4392
|
}] });
|
|
@@ -4410,10 +4410,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4410
4410
|
this.title.setTitle(title);
|
|
4411
4411
|
}
|
|
4412
4412
|
}
|
|
4413
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
4414
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
4413
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4414
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
4415
4415
|
}
|
|
4416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
4416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4417
4417
|
type: Injectable,
|
|
4418
4418
|
args: [{ providedIn: 'root' }]
|
|
4419
4419
|
}], ctorParameters: () => [{ type: i1.Title }] });
|
|
@@ -4438,10 +4438,10 @@ const ROUTER_CONFIGURATION = new InjectionToken(typeof ngDevMode === 'undefined'
|
|
|
4438
4438
|
* to this `EmptyOutletComponent`.
|
|
4439
4439
|
*/
|
|
4440
4440
|
class ɵEmptyOutletComponent {
|
|
4441
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
4442
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0
|
|
4441
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4442
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: ɵEmptyOutletComponent, isStandalone: true, selector: "ng-component", exportAs: ["emptyRouterOutlet"], ngImport: i0, template: `<router-outlet/>`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
4443
4443
|
}
|
|
4444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
4444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
4445
4445
|
type: Component,
|
|
4446
4446
|
args: [{
|
|
4447
4447
|
template: `<router-outlet/>`,
|
|
@@ -4527,10 +4527,10 @@ class RouterConfigLoader {
|
|
|
4527
4527
|
this.childrenLoaders.set(route, loader);
|
|
4528
4528
|
return loader;
|
|
4529
4529
|
}
|
|
4530
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
4531
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
4530
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4531
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });
|
|
4532
4532
|
}
|
|
4533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
4533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4534
4534
|
type: Injectable,
|
|
4535
4535
|
args: [{ providedIn: 'root' }]
|
|
4536
4536
|
}] });
|
|
@@ -4597,10 +4597,10 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4597
4597
|
* @publicApi
|
|
4598
4598
|
*/
|
|
4599
4599
|
class UrlHandlingStrategy {
|
|
4600
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
4601
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
4600
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4601
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });
|
|
4602
4602
|
}
|
|
4603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
4603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4604
4604
|
type: Injectable,
|
|
4605
4605
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4606
4606
|
}] });
|
|
@@ -4617,10 +4617,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4617
4617
|
merge(newUrlPart, wholeUrl) {
|
|
4618
4618
|
return newUrlPart;
|
|
4619
4619
|
}
|
|
4620
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
4621
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
4620
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4621
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });
|
|
4622
4622
|
}
|
|
4623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
4623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4624
4624
|
type: Injectable,
|
|
4625
4625
|
args: [{ providedIn: 'root' }]
|
|
4626
4626
|
}] });
|
|
@@ -5073,10 +5073,10 @@ class NavigationTransitions {
|
|
|
5073
5073
|
return (currentBrowserUrl.toString() !== targetBrowserUrl?.toString() &&
|
|
5074
5074
|
!this.currentNavigation?.extras.skipLocationChange);
|
|
5075
5075
|
}
|
|
5076
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
5077
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
5076
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5077
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });
|
|
5078
5078
|
}
|
|
5079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
5079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
5080
5080
|
type: Injectable,
|
|
5081
5081
|
args: [{ providedIn: 'root' }]
|
|
5082
5082
|
}], ctorParameters: () => [] });
|
|
@@ -5092,10 +5092,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
5092
5092
|
* @publicApi
|
|
5093
5093
|
*/
|
|
5094
5094
|
class RouteReuseStrategy {
|
|
5095
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
5096
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
5095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5096
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });
|
|
5097
5097
|
}
|
|
5098
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
5098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
5099
5099
|
type: Injectable,
|
|
5100
5100
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
5101
5101
|
}] });
|
|
@@ -5146,19 +5146,19 @@ class BaseRouteReuseStrategy {
|
|
|
5146
5146
|
}
|
|
5147
5147
|
}
|
|
5148
5148
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
5149
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
5150
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
5149
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5150
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });
|
|
5151
5151
|
}
|
|
5152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
5152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
5153
5153
|
type: Injectable,
|
|
5154
5154
|
args: [{ providedIn: 'root' }]
|
|
5155
5155
|
}] });
|
|
5156
5156
|
|
|
5157
5157
|
class StateManager {
|
|
5158
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
5159
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
5158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5159
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) });
|
|
5160
5160
|
}
|
|
5161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
5161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: StateManager, decorators: [{
|
|
5162
5162
|
type: Injectable,
|
|
5163
5163
|
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
5164
5164
|
}] });
|
|
@@ -5328,20 +5328,14 @@ class HistoryStateManager extends StateManager {
|
|
|
5328
5328
|
}
|
|
5329
5329
|
return { navigationId };
|
|
5330
5330
|
}
|
|
5331
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
5332
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
5331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5332
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HistoryStateManager, providedIn: 'root' });
|
|
5333
5333
|
}
|
|
5334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
5334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
5335
5335
|
type: Injectable,
|
|
5336
5336
|
args: [{ providedIn: 'root' }]
|
|
5337
5337
|
}] });
|
|
5338
5338
|
|
|
5339
|
-
var NavigationResult;
|
|
5340
|
-
(function (NavigationResult) {
|
|
5341
|
-
NavigationResult[NavigationResult["COMPLETE"] = 0] = "COMPLETE";
|
|
5342
|
-
NavigationResult[NavigationResult["FAILED"] = 1] = "FAILED";
|
|
5343
|
-
NavigationResult[NavigationResult["REDIRECTING"] = 2] = "REDIRECTING";
|
|
5344
|
-
})(NavigationResult || (NavigationResult = {}));
|
|
5345
5339
|
/**
|
|
5346
5340
|
* Performs the given action once the router finishes its next/current navigation.
|
|
5347
5341
|
*
|
|
@@ -5358,14 +5352,14 @@ function afterNextNavigation(router, action) {
|
|
|
5358
5352
|
e instanceof NavigationError ||
|
|
5359
5353
|
e instanceof NavigationSkipped), map((e) => {
|
|
5360
5354
|
if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {
|
|
5361
|
-
return NavigationResult.COMPLETE
|
|
5355
|
+
return 0 /* NavigationResult.COMPLETE */;
|
|
5362
5356
|
}
|
|
5363
5357
|
const redirecting = e instanceof NavigationCancel
|
|
5364
5358
|
? e.code === NavigationCancellationCode.Redirect ||
|
|
5365
5359
|
e.code === NavigationCancellationCode.SupersededByNewNavigation
|
|
5366
5360
|
: false;
|
|
5367
|
-
return redirecting ? NavigationResult.REDIRECTING : NavigationResult.FAILED
|
|
5368
|
-
}), filter((result) => result !== NavigationResult.REDIRECTING), take(1))
|
|
5361
|
+
return redirecting ? 2 /* NavigationResult.REDIRECTING */ : 1 /* NavigationResult.FAILED */;
|
|
5362
|
+
}), filter((result) => result !== 2 /* NavigationResult.REDIRECTING */), take(1))
|
|
5369
5363
|
.subscribe(() => {
|
|
5370
5364
|
action();
|
|
5371
5365
|
});
|
|
@@ -5631,7 +5625,7 @@ class Router {
|
|
|
5631
5625
|
*
|
|
5632
5626
|
* @usageNotes
|
|
5633
5627
|
*
|
|
5634
|
-
* ```
|
|
5628
|
+
* ```ts
|
|
5635
5629
|
* router.resetConfig([
|
|
5636
5630
|
* { path: 'team/:id', component: TeamCmp, children: [
|
|
5637
5631
|
* { path: 'simple', component: SimpleCmp },
|
|
@@ -5769,7 +5763,7 @@ class Router {
|
|
|
5769
5763
|
*
|
|
5770
5764
|
* The following calls request navigation to an absolute path.
|
|
5771
5765
|
*
|
|
5772
|
-
* ```
|
|
5766
|
+
* ```ts
|
|
5773
5767
|
* router.navigateByUrl("/team/33/user/11");
|
|
5774
5768
|
*
|
|
5775
5769
|
* // Navigate without updating the URL
|
|
@@ -5806,7 +5800,7 @@ class Router {
|
|
|
5806
5800
|
*
|
|
5807
5801
|
* The following calls request navigation to a dynamic route path relative to the current URL.
|
|
5808
5802
|
*
|
|
5809
|
-
* ```
|
|
5803
|
+
* ```ts
|
|
5810
5804
|
* router.navigate(['team', 33, 'user', 11], {relativeTo: route});
|
|
5811
5805
|
*
|
|
5812
5806
|
* // Navigate without updating the URL, overriding the default behavior
|
|
@@ -5902,10 +5896,10 @@ class Router {
|
|
|
5902
5896
|
return Promise.reject(e);
|
|
5903
5897
|
});
|
|
5904
5898
|
}
|
|
5905
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
5906
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
5899
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5900
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Router, providedIn: 'root' });
|
|
5907
5901
|
}
|
|
5908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
5902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: Router, decorators: [{
|
|
5909
5903
|
type: Injectable,
|
|
5910
5904
|
args: [{ providedIn: 'root' }]
|
|
5911
5905
|
}], ctorParameters: () => [] });
|
|
@@ -6264,10 +6258,10 @@ class RouterLink {
|
|
|
6264
6258
|
preserveFragment: this.preserveFragment,
|
|
6265
6259
|
});
|
|
6266
6260
|
}
|
|
6267
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
6268
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0
|
|
6261
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6262
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", info: "info", relativeTo: "relativeTo", preserveFragment: ["preserveFragment", "preserveFragment", booleanAttribute], skipLocationChange: ["skipLocationChange", "skipLocationChange", booleanAttribute], replaceUrl: ["replaceUrl", "replaceUrl", booleanAttribute], routerLink: "routerLink" }, host: { listeners: { "click": "onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)" }, properties: { "attr.target": "this.target" } }, usesOnChanges: true, ngImport: i0 });
|
|
6269
6263
|
}
|
|
6270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
6264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterLink, decorators: [{
|
|
6271
6265
|
type: Directive,
|
|
6272
6266
|
args: [{
|
|
6273
6267
|
selector: '[routerLink]',
|
|
@@ -6422,7 +6416,7 @@ class RouterLinkActive {
|
|
|
6422
6416
|
* true -> Route is active
|
|
6423
6417
|
* false -> Route is inactive
|
|
6424
6418
|
*
|
|
6425
|
-
* ```
|
|
6419
|
+
* ```html
|
|
6426
6420
|
* <a
|
|
6427
6421
|
* routerLink="/user/bob"
|
|
6428
6422
|
* routerLinkActive="active-link"
|
|
@@ -6520,10 +6514,10 @@ class RouterLinkActive {
|
|
|
6520
6514
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6521
6515
|
return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);
|
|
6522
6516
|
}
|
|
6523
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
6524
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0
|
|
6517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6518
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: RouterLinkActive, isStandalone: true, selector: "[routerLinkActive]", inputs: { routerLinkActiveOptions: "routerLinkActiveOptions", ariaCurrentWhenActive: "ariaCurrentWhenActive", routerLinkActive: "routerLinkActive" }, outputs: { isActiveChange: "isActiveChange" }, queries: [{ propertyName: "links", predicate: RouterLink, descendants: true }], exportAs: ["routerLinkActive"], usesOnChanges: true, ngImport: i0 });
|
|
6525
6519
|
}
|
|
6526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
6520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6527
6521
|
type: Directive,
|
|
6528
6522
|
args: [{
|
|
6529
6523
|
selector: '[routerLinkActive]',
|
|
@@ -6574,10 +6568,10 @@ class PreloadAllModules {
|
|
|
6574
6568
|
preload(route, fn) {
|
|
6575
6569
|
return fn().pipe(catchError(() => of(null)));
|
|
6576
6570
|
}
|
|
6577
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
6578
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
6571
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6572
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });
|
|
6579
6573
|
}
|
|
6580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
6574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6581
6575
|
type: Injectable,
|
|
6582
6576
|
args: [{ providedIn: 'root' }]
|
|
6583
6577
|
}] });
|
|
@@ -6594,10 +6588,10 @@ class NoPreloading {
|
|
|
6594
6588
|
preload(route, fn) {
|
|
6595
6589
|
return of(null);
|
|
6596
6590
|
}
|
|
6597
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
6598
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
6591
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6592
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NoPreloading, providedIn: 'root' });
|
|
6599
6593
|
}
|
|
6600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
6594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6601
6595
|
type: Injectable,
|
|
6602
6596
|
args: [{ providedIn: 'root' }]
|
|
6603
6597
|
}] });
|
|
@@ -6693,10 +6687,10 @@ class RouterPreloader {
|
|
|
6693
6687
|
}
|
|
6694
6688
|
});
|
|
6695
6689
|
}
|
|
6696
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
6697
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
6690
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6691
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterPreloader, providedIn: 'root' });
|
|
6698
6692
|
}
|
|
6699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
6693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6700
6694
|
type: Injectable,
|
|
6701
6695
|
args: [{ providedIn: 'root' }]
|
|
6702
6696
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6796,10 +6790,10 @@ class RouterScroller {
|
|
|
6796
6790
|
this.routerEventsSubscription?.unsubscribe();
|
|
6797
6791
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6798
6792
|
}
|
|
6799
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
6800
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0
|
|
6793
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
6794
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterScroller });
|
|
6801
6795
|
}
|
|
6802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
6796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6803
6797
|
type: Injectable
|
|
6804
6798
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6805
6799
|
|
|
@@ -7404,7 +7398,7 @@ class RouterModule {
|
|
|
7404
7398
|
*
|
|
7405
7399
|
* When registering the NgModule at the root, import as follows:
|
|
7406
7400
|
*
|
|
7407
|
-
* ```
|
|
7401
|
+
* ```ts
|
|
7408
7402
|
* @NgModule({
|
|
7409
7403
|
* imports: [RouterModule.forRoot(ROUTES)]
|
|
7410
7404
|
* })
|
|
@@ -7454,7 +7448,7 @@ class RouterModule {
|
|
|
7454
7448
|
* without creating a new Router service.
|
|
7455
7449
|
* When registering for submodules and lazy-loaded submodules, create the NgModule as follows:
|
|
7456
7450
|
*
|
|
7457
|
-
* ```
|
|
7451
|
+
* ```ts
|
|
7458
7452
|
* @NgModule({
|
|
7459
7453
|
* imports: [RouterModule.forChild(ROUTES)]
|
|
7460
7454
|
* })
|
|
@@ -7471,11 +7465,11 @@ class RouterModule {
|
|
|
7471
7465
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
7472
7466
|
};
|
|
7473
7467
|
}
|
|
7474
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0
|
|
7475
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0
|
|
7476
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0
|
|
7468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7469
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
7470
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterModule });
|
|
7477
7471
|
}
|
|
7478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0
|
|
7472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RouterModule, decorators: [{
|
|
7479
7473
|
type: NgModule,
|
|
7480
7474
|
args: [{
|
|
7481
7475
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7620,7 +7614,7 @@ function mapToResolve(provider) {
|
|
|
7620
7614
|
/**
|
|
7621
7615
|
* @publicApi
|
|
7622
7616
|
*/
|
|
7623
|
-
const VERSION = new Version('19.1.0
|
|
7617
|
+
const VERSION = new Version('19.1.0');
|
|
7624
7618
|
|
|
7625
7619
|
function getLoadedRoutes(route) {
|
|
7626
7620
|
return route._loadedRoutes;
|