Skip to content

fix(cdk/portal): remove deprecated symbols #30584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/cdk/portal/dom-portal-outlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,3 @@ export class DomPortalOutlet extends BasePortalOutlet {
return (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
}
}

/**
* @deprecated Use `DomPortalOutlet` instead.
* @breaking-change 9.0.0
*/
export class DomPortalHost extends DomPortalOutlet {}
33 changes: 0 additions & 33 deletions src/cdk/portal/portal-injector.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/cdk/portal/portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ export interface PortalOutlet {
hasAttached(): boolean;
}

/**
* @deprecated Use `PortalOutlet` instead.
* @breaking-change 9.0.0
*/
export type PortalHost = PortalOutlet;

/**
* Partial implementation of PortalOutlet that handles attaching
* ComponentPortal and TemplatePortal.
Expand Down Expand Up @@ -281,9 +275,3 @@ export abstract class BasePortalOutlet implements PortalOutlet {
}
}
}

/**
* @deprecated Use `BasePortalOutlet` instead.
* @breaking-change 9.0.0
*/
export abstract class BasePortalHost extends BasePortalOutlet {}
1 change: 0 additions & 1 deletion src/cdk/portal/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@
export * from './portal';
export * from './dom-portal-outlet';
export * from './portal-directives';
export * from './portal-injector';
18 changes: 0 additions & 18 deletions tools/public_api_guard/cdk/portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ import { OnInit } from '@angular/core';
import { TemplateRef } from '@angular/core';
import { ViewContainerRef } from '@angular/core';

// @public @deprecated (undocumented)
export abstract class BasePortalHost extends BasePortalOutlet {
}

// @public
export abstract class BasePortalOutlet implements PortalOutlet {
// (undocumented)
Expand Down Expand Up @@ -95,10 +91,6 @@ export class DomPortal<T = HTMLElement> extends Portal<T> {
readonly element: T;
}

// @public @deprecated (undocumented)
export class DomPortalHost extends DomPortalOutlet {
}

// @public
export class DomPortalOutlet extends BasePortalOutlet {
constructor(
Expand All @@ -119,9 +111,6 @@ export abstract class Portal<T> {
setAttachedHost(host: PortalOutlet | null): void;
}

// @public @deprecated (undocumented)
export type PortalHost = PortalOutlet;

// @public @deprecated (undocumented)
export class PortalHostDirective extends CdkPortalOutlet {
// (undocumented)
Expand All @@ -130,13 +119,6 @@ export class PortalHostDirective extends CdkPortalOutlet {
static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
}

// @public @deprecated
export class PortalInjector implements Injector {
constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
// (undocumented)
get(token: any, notFoundValue?: any): any;
}

// @public (undocumented)
export class PortalModule {
// (undocumented)
Expand Down
Loading