Skip to content

Commit

Permalink
fix(material/legacy-select): rename missed ts symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnermaciel committed Sep 7, 2022
1 parent bc2fc6d commit 1edd390
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 40 deletions.
4 changes: 2 additions & 2 deletions src/dev-app/legacy-select/legacy-select-demo.ts
Expand Up @@ -16,7 +16,7 @@ import {MatLegacyDialog, MatLegacyDialogModule} from '@angular/material/legacy-d
import {LegacyFloatLabelType, MatLegacyFormFieldModule} from '@angular/material/legacy-form-field';
import {MatIconModule} from '@angular/material/icon';
import {MatLegacyInputModule} from '@angular/material/legacy-input';
import {MatSelectChange, MatLegacySelectModule} from '@angular/material/legacy-select';
import {MatLegacySelectChange, MatLegacySelectModule} from '@angular/material/legacy-select';

/** Error any time control is invalid */
export class MyErrorStateMatcher implements ErrorStateMatcher {
Expand Down Expand Up @@ -59,7 +59,7 @@ export class LegacySelectDemo {
currentPokemonFromGroup: string;
currentDigimon: string;
currentAppearanceValue: string | null;
latestChangeEvent: MatSelectChange;
latestChangeEvent: MatLegacySelectChange;
floatLabel: LegacyFloatLabelType = 'auto';
drinksWidth = 'default';
foodControl = new FormControl('pizza-1');
Expand Down
10 changes: 6 additions & 4 deletions src/material/legacy-paginator/paginator.spec.ts
Expand Up @@ -3,7 +3,7 @@ import {Component, Provider, Type, ViewChild} from '@angular/core';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import {dispatchMouseEvent} from '@angular/cdk/testing/private';
import {ThemePalette} from '@angular/material/core';
import {MatSelect} from '@angular/material/legacy-select';
import {MatLegacySelect} from '@angular/material/legacy-select';
import {By} from '@angular/platform-browser';
import {MatLegacyPaginator, MatLegacyPaginatorIntl, MatLegacyPaginatorModule} from './index';
import {MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS, MatLegacyPaginatorDefaultOptions} from './paginator';
Expand Down Expand Up @@ -214,7 +214,9 @@ describe('MatPaginator', () => {
it('should be able to pass options to the underlying mat-select', () => {
const fixture = createComponent(MatPaginatorApp);
fixture.detectChanges();
const select: MatSelect = fixture.debugElement.query(By.directive(MatSelect)).componentInstance;
const select: MatLegacySelect = fixture.debugElement.query(
By.directive(MatLegacySelect),
).componentInstance;

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

it('should be able to disable all the controls in the paginator via the binding', () => {
const fixture = createComponent(MatPaginatorApp);
const select: MatSelect = fixture.debugElement.query(
By.directive(MatSelect),
const select: MatLegacySelect = fixture.debugElement.query(
By.directive(MatLegacySelect),
)!.componentInstance;

fixture.componentInstance.pageIndex = 1;
Expand Down
6 changes: 1 addition & 5 deletions src/material/legacy-select/public-api.ts
Expand Up @@ -8,11 +8,7 @@

export {MatLegacySelectModule} from './select-module';
export {matLegacySelectAnimations} from './select-animations';
export {
MatLegacySelectChange as MatSelectChange,
MatLegacySelect as MatSelect,
MatLegacySelectTrigger as MatSelectTrigger,
} from './select';
export {MatLegacySelectChange, MatLegacySelect, MatLegacySelectTrigger} from './select';

export {
MAT_SELECT_CONFIG as MAT_LEGACY_SELECT_CONFIG,
Expand Down
58 changes: 29 additions & 29 deletions tools/public_api_guard/material/legacy-select.md
Expand Up @@ -35,31 +35,13 @@ export { MAT_LEGACY_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY }

export { MAT_LEGACY_SELECT_TRIGGER }

// @public
export const matLegacySelectAnimations: {
readonly transformPanelWrap: AnimationTriggerMetadata;
readonly transformPanel: AnimationTriggerMetadata;
};

export { MatLegacySelectConfig }

// @public (undocumented)
export class MatLegacySelectModule {
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelectModule, never>;
// (undocumented)
static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacySelectModule>;
// (undocumented)
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]>;
}

// @public (undocumented)
export class MatSelect extends _MatSelectBase<MatSelectChange> implements OnInit {
export class MatLegacySelect extends _MatSelectBase<MatLegacySelectChange> implements OnInit {
_calculateOverlayScroll(selectedIndex: number, scrollBuffer: number, maxScroll: number): number;
// (undocumented)
customTrigger: MatSelectTrigger;
customTrigger: MatLegacySelectTrigger;
// (undocumented)
protected _getChangeEvent(value: any): MatSelectChange;
protected _getChangeEvent(value: any): MatLegacySelectChange;
// (undocumented)
protected _getOverlayMinWidth(): number;
// (undocumented)
Expand All @@ -81,26 +63,44 @@ export class MatSelect extends _MatSelectBase<MatSelectChange> implements OnInit
_transformOrigin: string;
_triggerFontSize: number;
// (undocumented)
static ɵcmp: i0.ɵɵComponentDeclaration<MatSelect, "mat-select", ["matSelect"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false>;
static ɵcmp: i0.ɵɵComponentDeclaration<MatLegacySelect, "mat-select", ["matSelect"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, ["customTrigger", "options", "optionGroups"], ["mat-select-trigger", "*"], false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelect, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelect, never>;
}

// @public
export class MatSelectChange {
export const matLegacySelectAnimations: {
readonly transformPanelWrap: AnimationTriggerMetadata;
readonly transformPanel: AnimationTriggerMetadata;
};

// @public
export class MatLegacySelectChange {
constructor(
source: MatSelect,
source: MatLegacySelect,
value: any);
source: MatSelect;
source: MatLegacySelect;
value: any;
}

export { MatLegacySelectConfig }

// @public (undocumented)
export class MatLegacySelectModule {
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelectModule, never>;
// (undocumented)
static ɵinj: i0.ɵɵInjectorDeclaration<MatLegacySelectModule>;
// (undocumented)
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]>;
}

// @public
export class MatSelectTrigger {
export class MatLegacySelectTrigger {
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSelectTrigger, "mat-select-trigger", never, {}, {}, never, never, false>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MatLegacySelectTrigger, "mat-select-trigger", never, {}, {}, never, never, false>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectTrigger, never>;
static ɵfac: i0.ɵɵFactoryDeclaration<MatLegacySelectTrigger, never>;
}

// @public
Expand Down

0 comments on commit 1edd390

Please sign in to comment.