Skip to content

Commit 8195f18

Browse files
committed
refactor(material/legacy-menu): rename ts symbols
1 parent 640a65b commit 8195f18

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

src/material/legacy-menu/public-api.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export * from './menu';
10-
export * from './menu-item';
11-
export * from './menu-trigger';
12-
export * from './menu-module';
13-
export * from './menu-content';
9+
export {MatLegacyMenu} from './menu';
10+
export {MatLegacyMenuItem} from './menu-item';
11+
export {MatLegacyMenuTrigger} from './menu-trigger';
12+
export {MatLegacyMenuModule} from './menu-module';
13+
export {MatLegacyMenuContent} from './menu-content';
1414

1515
export {
16-
fadeInItems,
17-
MAT_MENU_DEFAULT_OPTIONS,
18-
MAT_MENU_PANEL,
19-
MAT_MENU_SCROLL_STRATEGY,
20-
matMenuAnimations,
21-
MatMenuDefaultOptions,
16+
fadeInItems as fadeInLegacyItems,
17+
MAT_MENU_DEFAULT_OPTIONS as MAT_LEGACY_MENU_DEFAULT_OPTIONS,
18+
MAT_MENU_PANEL as MAT_LEGACY_MENU_PANEL,
19+
MAT_MENU_SCROLL_STRATEGY as MAT_LEGACY_MENU_SCROLL_STRATEGY,
20+
matMenuAnimations as matLegacyMenuAnimations,
21+
MatMenuDefaultOptions as MatLegacyMenuDefaultOptions,
2222
MatMenuPanel as MatLegacyMenuPanel,
23-
MenuPositionX,
24-
MenuPositionY,
25-
transformMenu,
26-
MAT_MENU_CONTENT,
23+
MenuPositionX as LegacyMenuPositionX,
24+
MenuPositionY as LegacyMenuPositionY,
25+
transformMenu as transformLegacyMenu,
26+
MAT_MENU_CONTENT as MAT_LEGACY_MENU_CONTENT,
2727
} from '@angular/material/menu';

src/material/legacy-menu/testing/public-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export * from './menu-harness';
9+
export {MatLegacyMenuHarness, MatLegacyMenuItemHarness} from './menu-harness';
1010
export {MenuHarnessFilters, MenuItemHarnessFilters} from '@angular/material/menu/testing';

tools/public_api_guard/material/legacy-menu.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,46 @@
55
```ts
66

77
import { ElementRef } from '@angular/core';
8-
import { fadeInItems } from '@angular/material/menu';
8+
import { fadeInItems as fadeInLegacyItems } from '@angular/material/menu';
99
import * as i0 from '@angular/core';
1010
import * as i5 from '@angular/common';
1111
import * as i6 from '@angular/material/core';
1212
import * as i7 from '@angular/cdk/overlay';
1313
import * as i8 from '@angular/cdk/scrolling';
14-
import { MAT_MENU_CONTENT } from '@angular/material/menu';
15-
import { MAT_MENU_DEFAULT_OPTIONS } from '@angular/material/menu';
16-
import { MAT_MENU_PANEL } from '@angular/material/menu';
17-
import { MAT_MENU_SCROLL_STRATEGY } from '@angular/material/menu';
14+
import { MenuPositionX as LegacyMenuPositionX } from '@angular/material/menu';
15+
import { MenuPositionY as LegacyMenuPositionY } from '@angular/material/menu';
16+
import { MAT_MENU_CONTENT as MAT_LEGACY_MENU_CONTENT } from '@angular/material/menu';
17+
import { MAT_MENU_DEFAULT_OPTIONS as MAT_LEGACY_MENU_DEFAULT_OPTIONS } from '@angular/material/menu';
18+
import { MAT_MENU_PANEL as MAT_LEGACY_MENU_PANEL } from '@angular/material/menu';
19+
import { MAT_MENU_SCROLL_STRATEGY as MAT_LEGACY_MENU_SCROLL_STRATEGY } from '@angular/material/menu';
20+
import { matMenuAnimations as matLegacyMenuAnimations } from '@angular/material/menu';
21+
import { MatMenuDefaultOptions as MatLegacyMenuDefaultOptions } from '@angular/material/menu';
1822
import { MatMenuPanel as MatLegacyMenuPanel } from '@angular/material/menu';
19-
import { matMenuAnimations } from '@angular/material/menu';
2023
import { _MatMenuBase } from '@angular/material/menu';
2124
import { _MatMenuContentBase } from '@angular/material/menu';
22-
import { MatMenuDefaultOptions } from '@angular/material/menu';
2325
import { MatMenuItem } from '@angular/material/menu';
2426
import { _MatMenuTriggerBase } from '@angular/material/menu';
25-
import { MenuPositionX } from '@angular/material/menu';
26-
import { MenuPositionY } from '@angular/material/menu';
2727
import { NgZone } from '@angular/core';
28-
import { transformMenu } from '@angular/material/menu';
28+
import { transformMenu as transformLegacyMenu } from '@angular/material/menu';
2929

30-
export { fadeInItems }
30+
export { fadeInLegacyItems }
3131

32-
export { MAT_MENU_CONTENT }
32+
export { LegacyMenuPositionX }
3333

34-
export { MAT_MENU_DEFAULT_OPTIONS }
34+
export { LegacyMenuPositionY }
3535

36-
export { MAT_MENU_PANEL }
36+
export { MAT_LEGACY_MENU_CONTENT }
3737

38-
export { MAT_MENU_SCROLL_STRATEGY }
38+
export { MAT_LEGACY_MENU_DEFAULT_OPTIONS }
39+
40+
export { MAT_LEGACY_MENU_PANEL }
41+
42+
export { MAT_LEGACY_MENU_SCROLL_STRATEGY }
3943

4044
// @public
4145
export class MatLegacyMenu extends _MatMenuBase {
4246
// @deprecated
43-
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, defaultOptions: MatMenuDefaultOptions);
47+
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, defaultOptions: MatLegacyMenuDefaultOptions);
4448
// (undocumented)
4549
protected _baseElevation: number;
4650
// (undocumented)
@@ -51,6 +55,8 @@ export class MatLegacyMenu extends _MatMenuBase {
5155
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyMenu, never>;
5256
}
5357

58+
export { matLegacyMenuAnimations }
59+
5460
// @public
5561
export class MatLegacyMenuContent extends _MatMenuContentBase {
5662
// (undocumented)
@@ -59,6 +65,8 @@ export class MatLegacyMenuContent extends _MatMenuContentBase {
5965
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyMenuContent, never>;
6066
}
6167

68+
export { MatLegacyMenuDefaultOptions }
69+
6270
// @public
6371
export class MatLegacyMenuItem extends MatMenuItem {
6472
// (undocumented)
@@ -87,15 +95,7 @@ export class MatLegacyMenuTrigger extends _MatMenuTriggerBase {
8795
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacyMenuTrigger, never>;
8896
}
8997

90-
export { matMenuAnimations }
91-
92-
export { MatMenuDefaultOptions }
93-
94-
export { MenuPositionX }
95-
96-
export { MenuPositionY }
97-
98-
export { transformMenu }
98+
export { transformLegacyMenu }
9999

100100
// (No @packageDocumentation comment for this package)
101101

0 commit comments

Comments
 (0)