@angular/router 14.1.1 → 14.2.0-next.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
2
+ * @license Angular v14.2.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -101,9 +101,9 @@ class RouterTestingModule {
101
101
  };
102
102
  }
103
103
  }
104
- RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, providers: [
104
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0-next.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: RouterTestingModule, providers: [
107
107
  ɵROUTER_PROVIDERS,
108
108
  EXTRA_ROUTER_TESTING_PROVIDERS,
109
109
  { provide: Location, useClass: SpyLocation },
@@ -127,7 +127,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
127
127
  ɵprovidePreloading(NoPreloading),
128
128
  provideRoutes([]),
129
129
  ], imports: [RouterModule] });
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: RouterTestingModule, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0-next.0", ngImport: i0, type: RouterTestingModule, decorators: [{
131
131
  type: NgModule,
132
132
  args: [{
133
133
  exports: [RouterModule],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
2
+ * @license Angular v14.2.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
2
+ * @license Angular v14.2.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -70,6 +70,8 @@ export declare class ActivatedRoute {
70
70
  component: Type<any> | null;
71
71
  /** The current snapshot of this route */
72
72
  snapshot: ActivatedRouteSnapshot;
73
+ /** An Observable of the resolved route title */
74
+ readonly title: Observable<string | undefined>;
73
75
  /** The configuration used to match this route. */
74
76
  get routeConfig(): Route | null;
75
77
  /** The root of the router state. */
@@ -154,6 +156,8 @@ export declare class ActivatedRouteSnapshot {
154
156
  component: Type<any> | null;
155
157
  /** The configuration used to match this route **/
156
158
  readonly routeConfig: Route | null;
159
+ /** The resolved route title */
160
+ readonly title?: string;
157
161
  /** The root of the router state */
158
162
  get root(): ActivatedRouteSnapshot;
159
163
  /** The parent of this route in the router state tree */
@@ -741,6 +745,8 @@ export declare class ChildrenOutletContexts {
741
745
  onOutletReAttached(contexts: Map<string, OutletContext>): void;
742
746
  getOrCreateContext(childName: string): OutletContext;
743
747
  getContext(childName: string): OutletContext | null;
748
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChildrenOutletContexts, never>;
749
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChildrenOutletContexts>;
744
750
  }
745
751
 
746
752
  /**
@@ -833,6 +839,23 @@ export declare class DefaultTitleStrategy extends TitleStrategy {
833
839
  static ɵprov: i0.ɵɵInjectableDeclaration<DefaultTitleStrategy>;
834
840
  }
835
841
 
842
+ /**
843
+ * Matches the route configuration (`route`) against the actual URL (`segments`).
844
+ *
845
+ * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.
846
+ *
847
+ * @param segments The remaining unmatched segments in the current navigation
848
+ * @param segmentGroup The current segment group being matched
849
+ * @param route The `Route` to match against.
850
+ *
851
+ * @see UrlMatchResult
852
+ * @see Route
853
+ *
854
+ * @returns The resulting match information or `null` if the `route` should not match.
855
+ * @publicApi
856
+ */
857
+ export declare function defaultUrlMatcher(segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult | null;
858
+
836
859
  /**
837
860
  * @description
838
861
  *
@@ -3033,7 +3056,7 @@ export declare class RouterLink implements OnChanges {
3033
3056
  onClick(): boolean;
3034
3057
  get urlTree(): UrlTree | null;
3035
3058
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterLink, [null, null, { attribute: "tabindex"; }, null, null]>;
3036
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, ":not(a):not(area)[routerLink]", never, { "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "state": "state"; "relativeTo": "relativeTo"; "routerLink": "routerLink"; }, {}, never, never, false>;
3059
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, ":not(a):not(area)[routerLink]", never, { "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "state": "state"; "relativeTo": "relativeTo"; "routerLink": "routerLink"; }, {}, never, never, true>;
3037
3060
  }
3038
3061
 
3039
3062
  /**
@@ -3166,7 +3189,7 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
3166
3189
  private isLinkActive;
3167
3190
  private hasActiveLinks;
3168
3191
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterLinkActive, [null, null, null, null, { optional: true; }, { optional: true; }]>;
3169
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkActive, "[routerLinkActive]", ["routerLinkActive"], { "routerLinkActiveOptions": "routerLinkActiveOptions"; "ariaCurrentWhenActive": "ariaCurrentWhenActive"; "routerLinkActive": "routerLinkActive"; }, { "isActiveChange": "isActiveChange"; }, ["links", "linksWithHrefs"], never, false>;
3192
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkActive, "[routerLinkActive]", ["routerLinkActive"], { "routerLinkActiveOptions": "routerLinkActiveOptions"; "ariaCurrentWhenActive": "ariaCurrentWhenActive"; "routerLinkActive": "routerLinkActive"; }, { "isActiveChange": "isActiveChange"; }, ["links", "linksWithHrefs"], never, true>;
3170
3193
  }
3171
3194
 
3172
3195
  /**
@@ -3267,7 +3290,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
3267
3290
  private updateTargetUrlAndHref;
3268
3291
  get urlTree(): UrlTree | null;
3269
3292
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterLinkWithHref, never>;
3270
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkWithHref, "a[routerLink],area[routerLink]", never, { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "state": "state"; "relativeTo": "relativeTo"; "routerLink": "routerLink"; }, {}, never, never, false>;
3293
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkWithHref, "a[routerLink],area[routerLink]", never, { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "state": "state"; "relativeTo": "relativeTo"; "routerLink": "routerLink"; }, {}, never, never, true>;
3271
3294
  }
3272
3295
 
3273
3296
  /**
@@ -3330,7 +3353,7 @@ export declare class RouterModule {
3330
3353
  */
3331
3354
  static forChild(routes: Routes): ModuleWithProviders<RouterModule>;
3332
3355
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, [{ optional: true; }]>;
3333
- static ɵmod: i0.ɵɵNgModuleDeclaration<RouterModule, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent], never, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent]>;
3356
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RouterModule, never, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent], [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent]>;
3334
3357
  static ɵinj: i0.ɵɵInjectorDeclaration<RouterModule>;
3335
3358
  }
3336
3359
 
@@ -3429,7 +3452,7 @@ export declare class RouterOutlet implements OnDestroy, OnInit, RouterOutletCont
3429
3452
  deactivate(): void;
3430
3453
  activateWith(activatedRoute: ActivatedRoute, resolverOrInjector?: ComponentFactoryResolver | EnvironmentInjector | null): void;
3431
3454
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterOutlet, [null, null, { attribute: "name"; }, null, null]>;
3432
- static ɵdir: i0.ɵɵDirectiveDeclaration<RouterOutlet, "router-outlet", ["outlet"], {}, { "activateEvents": "activate"; "deactivateEvents": "deactivate"; "attachEvents": "attach"; "detachEvents": "detach"; }, never, never, false>;
3455
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RouterOutlet, "router-outlet", ["outlet"], {}, { "activateEvents": "activate"; "deactivateEvents": "deactivate"; "attachEvents": "attach"; "detachEvents": "detach"; }, never, never, true>;
3433
3456
  }
3434
3457
 
3435
3458
  /**
@@ -4020,6 +4043,8 @@ export declare abstract class UrlSerializer {
4020
4043
  abstract parse(url: string): UrlTree;
4021
4044
  /** Converts a `UrlTree` into a url */
4022
4045
  abstract serialize(tree: UrlTree): string;
4046
+ static ɵfac: i0.ɵɵFactoryDeclaration<UrlSerializer, never>;
4047
+ static ɵprov: i0.ɵɵInjectableDeclaration<UrlSerializer>;
4023
4048
  }
4024
4049
 
4025
4050
  /**
@@ -4082,7 +4107,7 @@ export declare function ɵassignExtraOptionsToRouter(opts: ExtraOptions, router:
4082
4107
  */
4083
4108
  export declare class ɵEmptyOutletComponent {
4084
4109
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵEmptyOutletComponent, never>;
4085
- static ɵcmp: i0.ɵɵComponentDeclaration<ɵEmptyOutletComponent, "ng-component", never, {}, {}, never, never, false>;
4110
+ static ɵcmp: i0.ɵɵComponentDeclaration<ɵEmptyOutletComponent, "ng-component", never, {}, {}, never, never, true>;
4086
4111
  }
4087
4112
 
4088
4113
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "14.1.1",
3
+ "version": "14.2.0-next.0",
4
4
  "description": "Angular - the routing library",
5
5
  "keywords": [
6
6
  "angular",
@@ -24,9 +24,9 @@
24
24
  "tslib": "^2.3.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@angular/core": "14.1.1",
28
- "@angular/common": "14.1.1",
29
- "@angular/platform-browser": "14.1.1",
27
+ "@angular/core": "14.2.0-next.0",
28
+ "@angular/common": "14.2.0-next.0",
29
+ "@angular/platform-browser": "14.2.0-next.0",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
2
+ * @license Angular v14.2.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.1
2
+ * @license Angular v14.2.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */