@angular/router 15.1.0-next.1 → 15.1.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/components/empty_outlet.mjs +3 -3
- 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 +7 -7
- package/esm2020/src/page_title_strategy.mjs +6 -6
- package/esm2020/src/private_export.mjs +1 -2
- package/esm2020/src/provide_router.mjs +1 -5
- package/esm2020/src/route_reuse_strategy.mjs +6 -6
- package/esm2020/src/router.mjs +45 -93
- package/esm2020/src/router_config_loader.mjs +3 -3
- package/esm2020/src/router_module.mjs +7 -7
- 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/router_state.mjs +7 -7
- package/esm2020/src/url_handling_strategy.mjs +6 -6
- package/esm2020/src/url_tree.mjs +3 -3
- package/esm2020/src/utils/config.mjs +2 -2
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_module.mjs +56 -17
- package/fesm2015/router.mjs +119 -167
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +56 -17
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +116 -164
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +56 -17
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +1 -1
- package/index.d.ts +6 -14
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2015/router.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.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 { ɵisObservable, ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, Component, createEnvironmentInjector,
|
|
8
|
+
import { ɵisObservable, ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, Component, createEnvironmentInjector, 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
9
|
import { 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';
|
|
@@ -461,9 +461,9 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
461
461
|
*/
|
|
462
462
|
class UrlSerializer {
|
|
463
463
|
}
|
|
464
|
-
UrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
465
|
-
UrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
464
|
+
UrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
465
|
+
UrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
467
467
|
type: Injectable,
|
|
468
468
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
469
469
|
}] });
|
|
@@ -2083,6 +2083,13 @@ function flattenInherited(pathFromRoot) {
|
|
|
2083
2083
|
* @publicApi
|
|
2084
2084
|
*/
|
|
2085
2085
|
class ActivatedRouteSnapshot {
|
|
2086
|
+
/** The resolved route title */
|
|
2087
|
+
get title() {
|
|
2088
|
+
var _a;
|
|
2089
|
+
// Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be
|
|
2090
|
+
// available at the time of class instantiation.
|
|
2091
|
+
return (_a = this.data) === null || _a === void 0 ? void 0 : _a[RouteTitleKey];
|
|
2092
|
+
}
|
|
2086
2093
|
/** @internal */
|
|
2087
2094
|
constructor(
|
|
2088
2095
|
/** The URL segments matched by this route */
|
|
@@ -2129,13 +2136,6 @@ class ActivatedRouteSnapshot {
|
|
|
2129
2136
|
this._lastPathIndex = lastPathIndex;
|
|
2130
2137
|
this._resolve = resolve;
|
|
2131
2138
|
}
|
|
2132
|
-
/** The resolved route title */
|
|
2133
|
-
get title() {
|
|
2134
|
-
var _a;
|
|
2135
|
-
// Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be
|
|
2136
|
-
// available at the time of class instantiation.
|
|
2137
|
-
return (_a = this.data) === null || _a === void 0 ? void 0 : _a[RouteTitleKey];
|
|
2138
|
-
}
|
|
2139
2139
|
/** The root of the router state */
|
|
2140
2140
|
get root() {
|
|
2141
2141
|
return this._routerState.root;
|
|
@@ -2419,9 +2419,9 @@ class ChildrenOutletContexts {
|
|
|
2419
2419
|
return this.contexts.get(childName) || null;
|
|
2420
2420
|
}
|
|
2421
2421
|
}
|
|
2422
|
-
ChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2423
|
-
ChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2422
|
+
ChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2423
|
+
ChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });
|
|
2424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
2425
2425
|
type: Injectable,
|
|
2426
2426
|
args: [{ providedIn: 'root' }]
|
|
2427
2427
|
}] });
|
|
@@ -2642,9 +2642,9 @@ class RouterOutlet {
|
|
|
2642
2642
|
this.activateEvents.emit(this.activated.instance);
|
|
2643
2643
|
}
|
|
2644
2644
|
}
|
|
2645
|
-
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2646
|
-
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
2647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2645
|
+
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2646
|
+
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.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 });
|
|
2647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2648
2648
|
type: Directive,
|
|
2649
2649
|
args: [{
|
|
2650
2650
|
selector: 'router-outlet',
|
|
@@ -2704,9 +2704,9 @@ function isComponentFactoryResolver(item) {
|
|
|
2704
2704
|
*/
|
|
2705
2705
|
class ɵEmptyOutletComponent {
|
|
2706
2706
|
}
|
|
2707
|
-
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2708
|
-
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
2709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2707
|
+
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2708
|
+
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.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"] }] });
|
|
2709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2710
2710
|
type: Component,
|
|
2711
2711
|
args: [{
|
|
2712
2712
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -2759,7 +2759,7 @@ function validateConfig(config, parentPath = '', requireStandaloneComponents = f
|
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
function assertStandalone(fullPath, component) {
|
|
2762
|
-
if (component &&
|
|
2762
|
+
if (component && !isStandalone(component)) {
|
|
2763
2763
|
throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. The component must be standalone.`);
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
@@ -4465,9 +4465,9 @@ class RouterConfigLoader {
|
|
|
4465
4465
|
}));
|
|
4466
4466
|
}
|
|
4467
4467
|
}
|
|
4468
|
-
RouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4469
|
-
RouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4468
|
+
RouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterConfigLoader, deps: [{ token: i0.Injector }, { token: i0.Compiler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4469
|
+
RouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });
|
|
4470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4471
4471
|
type: Injectable,
|
|
4472
4472
|
args: [{ providedIn: 'root' }]
|
|
4473
4473
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Compiler }]; } });
|
|
@@ -4492,6 +4492,9 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4492
4492
|
*/
|
|
4493
4493
|
const NG_DEV_MODE$4 = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
4494
4494
|
class NavigationTransitions {
|
|
4495
|
+
get hasRequestedNavigation() {
|
|
4496
|
+
return this.navigationId !== 0;
|
|
4497
|
+
}
|
|
4495
4498
|
constructor() {
|
|
4496
4499
|
this.currentNavigation = null;
|
|
4497
4500
|
this.lastSuccessfulNavigation = null;
|
|
@@ -4506,9 +4509,6 @@ class NavigationTransitions {
|
|
|
4506
4509
|
this.configLoader.onLoadEndListener = onLoadEnd;
|
|
4507
4510
|
this.configLoader.onLoadStartListener = onLoadStart;
|
|
4508
4511
|
}
|
|
4509
|
-
get hasRequestedNavigation() {
|
|
4510
|
-
return this.navigationId !== 0;
|
|
4511
|
-
}
|
|
4512
4512
|
complete() {
|
|
4513
4513
|
var _a;
|
|
4514
4514
|
(_a = this.transitions) === null || _a === void 0 ? void 0 : _a.complete();
|
|
@@ -4838,9 +4838,9 @@ class NavigationTransitions {
|
|
|
4838
4838
|
t.resolve(false);
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
|
-
NavigationTransitions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4842
|
-
NavigationTransitions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4841
|
+
NavigationTransitions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4842
|
+
NavigationTransitions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });
|
|
4843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4844
4844
|
type: Injectable,
|
|
4845
4845
|
args: [{ providedIn: 'root' }]
|
|
4846
4846
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4900,9 +4900,9 @@ class TitleStrategy {
|
|
|
4900
4900
|
return snapshot.data[RouteTitleKey];
|
|
4901
4901
|
}
|
|
4902
4902
|
}
|
|
4903
|
-
TitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4904
|
-
TitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4903
|
+
TitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4904
|
+
TitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });
|
|
4905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4906
4906
|
type: Injectable,
|
|
4907
4907
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4908
4908
|
}] });
|
|
@@ -4926,9 +4926,9 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
4928
|
}
|
|
4929
|
-
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4930
|
-
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4929
|
+
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4930
|
+
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
4931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4932
4932
|
type: Injectable,
|
|
4933
4933
|
args: [{ providedIn: 'root' }]
|
|
4934
4934
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -4949,9 +4949,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.1",
|
|
|
4949
4949
|
*/
|
|
4950
4950
|
class RouteReuseStrategy {
|
|
4951
4951
|
}
|
|
4952
|
-
RouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4953
|
-
RouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4952
|
+
RouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4953
|
+
RouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });
|
|
4954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4955
4955
|
type: Injectable,
|
|
4956
4956
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4957
4957
|
}] });
|
|
@@ -5003,9 +5003,9 @@ class BaseRouteReuseStrategy {
|
|
|
5003
5003
|
}
|
|
5004
5004
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
5005
5005
|
}
|
|
5006
|
-
DefaultRouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5007
|
-
DefaultRouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5006
|
+
DefaultRouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5007
|
+
DefaultRouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });
|
|
5008
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
5009
5009
|
type: Injectable,
|
|
5010
5010
|
args: [{ providedIn: 'root' }]
|
|
5011
5011
|
}] });
|
|
@@ -5044,9 +5044,9 @@ const ROUTER_CONFIGURATION = new InjectionToken(NG_DEV_MODE$3 ? 'router config'
|
|
|
5044
5044
|
*/
|
|
5045
5045
|
class UrlHandlingStrategy {
|
|
5046
5046
|
}
|
|
5047
|
-
UrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5048
|
-
UrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5049
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5047
|
+
UrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5048
|
+
UrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });
|
|
5049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
5050
5050
|
type: Injectable,
|
|
5051
5051
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
5052
5052
|
}] });
|
|
@@ -5064,9 +5064,9 @@ class DefaultUrlHandlingStrategy {
|
|
|
5064
5064
|
return newUrlPart;
|
|
5065
5065
|
}
|
|
5066
5066
|
}
|
|
5067
|
-
DefaultUrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5068
|
-
DefaultUrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5067
|
+
DefaultUrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5068
|
+
DefaultUrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });
|
|
5069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
5070
5070
|
type: Injectable,
|
|
5071
5071
|
args: [{ providedIn: 'root' }]
|
|
5072
5072
|
}] });
|
|
@@ -5105,39 +5105,6 @@ const subsetMatchOptions = {
|
|
|
5105
5105
|
matrixParams: 'ignored',
|
|
5106
5106
|
queryParams: 'subset'
|
|
5107
5107
|
};
|
|
5108
|
-
function assignExtraOptionsToRouter(opts, router) {
|
|
5109
|
-
if (opts.errorHandler) {
|
|
5110
|
-
router.errorHandler = opts.errorHandler;
|
|
5111
|
-
}
|
|
5112
|
-
if (opts.malformedUriErrorHandler) {
|
|
5113
|
-
router.malformedUriErrorHandler = opts.malformedUriErrorHandler;
|
|
5114
|
-
}
|
|
5115
|
-
if (opts.onSameUrlNavigation) {
|
|
5116
|
-
router.onSameUrlNavigation = opts.onSameUrlNavigation;
|
|
5117
|
-
}
|
|
5118
|
-
if (opts.paramsInheritanceStrategy) {
|
|
5119
|
-
router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;
|
|
5120
|
-
}
|
|
5121
|
-
if (opts.urlUpdateStrategy) {
|
|
5122
|
-
router.urlUpdateStrategy = opts.urlUpdateStrategy;
|
|
5123
|
-
}
|
|
5124
|
-
if (opts.canceledNavigationResolution) {
|
|
5125
|
-
router.canceledNavigationResolution = opts.canceledNavigationResolution;
|
|
5126
|
-
}
|
|
5127
|
-
}
|
|
5128
|
-
function setupRouter() {
|
|
5129
|
-
var _a, _b;
|
|
5130
|
-
const urlSerializer = inject(UrlSerializer);
|
|
5131
|
-
const contexts = inject(ChildrenOutletContexts);
|
|
5132
|
-
const location = inject(Location);
|
|
5133
|
-
const injector = inject(Injector);
|
|
5134
|
-
const compiler = inject(Compiler);
|
|
5135
|
-
const config = (_a = inject(ROUTES, { optional: true })) !== null && _a !== void 0 ? _a : [];
|
|
5136
|
-
const opts = (_b = inject(ROUTER_CONFIGURATION, { optional: true })) !== null && _b !== void 0 ? _b : {};
|
|
5137
|
-
const router = new Router(null, urlSerializer, contexts, location, injector, compiler, flatten(config));
|
|
5138
|
-
assignExtraOptionsToRouter(opts, router);
|
|
5139
|
-
return router;
|
|
5140
|
-
}
|
|
5141
5108
|
/**
|
|
5142
5109
|
* @description
|
|
5143
5110
|
*
|
|
@@ -5151,18 +5118,32 @@ function setupRouter() {
|
|
|
5151
5118
|
* @publicApi
|
|
5152
5119
|
*/
|
|
5153
5120
|
class Router {
|
|
5121
|
+
// TODO(b/260747083): This should not exist and navigationId should be private in
|
|
5122
|
+
// `NavigationTransitions`
|
|
5123
|
+
get navigationId() {
|
|
5124
|
+
return this.navigationTransitions.navigationId;
|
|
5125
|
+
}
|
|
5154
5126
|
/**
|
|
5155
|
-
*
|
|
5127
|
+
* The ɵrouterPageId of whatever page is currently active in the browser history. This is
|
|
5128
|
+
* important for computing the target page id for new navigations because we need to ensure each
|
|
5129
|
+
* page id in the browser history is 1 more than the previous entry.
|
|
5156
5130
|
*/
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5131
|
+
get browserPageId() {
|
|
5132
|
+
var _a;
|
|
5133
|
+
return (_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a.ɵrouterPageId;
|
|
5134
|
+
}
|
|
5135
|
+
/**
|
|
5136
|
+
* An event stream for routing events.
|
|
5137
|
+
*/
|
|
5138
|
+
get events() {
|
|
5139
|
+
// TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal
|
|
5140
|
+
// cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't
|
|
5141
|
+
// allowed/supported but we still have to fix these or file bugs against the teams before making
|
|
5142
|
+
// the change.
|
|
5143
|
+
return this.navigationTransitions.events;
|
|
5144
|
+
}
|
|
5145
|
+
constructor() {
|
|
5146
|
+
var _a;
|
|
5166
5147
|
this.disposed = false;
|
|
5167
5148
|
/**
|
|
5168
5149
|
* The id of the currently active page in the router.
|
|
@@ -5173,13 +5154,15 @@ class Router {
|
|
|
5173
5154
|
* page.
|
|
5174
5155
|
*/
|
|
5175
5156
|
this.currentPageId = 0;
|
|
5157
|
+
this.console = inject(ɵConsole);
|
|
5176
5158
|
this.isNgZoneEnabled = false;
|
|
5159
|
+
this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};
|
|
5177
5160
|
/**
|
|
5178
5161
|
* A handler for navigation errors in this NgModule.
|
|
5179
5162
|
*
|
|
5180
5163
|
* @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.
|
|
5181
5164
|
*/
|
|
5182
|
-
this.errorHandler = defaultErrorHandler;
|
|
5165
|
+
this.errorHandler = this.options.errorHandler || defaultErrorHandler;
|
|
5183
5166
|
/**
|
|
5184
5167
|
* A handler for errors thrown by `Router.parseUrl(url)`
|
|
5185
5168
|
* when `url` contains an invalid character.
|
|
@@ -5190,7 +5173,7 @@ class Router {
|
|
|
5190
5173
|
* `RouterModule.forRoot(routes, {malformedUriErrorHandler: myHandler})`
|
|
5191
5174
|
* @see `RouterModule`
|
|
5192
5175
|
*/
|
|
5193
|
-
this.malformedUriErrorHandler = defaultMalformedUriErrorHandler;
|
|
5176
|
+
this.malformedUriErrorHandler = this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;
|
|
5194
5177
|
/**
|
|
5195
5178
|
* True if at least one navigation event has occurred,
|
|
5196
5179
|
* false otherwise.
|
|
@@ -5235,7 +5218,7 @@ class Router {
|
|
|
5235
5218
|
* @see `provideRouter`
|
|
5236
5219
|
* @see `RouterModule`
|
|
5237
5220
|
*/
|
|
5238
|
-
this.onSameUrlNavigation = 'ignore';
|
|
5221
|
+
this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';
|
|
5239
5222
|
/**
|
|
5240
5223
|
* How to merge parameters, data, resolved data, and title from parent to child
|
|
5241
5224
|
* routes. One of:
|
|
@@ -5250,7 +5233,7 @@ class Router {
|
|
|
5250
5233
|
* @see `provideRouter`
|
|
5251
5234
|
* @see `RouterModule`
|
|
5252
5235
|
*/
|
|
5253
|
-
this.paramsInheritanceStrategy = 'emptyOnly';
|
|
5236
|
+
this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';
|
|
5254
5237
|
/**
|
|
5255
5238
|
* Determines when the router updates the browser URL.
|
|
5256
5239
|
* By default (`"deferred"`), updates the browser URL after navigation has finished.
|
|
@@ -5263,7 +5246,7 @@ class Router {
|
|
|
5263
5246
|
* @see `provideRouter`
|
|
5264
5247
|
* @see `RouterModule`
|
|
5265
5248
|
*/
|
|
5266
|
-
this.urlUpdateStrategy = 'deferred';
|
|
5249
|
+
this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';
|
|
5267
5250
|
/**
|
|
5268
5251
|
* Configures how the Router attempts to restore state when a navigation is cancelled.
|
|
5269
5252
|
*
|
|
@@ -5290,12 +5273,15 @@ class Router {
|
|
|
5290
5273
|
* @see `provideRouter`
|
|
5291
5274
|
* @see `RouterModule`
|
|
5292
5275
|
*/
|
|
5293
|
-
this.canceledNavigationResolution = 'replace';
|
|
5276
|
+
this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';
|
|
5277
|
+
this.config = flatten((_a = inject(ROUTES, { optional: true })) !== null && _a !== void 0 ? _a : []);
|
|
5294
5278
|
this.navigationTransitions = inject(NavigationTransitions);
|
|
5295
|
-
this.
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
this.
|
|
5279
|
+
this.urlSerializer = inject(UrlSerializer);
|
|
5280
|
+
this.location = inject(Location);
|
|
5281
|
+
/** @internal */
|
|
5282
|
+
this.rootComponentType = null;
|
|
5283
|
+
this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();
|
|
5284
|
+
this.resetConfig(this.config);
|
|
5299
5285
|
this.currentUrlTree = new UrlTree();
|
|
5300
5286
|
this.rawUrlTree = this.currentUrlTree;
|
|
5301
5287
|
this.browserUrlTree = this.currentUrlTree;
|
|
@@ -5307,34 +5293,7 @@ class Router {
|
|
|
5307
5293
|
this.console.warn(`Unhandled Navigation Error: ${e}`);
|
|
5308
5294
|
});
|
|
5309
5295
|
}
|
|
5310
|
-
|
|
5311
|
-
// `NavigationTransitions`
|
|
5312
|
-
get navigationId() {
|
|
5313
|
-
return this.navigationTransitions.navigationId;
|
|
5314
|
-
}
|
|
5315
|
-
/**
|
|
5316
|
-
* The ɵrouterPageId of whatever page is currently active in the browser history. This is
|
|
5317
|
-
* important for computing the target page id for new navigations because we need to ensure each
|
|
5318
|
-
* page id in the browser history is 1 more than the previous entry.
|
|
5319
|
-
*/
|
|
5320
|
-
get browserPageId() {
|
|
5321
|
-
var _a;
|
|
5322
|
-
return (_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a.ɵrouterPageId;
|
|
5323
|
-
}
|
|
5324
|
-
/**
|
|
5325
|
-
* An event stream for routing events.
|
|
5326
|
-
*/
|
|
5327
|
-
get events() {
|
|
5328
|
-
// TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal
|
|
5329
|
-
// cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't
|
|
5330
|
-
// allowed/supported but we still have to fix these or file bugs against the teams before making
|
|
5331
|
-
// the change.
|
|
5332
|
-
return this.navigationTransitions.events;
|
|
5333
|
-
}
|
|
5334
|
-
/**
|
|
5335
|
-
* @internal
|
|
5336
|
-
* TODO: this should be removed once the constructor of the router made internal
|
|
5337
|
-
*/
|
|
5296
|
+
/** @internal */
|
|
5338
5297
|
resetRootComponentType(rootComponentType) {
|
|
5339
5298
|
this.rootComponentType = rootComponentType;
|
|
5340
5299
|
// TODO: vsavkin router 4.0 should make the root component set to null
|
|
@@ -5761,15 +5720,12 @@ class Router {
|
|
|
5761
5720
|
return { navigationId };
|
|
5762
5721
|
}
|
|
5763
5722
|
}
|
|
5764
|
-
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5765
|
-
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5723
|
+
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5724
|
+
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: Router, providedIn: 'root' });
|
|
5725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: Router, decorators: [{
|
|
5767
5726
|
type: Injectable,
|
|
5768
|
-
args: [{
|
|
5769
|
-
|
|
5770
|
-
useFactory: setupRouter,
|
|
5771
|
-
}]
|
|
5772
|
-
}], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });
|
|
5727
|
+
args: [{ providedIn: 'root' }]
|
|
5728
|
+
}], ctorParameters: function () { return []; } });
|
|
5773
5729
|
function validateCommands(commands) {
|
|
5774
5730
|
for (let i = 0; i < commands.length; i++) {
|
|
5775
5731
|
const cmd = commands[i];
|
|
@@ -6054,9 +6010,9 @@ class RouterLink {
|
|
|
6054
6010
|
});
|
|
6055
6011
|
}
|
|
6056
6012
|
}
|
|
6057
|
-
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6058
|
-
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
6059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6013
|
+
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.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 });
|
|
6014
|
+
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.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 });
|
|
6015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterLink, decorators: [{
|
|
6060
6016
|
type: Directive,
|
|
6061
6017
|
args: [{
|
|
6062
6018
|
selector: '[routerLink]',
|
|
@@ -6285,9 +6241,9 @@ class RouterLinkActive {
|
|
|
6285
6241
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
6286
6242
|
}
|
|
6287
6243
|
}
|
|
6288
|
-
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6289
|
-
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
6290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6244
|
+
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.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 });
|
|
6245
|
+
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.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 });
|
|
6246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6291
6247
|
type: Directive,
|
|
6292
6248
|
args: [{
|
|
6293
6249
|
selector: '[routerLinkActive]',
|
|
@@ -6349,9 +6305,9 @@ class PreloadAllModules {
|
|
|
6349
6305
|
return fn().pipe(catchError(() => of(null)));
|
|
6350
6306
|
}
|
|
6351
6307
|
}
|
|
6352
|
-
PreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6353
|
-
PreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6308
|
+
PreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6309
|
+
PreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });
|
|
6310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6355
6311
|
type: Injectable,
|
|
6356
6312
|
args: [{ providedIn: 'root' }]
|
|
6357
6313
|
}] });
|
|
@@ -6369,9 +6325,9 @@ class NoPreloading {
|
|
|
6369
6325
|
return of(null);
|
|
6370
6326
|
}
|
|
6371
6327
|
}
|
|
6372
|
-
NoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6373
|
-
NoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6328
|
+
NoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6329
|
+
NoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NoPreloading, providedIn: 'root' });
|
|
6330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6375
6331
|
type: Injectable,
|
|
6376
6332
|
args: [{ providedIn: 'root' }]
|
|
6377
6333
|
}] });
|
|
@@ -6467,9 +6423,9 @@ class RouterPreloader {
|
|
|
6467
6423
|
});
|
|
6468
6424
|
}
|
|
6469
6425
|
}
|
|
6470
|
-
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6471
|
-
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6426
|
+
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6427
|
+
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterPreloader, providedIn: 'root' });
|
|
6428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6473
6429
|
type: Injectable,
|
|
6474
6430
|
args: [{ providedIn: 'root' }]
|
|
6475
6431
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });
|
|
@@ -6558,9 +6514,9 @@ class RouterScroller {
|
|
|
6558
6514
|
(_b = this.scrollEventsSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
6559
6515
|
}
|
|
6560
6516
|
}
|
|
6561
|
-
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6562
|
-
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6517
|
+
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
6518
|
+
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterScroller });
|
|
6519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6564
6520
|
type: Injectable
|
|
6565
6521
|
}], ctorParameters: function () { return [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }]; } });
|
|
6566
6522
|
|
|
@@ -6615,10 +6571,6 @@ function provideRouter(routes, ...features) {
|
|
|
6615
6571
|
{ provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },
|
|
6616
6572
|
{ provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener },
|
|
6617
6573
|
features.map(feature => feature.ɵproviders),
|
|
6618
|
-
// TODO: All options used by the `assignExtraOptionsToRouter` factory need to be reviewed for
|
|
6619
|
-
// how we want them to be configured. This API doesn't currently have a way to configure them
|
|
6620
|
-
// and we should decide what the _best_ way to do that is rather than just sticking with the
|
|
6621
|
-
// status quo of how it's done today.
|
|
6622
6574
|
]);
|
|
6623
6575
|
}
|
|
6624
6576
|
function rootRoute(router) {
|
|
@@ -7008,7 +6960,7 @@ const ROUTER_FORROOT_GUARD = new InjectionToken(NG_DEV_MODE ? 'router duplicate
|
|
|
7008
6960
|
const ROUTER_PROVIDERS = [
|
|
7009
6961
|
Location,
|
|
7010
6962
|
{ provide: UrlSerializer, useClass: DefaultUrlSerializer },
|
|
7011
|
-
|
|
6963
|
+
Router,
|
|
7012
6964
|
ChildrenOutletContexts,
|
|
7013
6965
|
{ provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },
|
|
7014
6966
|
RouterConfigLoader,
|
|
@@ -7105,10 +7057,10 @@ class RouterModule {
|
|
|
7105
7057
|
};
|
|
7106
7058
|
}
|
|
7107
7059
|
}
|
|
7108
|
-
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
7109
|
-
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
7110
|
-
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
7111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
7060
|
+
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7061
|
+
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
7062
|
+
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, imports: [ɵEmptyOutletComponent] });
|
|
7063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, decorators: [{
|
|
7112
7064
|
type: NgModule,
|
|
7113
7065
|
args: [{
|
|
7114
7066
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7196,7 +7148,7 @@ function provideRouterInitializer() {
|
|
|
7196
7148
|
/**
|
|
7197
7149
|
* @publicApi
|
|
7198
7150
|
*/
|
|
7199
|
-
const VERSION = new Version('15.1.0-next.
|
|
7151
|
+
const VERSION = new Version('15.1.0-next.2');
|
|
7200
7152
|
|
|
7201
7153
|
/**
|
|
7202
7154
|
* @license
|
|
@@ -7235,5 +7187,5 @@ const VERSION = new Version('15.1.0-next.1');
|
|
|
7235
7187
|
* Generated bundle index. Do not edit.
|
|
7236
7188
|
*/
|
|
7237
7189
|
|
|
7238
|
-
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, provideRouter, provideRoutes, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withInMemoryScrolling, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS,
|
|
7190
|
+
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, provideRouter, provideRoutes, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withInMemoryScrolling, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, flatten as ɵflatten, withPreloading as ɵwithPreloading };
|
|
7239
7191
|
//# sourceMappingURL=router.mjs.map
|