@angular/router 14.0.0-next.4 → 14.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/apply_redirects.mjs +10 -11
- package/esm2020/src/components/empty_outlet.mjs +3 -3
- package/esm2020/src/directives/router_link.mjs +6 -6
- package/esm2020/src/directives/router_link_active.mjs +3 -3
- package/esm2020/src/directives/router_outlet.mjs +3 -3
- package/esm2020/src/models.mjs +1 -1
- package/esm2020/src/operators/resolve_data.mjs +3 -3
- package/esm2020/src/page_title_strategy.mjs +3 -3
- package/esm2020/src/recognize.mjs +4 -4
- package/esm2020/src/router.mjs +3 -3
- package/esm2020/src/router_module.mjs +7 -7
- package/esm2020/src/router_preloader.mjs +3 -3
- package/esm2020/src/router_scroller.mjs +3 -3
- package/esm2020/src/utils/config.mjs +1 -4
- package/esm2020/src/utils/config_matching.mjs +4 -4
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_module.mjs +4 -4
- package/fesm2015/router.mjs +52 -56
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +52 -56
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/fesm2020/upgrade.mjs +1 -1
- package/package.json +4 -4
- package/router.d.ts +2 -2
- package/testing/testing.d.ts +1 -1
- package/upgrade/upgrade.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.5
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -101,9 +101,9 @@ class RouterTestingModule {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
105
|
-
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
106
|
-
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
104
|
+
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
105
|
+
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
106
|
+
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterTestingModule, providers: [
|
|
107
107
|
ɵROUTER_PROVIDERS,
|
|
108
108
|
EXTRA_ROUTER_TESTING_PROVIDERS,
|
|
109
109
|
{ provide: Location, useClass: SpyLocation },
|
|
@@ -128,7 +128,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
128
128
|
{ provide: PreloadingStrategy, useExisting: NoPreloading },
|
|
129
129
|
provideRoutes([]),
|
|
130
130
|
], imports: [RouterModule] });
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
132
132
|
type: NgModule,
|
|
133
133
|
args: [{
|
|
134
134
|
exports: [RouterModule],
|
package/fesm2015/upgrade.mjs
CHANGED
package/fesm2020/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.5
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8,7 +8,7 @@ import * as i3 from '@angular/common';
|
|
|
8
8
|
import { Location, LocationStrategy, PlatformLocation, APP_BASE_HREF, ViewportScroller, HashLocationStrategy, PathLocationStrategy, LOCATION_INITIALIZED } from '@angular/common';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { ɵisObservable, ɵisPromise, EventEmitter, Directive, Attribute, Output, Component, NgModuleRef, InjectionToken, InjectFlags, NgModuleFactory, ɵConsole, NgZone, Injectable, ɵcoerceToBoolean, Input, HostListener, HostBinding, Optional, ContentChildren, Injector, Compiler, NgProbeToken, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, Inject, APP_INITIALIZER, APP_BOOTSTRAP_LISTENER, NgModule, ApplicationRef, Version } from '@angular/core';
|
|
11
|
-
import { from, of, BehaviorSubject, combineLatest,
|
|
11
|
+
import { from, of, BehaviorSubject, combineLatest, throwError, EmptyError, concat, defer, Observable, EMPTY, ConnectableObservable, Subject } from 'rxjs';
|
|
12
12
|
import { map, switchMap, take, startWith, scan, filter, catchError, concatMap, last as last$1, first, mergeMap, tap, takeLast, refCount, finalize, mergeAll } from 'rxjs/operators';
|
|
13
13
|
import * as i1 from '@angular/platform-browser';
|
|
14
14
|
|
|
@@ -2525,9 +2525,9 @@ class RouterOutlet {
|
|
|
2525
2525
|
this.activateEvents.emit(this.activated.instance);
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
|
-
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2529
|
-
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2528
|
+
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterOutlet, deps: [{ token: ChildrenOutletContexts }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: 'name', attribute: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2529
|
+
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: RouterOutlet, selector: "router-outlet", outputs: { activateEvents: "activate", deactivateEvents: "deactivate", attachEvents: "attach", detachEvents: "detach" }, exportAs: ["outlet"], ngImport: i0 });
|
|
2530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2531
2531
|
type: Directive,
|
|
2532
2532
|
args: [{ selector: 'router-outlet', exportAs: 'outlet' }]
|
|
2533
2533
|
}], ctorParameters: function () { return [{ type: ChildrenOutletContexts }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: undefined, decorators: [{
|
|
@@ -2581,9 +2581,9 @@ class OutletInjector {
|
|
|
2581
2581
|
*/
|
|
2582
2582
|
class ɵEmptyOutletComponent {
|
|
2583
2583
|
}
|
|
2584
|
-
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2585
|
-
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2584
|
+
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2585
|
+
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.5", type: ɵEmptyOutletComponent, selector: "ng-component", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, directives: [{ type: RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
2586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2587
2587
|
type: Component,
|
|
2588
2588
|
args: [{ template: `<router-outlet></router-outlet>` }]
|
|
2589
2589
|
}] });
|
|
@@ -2657,9 +2657,6 @@ function validateNode(route, fullPath) {
|
|
|
2657
2657
|
const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;
|
|
2658
2658
|
throw new Error(`Invalid configuration of route '{path: "${fullPath}", redirectTo: "${route.redirectTo}"}': please provide 'pathMatch'. ${exp}`);
|
|
2659
2659
|
}
|
|
2660
|
-
if (route.pathMatch !== void 0 && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {
|
|
2661
|
-
throw new Error(`Invalid configuration of route '${fullPath}': pathMatch can only be set to 'prefix' or 'full'`);
|
|
2662
|
-
}
|
|
2663
2660
|
}
|
|
2664
2661
|
if (route.children) {
|
|
2665
2662
|
validateConfig(route.children, fullPath);
|
|
@@ -2717,7 +2714,7 @@ function sortByMatchingOutlets(routes, outletName) {
|
|
|
2717
2714
|
const noMatch$1 = {
|
|
2718
2715
|
matched: false,
|
|
2719
2716
|
consumedSegments: [],
|
|
2720
|
-
|
|
2717
|
+
remainingSegments: [],
|
|
2721
2718
|
parameters: {},
|
|
2722
2719
|
positionalParamSegments: {}
|
|
2723
2720
|
};
|
|
@@ -2729,7 +2726,7 @@ function match(segmentGroup, route, segments) {
|
|
|
2729
2726
|
return {
|
|
2730
2727
|
matched: true,
|
|
2731
2728
|
consumedSegments: [],
|
|
2732
|
-
|
|
2729
|
+
remainingSegments: segments,
|
|
2733
2730
|
parameters: {},
|
|
2734
2731
|
positionalParamSegments: {}
|
|
2735
2732
|
};
|
|
@@ -2748,7 +2745,7 @@ function match(segmentGroup, route, segments) {
|
|
|
2748
2745
|
return {
|
|
2749
2746
|
matched: true,
|
|
2750
2747
|
consumedSegments: res.consumed,
|
|
2751
|
-
|
|
2748
|
+
remainingSegments: segments.slice(res.consumed.length),
|
|
2752
2749
|
// TODO(atscott): investigate combining parameters and positionalParamSegments
|
|
2753
2750
|
parameters,
|
|
2754
2751
|
positionalParamSegments: res.posParams ?? {}
|
|
@@ -2866,16 +2863,16 @@ class AbsoluteRedirect {
|
|
|
2866
2863
|
}
|
|
2867
2864
|
}
|
|
2868
2865
|
function noMatch(segmentGroup) {
|
|
2869
|
-
return
|
|
2866
|
+
return throwError(new NoMatch$1(segmentGroup));
|
|
2870
2867
|
}
|
|
2871
2868
|
function absoluteRedirect(newTree) {
|
|
2872
|
-
return
|
|
2869
|
+
return throwError(new AbsoluteRedirect(newTree));
|
|
2873
2870
|
}
|
|
2874
2871
|
function namedOutletsRedirect(redirectTo) {
|
|
2875
|
-
return
|
|
2872
|
+
return throwError(new Error(`Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));
|
|
2876
2873
|
}
|
|
2877
2874
|
function canLoadFails(route) {
|
|
2878
|
-
return
|
|
2875
|
+
return throwError(navigationCancelingError(`Cannot load children because the guard of the route "path: '${route.path}'" returned false`));
|
|
2879
2876
|
}
|
|
2880
2877
|
/**
|
|
2881
2878
|
* Returns the `UrlTree` with the redirection applied.
|
|
@@ -3024,7 +3021,7 @@ class ApplyRedirects {
|
|
|
3024
3021
|
}));
|
|
3025
3022
|
}
|
|
3026
3023
|
expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
|
|
3027
|
-
const { matched, consumedSegments,
|
|
3024
|
+
const { matched, consumedSegments, remainingSegments, positionalParamSegments } = match(segmentGroup, route, segments);
|
|
3028
3025
|
if (!matched)
|
|
3029
3026
|
return noMatch(segmentGroup);
|
|
3030
3027
|
const newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);
|
|
@@ -3032,7 +3029,7 @@ class ApplyRedirects {
|
|
|
3032
3029
|
return absoluteRedirect(newTree);
|
|
3033
3030
|
}
|
|
3034
3031
|
return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {
|
|
3035
|
-
return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(
|
|
3032
|
+
return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(remainingSegments), outlet, false);
|
|
3036
3033
|
}));
|
|
3037
3034
|
}
|
|
3038
3035
|
matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments, outlet) {
|
|
@@ -3047,15 +3044,14 @@ class ApplyRedirects {
|
|
|
3047
3044
|
}
|
|
3048
3045
|
return of(new UrlSegmentGroup(segments, {}));
|
|
3049
3046
|
}
|
|
3050
|
-
const { matched, consumedSegments,
|
|
3047
|
+
const { matched, consumedSegments, remainingSegments } = match(rawSegmentGroup, route, segments);
|
|
3051
3048
|
if (!matched)
|
|
3052
3049
|
return noMatch(rawSegmentGroup);
|
|
3053
|
-
const rawSlicedSegments = segments.slice(lastChild);
|
|
3054
3050
|
const childConfig$ = this.getChildConfig(ngModule, route, segments);
|
|
3055
3051
|
return childConfig$.pipe(mergeMap((routerConfig) => {
|
|
3056
3052
|
const childModule = routerConfig.module;
|
|
3057
3053
|
const childConfig = routerConfig.routes;
|
|
3058
|
-
const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments,
|
|
3054
|
+
const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments, remainingSegments, childConfig);
|
|
3059
3055
|
// See comment on the other call to `split` about why this is necessary.
|
|
3060
3056
|
const segmentGroup = new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);
|
|
3061
3057
|
if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
|
|
@@ -3632,7 +3628,7 @@ class Recognizer {
|
|
|
3632
3628
|
return null;
|
|
3633
3629
|
let snapshot;
|
|
3634
3630
|
let consumedSegments = [];
|
|
3635
|
-
let
|
|
3631
|
+
let remainingSegments = [];
|
|
3636
3632
|
if (route.path === '**') {
|
|
3637
3633
|
const params = segments.length > 0 ? last(segments).parameters : {};
|
|
3638
3634
|
snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, getData(route), getOutlet(route), route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));
|
|
@@ -3643,11 +3639,11 @@ class Recognizer {
|
|
|
3643
3639
|
return null;
|
|
3644
3640
|
}
|
|
3645
3641
|
consumedSegments = result.consumedSegments;
|
|
3646
|
-
|
|
3642
|
+
remainingSegments = result.remainingSegments;
|
|
3647
3643
|
snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze({ ...this.urlTree.queryParams }), this.urlTree.fragment, getData(route), getOutlet(route), route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));
|
|
3648
3644
|
}
|
|
3649
3645
|
const childConfig = getChildConfig(route);
|
|
3650
|
-
const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments,
|
|
3646
|
+
const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, remainingSegments,
|
|
3651
3647
|
// Filter out routes with redirectTo because we are trying to create activated route
|
|
3652
3648
|
// snapshots and don't handle redirects here. That should have been done in
|
|
3653
3649
|
// `applyRedirects`.
|
|
@@ -3833,7 +3829,7 @@ function resolveNode(resolve, futureARS, futureRSS, moduleInjector) {
|
|
|
3833
3829
|
}
|
|
3834
3830
|
const data = {};
|
|
3835
3831
|
return from(keys).pipe(mergeMap(key => getResolver(resolve[key], futureARS, futureRSS, moduleInjector)
|
|
3836
|
-
.pipe(tap((value) => {
|
|
3832
|
+
.pipe(take(1), tap((value) => {
|
|
3837
3833
|
data[key] = value;
|
|
3838
3834
|
}))), takeLast(1), mergeMap(() => {
|
|
3839
3835
|
// Ensure all resolvers returned values, otherwise don't emit any "next" and just complete
|
|
@@ -5003,9 +4999,9 @@ class Router {
|
|
|
5003
4999
|
return { navigationId };
|
|
5004
5000
|
}
|
|
5005
5001
|
}
|
|
5006
|
-
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5007
|
-
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5002
|
+
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: Router, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
5003
|
+
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: Router });
|
|
5004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: Router, decorators: [{
|
|
5009
5005
|
type: Injectable
|
|
5010
5006
|
}], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });
|
|
5011
5007
|
function validateCommands(commands) {
|
|
@@ -5204,9 +5200,9 @@ class RouterLink {
|
|
|
5204
5200
|
});
|
|
5205
5201
|
}
|
|
5206
5202
|
}
|
|
5207
|
-
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5208
|
-
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5203
|
+
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5204
|
+
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: { queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", state: "state", relativeTo: "relativeTo", routerLink: "routerLink" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
|
|
5205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterLink, decorators: [{
|
|
5210
5206
|
type: Directive,
|
|
5211
5207
|
args: [{ selector: ':not(a):not(area)[routerLink]' }]
|
|
5212
5208
|
}], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: undefined, decorators: [{
|
|
@@ -5323,9 +5319,9 @@ class RouterLinkWithHref {
|
|
|
5323
5319
|
});
|
|
5324
5320
|
}
|
|
5325
5321
|
}
|
|
5326
|
-
RouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5327
|
-
RouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5322
|
+
RouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterLinkWithHref, deps: [{ token: Router }, { token: ActivatedRoute }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5323
|
+
RouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", state: "state", relativeTo: "relativeTo", routerLink: "routerLink" }, host: { listeners: { "click": "onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)" }, properties: { "attr.target": "this.target", "attr.href": "this.href" } }, usesOnChanges: true, ngImport: i0 });
|
|
5324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterLinkWithHref, decorators: [{
|
|
5329
5325
|
type: Directive,
|
|
5330
5326
|
args: [{ selector: 'a[routerLink],area[routerLink]' }]
|
|
5331
5327
|
}], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: i3.LocationStrategy }]; }, propDecorators: { target: [{
|
|
@@ -5534,9 +5530,9 @@ class RouterLinkActive {
|
|
|
5534
5530
|
this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
|
|
5535
5531
|
}
|
|
5536
5532
|
}
|
|
5537
|
-
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5538
|
-
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5533
|
+
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }, { token: RouterLinkWithHref, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5534
|
+
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.5", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: { routerLinkActiveOptions: "routerLinkActiveOptions", routerLinkActive: "routerLinkActive" }, outputs: { isActiveChange: "isActiveChange" }, queries: [{ propertyName: "links", predicate: RouterLink, descendants: true }, { propertyName: "linksWithHrefs", predicate: RouterLinkWithHref, descendants: true }], exportAs: ["routerLinkActive"], usesOnChanges: true, ngImport: i0 });
|
|
5535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
5540
5536
|
type: Directive,
|
|
5541
5537
|
args: [{
|
|
5542
5538
|
selector: '[routerLinkActive]',
|
|
@@ -5637,9 +5633,9 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
5637
5633
|
}
|
|
5638
5634
|
}
|
|
5639
5635
|
}
|
|
5640
|
-
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5641
|
-
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5636
|
+
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5637
|
+
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
5638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
5643
5639
|
type: Injectable,
|
|
5644
5640
|
args: [{ providedIn: 'root' }]
|
|
5645
5641
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -5757,9 +5753,9 @@ class RouterPreloader {
|
|
|
5757
5753
|
});
|
|
5758
5754
|
}
|
|
5759
5755
|
}
|
|
5760
|
-
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5761
|
-
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5756
|
+
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.Injector }, { token: PreloadingStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5757
|
+
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterPreloader });
|
|
5758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
5763
5759
|
type: Injectable
|
|
5764
5760
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.Injector }, { type: PreloadingStrategy }]; } });
|
|
5765
5761
|
|
|
@@ -5845,9 +5841,9 @@ class RouterScroller {
|
|
|
5845
5841
|
}
|
|
5846
5842
|
}
|
|
5847
5843
|
}
|
|
5848
|
-
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5849
|
-
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5844
|
+
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
5845
|
+
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterScroller });
|
|
5846
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterScroller, decorators: [{
|
|
5851
5847
|
type: Injectable
|
|
5852
5848
|
}], ctorParameters: function () { return [{ type: Router }, { type: i3.ViewportScroller }, { type: undefined }]; } });
|
|
5853
5849
|
|
|
@@ -5988,10 +5984,10 @@ class RouterModule {
|
|
|
5988
5984
|
return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
|
|
5989
5985
|
}
|
|
5990
5986
|
}
|
|
5991
|
-
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5992
|
-
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5993
|
-
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5987
|
+
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5988
|
+
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterModule, declarations: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
5989
|
+
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterModule });
|
|
5990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterModule, decorators: [{
|
|
5995
5991
|
type: NgModule,
|
|
5996
5992
|
args: [{
|
|
5997
5993
|
declarations: ROUTER_DIRECTIVES,
|
|
@@ -6170,9 +6166,9 @@ class RouterInitializer {
|
|
|
6170
6166
|
this.destroyed = true;
|
|
6171
6167
|
}
|
|
6172
6168
|
}
|
|
6173
|
-
RouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
6174
|
-
RouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
6175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
6169
|
+
RouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6170
|
+
RouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterInitializer });
|
|
6171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: RouterInitializer, decorators: [{
|
|
6176
6172
|
type: Injectable
|
|
6177
6173
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
6178
6174
|
function getAppInitializer(r) {
|
|
@@ -6212,7 +6208,7 @@ function provideRouterInitializer() {
|
|
|
6212
6208
|
/**
|
|
6213
6209
|
* @publicApi
|
|
6214
6210
|
*/
|
|
6215
|
-
const VERSION = new Version('14.0.0-next.
|
|
6211
|
+
const VERSION = new Version('14.0.0-next.5');
|
|
6216
6212
|
|
|
6217
6213
|
/**
|
|
6218
6214
|
* @license
|