@angular/router 19.2.2 → 19.2.4
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 +103 -122
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- 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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.4
|
|
3
3
|
* (c) 2010-2025 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.2.
|
|
437
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
437
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });
|
|
438
438
|
}
|
|
439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
440
440
|
type: Injectable,
|
|
441
441
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
442
442
|
}] });
|
|
@@ -2109,10 +2109,10 @@ class ChildrenOutletContexts {
|
|
|
2109
2109
|
getContext(childName) {
|
|
2110
2110
|
return this.contexts.get(childName) || null;
|
|
2111
2111
|
}
|
|
2112
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2113
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ChildrenOutletContexts, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2113
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });
|
|
2114
2114
|
}
|
|
2115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
2116
2116
|
type: Injectable,
|
|
2117
2117
|
args: [{ providedIn: 'root' }]
|
|
2118
2118
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
@@ -2899,10 +2899,10 @@ class RouterOutlet {
|
|
|
2899
2899
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2900
2900
|
this.activateEvents.emit(this.activated.instance);
|
|
2901
2901
|
}
|
|
2902
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2903
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.
|
|
2902
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2903
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.4", 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 });
|
|
2904
2904
|
}
|
|
2905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2906
2906
|
type: Directive,
|
|
2907
2907
|
args: [{
|
|
2908
2908
|
selector: 'router-outlet',
|
|
@@ -3030,10 +3030,10 @@ class RoutedComponentInputBinder {
|
|
|
3030
3030
|
});
|
|
3031
3031
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
3032
3032
|
}
|
|
3033
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3034
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
3033
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3034
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RoutedComponentInputBinder });
|
|
3035
3035
|
}
|
|
3036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
3037
3037
|
type: Injectable
|
|
3038
3038
|
}] });
|
|
3039
3039
|
|
|
@@ -4366,10 +4366,10 @@ class TitleStrategy {
|
|
|
4366
4366
|
getResolvedTitleForRoute(snapshot) {
|
|
4367
4367
|
return snapshot.data[RouteTitleKey];
|
|
4368
4368
|
}
|
|
4369
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4370
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4369
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4370
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });
|
|
4371
4371
|
}
|
|
4372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4373
4373
|
type: Injectable,
|
|
4374
4374
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4375
4375
|
}] });
|
|
@@ -4393,10 +4393,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4393
4393
|
this.title.setTitle(title);
|
|
4394
4394
|
}
|
|
4395
4395
|
}
|
|
4396
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4397
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4396
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4397
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
4398
4398
|
}
|
|
4399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4400
4400
|
type: Injectable,
|
|
4401
4401
|
args: [{ providedIn: 'root' }]
|
|
4402
4402
|
}], ctorParameters: () => [{ type: i1.Title }] });
|
|
@@ -4421,10 +4421,10 @@ const ROUTER_CONFIGURATION = new InjectionToken(typeof ngDevMode === 'undefined'
|
|
|
4421
4421
|
* to this `EmptyOutletComponent`.
|
|
4422
4422
|
*/
|
|
4423
4423
|
class ɵEmptyOutletComponent {
|
|
4424
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4425
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4424
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4425
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.4", 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"] }] });
|
|
4426
4426
|
}
|
|
4427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
4428
4428
|
type: Component,
|
|
4429
4429
|
args: [{
|
|
4430
4430
|
template: `<router-outlet/>`,
|
|
@@ -4510,10 +4510,10 @@ class RouterConfigLoader {
|
|
|
4510
4510
|
this.childrenLoaders.set(route, loader);
|
|
4511
4511
|
return loader;
|
|
4512
4512
|
}
|
|
4513
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4514
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4513
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4514
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });
|
|
4515
4515
|
}
|
|
4516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4517
4517
|
type: Injectable,
|
|
4518
4518
|
args: [{ providedIn: 'root' }]
|
|
4519
4519
|
}] });
|
|
@@ -4580,10 +4580,10 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4580
4580
|
* @publicApi
|
|
4581
4581
|
*/
|
|
4582
4582
|
class UrlHandlingStrategy {
|
|
4583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4584
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4583
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4584
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });
|
|
4585
4585
|
}
|
|
4586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4587
4587
|
type: Injectable,
|
|
4588
4588
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4589
4589
|
}] });
|
|
@@ -4600,10 +4600,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4600
4600
|
merge(newUrlPart, wholeUrl) {
|
|
4601
4601
|
return newUrlPart;
|
|
4602
4602
|
}
|
|
4603
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4604
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4603
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4604
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });
|
|
4605
4605
|
}
|
|
4606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4607
4607
|
type: Injectable,
|
|
4608
4608
|
args: [{ providedIn: 'root' }]
|
|
4609
4609
|
}] });
|
|
@@ -4717,35 +4717,19 @@ class NavigationTransitions {
|
|
|
4717
4717
|
}
|
|
4718
4718
|
handleNavigationRequest(request) {
|
|
4719
4719
|
const id = ++this.navigationId;
|
|
4720
|
-
this.transitions?.next({
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
this.transitions = new BehaviorSubject({
|
|
4724
|
-
id: 0,
|
|
4725
|
-
currentUrlTree: initialUrlTree,
|
|
4726
|
-
currentRawUrl: initialUrlTree,
|
|
4727
|
-
extractedUrl: this.urlHandlingStrategy.extract(initialUrlTree),
|
|
4728
|
-
urlAfterRedirects: this.urlHandlingStrategy.extract(initialUrlTree),
|
|
4729
|
-
rawUrl: initialUrlTree,
|
|
4730
|
-
extras: {},
|
|
4731
|
-
resolve: () => { },
|
|
4732
|
-
reject: () => { },
|
|
4733
|
-
promise: Promise.resolve(true),
|
|
4734
|
-
source: IMPERATIVE_NAVIGATION,
|
|
4735
|
-
restoredState: null,
|
|
4736
|
-
currentSnapshot: initialRouterState.snapshot,
|
|
4720
|
+
this.transitions?.next({
|
|
4721
|
+
...request,
|
|
4722
|
+
extractedUrl: this.urlHandlingStrategy.extract(request.rawUrl),
|
|
4737
4723
|
targetSnapshot: null,
|
|
4738
|
-
currentRouterState: initialRouterState,
|
|
4739
4724
|
targetRouterState: null,
|
|
4740
4725
|
guards: { canActivateChecks: [], canDeactivateChecks: [] },
|
|
4741
4726
|
guardsResult: null,
|
|
4727
|
+
id,
|
|
4742
4728
|
});
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl),
|
|
4748
|
-
})),
|
|
4729
|
+
}
|
|
4730
|
+
setupNavigations(router) {
|
|
4731
|
+
this.transitions = new BehaviorSubject(null);
|
|
4732
|
+
return this.transitions.pipe(filter((t) => t !== null),
|
|
4749
4733
|
// Using switchMap so we cancel executing navigations when a new one comes in
|
|
4750
4734
|
switchMap((overallTransitionState) => {
|
|
4751
4735
|
let completed = false;
|
|
@@ -4794,9 +4778,8 @@ class NavigationTransitions {
|
|
|
4794
4778
|
return of(t).pipe(
|
|
4795
4779
|
// Fire NavigationStart event
|
|
4796
4780
|
switchMap((t) => {
|
|
4797
|
-
const transition = this.transitions?.getValue();
|
|
4798
4781
|
this.events.next(new NavigationStart(t.id, this.urlSerializer.serialize(t.extractedUrl), t.source, t.restoredState));
|
|
4799
|
-
if (
|
|
4782
|
+
if (t.id !== this.navigationId) {
|
|
4800
4783
|
return EMPTY;
|
|
4801
4784
|
}
|
|
4802
4785
|
// This delay is required to match old behavior that forced
|
|
@@ -4877,28 +4860,28 @@ class NavigationTransitions {
|
|
|
4877
4860
|
}),
|
|
4878
4861
|
// --- RESOLVE ---
|
|
4879
4862
|
switchTap((t) => {
|
|
4880
|
-
if (t.guards.canActivateChecks.length) {
|
|
4881
|
-
return
|
|
4882
|
-
const resolveStart = new ResolveStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
|
|
4883
|
-
this.events.next(resolveStart);
|
|
4884
|
-
}), switchMap((t) => {
|
|
4885
|
-
let dataResolved = false;
|
|
4886
|
-
return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.environmentInjector), tap({
|
|
4887
|
-
next: () => (dataResolved = true),
|
|
4888
|
-
complete: () => {
|
|
4889
|
-
if (!dataResolved) {
|
|
4890
|
-
this.cancelNavigationTransition(t, typeof ngDevMode === 'undefined' || ngDevMode
|
|
4891
|
-
? `At least one route resolver didn't emit any value.`
|
|
4892
|
-
: '', NavigationCancellationCode.NoDataFromResolver);
|
|
4893
|
-
}
|
|
4894
|
-
},
|
|
4895
|
-
}));
|
|
4896
|
-
}), tap((t) => {
|
|
4897
|
-
const resolveEnd = new ResolveEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
|
|
4898
|
-
this.events.next(resolveEnd);
|
|
4899
|
-
}));
|
|
4863
|
+
if (t.guards.canActivateChecks.length === 0) {
|
|
4864
|
+
return undefined;
|
|
4900
4865
|
}
|
|
4901
|
-
return
|
|
4866
|
+
return of(t).pipe(tap((t) => {
|
|
4867
|
+
const resolveStart = new ResolveStart(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
|
|
4868
|
+
this.events.next(resolveStart);
|
|
4869
|
+
}), switchMap((t) => {
|
|
4870
|
+
let dataResolved = false;
|
|
4871
|
+
return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.environmentInjector), tap({
|
|
4872
|
+
next: () => (dataResolved = true),
|
|
4873
|
+
complete: () => {
|
|
4874
|
+
if (!dataResolved) {
|
|
4875
|
+
this.cancelNavigationTransition(t, typeof ngDevMode === 'undefined' || ngDevMode
|
|
4876
|
+
? `At least one route resolver didn't emit any value.`
|
|
4877
|
+
: '', NavigationCancellationCode.NoDataFromResolver);
|
|
4878
|
+
}
|
|
4879
|
+
},
|
|
4880
|
+
}));
|
|
4881
|
+
}), tap((t) => {
|
|
4882
|
+
const resolveEnd = new ResolveEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects), t.targetSnapshot);
|
|
4883
|
+
this.events.next(resolveEnd);
|
|
4884
|
+
}));
|
|
4902
4885
|
}),
|
|
4903
4886
|
// --- LOAD COMPONENTS ---
|
|
4904
4887
|
switchTap((t) => {
|
|
@@ -5068,10 +5051,10 @@ class NavigationTransitions {
|
|
|
5068
5051
|
return (currentBrowserUrl.toString() !== targetBrowserUrl?.toString() &&
|
|
5069
5052
|
!this.currentNavigation?.extras.skipLocationChange);
|
|
5070
5053
|
}
|
|
5071
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5072
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
5054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5055
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });
|
|
5073
5056
|
}
|
|
5074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
5075
5058
|
type: Injectable,
|
|
5076
5059
|
args: [{ providedIn: 'root' }]
|
|
5077
5060
|
}], ctorParameters: () => [] });
|
|
@@ -5087,10 +5070,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
5087
5070
|
* @publicApi
|
|
5088
5071
|
*/
|
|
5089
5072
|
class RouteReuseStrategy {
|
|
5090
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5091
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
5073
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5074
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });
|
|
5092
5075
|
}
|
|
5093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
5094
5077
|
type: Injectable,
|
|
5095
5078
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
5096
5079
|
}] });
|
|
@@ -5141,19 +5124,19 @@ class BaseRouteReuseStrategy {
|
|
|
5141
5124
|
}
|
|
5142
5125
|
}
|
|
5143
5126
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
5144
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5145
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
5127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5128
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });
|
|
5146
5129
|
}
|
|
5147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
5148
5131
|
type: Injectable,
|
|
5149
5132
|
args: [{ providedIn: 'root' }]
|
|
5150
5133
|
}] });
|
|
5151
5134
|
|
|
5152
5135
|
class StateManager {
|
|
5153
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5154
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
5136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5137
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) });
|
|
5155
5138
|
}
|
|
5156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: StateManager, decorators: [{
|
|
5157
5140
|
type: Injectable,
|
|
5158
5141
|
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
5159
5142
|
}] });
|
|
@@ -5320,10 +5303,10 @@ class HistoryStateManager extends StateManager {
|
|
|
5320
5303
|
}
|
|
5321
5304
|
return { navigationId };
|
|
5322
5305
|
}
|
|
5323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5324
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
5306
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5307
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: HistoryStateManager, providedIn: 'root' });
|
|
5325
5308
|
}
|
|
5326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
5327
5310
|
type: Injectable,
|
|
5328
5311
|
args: [{ providedIn: 'root' }]
|
|
5329
5312
|
}] });
|
|
@@ -5463,9 +5446,7 @@ class Router {
|
|
|
5463
5446
|
componentInputBindingEnabled = !!inject(INPUT_BINDER, { optional: true });
|
|
5464
5447
|
constructor() {
|
|
5465
5448
|
this.resetConfig(this.config);
|
|
5466
|
-
this.navigationTransitions
|
|
5467
|
-
.setupNavigations(this, this.currentUrlTree, this.routerState)
|
|
5468
|
-
.subscribe({
|
|
5449
|
+
this.navigationTransitions.setupNavigations(this).subscribe({
|
|
5469
5450
|
error: (e) => {
|
|
5470
5451
|
this.console.warn(ngDevMode ? `Unhandled Navigation Error: ${e}` : e);
|
|
5471
5452
|
},
|
|
@@ -5888,10 +5869,10 @@ class Router {
|
|
|
5888
5869
|
return Promise.reject(e);
|
|
5889
5870
|
});
|
|
5890
5871
|
}
|
|
5891
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5892
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
5872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5873
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: Router, providedIn: 'root' });
|
|
5893
5874
|
}
|
|
5894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: Router, decorators: [{
|
|
5895
5876
|
type: Injectable,
|
|
5896
5877
|
args: [{ providedIn: 'root' }]
|
|
5897
5878
|
}], ctorParameters: () => [] });
|
|
@@ -6250,10 +6231,10 @@ class RouterLink {
|
|
|
6250
6231
|
preserveFragment: this.preserveFragment,
|
|
6251
6232
|
});
|
|
6252
6233
|
}
|
|
6253
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6254
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.
|
|
6234
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", 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 });
|
|
6235
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.4", 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 });
|
|
6255
6236
|
}
|
|
6256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterLink, decorators: [{
|
|
6257
6238
|
type: Directive,
|
|
6258
6239
|
args: [{
|
|
6259
6240
|
selector: '[routerLink]',
|
|
@@ -6506,10 +6487,10 @@ class RouterLinkActive {
|
|
|
6506
6487
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6507
6488
|
return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);
|
|
6508
6489
|
}
|
|
6509
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6510
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6490
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6491
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.4", 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 });
|
|
6511
6492
|
}
|
|
6512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6513
6494
|
type: Directive,
|
|
6514
6495
|
args: [{
|
|
6515
6496
|
selector: '[routerLinkActive]',
|
|
@@ -6560,10 +6541,10 @@ class PreloadAllModules {
|
|
|
6560
6541
|
preload(route, fn) {
|
|
6561
6542
|
return fn().pipe(catchError(() => of(null)));
|
|
6562
6543
|
}
|
|
6563
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6564
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
6544
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6545
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });
|
|
6565
6546
|
}
|
|
6566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6567
6548
|
type: Injectable,
|
|
6568
6549
|
args: [{ providedIn: 'root' }]
|
|
6569
6550
|
}] });
|
|
@@ -6580,10 +6561,10 @@ class NoPreloading {
|
|
|
6580
6561
|
preload(route, fn) {
|
|
6581
6562
|
return of(null);
|
|
6582
6563
|
}
|
|
6583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6584
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
6564
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6565
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NoPreloading, providedIn: 'root' });
|
|
6585
6566
|
}
|
|
6586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6587
6568
|
type: Injectable,
|
|
6588
6569
|
args: [{ providedIn: 'root' }]
|
|
6589
6570
|
}] });
|
|
@@ -6679,10 +6660,10 @@ class RouterPreloader {
|
|
|
6679
6660
|
}
|
|
6680
6661
|
});
|
|
6681
6662
|
}
|
|
6682
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6683
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
6663
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6664
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterPreloader, providedIn: 'root' });
|
|
6684
6665
|
}
|
|
6685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6686
6667
|
type: Injectable,
|
|
6687
6668
|
args: [{ providedIn: 'root' }]
|
|
6688
6669
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6782,10 +6763,10 @@ class RouterScroller {
|
|
|
6782
6763
|
this.routerEventsSubscription?.unsubscribe();
|
|
6783
6764
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6784
6765
|
}
|
|
6785
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6786
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
6766
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
6767
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterScroller });
|
|
6787
6768
|
}
|
|
6788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6789
6770
|
type: Injectable
|
|
6790
6771
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6791
6772
|
|
|
@@ -7461,11 +7442,11 @@ class RouterModule {
|
|
|
7461
7442
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
7462
7443
|
};
|
|
7463
7444
|
}
|
|
7464
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7465
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
7466
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
7445
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7446
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.4", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
7447
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterModule });
|
|
7467
7448
|
}
|
|
7468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: RouterModule, decorators: [{
|
|
7469
7450
|
type: NgModule,
|
|
7470
7451
|
args: [{
|
|
7471
7452
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7605,7 +7586,7 @@ function mapToResolve(provider) {
|
|
|
7605
7586
|
/**
|
|
7606
7587
|
* @publicApi
|
|
7607
7588
|
*/
|
|
7608
|
-
const VERSION = new Version('19.2.
|
|
7589
|
+
const VERSION = new Version('19.2.4');
|
|
7609
7590
|
|
|
7610
7591
|
export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTER_OUTLET_DATA, ROUTES, RedirectCommand, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, mapToCanActivate, mapToCanActivateChild, mapToCanDeactivate, mapToCanMatch, mapToResolve, provideRouter, provideRoutes, withComponentInputBinding, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withHashLocation, withInMemoryScrolling, withNavigationErrorHandler, withPreloading, withRouterConfig, withViewTransitions, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, afterNextNavigation as ɵafterNextNavigation, loadChildren as ɵloadChildren };
|
|
7611
7592
|
//# sourceMappingURL=router.mjs.map
|