@angular/router 16.0.0-next.6 → 16.0.0-rc.0
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/esm2022/src/components/empty_outlet.mjs +3 -3
- package/esm2022/src/create_url_tree.mjs +6 -4
- package/esm2022/src/directives/router_link.mjs +3 -3
- package/esm2022/src/directives/router_link_active.mjs +3 -3
- package/esm2022/src/directives/router_outlet.mjs +19 -12
- package/esm2022/src/navigation_transition.mjs +3 -3
- package/esm2022/src/page_title_strategy.mjs +6 -6
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +3 -3
- package/esm2022/src/router_config_loader.mjs +3 -3
- package/esm2022/src/router_module.mjs +4 -4
- package/esm2022/src/router_outlet_context.mjs +3 -3
- package/esm2022/src/router_preloader.mjs +9 -9
- package/esm2022/src/router_scroller.mjs +3 -3
- package/esm2022/src/router_state.mjs +29 -23
- package/esm2022/src/url_handling_strategy.mjs +6 -6
- package/esm2022/src/url_tree.mjs +11 -6
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/router_testing_harness.mjs +6 -6
- package/esm2022/testing/src/router_testing_module.mjs +7 -7
- package/fesm2022/router.mjs +117 -97
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +9 -9
- package/package.json +5 -5
- package/testing/index.d.ts +3 -3
- package/upgrade/index.d.ts +1 -1
package/fesm2022/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0-
|
|
2
|
+
* @license Angular v16.0.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -419,10 +419,10 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
419
419
|
* @publicApi
|
|
420
420
|
*/
|
|
421
421
|
class UrlSerializer {
|
|
422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
423
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
424
424
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
426
426
|
type: Injectable,
|
|
427
427
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
428
428
|
}] });
|
|
@@ -560,11 +560,16 @@ function serializeQueryParams(params) {
|
|
|
560
560
|
.filter(s => !!s);
|
|
561
561
|
return strParams.length ? `?${strParams.join('&')}` : '';
|
|
562
562
|
}
|
|
563
|
-
const SEGMENT_RE = /^[^\/()
|
|
563
|
+
const SEGMENT_RE = /^[^\/()?;#]+/;
|
|
564
564
|
function matchSegments(str) {
|
|
565
565
|
const match = str.match(SEGMENT_RE);
|
|
566
566
|
return match ? match[0] : '';
|
|
567
567
|
}
|
|
568
|
+
const MATRIX_PARAM_SEGMENT_RE = /^[^\/()?;=#]+/;
|
|
569
|
+
function matchMatrixKeySegments(str) {
|
|
570
|
+
const match = str.match(MATRIX_PARAM_SEGMENT_RE);
|
|
571
|
+
return match ? match[0] : '';
|
|
572
|
+
}
|
|
568
573
|
const QUERY_PARAM_RE = /^[^=?&#]+/;
|
|
569
574
|
// Return the name of the query param at the start of the string or an empty string
|
|
570
575
|
function matchQueryParams(str) {
|
|
@@ -648,7 +653,7 @@ class UrlParser {
|
|
|
648
653
|
return params;
|
|
649
654
|
}
|
|
650
655
|
parseParam(params) {
|
|
651
|
-
const key =
|
|
656
|
+
const key = matchMatrixKeySegments(this.remaining);
|
|
652
657
|
if (!key) {
|
|
653
658
|
return;
|
|
654
659
|
}
|
|
@@ -1076,8 +1081,9 @@ function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
|
|
|
1076
1081
|
const outlets = getOutlets(commands);
|
|
1077
1082
|
const children = {};
|
|
1078
1083
|
// If the set of commands does not apply anything to the primary outlet and the child segment is
|
|
1079
|
-
// an empty path primary segment on its own, we want to
|
|
1080
|
-
//
|
|
1084
|
+
// an empty path primary segment on its own, we want to apply the commands to the empty child
|
|
1085
|
+
// path rather than here. The outcome is that the empty primary child is effectively removed
|
|
1086
|
+
// from the final output UrlTree. Imagine the following config:
|
|
1081
1087
|
//
|
|
1082
1088
|
// {path: '', children: [{path: '**', outlet: 'popup'}]}.
|
|
1083
1089
|
//
|
|
@@ -1098,7 +1104,8 @@ function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
|
|
|
1098
1104
|
if (!outlets[PRIMARY_OUTLET] && segmentGroup.children[PRIMARY_OUTLET] &&
|
|
1099
1105
|
segmentGroup.numberOfChildren === 1 &&
|
|
1100
1106
|
segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {
|
|
1101
|
-
|
|
1107
|
+
const childrenOfEmptyChild = updateSegmentGroupChildren(segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);
|
|
1108
|
+
return new UrlSegmentGroup(segmentGroup.segments, childrenOfEmptyChild.children);
|
|
1102
1109
|
}
|
|
1103
1110
|
Object.entries(outlets).forEach(([outlet, commands]) => {
|
|
1104
1111
|
if (typeof commands === 'string') {
|
|
@@ -1765,10 +1772,10 @@ class ChildrenOutletContexts {
|
|
|
1765
1772
|
getContext(childName) {
|
|
1766
1773
|
return this.contexts.get(childName) || null;
|
|
1767
1774
|
}
|
|
1768
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
1769
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
1775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1776
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1770
1777
|
}
|
|
1771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
1778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1772
1779
|
type: Injectable,
|
|
1773
1780
|
args: [{ providedIn: 'root' }]
|
|
1774
1781
|
}] });
|
|
@@ -1945,29 +1952,35 @@ function createEmptyStateSnapshot(urlTree, rootComponent) {
|
|
|
1945
1952
|
class ActivatedRoute {
|
|
1946
1953
|
/** @internal */
|
|
1947
1954
|
constructor(
|
|
1948
|
-
/**
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
|
|
1952
|
-
/**
|
|
1953
|
-
|
|
1954
|
-
/**
|
|
1955
|
-
|
|
1956
|
-
/**
|
|
1957
|
-
|
|
1955
|
+
/** @internal */
|
|
1956
|
+
urlSubject,
|
|
1957
|
+
/** @internal */
|
|
1958
|
+
paramsSubject,
|
|
1959
|
+
/** @internal */
|
|
1960
|
+
queryParamsSubject,
|
|
1961
|
+
/** @internal */
|
|
1962
|
+
fragmentSubject,
|
|
1963
|
+
/** @internal */
|
|
1964
|
+
dataSubject,
|
|
1958
1965
|
/** The outlet name of the route, a constant. */
|
|
1959
1966
|
outlet,
|
|
1960
1967
|
/** The component of the route, a constant. */
|
|
1961
1968
|
component, futureSnapshot) {
|
|
1962
|
-
this.
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1969
|
+
this.urlSubject = urlSubject;
|
|
1970
|
+
this.paramsSubject = paramsSubject;
|
|
1971
|
+
this.queryParamsSubject = queryParamsSubject;
|
|
1972
|
+
this.fragmentSubject = fragmentSubject;
|
|
1973
|
+
this.dataSubject = dataSubject;
|
|
1967
1974
|
this.outlet = outlet;
|
|
1968
1975
|
this.component = component;
|
|
1969
1976
|
this._futureSnapshot = futureSnapshot;
|
|
1970
|
-
this.title = this.
|
|
1977
|
+
this.title = this.dataSubject?.pipe(map((d) => d[RouteTitleKey])) ?? of(undefined);
|
|
1978
|
+
// TODO(atscott): Verify that these can be changed to `.asObservable()` with TGP.
|
|
1979
|
+
this.url = urlSubject;
|
|
1980
|
+
this.params = paramsSubject;
|
|
1981
|
+
this.queryParams = queryParamsSubject;
|
|
1982
|
+
this.fragment = fragmentSubject;
|
|
1983
|
+
this.data = dataSubject;
|
|
1971
1984
|
}
|
|
1972
1985
|
/** The configuration used to match this route. */
|
|
1973
1986
|
get routeConfig() {
|
|
@@ -2227,25 +2240,25 @@ function advanceActivatedRoute(route) {
|
|
|
2227
2240
|
const nextSnapshot = route._futureSnapshot;
|
|
2228
2241
|
route.snapshot = nextSnapshot;
|
|
2229
2242
|
if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {
|
|
2230
|
-
route.
|
|
2243
|
+
route.queryParamsSubject.next(nextSnapshot.queryParams);
|
|
2231
2244
|
}
|
|
2232
2245
|
if (currentSnapshot.fragment !== nextSnapshot.fragment) {
|
|
2233
|
-
route.
|
|
2246
|
+
route.fragmentSubject.next(nextSnapshot.fragment);
|
|
2234
2247
|
}
|
|
2235
2248
|
if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {
|
|
2236
|
-
route.
|
|
2249
|
+
route.paramsSubject.next(nextSnapshot.params);
|
|
2237
2250
|
}
|
|
2238
2251
|
if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {
|
|
2239
|
-
route.
|
|
2252
|
+
route.urlSubject.next(nextSnapshot.url);
|
|
2240
2253
|
}
|
|
2241
2254
|
if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {
|
|
2242
|
-
route.
|
|
2255
|
+
route.dataSubject.next(nextSnapshot.data);
|
|
2243
2256
|
}
|
|
2244
2257
|
}
|
|
2245
2258
|
else {
|
|
2246
2259
|
route.snapshot = route._futureSnapshot;
|
|
2247
2260
|
// this is for resolved data
|
|
2248
|
-
route.
|
|
2261
|
+
route.dataSubject.next(route._futureSnapshot.data);
|
|
2249
2262
|
}
|
|
2250
2263
|
}
|
|
2251
2264
|
function equalParamsAndUrlSegments(a, b) {
|
|
@@ -2469,10 +2482,10 @@ class RouterOutlet {
|
|
|
2469
2482
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2470
2483
|
this.activateEvents.emit(this.activated.instance);
|
|
2471
2484
|
}
|
|
2472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
2473
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-
|
|
2485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2486
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-rc.0", 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 }); }
|
|
2474
2487
|
}
|
|
2475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2476
2489
|
type: Directive,
|
|
2477
2490
|
args: [{
|
|
2478
2491
|
selector: 'router-outlet',
|
|
@@ -2544,10 +2557,17 @@ class RoutedComponentInputBinder {
|
|
|
2544
2557
|
activatedRoute.params,
|
|
2545
2558
|
activatedRoute.data,
|
|
2546
2559
|
])
|
|
2547
|
-
.pipe(switchMap(([queryParams, params, data]) => {
|
|
2548
|
-
|
|
2549
|
-
// the
|
|
2550
|
-
|
|
2560
|
+
.pipe(switchMap(([queryParams, params, data], index) => {
|
|
2561
|
+
data = { ...queryParams, ...params, ...data };
|
|
2562
|
+
// Get the first result from the data subscription synchronously so it's available to
|
|
2563
|
+
// the component as soon as possible (and doesn't require a second change detection).
|
|
2564
|
+
if (index === 0) {
|
|
2565
|
+
return of(data);
|
|
2566
|
+
}
|
|
2567
|
+
// Promise.resolve is used to avoid synchronously writing the wrong data when
|
|
2568
|
+
// two of the Observables in the `combineLatest` stream emit one after
|
|
2569
|
+
// another.
|
|
2570
|
+
return Promise.resolve(data);
|
|
2551
2571
|
}))
|
|
2552
2572
|
.subscribe(data => {
|
|
2553
2573
|
// Outlet may have been deactivated or changed names to be associated with a different
|
|
@@ -2568,10 +2588,10 @@ class RoutedComponentInputBinder {
|
|
|
2568
2588
|
});
|
|
2569
2589
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2570
2590
|
}
|
|
2571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
2572
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
2591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2592
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2573
2593
|
}
|
|
2574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
2594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2575
2595
|
type: Injectable
|
|
2576
2596
|
}] });
|
|
2577
2597
|
|
|
@@ -2651,10 +2671,10 @@ function isNavigationCancelingError$1(error) {
|
|
|
2651
2671
|
* to this `EmptyOutletComponent`.
|
|
2652
2672
|
*/
|
|
2653
2673
|
class ɵEmptyOutletComponent {
|
|
2654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
2655
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-
|
|
2674
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2675
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-rc.0", 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"] }] }); }
|
|
2656
2676
|
}
|
|
2657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
2677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2658
2678
|
type: Component,
|
|
2659
2679
|
args: [{
|
|
2660
2680
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -4128,10 +4148,10 @@ class RouterConfigLoader {
|
|
|
4128
4148
|
}
|
|
4129
4149
|
}));
|
|
4130
4150
|
}
|
|
4131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4132
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4152
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4133
4153
|
}
|
|
4134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4135
4155
|
type: Injectable,
|
|
4136
4156
|
args: [{ providedIn: 'root' }]
|
|
4137
4157
|
}] });
|
|
@@ -4507,10 +4527,10 @@ class NavigationTransitions {
|
|
|
4507
4527
|
this.events.next(navCancel);
|
|
4508
4528
|
t.resolve(false);
|
|
4509
4529
|
}
|
|
4510
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4511
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4531
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4512
4532
|
}
|
|
4513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4514
4534
|
type: Injectable,
|
|
4515
4535
|
args: [{ providedIn: 'root' }]
|
|
4516
4536
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4561,10 +4581,10 @@ class TitleStrategy {
|
|
|
4561
4581
|
getResolvedTitleForRoute(snapshot) {
|
|
4562
4582
|
return snapshot.data[RouteTitleKey];
|
|
4563
4583
|
}
|
|
4564
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4565
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4585
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4566
4586
|
}
|
|
4567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4568
4588
|
type: Injectable,
|
|
4569
4589
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4570
4590
|
}] });
|
|
@@ -4587,10 +4607,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4587
4607
|
this.title.setTitle(title);
|
|
4588
4608
|
}
|
|
4589
4609
|
}
|
|
4590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4591
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4610
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4611
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4592
4612
|
}
|
|
4593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4594
4614
|
type: Injectable,
|
|
4595
4615
|
args: [{ providedIn: 'root' }]
|
|
4596
4616
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -4603,10 +4623,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.6",
|
|
|
4603
4623
|
* @publicApi
|
|
4604
4624
|
*/
|
|
4605
4625
|
class RouteReuseStrategy {
|
|
4606
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4607
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4627
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4608
4628
|
}
|
|
4609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4610
4630
|
type: Injectable,
|
|
4611
4631
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4612
4632
|
}] });
|
|
@@ -4657,10 +4677,10 @@ class BaseRouteReuseStrategy {
|
|
|
4657
4677
|
}
|
|
4658
4678
|
}
|
|
4659
4679
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4660
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4661
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4681
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4662
4682
|
}
|
|
4663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4664
4684
|
type: Injectable,
|
|
4665
4685
|
args: [{ providedIn: 'root' }]
|
|
4666
4686
|
}] });
|
|
@@ -4683,10 +4703,10 @@ const ROUTER_CONFIGURATION = new InjectionToken((typeof ngDevMode === 'undefined
|
|
|
4683
4703
|
* @publicApi
|
|
4684
4704
|
*/
|
|
4685
4705
|
class UrlHandlingStrategy {
|
|
4686
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4687
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4707
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4688
4708
|
}
|
|
4689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4690
4710
|
type: Injectable,
|
|
4691
4711
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4692
4712
|
}] });
|
|
@@ -4703,10 +4723,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4703
4723
|
merge(newUrlPart, wholeUrl) {
|
|
4704
4724
|
return newUrlPart;
|
|
4705
4725
|
}
|
|
4706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
4707
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
4726
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4727
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4708
4728
|
}
|
|
4709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
4729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4710
4730
|
type: Injectable,
|
|
4711
4731
|
args: [{ providedIn: 'root' }]
|
|
4712
4732
|
}] });
|
|
@@ -5427,10 +5447,10 @@ class Router {
|
|
|
5427
5447
|
}
|
|
5428
5448
|
return { navigationId };
|
|
5429
5449
|
}
|
|
5430
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
5431
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
5450
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5451
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5432
5452
|
}
|
|
5433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
5453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: Router, decorators: [{
|
|
5434
5454
|
type: Injectable,
|
|
5435
5455
|
args: [{ providedIn: 'root' }]
|
|
5436
5456
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5716,10 +5736,10 @@ class RouterLink {
|
|
|
5716
5736
|
preserveFragment: this.preserveFragment,
|
|
5717
5737
|
});
|
|
5718
5738
|
}
|
|
5719
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
5720
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-
|
|
5739
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", 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 }); }
|
|
5740
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-rc.0", 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 }); }
|
|
5721
5741
|
}
|
|
5722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
5742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterLink, decorators: [{
|
|
5723
5743
|
type: Directive,
|
|
5724
5744
|
args: [{
|
|
5725
5745
|
selector: '[routerLink]',
|
|
@@ -5939,10 +5959,10 @@ class RouterLinkActive {
|
|
|
5939
5959
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
5940
5960
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
5941
5961
|
}
|
|
5942
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
5943
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-
|
|
5962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5963
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-rc.0", 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 }); }
|
|
5944
5964
|
}
|
|
5945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
5965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
5946
5966
|
type: Directive,
|
|
5947
5967
|
args: [{
|
|
5948
5968
|
selector: '[routerLinkActive]',
|
|
@@ -5994,10 +6014,10 @@ class PreloadAllModules {
|
|
|
5994
6014
|
preload(route, fn) {
|
|
5995
6015
|
return fn().pipe(catchError(() => of(null)));
|
|
5996
6016
|
}
|
|
5997
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
5998
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
6017
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6018
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
5999
6019
|
}
|
|
6000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
6020
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6001
6021
|
type: Injectable,
|
|
6002
6022
|
args: [{ providedIn: 'root' }]
|
|
6003
6023
|
}] });
|
|
@@ -6014,10 +6034,10 @@ class NoPreloading {
|
|
|
6014
6034
|
preload(route, fn) {
|
|
6015
6035
|
return of(null);
|
|
6016
6036
|
}
|
|
6017
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
6018
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
6037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6038
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6019
6039
|
}
|
|
6020
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
6040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6021
6041
|
type: Injectable,
|
|
6022
6042
|
args: [{ providedIn: 'root' }]
|
|
6023
6043
|
}] });
|
|
@@ -6110,10 +6130,10 @@ class RouterPreloader {
|
|
|
6110
6130
|
}
|
|
6111
6131
|
});
|
|
6112
6132
|
}
|
|
6113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
6114
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
6133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6134
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6115
6135
|
}
|
|
6116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
6136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6117
6137
|
type: Injectable,
|
|
6118
6138
|
args: [{ providedIn: 'root' }]
|
|
6119
6139
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });
|
|
@@ -6206,10 +6226,10 @@ class RouterScroller {
|
|
|
6206
6226
|
this.routerEventsSubscription?.unsubscribe();
|
|
6207
6227
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6208
6228
|
}
|
|
6209
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
6210
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-
|
|
6229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6230
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterScroller }); }
|
|
6211
6231
|
}
|
|
6212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
6232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6213
6233
|
type: Injectable
|
|
6214
6234
|
}], ctorParameters: function () { return [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }]; } });
|
|
6215
6235
|
|
|
@@ -6815,11 +6835,11 @@ class RouterModule {
|
|
|
6815
6835
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
6816
6836
|
};
|
|
6817
6837
|
}
|
|
6818
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-
|
|
6819
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-
|
|
6820
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-
|
|
6838
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6839
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
6840
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterModule, imports: [ɵEmptyOutletComponent] }); }
|
|
6821
6841
|
}
|
|
6822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-
|
|
6842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.0", ngImport: i0, type: RouterModule, decorators: [{
|
|
6823
6843
|
type: NgModule,
|
|
6824
6844
|
args: [{
|
|
6825
6845
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -6964,7 +6984,7 @@ function mapToResolve(provider) {
|
|
|
6964
6984
|
/**
|
|
6965
6985
|
* @publicApi
|
|
6966
6986
|
*/
|
|
6967
|
-
const VERSION = new Version('16.0.0-
|
|
6987
|
+
const VERSION = new Version('16.0.0-rc.0');
|
|
6968
6988
|
|
|
6969
6989
|
/**
|
|
6970
6990
|
* @module
|