Skip to content

Commit 11599f8

Browse files
authored
fix(cdk/portal): remove deprecated symbols (#30584)
Removes some symbols that have been deprecated for a while. BREAKING CHANGE: * `DomPortalHost` has been removed. Use `DomPortalOutlet` instead. * `PortalInjector` has been removed. Use `Injector.create` instead. * `PortalHost` has been removed. Use `PortalOutlet` instead. * `BasePortalHost` has been removed. Use `BasePortalOutlet` instead.
1 parent 88fc8ec commit 11599f8

File tree

5 files changed

+0
-70
lines changed

5 files changed

+0
-70
lines changed

src/cdk/portal/dom-portal-outlet.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,3 @@ export class DomPortalOutlet extends BasePortalOutlet {
166166
return (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
167167
}
168168
}
169-
170-
/**
171-
* @deprecated Use `DomPortalOutlet` instead.
172-
* @breaking-change 9.0.0
173-
*/
174-
export class DomPortalHost extends DomPortalOutlet {}

src/cdk/portal/portal-injector.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/cdk/portal/portal.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ export interface PortalOutlet {
180180
hasAttached(): boolean;
181181
}
182182

183-
/**
184-
* @deprecated Use `PortalOutlet` instead.
185-
* @breaking-change 9.0.0
186-
*/
187-
export type PortalHost = PortalOutlet;
188-
189183
/**
190184
* Partial implementation of PortalOutlet that handles attaching
191185
* ComponentPortal and TemplatePortal.
@@ -281,9 +275,3 @@ export abstract class BasePortalOutlet implements PortalOutlet {
281275
}
282276
}
283277
}
284-
285-
/**
286-
* @deprecated Use `BasePortalOutlet` instead.
287-
* @breaking-change 9.0.0
288-
*/
289-
export abstract class BasePortalHost extends BasePortalOutlet {}

src/cdk/portal/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
export * from './portal';
1010
export * from './dom-portal-outlet';
1111
export * from './portal-directives';
12-
export * from './portal-injector';

tools/public_api_guard/cdk/portal.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import { OnInit } from '@angular/core';
1616
import { TemplateRef } from '@angular/core';
1717
import { ViewContainerRef } from '@angular/core';
1818

19-
// @public @deprecated (undocumented)
20-
export abstract class BasePortalHost extends BasePortalOutlet {
21-
}
22-
2319
// @public
2420
export abstract class BasePortalOutlet implements PortalOutlet {
2521
// (undocumented)
@@ -95,10 +91,6 @@ export class DomPortal<T = HTMLElement> extends Portal<T> {
9591
readonly element: T;
9692
}
9793

98-
// @public @deprecated (undocumented)
99-
export class DomPortalHost extends DomPortalOutlet {
100-
}
101-
10294
// @public
10395
export class DomPortalOutlet extends BasePortalOutlet {
10496
constructor(
@@ -119,9 +111,6 @@ export abstract class Portal<T> {
119111
setAttachedHost(host: PortalOutlet | null): void;
120112
}
121113

122-
// @public @deprecated (undocumented)
123-
export type PortalHost = PortalOutlet;
124-
125114
// @public @deprecated (undocumented)
126115
export class PortalHostDirective extends CdkPortalOutlet {
127116
// (undocumented)
@@ -130,13 +119,6 @@ export class PortalHostDirective extends CdkPortalOutlet {
130119
static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
131120
}
132121

133-
// @public @deprecated
134-
export class PortalInjector implements Injector {
135-
constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
136-
// (undocumented)
137-
get(token: any, notFoundValue?: any): any;
138-
}
139-
140122
// @public (undocumented)
141123
export class PortalModule {
142124
// (undocumented)

0 commit comments

Comments
 (0)