@angular/router 13.2.4 → 13.2.7
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/create_url_tree.mjs +8 -7
- 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/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_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 +59 -73
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +56 -70
- 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 +1 -1
- 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 v13.2.
|
|
2
|
+
* @license Angular v13.2.7
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -93,9 +93,9 @@ class RouterTestingModule {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
97
|
-
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.
|
|
98
|
-
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.
|
|
96
|
+
RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
97
|
+
RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
98
|
+
RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterTestingModule, providers: [
|
|
99
99
|
ɵROUTER_PROVIDERS,
|
|
100
100
|
EXTRA_ROUTER_TESTING_PROVIDERS,
|
|
101
101
|
{ provide: Location, useClass: SpyLocation },
|
|
@@ -112,7 +112,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
112
112
|
{ provide: PreloadingStrategy, useExisting: NoPreloading },
|
|
113
113
|
provideRoutes([]),
|
|
114
114
|
], imports: [RouterModule] });
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
116
116
|
type: NgModule,
|
|
117
117
|
args: [{
|
|
118
118
|
exports: [RouterModule],
|
package/fesm2015/upgrade.mjs
CHANGED
package/fesm2020/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v13.2.
|
|
2
|
+
* @license Angular v13.2.7
|
|
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, 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
|
|
|
14
14
|
/**
|
|
@@ -1712,17 +1712,17 @@ function createActivatedRoute(c) {
|
|
|
1712
1712
|
*/
|
|
1713
1713
|
function createUrlTree(route, urlTree, commands, queryParams, fragment) {
|
|
1714
1714
|
if (commands.length === 0) {
|
|
1715
|
-
return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);
|
|
1715
|
+
return tree(urlTree.root, urlTree.root, urlTree.root, queryParams, fragment);
|
|
1716
1716
|
}
|
|
1717
1717
|
const nav = computeNavigation(commands);
|
|
1718
1718
|
if (nav.toRoot()) {
|
|
1719
|
-
return tree(urlTree.root, new UrlSegmentGroup([], {}),
|
|
1719
|
+
return tree(urlTree.root, urlTree.root, new UrlSegmentGroup([], {}), queryParams, fragment);
|
|
1720
1720
|
}
|
|
1721
1721
|
const startingPosition = findStartingPosition(nav, urlTree, route);
|
|
1722
1722
|
const segmentGroup = startingPosition.processChildren ?
|
|
1723
1723
|
updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, nav.commands) :
|
|
1724
1724
|
updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);
|
|
1725
|
-
return tree(startingPosition.segmentGroup, segmentGroup,
|
|
1725
|
+
return tree(urlTree.root, startingPosition.segmentGroup, segmentGroup, queryParams, fragment);
|
|
1726
1726
|
}
|
|
1727
1727
|
function isMatrixParams(command) {
|
|
1728
1728
|
return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;
|
|
@@ -1734,17 +1734,18 @@ function isMatrixParams(command) {
|
|
|
1734
1734
|
function isCommandWithOutlets(command) {
|
|
1735
1735
|
return typeof command === 'object' && command != null && command.outlets;
|
|
1736
1736
|
}
|
|
1737
|
-
function tree(oldSegmentGroup, newSegmentGroup,
|
|
1737
|
+
function tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment) {
|
|
1738
1738
|
let qp = {};
|
|
1739
1739
|
if (queryParams) {
|
|
1740
1740
|
forEach(queryParams, (value, name) => {
|
|
1741
1741
|
qp[name] = Array.isArray(value) ? value.map((v) => `${v}`) : `${value}`;
|
|
1742
1742
|
});
|
|
1743
1743
|
}
|
|
1744
|
-
if (
|
|
1744
|
+
if (oldRoot === oldSegmentGroup) {
|
|
1745
1745
|
return new UrlTree(newSegmentGroup, qp, fragment);
|
|
1746
1746
|
}
|
|
1747
|
-
|
|
1747
|
+
const newRoot = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);
|
|
1748
|
+
return new UrlTree(newRoot, qp, fragment);
|
|
1748
1749
|
}
|
|
1749
1750
|
function replaceSegment(current, oldSegment, newSegment) {
|
|
1750
1751
|
const children = {};
|
|
@@ -2524,9 +2525,9 @@ class RouterOutlet {
|
|
|
2524
2525
|
this.activateEvents.emit(this.activated.instance);
|
|
2525
2526
|
}
|
|
2526
2527
|
}
|
|
2527
|
-
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
2528
|
-
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
2529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
2528
|
+
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", 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: "13.2.7", 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: "13.2.7", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2530
2531
|
type: Directive,
|
|
2531
2532
|
args: [{ selector: 'router-outlet', exportAs: 'outlet' }]
|
|
2532
2533
|
}], ctorParameters: function () { return [{ type: ChildrenOutletContexts }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: undefined, decorators: [{
|
|
@@ -2580,9 +2581,9 @@ class OutletInjector {
|
|
|
2580
2581
|
*/
|
|
2581
2582
|
class ɵEmptyOutletComponent {
|
|
2582
2583
|
}
|
|
2583
|
-
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
2584
|
-
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
2585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
2584
|
+
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2585
|
+
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", 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: "13.2.7", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2586
2587
|
type: Component,
|
|
2587
2588
|
args: [{ template: `<router-outlet></router-outlet>` }]
|
|
2588
2589
|
}] });
|
|
@@ -2716,7 +2717,7 @@ function sortByMatchingOutlets(routes, outletName) {
|
|
|
2716
2717
|
const noMatch$1 = {
|
|
2717
2718
|
matched: false,
|
|
2718
2719
|
consumedSegments: [],
|
|
2719
|
-
|
|
2720
|
+
remainingSegments: [],
|
|
2720
2721
|
parameters: {},
|
|
2721
2722
|
positionalParamSegments: {}
|
|
2722
2723
|
};
|
|
@@ -2728,7 +2729,7 @@ function match(segmentGroup, route, segments) {
|
|
|
2728
2729
|
return {
|
|
2729
2730
|
matched: true,
|
|
2730
2731
|
consumedSegments: [],
|
|
2731
|
-
|
|
2732
|
+
remainingSegments: segments,
|
|
2732
2733
|
parameters: {},
|
|
2733
2734
|
positionalParamSegments: {}
|
|
2734
2735
|
};
|
|
@@ -2747,7 +2748,7 @@ function match(segmentGroup, route, segments) {
|
|
|
2747
2748
|
return {
|
|
2748
2749
|
matched: true,
|
|
2749
2750
|
consumedSegments: res.consumed,
|
|
2750
|
-
|
|
2751
|
+
remainingSegments: segments.slice(res.consumed.length),
|
|
2751
2752
|
// TODO(atscott): investigate combining parameters and positionalParamSegments
|
|
2752
2753
|
parameters,
|
|
2753
2754
|
positionalParamSegments: res.posParams ?? {}
|
|
@@ -2865,16 +2866,16 @@ class AbsoluteRedirect {
|
|
|
2865
2866
|
}
|
|
2866
2867
|
}
|
|
2867
2868
|
function noMatch(segmentGroup) {
|
|
2868
|
-
return
|
|
2869
|
+
return throwError(new NoMatch$1(segmentGroup));
|
|
2869
2870
|
}
|
|
2870
2871
|
function absoluteRedirect(newTree) {
|
|
2871
|
-
return
|
|
2872
|
+
return throwError(new AbsoluteRedirect(newTree));
|
|
2872
2873
|
}
|
|
2873
2874
|
function namedOutletsRedirect(redirectTo) {
|
|
2874
|
-
return
|
|
2875
|
+
return throwError(new Error(`Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`));
|
|
2875
2876
|
}
|
|
2876
2877
|
function canLoadFails(route) {
|
|
2877
|
-
return
|
|
2878
|
+
return throwError(navigationCancelingError(`Cannot load children because the guard of the route "path: '${route.path}'" returned false`));
|
|
2878
2879
|
}
|
|
2879
2880
|
/**
|
|
2880
2881
|
* Returns the `UrlTree` with the redirection applied.
|
|
@@ -2989,7 +2990,7 @@ class ApplyRedirects {
|
|
|
2989
2990
|
if (noLeftoversInUrl(segmentGroup, segments, outlet)) {
|
|
2990
2991
|
return of(new UrlSegmentGroup([], {}));
|
|
2991
2992
|
}
|
|
2992
|
-
|
|
2993
|
+
return noMatch(segmentGroup);
|
|
2993
2994
|
}
|
|
2994
2995
|
throw e;
|
|
2995
2996
|
}));
|
|
@@ -3023,7 +3024,7 @@ class ApplyRedirects {
|
|
|
3023
3024
|
}));
|
|
3024
3025
|
}
|
|
3025
3026
|
expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
|
|
3026
|
-
const { matched, consumedSegments,
|
|
3027
|
+
const { matched, consumedSegments, remainingSegments, positionalParamSegments } = match(segmentGroup, route, segments);
|
|
3027
3028
|
if (!matched)
|
|
3028
3029
|
return noMatch(segmentGroup);
|
|
3029
3030
|
const newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);
|
|
@@ -3031,7 +3032,7 @@ class ApplyRedirects {
|
|
|
3031
3032
|
return absoluteRedirect(newTree);
|
|
3032
3033
|
}
|
|
3033
3034
|
return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {
|
|
3034
|
-
return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(
|
|
3035
|
+
return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(remainingSegments), outlet, false);
|
|
3035
3036
|
}));
|
|
3036
3037
|
}
|
|
3037
3038
|
matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments, outlet) {
|
|
@@ -3046,15 +3047,14 @@ class ApplyRedirects {
|
|
|
3046
3047
|
}
|
|
3047
3048
|
return of(new UrlSegmentGroup(segments, {}));
|
|
3048
3049
|
}
|
|
3049
|
-
const { matched, consumedSegments,
|
|
3050
|
+
const { matched, consumedSegments, remainingSegments } = match(rawSegmentGroup, route, segments);
|
|
3050
3051
|
if (!matched)
|
|
3051
3052
|
return noMatch(rawSegmentGroup);
|
|
3052
|
-
const rawSlicedSegments = segments.slice(lastChild);
|
|
3053
3053
|
const childConfig$ = this.getChildConfig(ngModule, route, segments);
|
|
3054
3054
|
return childConfig$.pipe(mergeMap((routerConfig) => {
|
|
3055
3055
|
const childModule = routerConfig.module;
|
|
3056
3056
|
const childConfig = routerConfig.routes;
|
|
3057
|
-
const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments,
|
|
3057
|
+
const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments, remainingSegments, childConfig);
|
|
3058
3058
|
// See comment on the other call to `split` about why this is necessary.
|
|
3059
3059
|
const segmentGroup = new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);
|
|
3060
3060
|
if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
|
|
@@ -3631,7 +3631,7 @@ class Recognizer {
|
|
|
3631
3631
|
return null;
|
|
3632
3632
|
let snapshot;
|
|
3633
3633
|
let consumedSegments = [];
|
|
3634
|
-
let
|
|
3634
|
+
let remainingSegments = [];
|
|
3635
3635
|
if (route.path === '**') {
|
|
3636
3636
|
const params = segments.length > 0 ? last(segments).parameters : {};
|
|
3637
3637
|
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));
|
|
@@ -3642,11 +3642,11 @@ class Recognizer {
|
|
|
3642
3642
|
return null;
|
|
3643
3643
|
}
|
|
3644
3644
|
consumedSegments = result.consumedSegments;
|
|
3645
|
-
|
|
3645
|
+
remainingSegments = result.remainingSegments;
|
|
3646
3646
|
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));
|
|
3647
3647
|
}
|
|
3648
3648
|
const childConfig = getChildConfig(route);
|
|
3649
|
-
const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments,
|
|
3649
|
+
const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, remainingSegments,
|
|
3650
3650
|
// Filter out routes with redirectTo because we are trying to create activated route
|
|
3651
3651
|
// snapshots and don't handle redirects here. That should have been done in
|
|
3652
3652
|
// `applyRedirects`.
|
|
@@ -4830,20 +4830,6 @@ class Router {
|
|
|
4830
4830
|
if (this.disposed) {
|
|
4831
4831
|
return Promise.resolve(false);
|
|
4832
4832
|
}
|
|
4833
|
-
// Duplicate navigations may be triggered by attempts to sync AngularJS and
|
|
4834
|
-
// Angular router states. We have the setTimeout in the location listener to
|
|
4835
|
-
// ensure the imperative nav is scheduled before the browser nav.
|
|
4836
|
-
const lastNavigation = this.transitions.value;
|
|
4837
|
-
const browserNavPrecededByRouterNav = isBrowserTriggeredNavigation(source) && lastNavigation &&
|
|
4838
|
-
!isBrowserTriggeredNavigation(lastNavigation.source);
|
|
4839
|
-
const navToSameUrl = lastNavigation.rawUrl.toString() === rawUrl.toString();
|
|
4840
|
-
const lastNavigationInProgress = lastNavigation.id === this.currentNavigation?.id;
|
|
4841
|
-
// We consider duplicates as ones that goes to the same URL while the first
|
|
4842
|
-
// is still processing.
|
|
4843
|
-
const isDuplicateNav = navToSameUrl && lastNavigationInProgress;
|
|
4844
|
-
if (browserNavPrecededByRouterNav && isDuplicateNav) {
|
|
4845
|
-
return Promise.resolve(true); // return value is not used
|
|
4846
|
-
}
|
|
4847
4833
|
let resolve;
|
|
4848
4834
|
let reject;
|
|
4849
4835
|
let promise;
|
|
@@ -4985,9 +4971,9 @@ class Router {
|
|
|
4985
4971
|
return { navigationId };
|
|
4986
4972
|
}
|
|
4987
4973
|
}
|
|
4988
|
-
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
4989
|
-
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
4990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
4974
|
+
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: Router, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
4975
|
+
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: Router });
|
|
4976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: Router, decorators: [{
|
|
4991
4977
|
type: Injectable
|
|
4992
4978
|
}], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });
|
|
4993
4979
|
function validateCommands(commands) {
|
|
@@ -5186,9 +5172,9 @@ class RouterLink {
|
|
|
5186
5172
|
});
|
|
5187
5173
|
}
|
|
5188
5174
|
}
|
|
5189
|
-
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
5190
|
-
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
5191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
5175
|
+
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5176
|
+
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", 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 });
|
|
5177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterLink, decorators: [{
|
|
5192
5178
|
type: Directive,
|
|
5193
5179
|
args: [{ selector: ':not(a):not(area)[routerLink]' }]
|
|
5194
5180
|
}], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: undefined, decorators: [{
|
|
@@ -5305,9 +5291,9 @@ class RouterLinkWithHref {
|
|
|
5305
5291
|
});
|
|
5306
5292
|
}
|
|
5307
5293
|
}
|
|
5308
|
-
RouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
5309
|
-
RouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
5310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
5294
|
+
RouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterLinkWithHref, deps: [{ token: Router }, { token: ActivatedRoute }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5295
|
+
RouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", 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 });
|
|
5296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterLinkWithHref, decorators: [{
|
|
5311
5297
|
type: Directive,
|
|
5312
5298
|
args: [{ selector: 'a[routerLink],area[routerLink]' }]
|
|
5313
5299
|
}], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: i3.LocationStrategy }]; }, propDecorators: { target: [{
|
|
@@ -5519,9 +5505,9 @@ class RouterLinkActive {
|
|
|
5519
5505
|
this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
|
|
5520
5506
|
}
|
|
5521
5507
|
}
|
|
5522
|
-
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
5523
|
-
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
5524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
5508
|
+
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", 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 });
|
|
5509
|
+
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", 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 });
|
|
5510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
5525
5511
|
type: Directive,
|
|
5526
5512
|
args: [{
|
|
5527
5513
|
selector: '[routerLinkActive]',
|
|
@@ -5664,9 +5650,9 @@ class RouterPreloader {
|
|
|
5664
5650
|
});
|
|
5665
5651
|
}
|
|
5666
5652
|
}
|
|
5667
|
-
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
5668
|
-
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
5669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
5653
|
+
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.Injector }, { token: PreloadingStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5654
|
+
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterPreloader });
|
|
5655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
5670
5656
|
type: Injectable
|
|
5671
5657
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.Injector }, { type: PreloadingStrategy }]; } });
|
|
5672
5658
|
|
|
@@ -5752,9 +5738,9 @@ class RouterScroller {
|
|
|
5752
5738
|
}
|
|
5753
5739
|
}
|
|
5754
5740
|
}
|
|
5755
|
-
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
5756
|
-
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
5757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
5741
|
+
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
5742
|
+
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterScroller });
|
|
5743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterScroller, decorators: [{
|
|
5758
5744
|
type: Injectable
|
|
5759
5745
|
}], ctorParameters: function () { return [{ type: Router }, { type: i3.ViewportScroller }, { type: undefined }]; } });
|
|
5760
5746
|
|
|
@@ -5895,10 +5881,10 @@ class RouterModule {
|
|
|
5895
5881
|
return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
|
|
5896
5882
|
}
|
|
5897
5883
|
}
|
|
5898
|
-
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
5899
|
-
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.
|
|
5900
|
-
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.
|
|
5901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
5884
|
+
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5885
|
+
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterModule, declarations: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
5886
|
+
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterModule });
|
|
5887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterModule, decorators: [{
|
|
5902
5888
|
type: NgModule,
|
|
5903
5889
|
args: [{
|
|
5904
5890
|
declarations: ROUTER_DIRECTIVES,
|
|
@@ -6076,9 +6062,9 @@ class RouterInitializer {
|
|
|
6076
6062
|
this.destroyed = true;
|
|
6077
6063
|
}
|
|
6078
6064
|
}
|
|
6079
|
-
RouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
6080
|
-
RouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
6081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
6065
|
+
RouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6066
|
+
RouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterInitializer });
|
|
6067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RouterInitializer, decorators: [{
|
|
6082
6068
|
type: Injectable
|
|
6083
6069
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
6084
6070
|
function getAppInitializer(r) {
|
|
@@ -6118,7 +6104,7 @@ function provideRouterInitializer() {
|
|
|
6118
6104
|
/**
|
|
6119
6105
|
* @publicApi
|
|
6120
6106
|
*/
|
|
6121
|
-
const VERSION = new Version('13.2.
|
|
6107
|
+
const VERSION = new Version('13.2.7');
|
|
6122
6108
|
|
|
6123
6109
|
/**
|
|
6124
6110
|
* @license
|