@angular/router 17.0.0-next.8 → 17.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/components/empty_outlet.mjs +3 -3
- package/esm2022/src/directives/router_link.mjs +3 -3
- package/esm2022/src/directives/router_link_active.mjs +3 -3
- package/esm2022/src/directives/router_outlet.mjs +6 -6
- package/esm2022/src/navigation_transition.mjs +3 -3
- package/esm2022/src/page_title_strategy.mjs +6 -6
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +10 -10
- package/esm2022/src/router_config.mjs +1 -1
- package/esm2022/src/router_config_loader.mjs +3 -3
- package/esm2022/src/router_module.mjs +6 -10
- 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/statemanager/state_manager.mjs +204 -0
- package/esm2022/src/url_handling_strategy.mjs +6 -6
- package/esm2022/src/url_tree.mjs +3 -3
- 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/fesm2022/router.mjs +95 -118
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +6 -3
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/esm2022/src/state_manager.mjs +0 -223
package/esm2022/src/url_tree.mjs
CHANGED
|
@@ -266,10 +266,10 @@ export function mapChildrenIntoArray(segment, fn) {
|
|
|
266
266
|
* @publicApi
|
|
267
267
|
*/
|
|
268
268
|
export class UrlSerializer {
|
|
269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
270
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
270
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
271
271
|
}
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
273
273
|
type: Injectable,
|
|
274
274
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
275
275
|
}] });
|
package/esm2022/src/version.mjs
CHANGED
|
@@ -14,5 +14,5 @@ import { Version } from '@angular/core';
|
|
|
14
14
|
/**
|
|
15
15
|
* @publicApi
|
|
16
16
|
*/
|
|
17
|
-
export const VERSION = new Version('17.0.0-
|
|
17
|
+
export const VERSION = new Version('17.0.0-rc.0');
|
|
18
18
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3JvdXRlci9zcmMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSDs7OztHQUlHO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0Qzs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSByb3V0ZXIgcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEBwdWJsaWNBcGlcbiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|
|
@@ -25,18 +25,18 @@ export class RootFixtureService {
|
|
|
25
25
|
this.fixture.detectChanges();
|
|
26
26
|
return this.fixture;
|
|
27
27
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
29
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
29
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RootFixtureService, decorators: [{
|
|
32
32
|
type: Injectable,
|
|
33
33
|
args: [{ providedIn: 'root' }]
|
|
34
34
|
}] });
|
|
35
35
|
export class RootCmp {
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-rc.0", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], 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"] }] }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RootCmp, decorators: [{
|
|
40
40
|
type: Component,
|
|
41
41
|
args: [{
|
|
42
42
|
standalone: true,
|
|
@@ -46,16 +46,16 @@ export class RouterTestingModule {
|
|
|
46
46
|
]
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
50
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-
|
|
51
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
50
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
|
|
51
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterTestingModule, providers: [
|
|
52
52
|
ROUTER_PROVIDERS,
|
|
53
53
|
provideLocationMocks(),
|
|
54
54
|
withPreloading(NoPreloading).ɵproviders,
|
|
55
55
|
{ provide: ROUTES, multi: true, useValue: [] },
|
|
56
56
|
], imports: [RouterModule] }); }
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
59
59
|
type: NgModule,
|
|
60
60
|
args: [{
|
|
61
61
|
exports: [RouterModule],
|
package/fesm2022/router.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-
|
|
2
|
+
* @license Angular v17.0.0-rc.0
|
|
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 { ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, InjectionToken, reflectComponentType, Component, createEnvironmentInjector, ɵisNgModule, isStandalone, ɵisInjectable, Compiler, NgModuleFactory, NgZone, runInInjectionContext, afterNextRender, ɵConsole, ɵInitialRenderPendingTasks, ɵɵsanitizeUrlOrResourceUrl, booleanAttribute, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, InjectFlags, APP_INITIALIZER,
|
|
8
|
+
import { ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, InjectionToken, reflectComponentType, Component, createEnvironmentInjector, ɵisNgModule, isStandalone, ɵisInjectable, Compiler, NgModuleFactory, NgZone, runInInjectionContext, afterNextRender, ɵConsole, ɵInitialRenderPendingTasks, ɵɵsanitizeUrlOrResourceUrl, booleanAttribute, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, InjectFlags, APP_INITIALIZER, SkipSelf, NgModule, Inject, Version } from '@angular/core';
|
|
9
9
|
import { isObservable, from, of, BehaviorSubject, combineLatest, EmptyError, concat, defer, pipe, throwError, EMPTY, ConnectableObservable, Subject, Subscription } from 'rxjs';
|
|
10
10
|
import * as i3 from '@angular/common';
|
|
11
11
|
import { DOCUMENT, Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';
|
|
@@ -425,10 +425,10 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
425
425
|
* @publicApi
|
|
426
426
|
*/
|
|
427
427
|
class UrlSerializer {
|
|
428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
429
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
430
430
|
}
|
|
431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
432
432
|
type: Injectable,
|
|
433
433
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
434
434
|
}] });
|
|
@@ -1785,10 +1785,10 @@ class ChildrenOutletContexts {
|
|
|
1785
1785
|
getContext(childName) {
|
|
1786
1786
|
return this.contexts.get(childName) || null;
|
|
1787
1787
|
}
|
|
1788
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
1789
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
1788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1789
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1790
1790
|
}
|
|
1791
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
1791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1792
1792
|
type: Injectable,
|
|
1793
1793
|
args: [{ providedIn: 'root' }]
|
|
1794
1794
|
}] });
|
|
@@ -2495,10 +2495,10 @@ class RouterOutlet {
|
|
|
2495
2495
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2496
2496
|
this.activateEvents.emit(this.activated.instance);
|
|
2497
2497
|
}
|
|
2498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
2499
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-
|
|
2498
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2499
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-rc.0", type: RouterOutlet, isStandalone: true, selector: "router-outlet", inputs: { name: "name" }, outputs: { activateEvents: "activate", deactivateEvents: "deactivate", attachEvents: "attach", detachEvents: "detach" }, exportAs: ["outlet"], usesOnChanges: true, ngImport: i0 }); }
|
|
2500
2500
|
}
|
|
2501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
2501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2502
2502
|
type: Directive,
|
|
2503
2503
|
args: [{
|
|
2504
2504
|
selector: 'router-outlet',
|
|
@@ -2601,10 +2601,10 @@ class RoutedComponentInputBinder {
|
|
|
2601
2601
|
});
|
|
2602
2602
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2603
2603
|
}
|
|
2604
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
2605
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
2604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2605
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2606
2606
|
}
|
|
2607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
2607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2608
2608
|
type: Injectable
|
|
2609
2609
|
}] });
|
|
2610
2610
|
|
|
@@ -2684,10 +2684,10 @@ function isNavigationCancelingError$1(error) {
|
|
|
2684
2684
|
* to this `EmptyOutletComponent`.
|
|
2685
2685
|
*/
|
|
2686
2686
|
class ɵEmptyOutletComponent {
|
|
2687
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
2688
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-
|
|
2687
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2688
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-rc.0", type: ɵEmptyOutletComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
2689
2689
|
}
|
|
2690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
2690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2691
2691
|
type: Component,
|
|
2692
2692
|
args: [{
|
|
2693
2693
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -4098,10 +4098,10 @@ class TitleStrategy {
|
|
|
4098
4098
|
getResolvedTitleForRoute(snapshot) {
|
|
4099
4099
|
return snapshot.data[RouteTitleKey];
|
|
4100
4100
|
}
|
|
4101
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4102
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4101
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4102
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4103
4103
|
}
|
|
4104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4105
4105
|
type: Injectable,
|
|
4106
4106
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4107
4107
|
}] });
|
|
@@ -4124,10 +4124,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4124
4124
|
this.title.setTitle(title);
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4128
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4128
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4129
4129
|
}
|
|
4130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4131
4131
|
type: Injectable,
|
|
4132
4132
|
args: [{ providedIn: 'root' }]
|
|
4133
4133
|
}], ctorParameters: () => [{ type: i1.Title }] });
|
|
@@ -4205,10 +4205,10 @@ class RouterConfigLoader {
|
|
|
4205
4205
|
this.childrenLoaders.set(route, loader);
|
|
4206
4206
|
return loader;
|
|
4207
4207
|
}
|
|
4208
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4209
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4208
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4209
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4210
4210
|
}
|
|
4211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4212
4212
|
type: Injectable,
|
|
4213
4213
|
args: [{ providedIn: 'root' }]
|
|
4214
4214
|
}] });
|
|
@@ -4276,10 +4276,10 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4276
4276
|
* @publicApi
|
|
4277
4277
|
*/
|
|
4278
4278
|
class UrlHandlingStrategy {
|
|
4279
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4280
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4279
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4280
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4281
4281
|
}
|
|
4282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4283
4283
|
type: Injectable,
|
|
4284
4284
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4285
4285
|
}] });
|
|
@@ -4296,10 +4296,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4296
4296
|
merge(newUrlPart, wholeUrl) {
|
|
4297
4297
|
return newUrlPart;
|
|
4298
4298
|
}
|
|
4299
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4300
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4299
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4300
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4301
4301
|
}
|
|
4302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4303
4303
|
type: Injectable,
|
|
4304
4304
|
args: [{ providedIn: 'root' }]
|
|
4305
4305
|
}] });
|
|
@@ -4708,10 +4708,10 @@ class NavigationTransitions {
|
|
|
4708
4708
|
return extractedBrowserUrl.toString() !== this.currentTransition?.extractedUrl.toString() &&
|
|
4709
4709
|
!this.currentTransition?.extras.skipLocationChange;
|
|
4710
4710
|
}
|
|
4711
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4712
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4711
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4712
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4713
4713
|
}
|
|
4714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4715
4715
|
type: Injectable,
|
|
4716
4716
|
args: [{ providedIn: 'root' }]
|
|
4717
4717
|
}], ctorParameters: () => [] });
|
|
@@ -4727,10 +4727,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
4727
4727
|
* @publicApi
|
|
4728
4728
|
*/
|
|
4729
4729
|
class RouteReuseStrategy {
|
|
4730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4731
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4730
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4731
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4732
4732
|
}
|
|
4733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4734
4734
|
type: Injectable,
|
|
4735
4735
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4736
4736
|
}] });
|
|
@@ -4781,58 +4781,32 @@ class BaseRouteReuseStrategy {
|
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4784
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4785
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4785
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4786
4786
|
}
|
|
4787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4788
4788
|
type: Injectable,
|
|
4789
4789
|
args: [{ providedIn: 'root' }]
|
|
4790
4790
|
}] });
|
|
4791
4791
|
|
|
4792
4792
|
class StateManager {
|
|
4793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4794
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) }); }
|
|
4795
|
+
}
|
|
4796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: StateManager, decorators: [{
|
|
4797
|
+
type: Injectable,
|
|
4798
|
+
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
4799
|
+
}] });
|
|
4800
|
+
class HistoryStateManager extends StateManager {
|
|
4793
4801
|
constructor() {
|
|
4802
|
+
super(...arguments);
|
|
4794
4803
|
this.location = inject(Location);
|
|
4795
4804
|
this.urlSerializer = inject(UrlSerializer);
|
|
4796
4805
|
this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};
|
|
4797
4806
|
this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';
|
|
4798
|
-
// These are currently writable via the Router public API but are deprecated and should be made
|
|
4799
|
-
// `private readonly` in the future.
|
|
4800
4807
|
this.urlHandlingStrategy = inject(UrlHandlingStrategy);
|
|
4801
4808
|
this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';
|
|
4802
|
-
/**
|
|
4803
|
-
* Represents the activated `UrlTree` that the `Router` is configured to handle (through
|
|
4804
|
-
* `UrlHandlingStrategy`). That is, after we find the route config tree that we're going to
|
|
4805
|
-
* activate, run guards, and are just about to activate the route, we set the currentUrlTree.
|
|
4806
|
-
* @internal
|
|
4807
|
-
*/
|
|
4808
4809
|
this.currentUrlTree = new UrlTree();
|
|
4809
|
-
/**
|
|
4810
|
-
* Meant to represent the entire browser url after a successful navigation. In the life of a
|
|
4811
|
-
* navigation transition:
|
|
4812
|
-
* 1. The rawUrl represents the full URL that's being navigated to
|
|
4813
|
-
* 2. We apply redirects, which might only apply to _part_ of the URL (due to
|
|
4814
|
-
* `UrlHandlingStrategy`).
|
|
4815
|
-
* 3. Right before activation (because we assume activation will succeed), we update the
|
|
4816
|
-
* rawUrlTree to be a combination of the urlAfterRedirects (again, this might only apply to part
|
|
4817
|
-
* of the initial url) and the rawUrl of the transition (which was the original navigation url in
|
|
4818
|
-
* its full form).
|
|
4819
|
-
* @internal
|
|
4820
|
-
*
|
|
4821
|
-
* Note that this is _only_ here to support `UrlHandlingStrategy.extract` and
|
|
4822
|
-
* `UrlHandlingStrategy.shouldProcessUrl`. If those didn't exist, we could get by with
|
|
4823
|
-
* `currentUrlTree` alone. If a new Router were to be provided (i.e. one that works with the
|
|
4824
|
-
* browser navigation API), we should think about whether this complexity should be carried over.
|
|
4825
|
-
*
|
|
4826
|
-
* - extract: `rawUrlTree` is needed because `extract` may only return part
|
|
4827
|
-
* of the navigation URL. Thus, `currentUrlTree` may only represent _part_ of the browser URL.
|
|
4828
|
-
* When a navigation gets cancelled and we need to reset the URL or a new navigation occurs, we
|
|
4829
|
-
* need to know the _whole_ browser URL, not just the part handled by UrlHandlingStrategy.
|
|
4830
|
-
* - shouldProcessUrl: When this returns `false`, the router just ignores the navigation but still
|
|
4831
|
-
* updates the `rawUrlTree` with the assumption that the navigation was caused by the location
|
|
4832
|
-
* change listener due to a URL update by the AngularJS router. In this case, we still need to
|
|
4833
|
-
* know what the browser's URL is for future navigations.
|
|
4834
|
-
*
|
|
4835
|
-
*/
|
|
4836
4810
|
this.rawUrlTree = this.currentUrlTree;
|
|
4837
4811
|
/**
|
|
4838
4812
|
* The id of the currently active page in the router.
|
|
@@ -4847,7 +4821,12 @@ class StateManager {
|
|
|
4847
4821
|
this.routerState = createEmptyState(this.currentUrlTree, null);
|
|
4848
4822
|
this.stateMemento = this.createStateMemento();
|
|
4849
4823
|
}
|
|
4850
|
-
|
|
4824
|
+
getCurrentUrlTree() {
|
|
4825
|
+
return this.currentUrlTree;
|
|
4826
|
+
}
|
|
4827
|
+
getRawUrlTree() {
|
|
4828
|
+
return this.rawUrlTree;
|
|
4829
|
+
}
|
|
4851
4830
|
restoredState() {
|
|
4852
4831
|
return this.location.getState();
|
|
4853
4832
|
}
|
|
@@ -4862,6 +4841,9 @@ class StateManager {
|
|
|
4862
4841
|
}
|
|
4863
4842
|
return this.restoredState()?.ɵrouterPageId ?? this.currentPageId;
|
|
4864
4843
|
}
|
|
4844
|
+
getRouterState() {
|
|
4845
|
+
return this.routerState;
|
|
4846
|
+
}
|
|
4865
4847
|
createStateMemento() {
|
|
4866
4848
|
return {
|
|
4867
4849
|
rawUrlTree: this.rawUrlTree,
|
|
@@ -4869,14 +4851,14 @@ class StateManager {
|
|
|
4869
4851
|
routerState: this.routerState,
|
|
4870
4852
|
};
|
|
4871
4853
|
}
|
|
4872
|
-
|
|
4854
|
+
registerNonRouterCurrentEntryChangeListener(listener) {
|
|
4873
4855
|
return this.location.subscribe(event => {
|
|
4874
4856
|
if (event['type'] === 'popstate') {
|
|
4875
4857
|
listener(event['url'], event.state);
|
|
4876
4858
|
}
|
|
4877
4859
|
});
|
|
4878
4860
|
}
|
|
4879
|
-
|
|
4861
|
+
handleRouterEvent(e, currentTransition) {
|
|
4880
4862
|
if (e instanceof NavigationStart) {
|
|
4881
4863
|
this.stateMemento = this.createStateMemento();
|
|
4882
4864
|
}
|
|
@@ -4937,7 +4919,6 @@ class StateManager {
|
|
|
4937
4919
|
/**
|
|
4938
4920
|
* Performs the necessary rollback action to restore the browser URL to the
|
|
4939
4921
|
* state before the transition.
|
|
4940
|
-
* @internal
|
|
4941
4922
|
*/
|
|
4942
4923
|
restoreHistory(navigation, restoringFromCaughtError = false) {
|
|
4943
4924
|
if (this.canceledNavigationResolution === 'computed') {
|
|
@@ -4989,10 +4970,10 @@ class StateManager {
|
|
|
4989
4970
|
}
|
|
4990
4971
|
return { navigationId };
|
|
4991
4972
|
}
|
|
4992
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
4993
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
4973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4974
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: HistoryStateManager, providedIn: 'root' }); }
|
|
4994
4975
|
}
|
|
4995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
4976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
4996
4977
|
type: Injectable,
|
|
4997
4978
|
args: [{ providedIn: 'root' }]
|
|
4998
4979
|
}] });
|
|
@@ -5067,10 +5048,10 @@ const subsetMatchOptions = {
|
|
|
5067
5048
|
*/
|
|
5068
5049
|
class Router {
|
|
5069
5050
|
get currentUrlTree() {
|
|
5070
|
-
return this.stateManager.
|
|
5051
|
+
return this.stateManager.getCurrentUrlTree();
|
|
5071
5052
|
}
|
|
5072
5053
|
get rawUrlTree() {
|
|
5073
|
-
return this.stateManager.
|
|
5054
|
+
return this.stateManager.getRawUrlTree();
|
|
5074
5055
|
}
|
|
5075
5056
|
/**
|
|
5076
5057
|
* An event stream for routing events.
|
|
@@ -5086,7 +5067,7 @@ class Router {
|
|
|
5086
5067
|
* The current state of routing in this NgModule.
|
|
5087
5068
|
*/
|
|
5088
5069
|
get routerState() {
|
|
5089
|
-
return this.stateManager.
|
|
5070
|
+
return this.stateManager.getRouterState();
|
|
5090
5071
|
}
|
|
5091
5072
|
constructor() {
|
|
5092
5073
|
this.disposed = false;
|
|
@@ -5161,7 +5142,7 @@ class Router {
|
|
|
5161
5142
|
const currentTransition = this.navigationTransitions.currentTransition;
|
|
5162
5143
|
const currentNavigation = this.navigationTransitions.currentNavigation;
|
|
5163
5144
|
if (currentTransition !== null && currentNavigation !== null) {
|
|
5164
|
-
this.stateManager.
|
|
5145
|
+
this.stateManager.handleRouterEvent(e, currentNavigation);
|
|
5165
5146
|
if (e instanceof NavigationCancel && e.code !== 0 /* NavigationCancellationCode.Redirect */ &&
|
|
5166
5147
|
e.code !== 1 /* NavigationCancellationCode.SupersededByNewNavigation */) {
|
|
5167
5148
|
// It seems weird that `navigated` is set to `true` when the navigation is rejected,
|
|
@@ -5230,7 +5211,7 @@ class Router {
|
|
|
5230
5211
|
// run into ngZone
|
|
5231
5212
|
if (!this.nonRouterCurrentEntryChangeSubscription) {
|
|
5232
5213
|
this.nonRouterCurrentEntryChangeSubscription =
|
|
5233
|
-
this.stateManager.
|
|
5214
|
+
this.stateManager.registerNonRouterCurrentEntryChangeListener((url, state) => {
|
|
5234
5215
|
// The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS
|
|
5235
5216
|
// hybrid apps.
|
|
5236
5217
|
setTimeout(() => {
|
|
@@ -5565,10 +5546,10 @@ class Router {
|
|
|
5565
5546
|
return Promise.reject(e);
|
|
5566
5547
|
});
|
|
5567
5548
|
}
|
|
5568
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
5569
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
5549
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5550
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5570
5551
|
}
|
|
5571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
5552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: Router, decorators: [{
|
|
5572
5553
|
type: Injectable,
|
|
5573
5554
|
args: [{ providedIn: 'root' }]
|
|
5574
5555
|
}], ctorParameters: () => [] });
|
|
@@ -5839,10 +5820,10 @@ class RouterLink {
|
|
|
5839
5820
|
preserveFragment: this.preserveFragment,
|
|
5840
5821
|
});
|
|
5841
5822
|
}
|
|
5842
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
5843
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-
|
|
5823
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5824
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-rc.0", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", relativeTo: "relativeTo", preserveFragment: ["preserveFragment", "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 }); }
|
|
5844
5825
|
}
|
|
5845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
5826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterLink, decorators: [{
|
|
5846
5827
|
type: Directive,
|
|
5847
5828
|
args: [{
|
|
5848
5829
|
selector: '[routerLink]',
|
|
@@ -6065,10 +6046,10 @@ class RouterLinkActive {
|
|
|
6065
6046
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6066
6047
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
6067
6048
|
}
|
|
6068
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
6069
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-
|
|
6049
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6050
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-rc.0", type: RouterLinkActive, isStandalone: true, selector: "[routerLinkActive]", inputs: { routerLinkActiveOptions: "routerLinkActiveOptions", ariaCurrentWhenActive: "ariaCurrentWhenActive", routerLinkActive: "routerLinkActive" }, outputs: { isActiveChange: "isActiveChange" }, queries: [{ propertyName: "links", predicate: RouterLink, descendants: true }], exportAs: ["routerLinkActive"], usesOnChanges: true, ngImport: i0 }); }
|
|
6070
6051
|
}
|
|
6071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
6052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6072
6053
|
type: Directive,
|
|
6073
6054
|
args: [{
|
|
6074
6055
|
selector: '[routerLinkActive]',
|
|
@@ -6120,10 +6101,10 @@ class PreloadAllModules {
|
|
|
6120
6101
|
preload(route, fn) {
|
|
6121
6102
|
return fn().pipe(catchError(() => of(null)));
|
|
6122
6103
|
}
|
|
6123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
6124
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
6104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
6125
6106
|
}
|
|
6126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
6107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6127
6108
|
type: Injectable,
|
|
6128
6109
|
args: [{ providedIn: 'root' }]
|
|
6129
6110
|
}] });
|
|
@@ -6140,10 +6121,10 @@ class NoPreloading {
|
|
|
6140
6121
|
preload(route, fn) {
|
|
6141
6122
|
return of(null);
|
|
6142
6123
|
}
|
|
6143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
6144
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
6124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6125
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6145
6126
|
}
|
|
6146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
6127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6147
6128
|
type: Injectable,
|
|
6148
6129
|
args: [{ providedIn: 'root' }]
|
|
6149
6130
|
}] });
|
|
@@ -6236,10 +6217,10 @@ class RouterPreloader {
|
|
|
6236
6217
|
}
|
|
6237
6218
|
});
|
|
6238
6219
|
}
|
|
6239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
6240
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
6220
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6221
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6241
6222
|
}
|
|
6242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
6223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6243
6224
|
type: Injectable,
|
|
6244
6225
|
args: [{ providedIn: 'root' }]
|
|
6245
6226
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6332,10 +6313,10 @@ class RouterScroller {
|
|
|
6332
6313
|
this.routerEventsSubscription?.unsubscribe();
|
|
6333
6314
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6334
6315
|
}
|
|
6335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
6336
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-
|
|
6316
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6317
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterScroller }); }
|
|
6337
6318
|
}
|
|
6338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
6319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6339
6320
|
type: Injectable
|
|
6340
6321
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6341
6322
|
|
|
@@ -6888,9 +6869,6 @@ const ROUTER_PROVIDERS = [
|
|
|
6888
6869
|
(typeof ngDevMode === 'undefined' || ngDevMode) ? { provide: ROUTER_IS_PROVIDED, useValue: true } :
|
|
6889
6870
|
[],
|
|
6890
6871
|
];
|
|
6891
|
-
function routerNgProbeToken() {
|
|
6892
|
-
return new NgProbeToken('Router', Router);
|
|
6893
|
-
}
|
|
6894
6872
|
/**
|
|
6895
6873
|
* @description
|
|
6896
6874
|
*
|
|
@@ -6950,7 +6928,6 @@ class RouterModule {
|
|
|
6950
6928
|
config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(),
|
|
6951
6929
|
provideRouterScroller(),
|
|
6952
6930
|
config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [],
|
|
6953
|
-
{ provide: NgProbeToken, multi: true, useFactory: routerNgProbeToken },
|
|
6954
6931
|
config?.initialNavigation ? provideInitialNavigation(config) : [],
|
|
6955
6932
|
config?.bindToComponentInputs ? withComponentInputBinding().ɵproviders : [],
|
|
6956
6933
|
config?.enableViewTransitions ? withViewTransitions().ɵproviders : [],
|
|
@@ -6980,11 +6957,11 @@ class RouterModule {
|
|
|
6980
6957
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
6981
6958
|
};
|
|
6982
6959
|
}
|
|
6983
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-
|
|
6984
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-
|
|
6985
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-
|
|
6960
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6961
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
6962
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterModule }); }
|
|
6986
6963
|
}
|
|
6987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-
|
|
6964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-rc.0", ngImport: i0, type: RouterModule, decorators: [{
|
|
6988
6965
|
type: NgModule,
|
|
6989
6966
|
args: [{
|
|
6990
6967
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7129,7 +7106,7 @@ function mapToResolve(provider) {
|
|
|
7129
7106
|
/**
|
|
7130
7107
|
* @publicApi
|
|
7131
7108
|
*/
|
|
7132
|
-
const VERSION = new Version('17.0.0-
|
|
7109
|
+
const VERSION = new Version('17.0.0-rc.0');
|
|
7133
7110
|
|
|
7134
7111
|
/**
|
|
7135
7112
|
* @module
|