Skip to content

refactor(material/autocomplete): remove deprecated APIs for v12 #22054

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
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
2 changes: 0 additions & 2 deletions src/material-experimental/mdc-autocomplete/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export * from './autocomplete-trigger';

// Everything from `material/autocomplete`, except for `MatAutcomplete` and `MatAutocompleteModule`.
export {
AUTOCOMPLETE_OPTION_HEIGHT,
AUTOCOMPLETE_PANEL_HEIGHT,
getMatAutocompleteMissingPanelError,
MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,
MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,
Expand Down
20 changes: 0 additions & 20 deletions src/material/autocomplete/autocomplete-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,6 @@ import {
import {_MatAutocompleteOriginBase} from './autocomplete-origin';


/**
* The following style constants are necessary to save here in order
* to properly calculate the scrollTop of the panel. Because we are not
* actually focusing the active item, scroll must be handled manually.
*/

/**
* The height of each autocomplete option.
* @deprecated No longer being used. To be removed.
* @breaking-change 12.0.0
*/
export const AUTOCOMPLETE_OPTION_HEIGHT = 48;

/**
* The total height of the autocomplete panel.
* @deprecated No longer being used. To be removed.
* @breaking-change 12.0.0
*/
export const AUTOCOMPLETE_PANEL_HEIGHT = 256;

/** Injection token that determines the scroll handling while the autocomplete panel is open. */
export const MAT_AUTOCOMPLETE_SCROLL_STRATEGY =
new InjectionToken<() => ScrollStrategy>('mat-autocomplete-scroll-strategy');
Expand Down
4 changes: 0 additions & 4 deletions tools/public_api_guard/material/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ export declare abstract class _MatAutocompleteTriggerBase implements ControlValu
static ɵfac: i0.ɵɵFactoryDef<_MatAutocompleteTriggerBase, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, { optional: true; }, null, { optional: true; }]>;
}

export declare const AUTOCOMPLETE_OPTION_HEIGHT = 48;

export declare const AUTOCOMPLETE_PANEL_HEIGHT = 256;

export declare function getMatAutocompleteMissingPanelError(): Error;

export declare const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: InjectionToken<MatAutocompleteDefaultOptions>;
Expand Down