Skip to content

Commit

Permalink
fix(material/dialog): MatDialog: change member _dialog (cdk) from pri…
Browse files Browse the repository at this point in the history
…vate to protected (#28019) (#28020)

Having customized MatDialog allow to have customized cdk/dialog inside of it.
  • Loading branch information
dolezaljan authored Oct 31, 2023
1 parent f5c2602 commit 238e978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class MatDialog implements OnDestroy {
private readonly _openDialogsAtThisLevel: MatDialogRef<any>[] = [];
private readonly _afterAllClosedAtThisLevel = new Subject<void>();
private readonly _afterOpenedAtThisLevel = new Subject<MatDialogRef<any>>();
private _dialog: Dialog;
protected _dialog: Dialog;
protected dialogConfigClass = MatDialogConfig;

private readonly _dialogRefConstructor: Type<MatDialogRef<any>>;
Expand Down
3 changes: 3 additions & 0 deletions tools/public_api_guard/material/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ComponentFactoryResolver } from '@angular/core';
import { ComponentPortal } from '@angular/cdk/portal';
import { ComponentRef } from '@angular/core';
import { ComponentType } from '@angular/cdk/overlay';
import { Dialog } from '@angular/cdk/dialog';
import { DialogRef } from '@angular/cdk/dialog';
import { Direction } from '@angular/cdk/bidi';
import { ElementRef } from '@angular/core';
Expand Down Expand Up @@ -94,6 +95,8 @@ export class MatDialog implements OnDestroy {
get afterOpened(): Subject<MatDialogRef<any>>;
closeAll(): void;
// (undocumented)
protected _dialog: Dialog;
// (undocumented)
protected dialogConfigClass: typeof MatDialogConfig;
getDialogById(id: string): MatDialogRef<any> | undefined;
// (undocumented)
Expand Down

0 comments on commit 238e978

Please sign in to comment.