Skip to content

Commit 227e83d

Browse files
committed
fix(material/dialog): breaking changes for v20
Removes the deprecated symbols for v20 from the dialog. BREAKING CHANGE: * `MAT_DIALOG_SCROLL_STRATEGY_PROVIDER` has been removed. * `MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY` has been removed.
1 parent 77d6b69 commit 227e83d

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

src/material/dialog/dialog.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,6 @@ export const MAT_DIALOG_SCROLL_STRATEGY = new InjectionToken<() => ScrollStrateg
4444
},
4545
);
4646

47-
/**
48-
* @docs-private
49-
* @deprecated No longer used. To be removed.
50-
* @breaking-change 19.0.0
51-
*/
52-
export function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(
53-
overlay: Overlay,
54-
): () => ScrollStrategy {
55-
return () => overlay.scrollStrategies.block();
56-
}
57-
58-
/**
59-
* @docs-private
60-
* @deprecated No longer used. To be removed.
61-
* @breaking-change 19.0.0
62-
*/
63-
export const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {
64-
provide: MAT_DIALOG_SCROLL_STRATEGY,
65-
deps: [Overlay],
66-
useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
67-
};
68-
6947
/**
7048
* Service to open Material Design modal dialogs.
7149
*/

tools/public_api_guard/material/dialog.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { Observable } from 'rxjs';
2525
import { OnChanges } from '@angular/core';
2626
import { OnDestroy } from '@angular/core';
2727
import { OnInit } from '@angular/core';
28-
import { Overlay } from '@angular/cdk/overlay';
2928
import { ScrollStrategy } from '@angular/cdk/overlay';
3029
import { SimpleChanges } from '@angular/core';
3130
import { Subject } from 'rxjs';
@@ -66,16 +65,6 @@ export const MAT_DIALOG_DEFAULT_OPTIONS: InjectionToken<MatDialogConfig<any>>;
6665
// @public
6766
export const MAT_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
6867

69-
// @public @deprecated
70-
export const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER: {
71-
provide: InjectionToken<() => ScrollStrategy>;
72-
deps: (typeof Overlay)[];
73-
useFactory: typeof MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
74-
};
75-
76-
// @public @deprecated
77-
export function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
78-
7968
// @public
8069
export class MatDialog implements OnDestroy {
8170
constructor(...args: unknown[]);

0 commit comments

Comments
 (0)