Skip to content

Commit 1edd390

Browse files
committed
fix(material/legacy-select): rename missed ts symbol
1 parent bc2fc6d commit 1edd390

File tree

4 files changed

+38
-40
lines changed

4 files changed

+38
-40
lines changed

src/dev-app/legacy-select/legacy-select-demo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {MatLegacyDialog, MatLegacyDialogModule} from '@angular/material/legacy-d
1616
import {LegacyFloatLabelType, MatLegacyFormFieldModule} from '@angular/material/legacy-form-field';
1717
import {MatIconModule} from '@angular/material/icon';
1818
import {MatLegacyInputModule} from '@angular/material/legacy-input';
19-
import {MatSelectChange, MatLegacySelectModule} from '@angular/material/legacy-select';
19+
import {MatLegacySelectChange, MatLegacySelectModule} from '@angular/material/legacy-select';
2020

2121
/** Error any time control is invalid */
2222
export class MyErrorStateMatcher implements ErrorStateMatcher {
@@ -59,7 +59,7 @@ export class LegacySelectDemo {
5959
currentPokemonFromGroup: string;
6060
currentDigimon: string;
6161
currentAppearanceValue: string | null;
62-
latestChangeEvent: MatSelectChange;
62+
latestChangeEvent: MatLegacySelectChange;
6363
floatLabel: LegacyFloatLabelType = 'auto';
6464
drinksWidth = 'default';
6565
foodControl = new FormControl('pizza-1');

src/material/legacy-paginator/paginator.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Component, Provider, Type, ViewChild} from '@angular/core';
33
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
44
import {dispatchMouseEvent} from '@angular/cdk/testing/private';
55
import {ThemePalette} from '@angular/material/core';
6-
import {MatSelect} from '@angular/material/legacy-select';
6+
import {MatLegacySelect} from '@angular/material/legacy-select';
77
import {By} from '@angular/platform-browser';
88
import {MatLegacyPaginator, MatLegacyPaginatorIntl, MatLegacyPaginatorModule} from './index';
99
import {MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS, MatLegacyPaginatorDefaultOptions} from './paginator';
@@ -214,7 +214,9 @@ describe('MatPaginator', () => {
214214
it('should be able to pass options to the underlying mat-select', () => {
215215
const fixture = createComponent(MatPaginatorApp);
216216
fixture.detectChanges();
217-
const select: MatSelect = fixture.debugElement.query(By.directive(MatSelect)).componentInstance;
217+
const select: MatLegacySelect = fixture.debugElement.query(
218+
By.directive(MatLegacySelect),
219+
).componentInstance;
218220

219221
expect(select.disableOptionCentering).toBe(false);
220222
expect(select.panelClass).toBeFalsy();
@@ -476,8 +478,8 @@ describe('MatPaginator', () => {
476478

477479
it('should be able to disable all the controls in the paginator via the binding', () => {
478480
const fixture = createComponent(MatPaginatorApp);
479-
const select: MatSelect = fixture.debugElement.query(
480-
By.directive(MatSelect),
481+
const select: MatLegacySelect = fixture.debugElement.query(
482+
By.directive(MatLegacySelect),
481483
)!.componentInstance;
482484

483485
fixture.componentInstance.pageIndex = 1;

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88

99
export {MatLegacySelectModule} from './select-module';
1010
export {matLegacySelectAnimations} from './select-animations';
11-
export {
12-
MatLegacySelectChange as MatSelectChange,
13-
MatLegacySelect as MatSelect,
14-
MatLegacySelectTrigger as MatSelectTrigger,
15-
} from './select';
11+
export {MatLegacySelectChange, MatLegacySelect, MatLegacySelectTrigger} from './select';
1612

1713
export {
1814
MAT_SELECT_CONFIG as MAT_LEGACY_SELECT_CONFIG,

tools/public_api_guard/material/legacy-select.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,13 @@ export { MAT_LEGACY_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY }
3535

3636
export { MAT_LEGACY_SELECT_TRIGGER }
3737

38-
// @public
39-
export const matLegacySelectAnimations: {
40-
readonly transformPanelWrap: AnimationTriggerMetadata;
41-
readonly transformPanel: AnimationTriggerMetadata;
42-
};
43-
44-
export { MatLegacySelectConfig }
45-
46-
// @public (undocumented)
47-
export class MatLegacySelectModule {
48-
// (undocumented)
49-
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelectModule, never>;
50-
// (undocumented)
51-
static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacySelectModule>;
52-
// (undocumented)
53-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacySelectModule, [typeof i1.MatLegacySelect, typeof i1.MatLegacySelectTrigger], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.MatLegacyOptionModule, typeof i5.MatCommonModule], [typeof i6.CdkScrollableModule, typeof i7.MatLegacyFormFieldModule, typeof i1.MatLegacySelect, typeof i1.MatLegacySelectTrigger, typeof i4.MatLegacyOptionModule, typeof i5.MatCommonModule]>;
54-
}
55-
5638
// @public (undocumented)
57-
export class MatSelect extends _MatSelectBase<MatSelectChange> implements OnInit {
39+
export class MatLegacySelect extends _MatSelectBase<MatLegacySelectChange> implements OnInit {
5840
_calculateOverlayScroll(selectedIndex: number, scrollBuffer: number, maxScroll: number): number;
5941
// (undocumented)
60-
customTrigger: MatSelectTrigger;
42+
customTrigger: MatLegacySelectTrigger;
6143
// (undocumented)
62-
protected _getChangeEvent(value: any): MatSelectChange;
44+
protected _getChangeEvent(value: any): MatLegacySelectChange;
6345
// (undocumented)
6446
protected _getOverlayMinWidth(): number;
6547
// (undocumented)
@@ -81,26 +63,44 @@ export class MatSelect extends _MatSelectBase<MatSelectChange> implements OnInit
8163
_transformOrigin: string;
8264
_triggerFontSize: number;
8365
// (undocumented)
84-
static ɵcmp: i0.ɵɵComponentDeclaration<MatSelect, "mat-select", ["matSelect"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false>;
66+
static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacySelect, "mat-select", ["matSelect"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false>;
8567
// (undocumented)
86-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelect, never>;
68+
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelect, never>;
8769
}
8870

8971
// @public
90-
export class MatSelectChange {
72+
export const matLegacySelectAnimations: {
73+
readonly transformPanelWrap: AnimationTriggerMetadata;
74+
readonly transformPanel: AnimationTriggerMetadata;
75+
};
76+
77+
// @public
78+
export class MatLegacySelectChange {
9179
constructor(
92-
source: MatSelect,
80+
source: MatLegacySelect,
9381
value: any);
94-
source: MatSelect;
82+
source: MatLegacySelect;
9583
value: any;
9684
}
9785

86+
export { MatLegacySelectConfig }
87+
88+
// @public (undocumented)
89+
export class MatLegacySelectModule {
90+
// (undocumented)
91+
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelectModule, never>;
92+
// (undocumented)
93+
static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacySelectModule>;
94+
// (undocumented)
95+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatLegacySelectModule, [typeof i1.MatLegacySelect, typeof i1.MatLegacySelectTrigger], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.MatLegacyOptionModule, typeof i5.MatCommonModule], [typeof i6.CdkScrollableModule, typeof i7.MatLegacyFormFieldModule, typeof i1.MatLegacySelect, typeof i1.MatLegacySelectTrigger, typeof i4.MatLegacyOptionModule, typeof i5.MatCommonModule]>;
96+
}
97+
9898
// @public
99-
export class MatSelectTrigger {
99+
export class MatLegacySelectTrigger {
100100
// (undocumented)
101-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectTrigger, "mat-select-trigger", never, {}, {}, never, never, false>;
101+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacySelectTrigger, "mat-select-trigger", never, {}, {}, never, never, false>;
102102
// (undocumented)
103-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectTrigger, never>;
103+
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelectTrigger, never>;
104104
}
105105

106106
// @public

0 commit comments

Comments
 (0)