@angular/router 19.1.4 → 19.2.0-next.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 +73 -85
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +20 -11
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +1 -1
- 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,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.
|
|
2
|
+
* @license Angular v19.2.0-next.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { ɵisPromise, ɵRuntimeError, Injectable, createEnvironmentInjector, ɵisNgModule, isStandalone, InjectionToken, EventEmitter, input, inject, ViewContainerRef, ChangeDetectorRef, Directive, Input, Output, reflectComponentType, ɵisInjectable, runInInjectionContext, Component, Compiler, NgModuleFactory, NgZone, afterNextRender, EnvironmentInjector,
|
|
8
|
+
import { ɵisPromise, ɵRuntimeError, Injectable, createEnvironmentInjector, ɵisNgModule, isStandalone, InjectionToken, EventEmitter, input, inject, ViewContainerRef, ChangeDetectorRef, Directive, Input, Output, reflectComponentType, ɵisInjectable, runInInjectionContext, Component, Compiler, NgModuleFactory, NgZone, afterNextRender, EnvironmentInjector, ɵConsole, ɵPendingTasksInternal, ɵɵsanitizeUrlOrResourceUrl, booleanAttribute, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, InjectFlags, APP_INITIALIZER, SkipSelf, NgModule, Version, ɵpublishExternalGlobalUtil } from '@angular/core';
|
|
9
9
|
import { isObservable, from, of, BehaviorSubject, combineLatest, EmptyError, concat, defer, pipe, throwError, EMPTY, ConnectableObservable, Subject, Subscription } from 'rxjs';
|
|
10
10
|
import * as i3 from '@angular/common';
|
|
11
11
|
import { DOCUMENT, Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';
|
|
@@ -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.
|
|
437
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
437
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });
|
|
438
438
|
}
|
|
439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
2127
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
2126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: ChildrenOutletContexts, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2127
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });
|
|
2128
2128
|
}
|
|
2129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
2130
2130
|
type: Injectable,
|
|
2131
2131
|
args: [{ providedIn: 'root' }]
|
|
2132
2132
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
@@ -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.
|
|
2917
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.
|
|
2916
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2917
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.0-next.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.
|
|
2919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
3048
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
3047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3048
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RoutedComponentInputBinder });
|
|
3049
3049
|
}
|
|
3050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
3050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
4387
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
4386
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4387
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });
|
|
4388
4388
|
}
|
|
4389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
4414
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
4413
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4414
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
4415
4415
|
}
|
|
4416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
4442
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
|
4441
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4442
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.0-next.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.
|
|
4444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
4531
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
4530
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4531
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });
|
|
4532
4532
|
}
|
|
4533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
4601
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
4600
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4601
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });
|
|
4602
4602
|
}
|
|
4603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.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.
|
|
4621
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
4620
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4621
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });
|
|
4622
4622
|
}
|
|
4623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
4623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4624
4624
|
type: Injectable,
|
|
4625
4625
|
args: [{ providedIn: 'root' }]
|
|
4626
4626
|
}] });
|
|
@@ -4694,7 +4694,6 @@ class NavigationTransitions {
|
|
|
4694
4694
|
transitionAbortSubject = new Subject();
|
|
4695
4695
|
configLoader = inject(RouterConfigLoader);
|
|
4696
4696
|
environmentInjector = inject(EnvironmentInjector);
|
|
4697
|
-
destroyRef = inject(DestroyRef);
|
|
4698
4697
|
urlSerializer = inject(UrlSerializer);
|
|
4699
4698
|
rootContexts = inject(ChildrenOutletContexts);
|
|
4700
4699
|
location = inject(Location);
|
|
@@ -4719,15 +4718,11 @@ class NavigationTransitions {
|
|
|
4719
4718
|
afterPreactivation = () => of(void 0);
|
|
4720
4719
|
/** @internal */
|
|
4721
4720
|
rootComponentType = null;
|
|
4722
|
-
destroyed = false;
|
|
4723
4721
|
constructor() {
|
|
4724
4722
|
const onLoadStart = (r) => this.events.next(new RouteConfigLoadStart(r));
|
|
4725
4723
|
const onLoadEnd = (r) => this.events.next(new RouteConfigLoadEnd(r));
|
|
4726
4724
|
this.configLoader.onLoadEndListener = onLoadEnd;
|
|
4727
4725
|
this.configLoader.onLoadStartListener = onLoadStart;
|
|
4728
|
-
this.destroyRef.onDestroy(() => {
|
|
4729
|
-
this.destroyed = true;
|
|
4730
|
-
});
|
|
4731
4726
|
}
|
|
4732
4727
|
complete() {
|
|
4733
4728
|
this.transitions?.complete();
|
|
@@ -4992,13 +4987,6 @@ class NavigationTransitions {
|
|
|
4992
4987
|
this.currentTransition = null;
|
|
4993
4988
|
}
|
|
4994
4989
|
}), catchError((e) => {
|
|
4995
|
-
// If the application is already destroyed, the catch block should not
|
|
4996
|
-
// execute anything in practice because other resources have already
|
|
4997
|
-
// been released and destroyed.
|
|
4998
|
-
if (this.destroyed) {
|
|
4999
|
-
overallTransitionState.resolve(false);
|
|
5000
|
-
return EMPTY;
|
|
5001
|
-
}
|
|
5002
4990
|
errored = true;
|
|
5003
4991
|
/* This error type is issued during Redirect, and is handled as a
|
|
5004
4992
|
* cancellation rather than an error. */
|
|
@@ -5085,10 +5073,10 @@ class NavigationTransitions {
|
|
|
5085
5073
|
return (currentBrowserUrl.toString() !== targetBrowserUrl?.toString() &&
|
|
5086
5074
|
!this.currentNavigation?.extras.skipLocationChange);
|
|
5087
5075
|
}
|
|
5088
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5089
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5076
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5077
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });
|
|
5090
5078
|
}
|
|
5091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
5092
5080
|
type: Injectable,
|
|
5093
5081
|
args: [{ providedIn: 'root' }]
|
|
5094
5082
|
}], ctorParameters: () => [] });
|
|
@@ -5104,10 +5092,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
5104
5092
|
* @publicApi
|
|
5105
5093
|
*/
|
|
5106
5094
|
class RouteReuseStrategy {
|
|
5107
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5108
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5096
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });
|
|
5109
5097
|
}
|
|
5110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
5111
5099
|
type: Injectable,
|
|
5112
5100
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
5113
5101
|
}] });
|
|
@@ -5158,19 +5146,19 @@ class BaseRouteReuseStrategy {
|
|
|
5158
5146
|
}
|
|
5159
5147
|
}
|
|
5160
5148
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
5161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5162
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5149
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5150
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });
|
|
5163
5151
|
}
|
|
5164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
5165
5153
|
type: Injectable,
|
|
5166
5154
|
args: [{ providedIn: 'root' }]
|
|
5167
5155
|
}] });
|
|
5168
5156
|
|
|
5169
5157
|
class StateManager {
|
|
5170
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5171
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5159
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) });
|
|
5172
5160
|
}
|
|
5173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: StateManager, decorators: [{
|
|
5174
5162
|
type: Injectable,
|
|
5175
5163
|
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
5176
5164
|
}] });
|
|
@@ -5340,10 +5328,10 @@ class HistoryStateManager extends StateManager {
|
|
|
5340
5328
|
}
|
|
5341
5329
|
return { navigationId };
|
|
5342
5330
|
}
|
|
5343
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5344
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5332
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: HistoryStateManager, providedIn: 'root' });
|
|
5345
5333
|
}
|
|
5346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
5347
5335
|
type: Injectable,
|
|
5348
5336
|
args: [{ providedIn: 'root' }]
|
|
5349
5337
|
}] });
|
|
@@ -5908,10 +5896,10 @@ class Router {
|
|
|
5908
5896
|
return Promise.reject(e);
|
|
5909
5897
|
});
|
|
5910
5898
|
}
|
|
5911
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
5912
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
5899
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5900
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: Router, providedIn: 'root' });
|
|
5913
5901
|
}
|
|
5914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
5902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: Router, decorators: [{
|
|
5915
5903
|
type: Injectable,
|
|
5916
5904
|
args: [{ providedIn: 'root' }]
|
|
5917
5905
|
}], ctorParameters: () => [] });
|
|
@@ -6270,10 +6258,10 @@ class RouterLink {
|
|
|
6270
6258
|
preserveFragment: this.preserveFragment,
|
|
6271
6259
|
});
|
|
6272
6260
|
}
|
|
6273
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6274
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.
|
|
6261
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.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.2.0-next.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 });
|
|
6275
6263
|
}
|
|
6276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterLink, decorators: [{
|
|
6277
6265
|
type: Directive,
|
|
6278
6266
|
args: [{
|
|
6279
6267
|
selector: '[routerLink]',
|
|
@@ -6526,10 +6514,10 @@ class RouterLinkActive {
|
|
|
6526
6514
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6527
6515
|
return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);
|
|
6528
6516
|
}
|
|
6529
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6530
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
|
6517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.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.2.0-next.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 });
|
|
6531
6519
|
}
|
|
6532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6533
6521
|
type: Directive,
|
|
6534
6522
|
args: [{
|
|
6535
6523
|
selector: '[routerLinkActive]',
|
|
@@ -6580,10 +6568,10 @@ class PreloadAllModules {
|
|
|
6580
6568
|
preload(route, fn) {
|
|
6581
6569
|
return fn().pipe(catchError(() => of(null)));
|
|
6582
6570
|
}
|
|
6583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6584
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
6571
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6572
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });
|
|
6585
6573
|
}
|
|
6586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6587
6575
|
type: Injectable,
|
|
6588
6576
|
args: [{ providedIn: 'root' }]
|
|
6589
6577
|
}] });
|
|
@@ -6600,10 +6588,10 @@ class NoPreloading {
|
|
|
6600
6588
|
preload(route, fn) {
|
|
6601
6589
|
return of(null);
|
|
6602
6590
|
}
|
|
6603
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6604
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
6591
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6592
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NoPreloading, providedIn: 'root' });
|
|
6605
6593
|
}
|
|
6606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6607
6595
|
type: Injectable,
|
|
6608
6596
|
args: [{ providedIn: 'root' }]
|
|
6609
6597
|
}] });
|
|
@@ -6699,10 +6687,10 @@ class RouterPreloader {
|
|
|
6699
6687
|
}
|
|
6700
6688
|
});
|
|
6701
6689
|
}
|
|
6702
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6703
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
6690
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.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.2.0-next.0", ngImport: i0, type: RouterPreloader, providedIn: 'root' });
|
|
6704
6692
|
}
|
|
6705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6706
6694
|
type: Injectable,
|
|
6707
6695
|
args: [{ providedIn: 'root' }]
|
|
6708
6696
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6802,10 +6790,10 @@ class RouterScroller {
|
|
|
6802
6790
|
this.routerEventsSubscription?.unsubscribe();
|
|
6803
6791
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6804
6792
|
}
|
|
6805
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
6806
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.
|
|
6793
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
6794
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterScroller });
|
|
6807
6795
|
}
|
|
6808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
6796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6809
6797
|
type: Injectable
|
|
6810
6798
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6811
6799
|
|
|
@@ -7481,11 +7469,11 @@ class RouterModule {
|
|
|
7481
7469
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
7482
7470
|
};
|
|
7483
7471
|
}
|
|
7484
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
|
7485
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
|
7486
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.
|
|
7472
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7473
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
7474
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterModule });
|
|
7487
7475
|
}
|
|
7488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
|
7476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0", ngImport: i0, type: RouterModule, decorators: [{
|
|
7489
7477
|
type: NgModule,
|
|
7490
7478
|
args: [{
|
|
7491
7479
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7625,7 +7613,7 @@ function mapToResolve(provider) {
|
|
|
7625
7613
|
/**
|
|
7626
7614
|
* @publicApi
|
|
7627
7615
|
*/
|
|
7628
|
-
const VERSION = new Version('19.
|
|
7616
|
+
const VERSION = new Version('19.2.0-next.0');
|
|
7629
7617
|
|
|
7630
7618
|
function getLoadedRoutes(route) {
|
|
7631
7619
|
return route._loadedRoutes;
|