@angular/router 14.0.0-next.3 → 14.0.0-next.6
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 +11 -12
- 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 +4 -18
- 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 +56 -74
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2015/upgrade.mjs.map +1 -1
- package/fesm2020/router.mjs +53 -71
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +1 -1
- package/fesm2020/upgrade.mjs.map +1 -1
- package/package.json +5 -5
- package/router.d.ts +2 -2
- package/testing/testing.d.ts +1 -1
- package/upgrade/upgrade.d.ts +1 -1
package/fesm2015/router.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.6
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
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';
|
|
9
|
-
import { from, of, BehaviorSubject, combineLatest,
|
|
9
|
+
import { from, of, BehaviorSubject, combineLatest, throwError, EmptyError, concat, defer, Observable, EMPTY, ConnectableObservable, Subject } from 'rxjs';
|
|
10
10
|
import { map, switchMap, take, startWith, scan, filter, catchError, concatMap, last as last$1, first, mergeMap, tap, takeLast, refCount, finalize, mergeAll } from 'rxjs/operators';
|
|
11
11
|
import * as i3 from '@angular/common';
|
|
12
12
|
import { Location, LocationStrategy, PlatformLocation, APP_BASE_HREF, ViewportScroller, HashLocationStrategy, PathLocationStrategy, LOCATION_INITIALIZED } from '@angular/common';
|
|
@@ -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.6", 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.6", 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.6", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2531
2531
|
type: Directive,
|
|
2532
2532
|
args: [{ selector: 'router-outlet', exportAs: 'outlet' }]
|
|
2533
2533
|
}], ctorParameters: function () {
|
|
@@ -2583,9 +2583,9 @@ class OutletInjector {
|
|
|
2583
2583
|
*/
|
|
2584
2584
|
class ɵEmptyOutletComponent {
|
|
2585
2585
|
}
|
|
2586
|
-
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2587
|
-
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2586
|
+
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2587
|
+
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "14.0.0-next.6", 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"] }] });
|
|
2588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2589
2589
|
type: Component,
|
|
2590
2590
|
args: [{ template: `<router-outlet></router-outlet>` }]
|
|
2591
2591
|
}] });
|
|
@@ -2659,9 +2659,6 @@ function validateNode(route, fullPath) {
|
|
|
2659
2659
|
const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;
|
|
2660
2660
|
throw new Error(`Invalid configuration of route '{path: "${fullPath}", redirectTo: "${route.redirectTo}"}': please provide 'pathMatch'. ${exp}`);
|
|
2661
2661
|
}
|
|
2662
|
-
if (route.pathMatch !== void 0 && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {
|
|
2663
|
-
throw new Error(`Invalid configuration of route '${fullPath}': pathMatch can only be set to 'prefix' or 'full'`);
|
|
2664
|
-
}
|
|
2665
2662
|
}
|
|
2666
2663
|
if (route.children) {
|
|
2667
2664
|
validateConfig(route.children, fullPath);
|
|
@@ -2719,7 +2716,7 @@ function sortByMatchingOutlets(routes, outletName) {
|
|
|
2719
2716
|
const noMatch$1 = {
|
|
2720
2717
|
matched: false,
|
|
2721
2718
|
consumedSegments: [],
|
|
2722
|
-
|
|
2719
|
+
remainingSegments: [],
|
|
2723
2720
|
parameters: {},
|
|
2724
2721
|
positionalParamSegments: {}
|
|
2725
2722
|
};
|
|
@@ -2732,7 +2729,7 @@ function match(segmentGroup, route, segments) {
|
|
|
2732
2729
|
return {
|
|
2733
2730
|
matched: true,
|
|
2734
2731
|
consumedSegments: [],
|
|
2735
|
-
|
|
2732
|
+
remainingSegments: segments,
|
|
2736
2733
|
parameters: {},
|
|
2737
2734
|
positionalParamSegments: {}
|
|
2738
2735
|
};
|
|
@@ -2750,7 +2747,7 @@ function match(segmentGroup, route, segments) {
|
|
|
2750
2747
|
return {
|
|
2751
2748
|
matched: true,
|
|
2752
2749
|
consumedSegments: res.consumed,
|
|
2753
|
-
|
|
2750
|
+
remainingSegments: segments.slice(res.consumed.length),
|
|
2754
2751
|
// TODO(atscott): investigate combining parameters and positionalParamSegments
|
|
2755
2752
|
parameters,
|
|
2756
2753
|
positionalParamSegments: (_a = res.posParams) !== null && _a !== void 0 ? _a : {}
|
|
@@ -2868,16 +2865,16 @@ class AbsoluteRedirect {
|
|
|
2868
2865
|
}
|
|
2869
2866
|
}
|
|
2870
2867
|
function noMatch(segmentGroup) {
|
|
2871
|
-
return
|
|
2868
|
+
return throwError(new NoMatch$1(segmentGroup));
|
|
2872
2869
|
}
|
|
2873
2870
|
function absoluteRedirect(newTree) {
|
|
2874
|
-
return
|
|
2871
|
+
return throwError(new AbsoluteRedirect(newTree));
|
|
2875
2872
|
}
|
|
2876
2873
|
function namedOutletsRedirect(redirectTo) {
|
|
2877
|
-
return
|
|
2874
|
+
return throwError(new Error(`Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));
|
|
2878
2875
|
}
|
|
2879
2876
|
function canLoadFails(route) {
|
|
2880
|
-
return
|
|
2877
|
+
return throwError(navigationCancelingError(`Cannot load children because the guard of the route "path: '${route.path}'" returned false`));
|
|
2881
2878
|
}
|
|
2882
2879
|
/**
|
|
2883
2880
|
* Returns the `UrlTree` with the redirection applied.
|
|
@@ -2992,7 +2989,7 @@ class ApplyRedirects {
|
|
|
2992
2989
|
if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
|
|
2993
2990
|
return of(new UrlSegmentGroup([], {}));
|
|
2994
2991
|
}
|
|
2995
|
-
|
|
2992
|
+
return noMatch(segmentGroup);
|
|
2996
2993
|
}
|
|
2997
2994
|
throw e;
|
|
2998
2995
|
}));
|
|
@@ -3026,7 +3023,7 @@ class ApplyRedirects {
|
|
|
3026
3023
|
}));
|
|
3027
3024
|
}
|
|
3028
3025
|
expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
|
|
3029
|
-
const { matched, consumedSegments,
|
|
3026
|
+
const { matched, consumedSegments, remainingSegments, positionalParamSegments } = match(segmentGroup, route, segments);
|
|
3030
3027
|
if (!matched)
|
|
3031
3028
|
return noMatch(segmentGroup);
|
|
3032
3029
|
const newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);
|
|
@@ -3034,7 +3031,7 @@ class ApplyRedirects {
|
|
|
3034
3031
|
return absoluteRedirect(newTree);
|
|
3035
3032
|
}
|
|
3036
3033
|
return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {
|
|
3037
|
-
return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(
|
|
3034
|
+
return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(remainingSegments), outlet, false);
|
|
3038
3035
|
}));
|
|
3039
3036
|
}
|
|
3040
3037
|
matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments, outlet) {
|
|
@@ -3049,15 +3046,14 @@ class ApplyRedirects {
|
|
|
3049
3046
|
}
|
|
3050
3047
|
return of(new UrlSegmentGroup(segments, {}));
|
|
3051
3048
|
}
|
|
3052
|
-
const { matched, consumedSegments,
|
|
3049
|
+
const { matched, consumedSegments, remainingSegments } = match(rawSegmentGroup, route, segments);
|
|
3053
3050
|
if (!matched)
|
|
3054
3051
|
return noMatch(rawSegmentGroup);
|
|
3055
|
-
const rawSlicedSegments = segments.slice(lastChild);
|
|
3056
3052
|
const childConfig$ = this.getChildConfig(ngModule, route, segments);
|
|
3057
3053
|
return childConfig$.pipe(mergeMap((routerConfig) => {
|
|
3058
3054
|
const childModule = routerConfig.module;
|
|
3059
3055
|
const childConfig = routerConfig.routes;
|
|
3060
|
-
const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments,
|
|
3056
|
+
const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments, remainingSegments, childConfig);
|
|
3061
3057
|
// See comment on the other call to `split` about why this is necessary.
|
|
3062
3058
|
const segmentGroup = new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);
|
|
3063
3059
|
if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
|
|
@@ -3634,7 +3630,7 @@ class Recognizer {
|
|
|
3634
3630
|
return null;
|
|
3635
3631
|
let snapshot;
|
|
3636
3632
|
let consumedSegments = [];
|
|
3637
|
-
let
|
|
3633
|
+
let remainingSegments = [];
|
|
3638
3634
|
if (route.path === '**') {
|
|
3639
3635
|
const params = segments.length > 0 ? last(segments).parameters : {};
|
|
3640
3636
|
snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), getOutlet(route), route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));
|
|
@@ -3645,11 +3641,11 @@ class Recognizer {
|
|
|
3645
3641
|
return null;
|
|
3646
3642
|
}
|
|
3647
3643
|
consumedSegments = result.consumedSegments;
|
|
3648
|
-
|
|
3644
|
+
remainingSegments = result.remainingSegments;
|
|
3649
3645
|
snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), getOutlet(route), route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));
|
|
3650
3646
|
}
|
|
3651
3647
|
const childConfig = getChildConfig(route);
|
|
3652
|
-
const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments,
|
|
3648
|
+
const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, remainingSegments,
|
|
3653
3649
|
// Filter out routes with redirectTo because we are trying to create activated route
|
|
3654
3650
|
// snapshots and don't handle redirects here. That should have been done in
|
|
3655
3651
|
// `applyRedirects`.
|
|
@@ -3832,7 +3828,7 @@ function resolveNode(resolve, futureARS, futureRSS, moduleInjector) {
|
|
|
3832
3828
|
}
|
|
3833
3829
|
const data = {};
|
|
3834
3830
|
return from(keys).pipe(mergeMap(key => getResolver(resolve[key], futureARS, futureRSS, moduleInjector)
|
|
3835
|
-
.pipe(tap((value) => {
|
|
3831
|
+
.pipe(take(1), tap((value) => {
|
|
3836
3832
|
data[key] = value;
|
|
3837
3833
|
}))), takeLast(1), mergeMap(() => {
|
|
3838
3834
|
// Ensure all resolvers returned values, otherwise don't emit any "next" and just complete
|
|
@@ -4829,24 +4825,10 @@ class Router {
|
|
|
4829
4825
|
});
|
|
4830
4826
|
}
|
|
4831
4827
|
scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {
|
|
4832
|
-
var _a, _b
|
|
4828
|
+
var _a, _b;
|
|
4833
4829
|
if (this.disposed) {
|
|
4834
4830
|
return Promise.resolve(false);
|
|
4835
4831
|
}
|
|
4836
|
-
// Duplicate navigations may be triggered by attempts to sync AngularJS and
|
|
4837
|
-
// Angular router states. We have the setTimeout in the location listener to
|
|
4838
|
-
// ensure the imperative nav is scheduled before the browser nav.
|
|
4839
|
-
const lastNavigation = this.transitions.value;
|
|
4840
|
-
const browserNavPrecededByRouterNav = isBrowserTriggeredNavigation(source) && lastNavigation &&
|
|
4841
|
-
!isBrowserTriggeredNavigation(lastNavigation.source);
|
|
4842
|
-
const navToSameUrl = lastNavigation.rawUrl.toString() === rawUrl.toString();
|
|
4843
|
-
const lastNavigationInProgress = lastNavigation.id === ((_a = this.currentNavigation) === null || _a === void 0 ? void 0 : _a.id);
|
|
4844
|
-
// We consider duplicates as ones that goes to the same URL while the first
|
|
4845
|
-
// is still processing.
|
|
4846
|
-
const isDuplicateNav = navToSameUrl && lastNavigationInProgress;
|
|
4847
|
-
if (browserNavPrecededByRouterNav && isDuplicateNav) {
|
|
4848
|
-
return Promise.resolve(true); // return value is not used
|
|
4849
|
-
}
|
|
4850
4832
|
let resolve;
|
|
4851
4833
|
let reject;
|
|
4852
4834
|
let promise;
|
|
@@ -4878,10 +4860,10 @@ class Router {
|
|
|
4878
4860
|
// If we're replacing the URL or doing a silent navigation, we do not want to increment the
|
|
4879
4861
|
// page id because we aren't pushing a new entry to history.
|
|
4880
4862
|
if (extras.replaceUrl || extras.skipLocationChange) {
|
|
4881
|
-
targetPageId = (
|
|
4863
|
+
targetPageId = (_a = this.browserPageId) !== null && _a !== void 0 ? _a : 0;
|
|
4882
4864
|
}
|
|
4883
4865
|
else {
|
|
4884
|
-
targetPageId = ((
|
|
4866
|
+
targetPageId = ((_b = this.browserPageId) !== null && _b !== void 0 ? _b : 0) + 1;
|
|
4885
4867
|
}
|
|
4886
4868
|
}
|
|
4887
4869
|
}
|
|
@@ -4989,9 +4971,9 @@ class Router {
|
|
|
4989
4971
|
return { navigationId };
|
|
4990
4972
|
}
|
|
4991
4973
|
}
|
|
4992
|
-
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
4993
|
-
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
4994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
4974
|
+
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: Router, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
4975
|
+
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: Router });
|
|
4976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: Router, decorators: [{
|
|
4995
4977
|
type: Injectable
|
|
4996
4978
|
}], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });
|
|
4997
4979
|
function validateCommands(commands) {
|
|
@@ -5183,9 +5165,9 @@ class RouterLink {
|
|
|
5183
5165
|
});
|
|
5184
5166
|
}
|
|
5185
5167
|
}
|
|
5186
|
-
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5187
|
-
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5168
|
+
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5169
|
+
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
|
|
5170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterLink, decorators: [{
|
|
5189
5171
|
type: Directive,
|
|
5190
5172
|
args: [{ selector: ':not(a):not(area)[routerLink]' }]
|
|
5191
5173
|
}], ctorParameters: function () {
|
|
@@ -5304,9 +5286,9 @@ class RouterLinkWithHref {
|
|
|
5304
5286
|
});
|
|
5305
5287
|
}
|
|
5306
5288
|
}
|
|
5307
|
-
RouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5308
|
-
RouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5289
|
+
RouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterLinkWithHref, deps: [{ token: Router }, { token: ActivatedRoute }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5290
|
+
RouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
|
|
5291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterLinkWithHref, decorators: [{
|
|
5310
5292
|
type: Directive,
|
|
5311
5293
|
args: [{ selector: 'a[routerLink],area[routerLink]' }]
|
|
5312
5294
|
}], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: i3.LocationStrategy }]; }, propDecorators: { target: [{
|
|
@@ -5517,9 +5499,9 @@ class RouterLinkActive {
|
|
|
5517
5499
|
this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
|
|
5518
5500
|
}
|
|
5519
5501
|
}
|
|
5520
|
-
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5521
|
-
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5502
|
+
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
|
|
5503
|
+
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.6", 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 });
|
|
5504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
5523
5505
|
type: Directive,
|
|
5524
5506
|
args: [{
|
|
5525
5507
|
selector: '[routerLinkActive]',
|
|
@@ -5623,9 +5605,9 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
5623
5605
|
}
|
|
5624
5606
|
}
|
|
5625
5607
|
}
|
|
5626
|
-
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5627
|
-
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5608
|
+
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5609
|
+
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
5610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
5629
5611
|
type: Injectable,
|
|
5630
5612
|
args: [{ providedIn: 'root' }]
|
|
5631
5613
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -5743,9 +5725,9 @@ class RouterPreloader {
|
|
|
5743
5725
|
});
|
|
5744
5726
|
}
|
|
5745
5727
|
}
|
|
5746
|
-
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5747
|
-
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5728
|
+
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.Injector }, { token: PreloadingStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5729
|
+
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterPreloader });
|
|
5730
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
5749
5731
|
type: Injectable
|
|
5750
5732
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.Injector }, { type: PreloadingStrategy }]; } });
|
|
5751
5733
|
|
|
@@ -5824,9 +5806,9 @@ class RouterScroller {
|
|
|
5824
5806
|
}
|
|
5825
5807
|
}
|
|
5826
5808
|
}
|
|
5827
|
-
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5828
|
-
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5809
|
+
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
5810
|
+
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterScroller });
|
|
5811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterScroller, decorators: [{
|
|
5830
5812
|
type: Injectable
|
|
5831
5813
|
}], ctorParameters: function () { return [{ type: Router }, { type: i3.ViewportScroller }, { type: undefined }]; } });
|
|
5832
5814
|
|
|
@@ -5967,10 +5949,10 @@ class RouterModule {
|
|
|
5967
5949
|
return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
|
|
5968
5950
|
}
|
|
5969
5951
|
}
|
|
5970
|
-
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5971
|
-
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5972
|
-
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
5952
|
+
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5953
|
+
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterModule, declarations: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
5954
|
+
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterModule });
|
|
5955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterModule, decorators: [{
|
|
5974
5956
|
type: NgModule,
|
|
5975
5957
|
args: [{
|
|
5976
5958
|
declarations: ROUTER_DIRECTIVES,
|
|
@@ -6152,9 +6134,9 @@ class RouterInitializer {
|
|
|
6152
6134
|
this.destroyed = true;
|
|
6153
6135
|
}
|
|
6154
6136
|
}
|
|
6155
|
-
RouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
6156
|
-
RouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
6157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
6137
|
+
RouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6138
|
+
RouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterInitializer });
|
|
6139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterInitializer, decorators: [{
|
|
6158
6140
|
type: Injectable
|
|
6159
6141
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
6160
6142
|
function getAppInitializer(r) {
|
|
@@ -6194,7 +6176,7 @@ function provideRouterInitializer() {
|
|
|
6194
6176
|
/**
|
|
6195
6177
|
* @publicApi
|
|
6196
6178
|
*/
|
|
6197
|
-
const VERSION = new Version('14.0.0-next.
|
|
6179
|
+
const VERSION = new Version('14.0.0-next.6');
|
|
6198
6180
|
|
|
6199
6181
|
/**
|
|
6200
6182
|
* @license
|