@angular/router 16.1.0 → 16.1.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/esm2022/src/components/empty_outlet.mjs +3 -3
- package/esm2022/src/directives/router_link.mjs +19 -19
- package/esm2022/src/directives/router_link_active.mjs +5 -5
- package/esm2022/src/directives/router_outlet.mjs +9 -9
- package/esm2022/src/events.mjs +25 -25
- package/esm2022/src/models.mjs +1 -1
- package/esm2022/src/navigation_transition.mjs +4 -4
- package/esm2022/src/page_title_strategy.mjs +6 -6
- package/esm2022/src/provide_router.mjs +15 -15
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +20 -20
- package/esm2022/src/router_config.mjs +1 -1
- 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 +2 -2
- package/esm2022/src/shared.mjs +3 -3
- package/esm2022/src/url_handling_strategy.mjs +6 -6
- package/esm2022/src/url_tree.mjs +3 -3
- package/esm2022/src/utils/functional_guards.mjs +6 -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 +4 -4
- package/esm2022/upgrade/src/upgrade.mjs +3 -3
- package/fesm2022/router.mjs +146 -146
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +3 -3
- package/fesm2022/upgrade.mjs.map +1 -1
- package/index.d.ts +179 -179
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +3 -3
package/fesm2022/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -68,8 +68,8 @@ function convertToParamMap(params) {
|
|
|
68
68
|
* @param segmentGroup The current segment group being matched
|
|
69
69
|
* @param route The `Route` to match against.
|
|
70
70
|
*
|
|
71
|
-
* @see UrlMatchResult
|
|
72
|
-
* @see Route
|
|
71
|
+
* @see {@link UrlMatchResult}
|
|
72
|
+
* @see {@link Route}
|
|
73
73
|
*
|
|
74
74
|
* @returns The resulting match information or `null` if the `route` should not match.
|
|
75
75
|
* @publicApi
|
|
@@ -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.1.
|
|
423
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
424
424
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
426
426
|
type: Injectable,
|
|
427
427
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
428
428
|
}] });
|
|
@@ -1227,7 +1227,7 @@ const IMPERATIVE_NAVIGATION = 'imperative';
|
|
|
1227
1227
|
* }
|
|
1228
1228
|
* ```
|
|
1229
1229
|
*
|
|
1230
|
-
* @see
|
|
1230
|
+
* @see {@link Event}
|
|
1231
1231
|
* @see [Router events summary](guide/router-reference#router-events)
|
|
1232
1232
|
* @publicApi
|
|
1233
1233
|
*/
|
|
@@ -1269,9 +1269,9 @@ class NavigationStart extends RouterEvent {
|
|
|
1269
1269
|
/**
|
|
1270
1270
|
* An event triggered when a navigation ends successfully.
|
|
1271
1271
|
*
|
|
1272
|
-
* @see
|
|
1273
|
-
* @see
|
|
1274
|
-
* @see
|
|
1272
|
+
* @see {@link NavigationStart}
|
|
1273
|
+
* @see {@link NavigationCancel}
|
|
1274
|
+
* @see {@link NavigationError}
|
|
1275
1275
|
*
|
|
1276
1276
|
* @publicApi
|
|
1277
1277
|
*/
|
|
@@ -1297,9 +1297,9 @@ class NavigationEnd extends RouterEvent {
|
|
|
1297
1297
|
* This can happen for several reasons including when a route guard
|
|
1298
1298
|
* returns `false` or initiates a redirect by returning a `UrlTree`.
|
|
1299
1299
|
*
|
|
1300
|
-
* @see
|
|
1301
|
-
* @see
|
|
1302
|
-
* @see
|
|
1300
|
+
* @see {@link NavigationStart}
|
|
1301
|
+
* @see {@link NavigationEnd}
|
|
1302
|
+
* @see {@link NavigationError}
|
|
1303
1303
|
*
|
|
1304
1304
|
* @publicApi
|
|
1305
1305
|
*/
|
|
@@ -1364,9 +1364,9 @@ class NavigationSkipped extends RouterEvent {
|
|
|
1364
1364
|
/**
|
|
1365
1365
|
* An event triggered when a navigation fails due to an unexpected error.
|
|
1366
1366
|
*
|
|
1367
|
-
* @see
|
|
1368
|
-
* @see
|
|
1369
|
-
* @see
|
|
1367
|
+
* @see {@link NavigationStart}
|
|
1368
|
+
* @see {@link NavigationEnd}
|
|
1369
|
+
* @see {@link NavigationCancel}
|
|
1370
1370
|
*
|
|
1371
1371
|
* @publicApi
|
|
1372
1372
|
*/
|
|
@@ -1423,7 +1423,7 @@ class RoutesRecognized extends RouterEvent {
|
|
|
1423
1423
|
/**
|
|
1424
1424
|
* An event triggered at the start of the Guard phase of routing.
|
|
1425
1425
|
*
|
|
1426
|
-
* @see
|
|
1426
|
+
* @see {@link GuardsCheckEnd}
|
|
1427
1427
|
*
|
|
1428
1428
|
* @publicApi
|
|
1429
1429
|
*/
|
|
@@ -1449,7 +1449,7 @@ class GuardsCheckStart extends RouterEvent {
|
|
|
1449
1449
|
/**
|
|
1450
1450
|
* An event triggered at the end of the Guard phase of routing.
|
|
1451
1451
|
*
|
|
1452
|
-
* @see
|
|
1452
|
+
* @see {@link GuardsCheckStart}
|
|
1453
1453
|
*
|
|
1454
1454
|
* @publicApi
|
|
1455
1455
|
*/
|
|
@@ -1481,7 +1481,7 @@ class GuardsCheckEnd extends RouterEvent {
|
|
|
1481
1481
|
* Runs in the "resolve" phase whether or not there is anything to resolve.
|
|
1482
1482
|
* In future, may change to only run when there are things to be resolved.
|
|
1483
1483
|
*
|
|
1484
|
-
* @see
|
|
1484
|
+
* @see {@link ResolveEnd}
|
|
1485
1485
|
*
|
|
1486
1486
|
* @publicApi
|
|
1487
1487
|
*/
|
|
@@ -1506,7 +1506,7 @@ class ResolveStart extends RouterEvent {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
/**
|
|
1508
1508
|
* An event triggered at the end of the Resolve phase of routing.
|
|
1509
|
-
* @see
|
|
1509
|
+
* @see {@link ResolveStart}.
|
|
1510
1510
|
*
|
|
1511
1511
|
* @publicApi
|
|
1512
1512
|
*/
|
|
@@ -1532,7 +1532,7 @@ class ResolveEnd extends RouterEvent {
|
|
|
1532
1532
|
/**
|
|
1533
1533
|
* An event triggered before lazy loading a route configuration.
|
|
1534
1534
|
*
|
|
1535
|
-
* @see
|
|
1535
|
+
* @see {@link RouteConfigLoadEnd}
|
|
1536
1536
|
*
|
|
1537
1537
|
* @publicApi
|
|
1538
1538
|
*/
|
|
@@ -1550,7 +1550,7 @@ class RouteConfigLoadStart {
|
|
|
1550
1550
|
/**
|
|
1551
1551
|
* An event triggered when a route has been lazy loaded.
|
|
1552
1552
|
*
|
|
1553
|
-
* @see
|
|
1553
|
+
* @see {@link RouteConfigLoadStart}
|
|
1554
1554
|
*
|
|
1555
1555
|
* @publicApi
|
|
1556
1556
|
*/
|
|
@@ -1568,8 +1568,8 @@ class RouteConfigLoadEnd {
|
|
|
1568
1568
|
/**
|
|
1569
1569
|
* An event triggered at the start of the child-activation
|
|
1570
1570
|
* part of the Resolve phase of routing.
|
|
1571
|
-
* @see
|
|
1572
|
-
* @see
|
|
1571
|
+
* @see {@link ChildActivationEnd}
|
|
1572
|
+
* @see {@link ResolveStart}
|
|
1573
1573
|
*
|
|
1574
1574
|
* @publicApi
|
|
1575
1575
|
*/
|
|
@@ -1588,8 +1588,8 @@ class ChildActivationStart {
|
|
|
1588
1588
|
/**
|
|
1589
1589
|
* An event triggered at the end of the child-activation part
|
|
1590
1590
|
* of the Resolve phase of routing.
|
|
1591
|
-
* @see
|
|
1592
|
-
* @see
|
|
1591
|
+
* @see {@link ChildActivationStart}
|
|
1592
|
+
* @see {@link ResolveStart}
|
|
1593
1593
|
* @publicApi
|
|
1594
1594
|
*/
|
|
1595
1595
|
class ChildActivationEnd {
|
|
@@ -1607,8 +1607,8 @@ class ChildActivationEnd {
|
|
|
1607
1607
|
/**
|
|
1608
1608
|
* An event triggered at the start of the activation part
|
|
1609
1609
|
* of the Resolve phase of routing.
|
|
1610
|
-
* @see
|
|
1611
|
-
* @see
|
|
1610
|
+
* @see {@link ActivationEnd}
|
|
1611
|
+
* @see {@link ResolveStart}
|
|
1612
1612
|
*
|
|
1613
1613
|
* @publicApi
|
|
1614
1614
|
*/
|
|
@@ -1627,8 +1627,8 @@ class ActivationStart {
|
|
|
1627
1627
|
/**
|
|
1628
1628
|
* An event triggered at the end of the activation part
|
|
1629
1629
|
* of the Resolve phase of routing.
|
|
1630
|
-
* @see
|
|
1631
|
-
* @see
|
|
1630
|
+
* @see {@link ActivationStart}
|
|
1631
|
+
* @see {@link ResolveStart}
|
|
1632
1632
|
*
|
|
1633
1633
|
* @publicApi
|
|
1634
1634
|
*/
|
|
@@ -1772,10 +1772,10 @@ class ChildrenOutletContexts {
|
|
|
1772
1772
|
getContext(childName) {
|
|
1773
1773
|
return this.contexts.get(childName) || null;
|
|
1774
1774
|
}
|
|
1775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1776
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
1775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1776
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1777
1777
|
}
|
|
1778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1779
1779
|
type: Injectable,
|
|
1780
1780
|
args: [{ providedIn: 'root' }]
|
|
1781
1781
|
}] });
|
|
@@ -1893,7 +1893,7 @@ function nodeChildrenAsMap(node) {
|
|
|
1893
1893
|
* }
|
|
1894
1894
|
* ```
|
|
1895
1895
|
*
|
|
1896
|
-
* @see
|
|
1896
|
+
* @see {@link ActivatedRoute}
|
|
1897
1897
|
* @see [Getting route information](guide/router#getting-route-information)
|
|
1898
1898
|
*
|
|
1899
1899
|
* @publicApi
|
|
@@ -2313,8 +2313,8 @@ function equalParamsAndUrlSegments(a, b) {
|
|
|
2313
2313
|
*
|
|
2314
2314
|
* @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
|
|
2315
2315
|
* outlet and secondary route configuration").
|
|
2316
|
-
* @see
|
|
2317
|
-
* @see
|
|
2316
|
+
* @see {@link RouterLink}
|
|
2317
|
+
* @see {@link Route}
|
|
2318
2318
|
* @ngModule RouterModule
|
|
2319
2319
|
*
|
|
2320
2320
|
* @publicApi
|
|
@@ -2482,10 +2482,10 @@ class RouterOutlet {
|
|
|
2482
2482
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2483
2483
|
this.activateEvents.emit(this.activated.instance);
|
|
2484
2484
|
}
|
|
2485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2486
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
2485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2486
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.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 }); }
|
|
2487
2487
|
}
|
|
2488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2489
2489
|
type: Directive,
|
|
2490
2490
|
args: [{
|
|
2491
2491
|
selector: 'router-outlet',
|
|
@@ -2588,10 +2588,10 @@ class RoutedComponentInputBinder {
|
|
|
2588
2588
|
});
|
|
2589
2589
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2590
2590
|
}
|
|
2591
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2592
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2592
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2593
2593
|
}
|
|
2594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2595
2595
|
type: Injectable
|
|
2596
2596
|
}] });
|
|
2597
2597
|
|
|
@@ -2671,10 +2671,10 @@ function isNavigationCancelingError$1(error) {
|
|
|
2671
2671
|
* to this `EmptyOutletComponent`.
|
|
2672
2672
|
*/
|
|
2673
2673
|
class ɵEmptyOutletComponent {
|
|
2674
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2675
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
2674
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2675
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.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"] }] }); }
|
|
2676
2676
|
}
|
|
2677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2678
2678
|
type: Component,
|
|
2679
2679
|
args: [{
|
|
2680
2680
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -4148,10 +4148,10 @@ class RouterConfigLoader {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
}));
|
|
4150
4150
|
}
|
|
4151
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4152
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4152
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4153
4153
|
}
|
|
4154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4155
4155
|
type: Injectable,
|
|
4156
4156
|
args: [{ providedIn: 'root' }]
|
|
4157
4157
|
}] });
|
|
@@ -4526,10 +4526,10 @@ class NavigationTransitions {
|
|
|
4526
4526
|
this.events.next(navCancel);
|
|
4527
4527
|
t.resolve(false);
|
|
4528
4528
|
}
|
|
4529
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4530
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4529
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4530
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4531
4531
|
}
|
|
4532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4533
4533
|
type: Injectable,
|
|
4534
4534
|
args: [{ providedIn: 'root' }]
|
|
4535
4535
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4580,10 +4580,10 @@ class TitleStrategy {
|
|
|
4580
4580
|
getResolvedTitleForRoute(snapshot) {
|
|
4581
4581
|
return snapshot.data[RouteTitleKey];
|
|
4582
4582
|
}
|
|
4583
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4584
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4583
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4584
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4585
4585
|
}
|
|
4586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4587
4587
|
type: Injectable,
|
|
4588
4588
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4589
4589
|
}] });
|
|
@@ -4606,10 +4606,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4606
4606
|
this.title.setTitle(title);
|
|
4607
4607
|
}
|
|
4608
4608
|
}
|
|
4609
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4610
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4609
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4610
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4611
4611
|
}
|
|
4612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4613
4613
|
type: Injectable,
|
|
4614
4614
|
args: [{ providedIn: 'root' }]
|
|
4615
4615
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -4622,10 +4622,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
4622
4622
|
* @publicApi
|
|
4623
4623
|
*/
|
|
4624
4624
|
class RouteReuseStrategy {
|
|
4625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4626
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4626
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4627
4627
|
}
|
|
4628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4629
4629
|
type: Injectable,
|
|
4630
4630
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4631
4631
|
}] });
|
|
@@ -4676,10 +4676,10 @@ class BaseRouteReuseStrategy {
|
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
4678
4678
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4680
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4679
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4680
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4681
4681
|
}
|
|
4682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4683
4683
|
type: Injectable,
|
|
4684
4684
|
args: [{ providedIn: 'root' }]
|
|
4685
4685
|
}] });
|
|
@@ -4702,10 +4702,10 @@ const ROUTER_CONFIGURATION = new InjectionToken((typeof ngDevMode === 'undefined
|
|
|
4702
4702
|
* @publicApi
|
|
4703
4703
|
*/
|
|
4704
4704
|
class UrlHandlingStrategy {
|
|
4705
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4706
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4706
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4707
4707
|
}
|
|
4708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4709
4709
|
type: Injectable,
|
|
4710
4710
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4711
4711
|
}] });
|
|
@@ -4722,10 +4722,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4722
4722
|
merge(newUrlPart, wholeUrl) {
|
|
4723
4723
|
return newUrlPart;
|
|
4724
4724
|
}
|
|
4725
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
4726
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
4725
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4726
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4727
4727
|
}
|
|
4728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
4728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4729
4729
|
type: Injectable,
|
|
4730
4730
|
args: [{ providedIn: 'root' }]
|
|
4731
4731
|
}] });
|
|
@@ -4794,7 +4794,7 @@ const subsetMatchOptions = {
|
|
|
4794
4794
|
*
|
|
4795
4795
|
* A service that provides navigation among views and URL manipulation capabilities.
|
|
4796
4796
|
*
|
|
4797
|
-
* @see
|
|
4797
|
+
* @see {@link Route}.
|
|
4798
4798
|
* @see [Routing and Navigation Guide](guide/router).
|
|
4799
4799
|
*
|
|
4800
4800
|
* @ngModule RouterModule
|
|
@@ -4848,7 +4848,7 @@ class Router {
|
|
|
4848
4848
|
*
|
|
4849
4849
|
* @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.
|
|
4850
4850
|
* `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.
|
|
4851
|
-
* @see
|
|
4851
|
+
* @see {@link withNavigationErrorHandler}
|
|
4852
4852
|
*/
|
|
4853
4853
|
this.errorHandler = this.options.errorHandler || defaultErrorHandler;
|
|
4854
4854
|
/**
|
|
@@ -4859,7 +4859,7 @@ class Router {
|
|
|
4859
4859
|
*
|
|
4860
4860
|
* @deprecated URI parsing errors should be handled in the `UrlSerializer`.
|
|
4861
4861
|
*
|
|
4862
|
-
* @see
|
|
4862
|
+
* @see {@link RouterModule}
|
|
4863
4863
|
*/
|
|
4864
4864
|
this.malformedUriErrorHandler = this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;
|
|
4865
4865
|
/**
|
|
@@ -4895,9 +4895,9 @@ class Router {
|
|
|
4895
4895
|
*
|
|
4896
4896
|
*
|
|
4897
4897
|
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4898
|
-
* @see
|
|
4899
|
-
* @see
|
|
4900
|
-
* @see
|
|
4898
|
+
* @see {@link withRouterConfig}
|
|
4899
|
+
* @see {@link provideRouter}
|
|
4900
|
+
* @see {@link RouterModule}
|
|
4901
4901
|
*/
|
|
4902
4902
|
this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';
|
|
4903
4903
|
/**
|
|
@@ -4910,9 +4910,9 @@ class Router {
|
|
|
4910
4910
|
* for all child routes.
|
|
4911
4911
|
*
|
|
4912
4912
|
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4913
|
-
* @see
|
|
4914
|
-
* @see
|
|
4915
|
-
* @see
|
|
4913
|
+
* @see {@link withRouterConfig}
|
|
4914
|
+
* @see {@link provideRouter}
|
|
4915
|
+
* @see {@link RouterModule}
|
|
4916
4916
|
*/
|
|
4917
4917
|
this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';
|
|
4918
4918
|
/**
|
|
@@ -4923,9 +4923,9 @@ class Router {
|
|
|
4923
4923
|
* you can show an error message with the URL that failed.
|
|
4924
4924
|
*
|
|
4925
4925
|
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4926
|
-
* @see
|
|
4927
|
-
* @see
|
|
4928
|
-
* @see
|
|
4926
|
+
* @see {@link withRouterConfig}
|
|
4927
|
+
* @see {@link provideRouter}
|
|
4928
|
+
* @see {@link RouterModule}
|
|
4929
4929
|
*/
|
|
4930
4930
|
this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';
|
|
4931
4931
|
/**
|
|
@@ -4950,9 +4950,9 @@ class Router {
|
|
|
4950
4950
|
* The default value is `replace`.
|
|
4951
4951
|
*
|
|
4952
4952
|
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4953
|
-
* @see
|
|
4954
|
-
* @see
|
|
4955
|
-
* @see
|
|
4953
|
+
* @see {@link withRouterConfig}
|
|
4954
|
+
* @see {@link provideRouter}
|
|
4955
|
+
* @see {@link RouterModule}
|
|
4956
4956
|
*/
|
|
4957
4957
|
this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';
|
|
4958
4958
|
this.config = inject(ROUTES, { optional: true })?.flat() ?? [];
|
|
@@ -5326,7 +5326,7 @@ class Router {
|
|
|
5326
5326
|
afterNextNavigation(this, () => {
|
|
5327
5327
|
// Remove pending task in a microtask to allow for cancelled
|
|
5328
5328
|
// initial navigations and redirects within the same task.
|
|
5329
|
-
|
|
5329
|
+
queueMicrotask(() => this.pendingTasks.remove(taskId));
|
|
5330
5330
|
});
|
|
5331
5331
|
this.navigationTransitions.handleNavigationRequest({
|
|
5332
5332
|
source,
|
|
@@ -5425,10 +5425,10 @@ class Router {
|
|
|
5425
5425
|
}
|
|
5426
5426
|
return { navigationId };
|
|
5427
5427
|
}
|
|
5428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5429
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5430
5430
|
}
|
|
5431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: Router, decorators: [{
|
|
5432
5432
|
type: Injectable,
|
|
5433
5433
|
args: [{ providedIn: 'root' }]
|
|
5434
5434
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5466,7 +5466,7 @@ function validateCommands(commands) {
|
|
|
5466
5466
|
* For instance, suppose the current URL is `/user/(box//aux:team)`.
|
|
5467
5467
|
* The link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
|
|
5468
5468
|
* `/user/(jim//aux:team)`.
|
|
5469
|
-
* See {@link Router#createUrlTree
|
|
5469
|
+
* See {@link Router#createUrlTree} for more information.
|
|
5470
5470
|
*
|
|
5471
5471
|
* @usageNotes
|
|
5472
5472
|
*
|
|
@@ -5509,7 +5509,7 @@ function validateCommands(commands) {
|
|
|
5509
5509
|
* </a>
|
|
5510
5510
|
* ```
|
|
5511
5511
|
*
|
|
5512
|
-
* See {@link UrlCreationOptions
|
|
5512
|
+
* See {@link UrlCreationOptions#queryParamsHandling}.
|
|
5513
5513
|
*
|
|
5514
5514
|
* ### Preserving navigation history
|
|
5515
5515
|
*
|
|
@@ -5523,7 +5523,7 @@ function validateCommands(commands) {
|
|
|
5523
5523
|
* </a>
|
|
5524
5524
|
* ```
|
|
5525
5525
|
*
|
|
5526
|
-
* Use {@link Router
|
|
5526
|
+
* Use {@link Router#getCurrentNavigation} to retrieve a saved
|
|
5527
5527
|
* navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`
|
|
5528
5528
|
* event:
|
|
5529
5529
|
*
|
|
@@ -5556,24 +5556,24 @@ class RouterLink {
|
|
|
5556
5556
|
/** @internal */
|
|
5557
5557
|
this.onChanges = new Subject();
|
|
5558
5558
|
/**
|
|
5559
|
-
* Passed to {@link Router#createUrlTree
|
|
5559
|
+
* Passed to {@link Router#createUrlTree} as part of the
|
|
5560
5560
|
* `UrlCreationOptions`.
|
|
5561
|
-
* @see {@link UrlCreationOptions#preserveFragment
|
|
5562
|
-
* @see {@link Router#createUrlTree
|
|
5561
|
+
* @see {@link UrlCreationOptions#preserveFragment}
|
|
5562
|
+
* @see {@link Router#createUrlTree}
|
|
5563
5563
|
*/
|
|
5564
5564
|
this.preserveFragment = false;
|
|
5565
5565
|
/**
|
|
5566
|
-
* Passed to {@link Router#navigateByUrl
|
|
5566
|
+
* Passed to {@link Router#navigateByUrl} as part of the
|
|
5567
5567
|
* `NavigationBehaviorOptions`.
|
|
5568
|
-
* @see {@link NavigationBehaviorOptions#skipLocationChange
|
|
5569
|
-
* @see {@link Router#navigateByUrl
|
|
5568
|
+
* @see {@link NavigationBehaviorOptions#skipLocationChange}
|
|
5569
|
+
* @see {@link Router#navigateByUrl}
|
|
5570
5570
|
*/
|
|
5571
5571
|
this.skipLocationChange = false;
|
|
5572
5572
|
/**
|
|
5573
|
-
* Passed to {@link Router#navigateByUrl
|
|
5573
|
+
* Passed to {@link Router#navigateByUrl} as part of the
|
|
5574
5574
|
* `NavigationBehaviorOptions`.
|
|
5575
|
-
* @see {@link NavigationBehaviorOptions#replaceUrl
|
|
5576
|
-
* @see {@link Router#navigateByUrl
|
|
5575
|
+
* @see {@link NavigationBehaviorOptions#replaceUrl}
|
|
5576
|
+
* @see {@link Router#navigateByUrl}
|
|
5577
5577
|
*/
|
|
5578
5578
|
this.replaceUrl = false;
|
|
5579
5579
|
const tagName = el.nativeElement.tagName?.toLowerCase();
|
|
@@ -5609,11 +5609,11 @@ class RouterLink {
|
|
|
5609
5609
|
this.onChanges.next(this);
|
|
5610
5610
|
}
|
|
5611
5611
|
/**
|
|
5612
|
-
* Commands to pass to {@link Router#createUrlTree
|
|
5613
|
-
* - **array**: commands to pass to {@link Router#createUrlTree
|
|
5612
|
+
* Commands to pass to {@link Router#createUrlTree}.
|
|
5613
|
+
* - **array**: commands to pass to {@link Router#createUrlTree}.
|
|
5614
5614
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
5615
5615
|
* - **null|undefined**: effectively disables the `routerLink`
|
|
5616
|
-
* @see {@link Router#createUrlTree
|
|
5616
|
+
* @see {@link Router#createUrlTree}
|
|
5617
5617
|
*/
|
|
5618
5618
|
set routerLink(commands) {
|
|
5619
5619
|
if (commands != null) {
|
|
@@ -5696,10 +5696,10 @@ class RouterLink {
|
|
|
5696
5696
|
preserveFragment: this.preserveFragment,
|
|
5697
5697
|
});
|
|
5698
5698
|
}
|
|
5699
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5700
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5699
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.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 }); }
|
|
5700
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.2", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", relativeTo: "relativeTo", preserveFragment: ["preserveFragment", "preserveFragment", booleanAttribute], skipLocationChange: ["skipLocationChange", "skipLocationChange", booleanAttribute], replaceUrl: ["replaceUrl", "replaceUrl", booleanAttribute], 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 }); }
|
|
5701
5701
|
}
|
|
5702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterLink, decorators: [{
|
|
5703
5703
|
type: Directive,
|
|
5704
5704
|
args: [{
|
|
5705
5705
|
selector: '[routerLink]',
|
|
@@ -5887,7 +5887,7 @@ class RouterLinkActive {
|
|
|
5887
5887
|
update() {
|
|
5888
5888
|
if (!this.links || !this.router.navigated)
|
|
5889
5889
|
return;
|
|
5890
|
-
|
|
5890
|
+
queueMicrotask(() => {
|
|
5891
5891
|
const hasActiveLinks = this.hasActiveLinks();
|
|
5892
5892
|
if (this._isActive !== hasActiveLinks) {
|
|
5893
5893
|
this._isActive = hasActiveLinks;
|
|
@@ -5922,10 +5922,10 @@ class RouterLinkActive {
|
|
|
5922
5922
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
5923
5923
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
5924
5924
|
}
|
|
5925
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5926
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
5925
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.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 }); }
|
|
5926
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.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 }); }
|
|
5927
5927
|
}
|
|
5928
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
5929
5929
|
type: Directive,
|
|
5930
5930
|
args: [{
|
|
5931
5931
|
selector: '[routerLinkActive]',
|
|
@@ -5977,10 +5977,10 @@ class PreloadAllModules {
|
|
|
5977
5977
|
preload(route, fn) {
|
|
5978
5978
|
return fn().pipe(catchError(() => of(null)));
|
|
5979
5979
|
}
|
|
5980
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
5981
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
5980
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5981
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
5982
5982
|
}
|
|
5983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
5983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
5984
5984
|
type: Injectable,
|
|
5985
5985
|
args: [{ providedIn: 'root' }]
|
|
5986
5986
|
}] });
|
|
@@ -5997,10 +5997,10 @@ class NoPreloading {
|
|
|
5997
5997
|
preload(route, fn) {
|
|
5998
5998
|
return of(null);
|
|
5999
5999
|
}
|
|
6000
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6001
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6000
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6001
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6002
6002
|
}
|
|
6003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6004
6004
|
type: Injectable,
|
|
6005
6005
|
args: [{ providedIn: 'root' }]
|
|
6006
6006
|
}] });
|
|
@@ -6093,10 +6093,10 @@ class RouterPreloader {
|
|
|
6093
6093
|
}
|
|
6094
6094
|
});
|
|
6095
6095
|
}
|
|
6096
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6097
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6096
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6097
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6098
6098
|
}
|
|
6099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6100
6100
|
type: Injectable,
|
|
6101
6101
|
args: [{ providedIn: 'root' }]
|
|
6102
6102
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });
|
|
@@ -6189,10 +6189,10 @@ class RouterScroller {
|
|
|
6189
6189
|
this.routerEventsSubscription?.unsubscribe();
|
|
6190
6190
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6191
6191
|
}
|
|
6192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6193
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
6192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6193
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterScroller }); }
|
|
6194
6194
|
}
|
|
6195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6196
6196
|
type: Injectable
|
|
6197
6197
|
}], ctorParameters: function () { return [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }]; } });
|
|
6198
6198
|
|
|
@@ -6225,7 +6225,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
6225
6225
|
* );
|
|
6226
6226
|
* ```
|
|
6227
6227
|
*
|
|
6228
|
-
* @see
|
|
6228
|
+
* @see {@link RouterFeatures}
|
|
6229
6229
|
*
|
|
6230
6230
|
* @publicApi
|
|
6231
6231
|
* @param routes A set of `Route`s to use for the application routing table.
|
|
@@ -6283,7 +6283,7 @@ const routerIsProvidedDevModeCheck = {
|
|
|
6283
6283
|
* ```
|
|
6284
6284
|
*
|
|
6285
6285
|
* @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.
|
|
6286
|
-
* @see
|
|
6286
|
+
* @see {@link ROUTES}
|
|
6287
6287
|
* @publicApi
|
|
6288
6288
|
*/
|
|
6289
6289
|
function provideRoutes(routes) {
|
|
@@ -6309,8 +6309,8 @@ function provideRoutes(routes) {
|
|
|
6309
6309
|
* );
|
|
6310
6310
|
* ```
|
|
6311
6311
|
*
|
|
6312
|
-
* @see
|
|
6313
|
-
* @see
|
|
6312
|
+
* @see {@link provideRouter}
|
|
6313
|
+
* @see {@link ViewportScroller}
|
|
6314
6314
|
*
|
|
6315
6315
|
* @publicApi
|
|
6316
6316
|
* @param options Set of configuration parameters to customize scrolling behavior, see
|
|
@@ -6383,7 +6383,7 @@ const INITIAL_NAVIGATION = new InjectionToken((typeof ngDevMode === 'undefined'
|
|
|
6383
6383
|
* );
|
|
6384
6384
|
* ```
|
|
6385
6385
|
*
|
|
6386
|
-
* @see
|
|
6386
|
+
* @see {@link provideRouter}
|
|
6387
6387
|
*
|
|
6388
6388
|
* @publicApi
|
|
6389
6389
|
* @returns A set of providers for use with `provideRouter`.
|
|
@@ -6443,7 +6443,7 @@ function withEnabledBlockingInitialNavigation() {
|
|
|
6443
6443
|
* );
|
|
6444
6444
|
* ```
|
|
6445
6445
|
*
|
|
6446
|
-
* @see
|
|
6446
|
+
* @see {@link provideRouter}
|
|
6447
6447
|
*
|
|
6448
6448
|
* @returns A set of providers for use with `provideRouter`.
|
|
6449
6449
|
*
|
|
@@ -6483,7 +6483,7 @@ function withDisabledInitialNavigation() {
|
|
|
6483
6483
|
* );
|
|
6484
6484
|
* ```
|
|
6485
6485
|
*
|
|
6486
|
-
* @see
|
|
6486
|
+
* @see {@link provideRouter}
|
|
6487
6487
|
*
|
|
6488
6488
|
* @returns A set of providers for use with `provideRouter`.
|
|
6489
6489
|
*
|
|
@@ -6532,7 +6532,7 @@ const ROUTER_PRELOADER = new InjectionToken((typeof ngDevMode === 'undefined' ||
|
|
|
6532
6532
|
* );
|
|
6533
6533
|
* ```
|
|
6534
6534
|
*
|
|
6535
|
-
* @see
|
|
6535
|
+
* @see {@link provideRouter}
|
|
6536
6536
|
*
|
|
6537
6537
|
* @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that
|
|
6538
6538
|
* should be used.
|
|
@@ -6566,7 +6566,7 @@ function withPreloading(preloadingStrategy) {
|
|
|
6566
6566
|
* );
|
|
6567
6567
|
* ```
|
|
6568
6568
|
*
|
|
6569
|
-
* @see
|
|
6569
|
+
* @see {@link provideRouter}
|
|
6570
6570
|
*
|
|
6571
6571
|
* @param options A set of parameters to configure Router, see `RouterConfigOptions` for
|
|
6572
6572
|
* additional information.
|
|
@@ -6597,8 +6597,8 @@ function withRouterConfig(options) {
|
|
|
6597
6597
|
* );
|
|
6598
6598
|
* ```
|
|
6599
6599
|
*
|
|
6600
|
-
* @see
|
|
6601
|
-
* @see
|
|
6600
|
+
* @see {@link provideRouter}
|
|
6601
|
+
* @see {@link HashLocationStrategy}
|
|
6602
6602
|
*
|
|
6603
6603
|
* @returns A set of providers for use with `provideRouter`.
|
|
6604
6604
|
*
|
|
@@ -6631,9 +6631,9 @@ function withHashLocation() {
|
|
|
6631
6631
|
* );
|
|
6632
6632
|
* ```
|
|
6633
6633
|
*
|
|
6634
|
-
* @see
|
|
6635
|
-
* @see
|
|
6636
|
-
* @see
|
|
6634
|
+
* @see {@link NavigationError}
|
|
6635
|
+
* @see {@link core/inject}
|
|
6636
|
+
* @see {@link EnvironmentInjector#runInContext}
|
|
6637
6637
|
*
|
|
6638
6638
|
* @returns A set of providers for use with `provideRouter`.
|
|
6639
6639
|
*
|
|
@@ -6798,11 +6798,11 @@ class RouterModule {
|
|
|
6798
6798
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
6799
6799
|
};
|
|
6800
6800
|
}
|
|
6801
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
6802
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
6803
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
6801
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6802
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.2", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
6803
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterModule }); }
|
|
6804
6804
|
}
|
|
6805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
6805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: RouterModule, decorators: [{
|
|
6806
6806
|
type: NgModule,
|
|
6807
6807
|
args: [{
|
|
6808
6808
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -6885,7 +6885,7 @@ function provideRouterInitializer() {
|
|
|
6885
6885
|
* Usage {@example router/utils/functional_guards.ts region='CanActivate'}
|
|
6886
6886
|
*
|
|
6887
6887
|
* @publicApi
|
|
6888
|
-
* @see Route
|
|
6888
|
+
* @see {@link Route}
|
|
6889
6889
|
*/
|
|
6890
6890
|
function mapToCanMatch(providers) {
|
|
6891
6891
|
return providers.map(provider => (...params) => inject(provider).canMatch(...params));
|
|
@@ -6897,7 +6897,7 @@ function mapToCanMatch(providers) {
|
|
|
6897
6897
|
* Usage {@example router/utils/functional_guards.ts region='CanActivate'}
|
|
6898
6898
|
*
|
|
6899
6899
|
* @publicApi
|
|
6900
|
-
* @see Route
|
|
6900
|
+
* @see {@link Route}
|
|
6901
6901
|
*/
|
|
6902
6902
|
function mapToCanActivate(providers) {
|
|
6903
6903
|
return providers.map(provider => (...params) => inject(provider).canActivate(...params));
|
|
@@ -6909,7 +6909,7 @@ function mapToCanActivate(providers) {
|
|
|
6909
6909
|
* Usage {@example router/utils/functional_guards.ts region='CanActivate'}
|
|
6910
6910
|
*
|
|
6911
6911
|
* @publicApi
|
|
6912
|
-
* @see Route
|
|
6912
|
+
* @see {@link Route}
|
|
6913
6913
|
*/
|
|
6914
6914
|
function mapToCanActivateChild(providers) {
|
|
6915
6915
|
return providers.map(provider => (...params) => inject(provider).canActivateChild(...params));
|
|
@@ -6921,7 +6921,7 @@ function mapToCanActivateChild(providers) {
|
|
|
6921
6921
|
* Usage {@example router/utils/functional_guards.ts region='CanActivate'}
|
|
6922
6922
|
*
|
|
6923
6923
|
* @publicApi
|
|
6924
|
-
* @see Route
|
|
6924
|
+
* @see {@link Route}
|
|
6925
6925
|
*/
|
|
6926
6926
|
function mapToCanDeactivate(providers) {
|
|
6927
6927
|
return providers.map(provider => (...params) => inject(provider).canDeactivate(...params));
|
|
@@ -6933,7 +6933,7 @@ function mapToCanDeactivate(providers) {
|
|
|
6933
6933
|
* Usage {@example router/utils/functional_guards.ts region='Resolve'}
|
|
6934
6934
|
*
|
|
6935
6935
|
* @publicApi
|
|
6936
|
-
* @see Route
|
|
6936
|
+
* @see {@link Route}
|
|
6937
6937
|
*/
|
|
6938
6938
|
function mapToResolve(provider) {
|
|
6939
6939
|
return (...params) => inject(provider).resolve(...params);
|
|
@@ -6947,7 +6947,7 @@ function mapToResolve(provider) {
|
|
|
6947
6947
|
/**
|
|
6948
6948
|
* @publicApi
|
|
6949
6949
|
*/
|
|
6950
|
-
const VERSION = new Version('16.1.
|
|
6950
|
+
const VERSION = new Version('16.1.2');
|
|
6951
6951
|
|
|
6952
6952
|
/**
|
|
6953
6953
|
* @module
|