Skip to content

Commit 8d6a07f

Browse files
authored
refactor(material/autocomplete): remove deprecated APIs for v12 (#22054)
Removes the APIs that were marked for removal in v12. BREAKING CHANGES: * `AUTOCOMPLETE_OPTION_HEIGHT` has been removed. * `AUTOCOMPLETE_PANEL_HEIGHT` has been removed.
1 parent a41fb6e commit 8d6a07f

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

src/material-experimental/mdc-autocomplete/public-api.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export * from './autocomplete-trigger';
1313

1414
// Everything from `material/autocomplete`, except for `MatAutcomplete` and `MatAutocompleteModule`.
1515
export {
16-
AUTOCOMPLETE_OPTION_HEIGHT,
17-
AUTOCOMPLETE_PANEL_HEIGHT,
1816
getMatAutocompleteMissingPanelError,
1917
MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,
2018
MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,

src/material/autocomplete/autocomplete-trigger.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,6 @@ import {
5757
import {_MatAutocompleteOriginBase} from './autocomplete-origin';
5858

5959

60-
/**
61-
* The following style constants are necessary to save here in order
62-
* to properly calculate the scrollTop of the panel. Because we are not
63-
* actually focusing the active item, scroll must be handled manually.
64-
*/
65-
66-
/**
67-
* The height of each autocomplete option.
68-
* @deprecated No longer being used. To be removed.
69-
* @breaking-change 12.0.0
70-
*/
71-
export const AUTOCOMPLETE_OPTION_HEIGHT = 48;
72-
73-
/**
74-
* The total height of the autocomplete panel.
75-
* @deprecated No longer being used. To be removed.
76-
* @breaking-change 12.0.0
77-
*/
78-
export const AUTOCOMPLETE_PANEL_HEIGHT = 256;
79-
8060
/** Injection token that determines the scroll handling while the autocomplete panel is open. */
8161
export const MAT_AUTOCOMPLETE_SCROLL_STRATEGY =
8262
new InjectionToken<() => ScrollStrategy>('mat-autocomplete-scroll-strategy');

tools/public_api_guard/material/autocomplete.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ export declare abstract class _MatAutocompleteTriggerBase implements ControlValu
8080
static ɵfac: i0.ɵɵFactoryDef<_MatAutocompleteTriggerBase, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, { optional: true; }, null, { optional: true; }]>;
8181
}
8282

83-
export declare const AUTOCOMPLETE_OPTION_HEIGHT = 48;
84-
85-
export declare const AUTOCOMPLETE_PANEL_HEIGHT = 256;
86-
8783
export declare function getMatAutocompleteMissingPanelError(): Error;
8884

8985
export declare const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: InjectionToken<MatAutocompleteDefaultOptions>;

0 commit comments

Comments
 (0)