@angular/router 16.0.0-next.1 → 16.0.0-next.2
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 +3 -4
- package/esm2020/src/components/empty_outlet.mjs +3 -3
- package/esm2020/src/create_url_tree.mjs +9 -9
- package/esm2020/src/create_url_tree_strategy.mjs +9 -9
- package/esm2020/src/directives/router_link.mjs +3 -3
- package/esm2020/src/directives/router_link_active.mjs +3 -3
- package/esm2020/src/directives/router_outlet.mjs +3 -3
- package/esm2020/src/navigation_transition.mjs +3 -3
- package/esm2020/src/operators/activate_routes.mjs +2 -3
- package/esm2020/src/page_title_strategy.mjs +6 -6
- package/esm2020/src/private_export.mjs +1 -2
- package/esm2020/src/route_reuse_strategy.mjs +6 -6
- package/esm2020/src/router.mjs +12 -6
- package/esm2020/src/router_config_loader.mjs +6 -6
- package/esm2020/src/router_module.mjs +4 -4
- package/esm2020/src/router_outlet_context.mjs +3 -3
- package/esm2020/src/router_preloader.mjs +9 -9
- package/esm2020/src/router_scroller.mjs +3 -3
- package/esm2020/src/url_handling_strategy.mjs +6 -6
- package/esm2020/src/url_tree.mjs +9 -9
- package/esm2020/src/utils/collection.mjs +3 -22
- package/esm2020/src/utils/config_matching.mjs +2 -3
- package/esm2020/src/utils/preactivation.mjs +5 -4
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_harness.mjs +6 -6
- package/esm2020/testing/src/router_testing_module.mjs +5 -5
- package/fesm2015/router.mjs +106 -117
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +11 -11
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +103 -114
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +11 -11
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +1 -1
- package/index.d.ts +6 -6
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2020/router.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0-next.
|
|
2
|
+
* @license Angular v16.0.0-next.2
|
|
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
|
-
import {
|
|
9
|
-
import { from, of, BehaviorSubject, EmptyError, combineLatest, concat, defer, pipe, throwError, Observable, EMPTY, ConnectableObservable, Subject } from 'rxjs';
|
|
8
|
+
import { ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, Component, createEnvironmentInjector, ɵisNgModule, isStandalone, ComponentFactoryResolver, ɵisInjectable, InjectionToken, InjectFlags, NgModuleFactory, ɵConsole, NgZone, ɵcoerceToBoolean, ɵɵsanitizeUrlOrResourceUrl, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, APP_INITIALIZER, NgProbeToken, SkipSelf, NgModule, Inject, Version } from '@angular/core';
|
|
9
|
+
import { isObservable, from, of, BehaviorSubject, EmptyError, combineLatest, concat, defer, pipe, throwError, Observable, EMPTY, ConnectableObservable, Subject } from 'rxjs';
|
|
10
10
|
import * as i3 from '@angular/common';
|
|
11
11
|
import { Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';
|
|
12
12
|
import { map, switchMap, take, startWith, filter, mergeMap, first, concatMap, tap, catchError, scan, last as last$1, takeWhile, defaultIfEmpty, takeLast, mapTo, finalize, refCount, mergeAll } from 'rxjs/operators';
|
|
@@ -143,33 +143,14 @@ function equalArraysOrString(a, b) {
|
|
|
143
143
|
return a === b;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
/**
|
|
147
|
-
* Flattens single-level nested arrays.
|
|
148
|
-
*/
|
|
149
|
-
function flatten(arr) {
|
|
150
|
-
return Array.prototype.concat.apply([], arr);
|
|
151
|
-
}
|
|
152
146
|
/**
|
|
153
147
|
* Return the last element of an array.
|
|
154
148
|
*/
|
|
155
149
|
function last(a) {
|
|
156
150
|
return a.length > 0 ? a[a.length - 1] : null;
|
|
157
151
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Verifys all booleans in an array are `true`.
|
|
160
|
-
*/
|
|
161
|
-
function and(bools) {
|
|
162
|
-
return !bools.some(v => !v);
|
|
163
|
-
}
|
|
164
|
-
function forEach(map, callback) {
|
|
165
|
-
for (const prop in map) {
|
|
166
|
-
if (map.hasOwnProperty(prop)) {
|
|
167
|
-
callback(map[prop], prop);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
152
|
function wrapIntoObservable(value) {
|
|
172
|
-
if (
|
|
153
|
+
if (isObservable(value)) {
|
|
173
154
|
return value;
|
|
174
155
|
}
|
|
175
156
|
if (ɵisPromise(value)) {
|
|
@@ -343,7 +324,7 @@ class UrlSegmentGroup {
|
|
|
343
324
|
this.children = children;
|
|
344
325
|
/** The parent node in the url tree */
|
|
345
326
|
this.parent = null;
|
|
346
|
-
|
|
327
|
+
Object.values(children).forEach((v) => (v.parent = this));
|
|
347
328
|
}
|
|
348
329
|
/** Whether the segment has child segments */
|
|
349
330
|
hasChildren() {
|
|
@@ -414,12 +395,12 @@ function equalPath(as, bs) {
|
|
|
414
395
|
}
|
|
415
396
|
function mapChildrenIntoArray(segment, fn) {
|
|
416
397
|
let res = [];
|
|
417
|
-
|
|
398
|
+
Object.entries(segment.children).forEach(([childOutlet, child]) => {
|
|
418
399
|
if (childOutlet === PRIMARY_OUTLET) {
|
|
419
400
|
res = res.concat(fn(child, childOutlet));
|
|
420
401
|
}
|
|
421
402
|
});
|
|
422
|
-
|
|
403
|
+
Object.entries(segment.children).forEach(([childOutlet, child]) => {
|
|
423
404
|
if (childOutlet !== PRIMARY_OUTLET) {
|
|
424
405
|
res = res.concat(fn(child, childOutlet));
|
|
425
406
|
}
|
|
@@ -440,9 +421,9 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
440
421
|
*/
|
|
441
422
|
class UrlSerializer {
|
|
442
423
|
}
|
|
443
|
-
UrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
444
|
-
UrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
424
|
+
UrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
425
|
+
UrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
446
427
|
type: Injectable,
|
|
447
428
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
448
429
|
}] });
|
|
@@ -491,7 +472,7 @@ function serializeSegment(segment, root) {
|
|
|
491
472
|
serializeSegment(segment.children[PRIMARY_OUTLET], false) :
|
|
492
473
|
'';
|
|
493
474
|
const children = [];
|
|
494
|
-
|
|
475
|
+
Object.entries(segment.children).forEach(([k, v]) => {
|
|
495
476
|
if (k !== PRIMARY_OUTLET) {
|
|
496
477
|
children.push(`${k}:${serializeSegment(v, false)}`);
|
|
497
478
|
}
|
|
@@ -930,7 +911,7 @@ function isCommandWithOutlets(command) {
|
|
|
930
911
|
function tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment) {
|
|
931
912
|
let qp = {};
|
|
932
913
|
if (queryParams) {
|
|
933
|
-
forEach(
|
|
914
|
+
Object.entries(queryParams).forEach(([name, value]) => {
|
|
934
915
|
qp[name] = Array.isArray(value) ? value.map((v) => `${v}`) : `${value}`;
|
|
935
916
|
});
|
|
936
917
|
}
|
|
@@ -953,7 +934,7 @@ function tree(oldRoot, oldSegmentGroup, newSegmentGroup, queryParams, fragment)
|
|
|
953
934
|
*/
|
|
954
935
|
function replaceSegment(current, oldSegment, newSegment) {
|
|
955
936
|
const children = {};
|
|
956
|
-
|
|
937
|
+
Object.entries(current.children).forEach(([outletName, c]) => {
|
|
957
938
|
if (c === oldSegment) {
|
|
958
939
|
children[outletName] = newSegment;
|
|
959
940
|
}
|
|
@@ -991,7 +972,7 @@ function computeNavigation(commands) {
|
|
|
991
972
|
if (typeof cmd === 'object' && cmd != null) {
|
|
992
973
|
if (cmd.outlets) {
|
|
993
974
|
const outlets = {};
|
|
994
|
-
|
|
975
|
+
Object.entries(cmd.outlets).forEach(([name, commands]) => {
|
|
995
976
|
outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;
|
|
996
977
|
});
|
|
997
978
|
return [...res, { outlets }];
|
|
@@ -1144,7 +1125,7 @@ function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
|
|
|
1144
1125
|
segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {
|
|
1145
1126
|
return updateSegmentGroupChildren(segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);
|
|
1146
1127
|
}
|
|
1147
|
-
forEach(
|
|
1128
|
+
Object.entries(outlets).forEach(([outlet, commands]) => {
|
|
1148
1129
|
if (typeof commands === 'string') {
|
|
1149
1130
|
commands = [commands];
|
|
1150
1131
|
}
|
|
@@ -1152,7 +1133,7 @@ function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
|
|
|
1152
1133
|
children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);
|
|
1153
1134
|
}
|
|
1154
1135
|
});
|
|
1155
|
-
|
|
1136
|
+
Object.entries(segmentGroup.children).forEach(([childOutlet, child]) => {
|
|
1156
1137
|
if (outlets[childOutlet] === undefined) {
|
|
1157
1138
|
children[childOutlet] = child;
|
|
1158
1139
|
}
|
|
@@ -1224,7 +1205,7 @@ function createNewSegmentGroup(segmentGroup, startIndex, commands) {
|
|
|
1224
1205
|
}
|
|
1225
1206
|
function createNewSegmentChildren(outlets) {
|
|
1226
1207
|
const children = {};
|
|
1227
|
-
forEach(
|
|
1208
|
+
Object.entries(outlets).forEach(([outlet, commands]) => {
|
|
1228
1209
|
if (typeof commands === 'string') {
|
|
1229
1210
|
commands = [commands];
|
|
1230
1211
|
}
|
|
@@ -1236,7 +1217,7 @@ function createNewSegmentChildren(outlets) {
|
|
|
1236
1217
|
}
|
|
1237
1218
|
function stringify(params) {
|
|
1238
1219
|
const res = {};
|
|
1239
|
-
forEach(
|
|
1220
|
+
Object.entries(params).forEach(([k, v]) => res[k] = `${v}`);
|
|
1240
1221
|
return res;
|
|
1241
1222
|
}
|
|
1242
1223
|
function compare(path, params, segment) {
|
|
@@ -1762,9 +1743,9 @@ class LegacyCreateUrlTree {
|
|
|
1762
1743
|
return tree;
|
|
1763
1744
|
}
|
|
1764
1745
|
}
|
|
1765
|
-
LegacyCreateUrlTree.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1766
|
-
LegacyCreateUrlTree.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1767
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1746
|
+
LegacyCreateUrlTree.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: LegacyCreateUrlTree, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1747
|
+
LegacyCreateUrlTree.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: LegacyCreateUrlTree });
|
|
1748
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: LegacyCreateUrlTree, decorators: [{
|
|
1768
1749
|
type: Injectable
|
|
1769
1750
|
}] });
|
|
1770
1751
|
class CreateUrlTreeUsingSnapshot {
|
|
@@ -1795,16 +1776,16 @@ class CreateUrlTreeUsingSnapshot {
|
|
|
1795
1776
|
return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment);
|
|
1796
1777
|
}
|
|
1797
1778
|
}
|
|
1798
|
-
CreateUrlTreeUsingSnapshot.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1799
|
-
CreateUrlTreeUsingSnapshot.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1779
|
+
CreateUrlTreeUsingSnapshot.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: CreateUrlTreeUsingSnapshot, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1780
|
+
CreateUrlTreeUsingSnapshot.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: CreateUrlTreeUsingSnapshot });
|
|
1781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: CreateUrlTreeUsingSnapshot, decorators: [{
|
|
1801
1782
|
type: Injectable
|
|
1802
1783
|
}] });
|
|
1803
1784
|
class CreateUrlTreeStrategy {
|
|
1804
1785
|
}
|
|
1805
|
-
CreateUrlTreeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1806
|
-
CreateUrlTreeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
1786
|
+
CreateUrlTreeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: CreateUrlTreeStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1787
|
+
CreateUrlTreeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: CreateUrlTreeStrategy, providedIn: 'root', useClass: CreateUrlTreeUsingSnapshot });
|
|
1788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: CreateUrlTreeStrategy, decorators: [{
|
|
1808
1789
|
type: Injectable,
|
|
1809
1790
|
args: [{ providedIn: 'root', useClass: CreateUrlTreeUsingSnapshot }]
|
|
1810
1791
|
}] });
|
|
@@ -2431,9 +2412,9 @@ class ChildrenOutletContexts {
|
|
|
2431
2412
|
return this.contexts.get(childName) || null;
|
|
2432
2413
|
}
|
|
2433
2414
|
}
|
|
2434
|
-
ChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2435
|
-
ChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2415
|
+
ChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2416
|
+
ChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });
|
|
2417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
2437
2418
|
type: Injectable,
|
|
2438
2419
|
args: [{ providedIn: 'root' }]
|
|
2439
2420
|
}] });
|
|
@@ -2646,9 +2627,9 @@ class RouterOutlet {
|
|
|
2646
2627
|
this.activateEvents.emit(this.activated.instance);
|
|
2647
2628
|
}
|
|
2648
2629
|
}
|
|
2649
|
-
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2650
|
-
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
2651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2630
|
+
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2631
|
+
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: RouterOutlet, isStandalone: true, selector: "router-outlet", inputs: { name: "name" }, outputs: { activateEvents: "activate", deactivateEvents: "deactivate", attachEvents: "attach", detachEvents: "detach" }, exportAs: ["outlet"], usesOnChanges: true, ngImport: i0 });
|
|
2632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2652
2633
|
type: Directive,
|
|
2653
2634
|
args: [{
|
|
2654
2635
|
selector: 'router-outlet',
|
|
@@ -2701,9 +2682,9 @@ function isComponentFactoryResolver(item) {
|
|
|
2701
2682
|
*/
|
|
2702
2683
|
class ɵEmptyOutletComponent {
|
|
2703
2684
|
}
|
|
2704
|
-
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2705
|
-
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
2706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
2685
|
+
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2686
|
+
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.2", type: ɵEmptyOutletComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
2687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2707
2688
|
type: Component,
|
|
2708
2689
|
args: [{
|
|
2709
2690
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -2928,7 +2909,7 @@ class ActivateRoutes {
|
|
|
2928
2909
|
delete children[childOutletName];
|
|
2929
2910
|
});
|
|
2930
2911
|
// De-activate the routes that will not be re-used
|
|
2931
|
-
|
|
2912
|
+
Object.values(children).forEach((v) => {
|
|
2932
2913
|
this.deactivateRouteAndItsChildren(v, contexts);
|
|
2933
2914
|
});
|
|
2934
2915
|
}
|
|
@@ -3116,7 +3097,8 @@ function getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks
|
|
|
3116
3097
|
delete prevChildren[c.value.outlet];
|
|
3117
3098
|
});
|
|
3118
3099
|
// Process any children left from the current route (not active for the future route)
|
|
3119
|
-
|
|
3100
|
+
Object.entries(prevChildren)
|
|
3101
|
+
.forEach(([k, v]) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));
|
|
3120
3102
|
return checks;
|
|
3121
3103
|
}
|
|
3122
3104
|
function getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {
|
|
@@ -3188,7 +3170,7 @@ function shouldRunGuardsAndResolvers(curr, future, mode) {
|
|
|
3188
3170
|
function deactivateRouteAndItsChildren(route, context, checks) {
|
|
3189
3171
|
const children = nodeChildrenAsMap(route);
|
|
3190
3172
|
const r = route.value;
|
|
3191
|
-
forEach(
|
|
3173
|
+
Object.entries(children).forEach(([childName, node]) => {
|
|
3192
3174
|
if (!r.component) {
|
|
3193
3175
|
deactivateRouteAndItsChildren(node, context, checks);
|
|
3194
3176
|
}
|
|
@@ -3459,7 +3441,7 @@ function match(segmentGroup, route, segments) {
|
|
|
3459
3441
|
if (!res)
|
|
3460
3442
|
return { ...noMatch$1 };
|
|
3461
3443
|
const posParams = {};
|
|
3462
|
-
|
|
3444
|
+
Object.entries(res.posParams ?? {}).forEach(([k, v]) => {
|
|
3463
3445
|
posParams[k] = v.path;
|
|
3464
3446
|
});
|
|
3465
3447
|
const parameters = res.consumed.length > 0 ?
|
|
@@ -3833,7 +3815,7 @@ class ApplyRedirects {
|
|
|
3833
3815
|
}
|
|
3834
3816
|
createQueryParams(redirectToParams, actualParams) {
|
|
3835
3817
|
const res = {};
|
|
3836
|
-
forEach(
|
|
3818
|
+
Object.entries(redirectToParams).forEach(([k, v]) => {
|
|
3837
3819
|
const copySourceValue = typeof v === 'string' && v.startsWith(':');
|
|
3838
3820
|
if (copySourceValue) {
|
|
3839
3821
|
const sourceName = v.substring(1);
|
|
@@ -3848,7 +3830,7 @@ class ApplyRedirects {
|
|
|
3848
3830
|
createSegmentGroup(redirectTo, group, segments, posParams) {
|
|
3849
3831
|
const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);
|
|
3850
3832
|
let children = {};
|
|
3851
|
-
|
|
3833
|
+
Object.entries(group.children).forEach(([name, child]) => {
|
|
3852
3834
|
children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);
|
|
3853
3835
|
});
|
|
3854
3836
|
return new UrlSegmentGroup(updatedSegments, children);
|
|
@@ -4315,7 +4297,7 @@ class RouterConfigLoader {
|
|
|
4315
4297
|
// will get stuck in an infinite loop. The child module's Injector will look to
|
|
4316
4298
|
// its parent `Injector` when it doesn't find any ROUTES so it will return routes
|
|
4317
4299
|
// for it's parent module instead.
|
|
4318
|
-
rawRoutes =
|
|
4300
|
+
rawRoutes = injector.get(ROUTES, [], InjectFlags.Self | InjectFlags.Optional).flat();
|
|
4319
4301
|
}
|
|
4320
4302
|
const routes = rawRoutes.map(standardizeConfig);
|
|
4321
4303
|
NG_DEV_MODE$5 && validateConfig(routes, route.path, requireStandaloneComponents);
|
|
@@ -4345,9 +4327,9 @@ class RouterConfigLoader {
|
|
|
4345
4327
|
}));
|
|
4346
4328
|
}
|
|
4347
4329
|
}
|
|
4348
|
-
RouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4349
|
-
RouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4330
|
+
RouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterConfigLoader, deps: [{ token: i0.Injector }, { token: i0.Compiler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4331
|
+
RouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });
|
|
4332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4351
4333
|
type: Injectable,
|
|
4352
4334
|
args: [{ providedIn: 'root' }]
|
|
4353
4335
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Compiler }]; } });
|
|
@@ -4726,9 +4708,9 @@ class NavigationTransitions {
|
|
|
4726
4708
|
t.resolve(false);
|
|
4727
4709
|
}
|
|
4728
4710
|
}
|
|
4729
|
-
NavigationTransitions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4730
|
-
NavigationTransitions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4711
|
+
NavigationTransitions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4712
|
+
NavigationTransitions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });
|
|
4713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4732
4714
|
type: Injectable,
|
|
4733
4715
|
args: [{ providedIn: 'root' }]
|
|
4734
4716
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4780,9 +4762,9 @@ class TitleStrategy {
|
|
|
4780
4762
|
return snapshot.data[RouteTitleKey];
|
|
4781
4763
|
}
|
|
4782
4764
|
}
|
|
4783
|
-
TitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4784
|
-
TitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4765
|
+
TitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4766
|
+
TitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });
|
|
4767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4786
4768
|
type: Injectable,
|
|
4787
4769
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4788
4770
|
}] });
|
|
@@ -4806,9 +4788,9 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4806
4788
|
}
|
|
4807
4789
|
}
|
|
4808
4790
|
}
|
|
4809
|
-
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4810
|
-
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4791
|
+
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4792
|
+
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
4793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4812
4794
|
type: Injectable,
|
|
4813
4795
|
args: [{ providedIn: 'root' }]
|
|
4814
4796
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -4822,9 +4804,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
|
4822
4804
|
*/
|
|
4823
4805
|
class RouteReuseStrategy {
|
|
4824
4806
|
}
|
|
4825
|
-
RouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4826
|
-
RouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4807
|
+
RouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4808
|
+
RouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });
|
|
4809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4828
4810
|
type: Injectable,
|
|
4829
4811
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4830
4812
|
}] });
|
|
@@ -4876,9 +4858,9 @@ class BaseRouteReuseStrategy {
|
|
|
4876
4858
|
}
|
|
4877
4859
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4878
4860
|
}
|
|
4879
|
-
DefaultRouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4880
|
-
DefaultRouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4861
|
+
DefaultRouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4862
|
+
DefaultRouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });
|
|
4863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4882
4864
|
type: Injectable,
|
|
4883
4865
|
args: [{ providedIn: 'root' }]
|
|
4884
4866
|
}] });
|
|
@@ -4903,9 +4885,9 @@ const ROUTER_CONFIGURATION = new InjectionToken(NG_DEV_MODE$3 ? 'router config'
|
|
|
4903
4885
|
*/
|
|
4904
4886
|
class UrlHandlingStrategy {
|
|
4905
4887
|
}
|
|
4906
|
-
UrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4907
|
-
UrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4888
|
+
UrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4889
|
+
UrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });
|
|
4890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4909
4891
|
type: Injectable,
|
|
4910
4892
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4911
4893
|
}] });
|
|
@@ -4923,9 +4905,9 @@ class DefaultUrlHandlingStrategy {
|
|
|
4923
4905
|
return newUrlPart;
|
|
4924
4906
|
}
|
|
4925
4907
|
}
|
|
4926
|
-
DefaultUrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4927
|
-
DefaultUrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
4908
|
+
DefaultUrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4909
|
+
DefaultUrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });
|
|
4910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4929
4911
|
type: Injectable,
|
|
4930
4912
|
args: [{ providedIn: 'root' }]
|
|
4931
4913
|
}] });
|
|
@@ -5121,7 +5103,7 @@ class Router {
|
|
|
5121
5103
|
* @see `RouterModule`
|
|
5122
5104
|
*/
|
|
5123
5105
|
this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';
|
|
5124
|
-
this.config =
|
|
5106
|
+
this.config = inject(ROUTES, { optional: true })?.flat() ?? [];
|
|
5125
5107
|
this.navigationTransitions = inject(NavigationTransitions);
|
|
5126
5108
|
this.urlSerializer = inject(UrlSerializer);
|
|
5127
5109
|
this.location = inject(Location);
|
|
@@ -5218,6 +5200,13 @@ class Router {
|
|
|
5218
5200
|
getCurrentNavigation() {
|
|
5219
5201
|
return this.navigationTransitions.currentNavigation;
|
|
5220
5202
|
}
|
|
5203
|
+
/**
|
|
5204
|
+
* The `Navigation` object of the most recent navigation to succeed and `null` if there
|
|
5205
|
+
* has not been a successful navigation yet.
|
|
5206
|
+
*/
|
|
5207
|
+
get lastSuccessfulNavigation() {
|
|
5208
|
+
return this.navigationTransitions.lastSuccessfulNavigation;
|
|
5209
|
+
}
|
|
5221
5210
|
/**
|
|
5222
5211
|
* Resets the route configuration used for navigation and generating links.
|
|
5223
5212
|
*
|
|
@@ -5575,9 +5564,9 @@ class Router {
|
|
|
5575
5564
|
return { navigationId };
|
|
5576
5565
|
}
|
|
5577
5566
|
}
|
|
5578
|
-
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
5579
|
-
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
5580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
5567
|
+
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5568
|
+
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Router, providedIn: 'root' });
|
|
5569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: Router, decorators: [{
|
|
5581
5570
|
type: Injectable,
|
|
5582
5571
|
args: [{ providedIn: 'root' }]
|
|
5583
5572
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5863,9 +5852,9 @@ class RouterLink {
|
|
|
5863
5852
|
});
|
|
5864
5853
|
}
|
|
5865
5854
|
}
|
|
5866
|
-
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
5867
|
-
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
5868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
5855
|
+
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", 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 });
|
|
5856
|
+
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", relativeTo: "relativeTo", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", 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 });
|
|
5857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterLink, decorators: [{
|
|
5869
5858
|
type: Directive,
|
|
5870
5859
|
args: [{
|
|
5871
5860
|
selector: '[routerLink]',
|
|
@@ -6086,9 +6075,9 @@ class RouterLinkActive {
|
|
|
6086
6075
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
6087
6076
|
}
|
|
6088
6077
|
}
|
|
6089
|
-
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6090
|
-
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
6091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6078
|
+
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6079
|
+
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.2", 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 });
|
|
6080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6092
6081
|
type: Directive,
|
|
6093
6082
|
args: [{
|
|
6094
6083
|
selector: '[routerLinkActive]',
|
|
@@ -6141,9 +6130,9 @@ class PreloadAllModules {
|
|
|
6141
6130
|
return fn().pipe(catchError(() => of(null)));
|
|
6142
6131
|
}
|
|
6143
6132
|
}
|
|
6144
|
-
PreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6145
|
-
PreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6133
|
+
PreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6134
|
+
PreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });
|
|
6135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6147
6136
|
type: Injectable,
|
|
6148
6137
|
args: [{ providedIn: 'root' }]
|
|
6149
6138
|
}] });
|
|
@@ -6161,9 +6150,9 @@ class NoPreloading {
|
|
|
6161
6150
|
return of(null);
|
|
6162
6151
|
}
|
|
6163
6152
|
}
|
|
6164
|
-
NoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6165
|
-
NoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6153
|
+
NoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6154
|
+
NoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: NoPreloading, providedIn: 'root' });
|
|
6155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6167
6156
|
type: Injectable,
|
|
6168
6157
|
args: [{ providedIn: 'root' }]
|
|
6169
6158
|
}] });
|
|
@@ -6257,9 +6246,9 @@ class RouterPreloader {
|
|
|
6257
6246
|
});
|
|
6258
6247
|
}
|
|
6259
6248
|
}
|
|
6260
|
-
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6261
|
-
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6249
|
+
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6250
|
+
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterPreloader, providedIn: 'root' });
|
|
6251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6263
6252
|
type: Injectable,
|
|
6264
6253
|
args: [{ providedIn: 'root' }]
|
|
6265
6254
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });
|
|
@@ -6353,9 +6342,9 @@ class RouterScroller {
|
|
|
6353
6342
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6354
6343
|
}
|
|
6355
6344
|
}
|
|
6356
|
-
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6357
|
-
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6345
|
+
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
6346
|
+
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterScroller });
|
|
6347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6359
6348
|
type: Injectable
|
|
6360
6349
|
}], ctorParameters: function () { return [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }]; } });
|
|
6361
6350
|
|
|
@@ -6962,10 +6951,10 @@ class RouterModule {
|
|
|
6962
6951
|
};
|
|
6963
6952
|
}
|
|
6964
6953
|
}
|
|
6965
|
-
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6966
|
-
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
6967
|
-
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
6954
|
+
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6955
|
+
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
6956
|
+
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterModule, imports: [ɵEmptyOutletComponent] });
|
|
6957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: RouterModule, decorators: [{
|
|
6969
6958
|
type: NgModule,
|
|
6970
6959
|
args: [{
|
|
6971
6960
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7110,7 +7099,7 @@ function mapToResolve(provider) {
|
|
|
7110
7099
|
/**
|
|
7111
7100
|
* @publicApi
|
|
7112
7101
|
*/
|
|
7113
|
-
const VERSION = new Version('16.0.0-next.
|
|
7102
|
+
const VERSION = new Version('16.0.0-next.2');
|
|
7114
7103
|
|
|
7115
7104
|
/**
|
|
7116
7105
|
* @module
|
|
@@ -7125,5 +7114,5 @@ const VERSION = new Version('16.0.0-next.1');
|
|
|
7125
7114
|
* Generated bundle index. Do not edit.
|
|
7126
7115
|
*/
|
|
7127
7116
|
|
|
7128
|
-
export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationSkipped, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, 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, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withHashLocation, withInMemoryScrolling, withNavigationErrorHandler, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, afterNextNavigation as ɵafterNextNavigation,
|
|
7117
|
+
export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationSkipped, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, 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, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withHashLocation, withInMemoryScrolling, withNavigationErrorHandler, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, afterNextNavigation as ɵafterNextNavigation, withPreloading as ɵwithPreloading };
|
|
7129
7118
|
//# sourceMappingURL=router.mjs.map
|