Skip to content

Commit b98ae5a

Browse files
committed
fix(material/stepper): remove deps on legacy components
1 parent 4b1ecdf commit b98ae5a

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

src/material/stepper/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ng_module(
3030
"//src/cdk/stepper",
3131
"//src/material/core",
3232
"//src/material/icon",
33-
"//src/material/legacy-button",
3433
"@npm//@angular/animations",
3534
"@npm//@angular/common",
3635
"@npm//@angular/core",
@@ -81,8 +80,8 @@ ng_test_library(
8180
"//src/cdk/stepper",
8281
"//src/cdk/testing/private",
8382
"//src/material/core",
84-
"//src/material/legacy-form-field",
85-
"//src/material/legacy-input",
83+
"//src/material/form-field",
84+
"//src/material/input",
8685
"@npm//@angular/forms",
8786
"@npm//@angular/platform-browser",
8887
"@npm//rxjs",

src/material/stepper/stepper-module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {PortalModule} from '@angular/cdk/portal';
1010
import {CdkStepperModule} from '@angular/cdk/stepper';
1111
import {CommonModule} from '@angular/common';
1212
import {NgModule} from '@angular/core';
13-
import {MatLegacyButtonModule} from '@angular/material/legacy-button';
1413
import {ErrorStateMatcher, MatCommonModule, MatRippleModule} from '@angular/material/core';
1514
import {MatIconModule} from '@angular/material/icon';
1615
import {MatStepHeader} from './step-header';
@@ -26,7 +25,6 @@ import {MatStepContent} from './step-content';
2625
MatCommonModule,
2726
CommonModule,
2827
PortalModule,
29-
MatLegacyButtonModule,
3028
CdkStepperModule,
3129
MatIconModule,
3230
MatRippleModule,

src/material/stepper/stepper.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ import {MatStepHeader, MatStepperModule} from './index';
4848
import {MatStep, MatStepper} from './stepper';
4949
import {MatStepperNext, MatStepperPrevious} from './stepper-button';
5050
import {MatStepperIntl} from './stepper-intl';
51-
import {MatLegacyFormFieldModule} from '@angular/material/legacy-form-field';
52-
import {MatLegacyInputModule} from '../legacy-input/input-module';
51+
import {MatFormFieldModule} from '@angular/material/form-field';
52+
import {MatInputModule} from '@angular/material/input';
5353

5454
const VALID_REGEX = /valid/;
5555
let dir: {value: Direction; readonly change: EventEmitter<Direction>};
@@ -1349,7 +1349,7 @@ describe('MatStepper', () => {
13491349
useValue: {showError: showErrorByDefault},
13501350
},
13511351
],
1352-
[MatLegacyFormFieldModule, MatLegacyInputModule],
1352+
[MatFormFieldModule, MatInputModule],
13531353
);
13541354
fixture.detectChanges();
13551355
stepper = fixture.debugElement.query(By.css('mat-stepper'))!.componentInstance;
@@ -1412,7 +1412,7 @@ describe('MatStepper', () => {
14121412
useValue: {displayDefaultIndicatorType: false},
14131413
},
14141414
],
1415-
[MatLegacyFormFieldModule, MatLegacyInputModule],
1415+
[MatFormFieldModule, MatInputModule],
14161416
);
14171417
fixture.detectChanges();
14181418
stepper = fixture.debugElement.query(By.css('mat-stepper'))!.componentInstance;

tools/public_api_guard/material/stepper.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ import { FocusMonitor } from '@angular/cdk/a11y';
2626
import { FocusOrigin } from '@angular/cdk/a11y';
2727
import { FormGroupDirective } from '@angular/forms';
2828
import * as i0 from '@angular/core';
29-
import * as i10 from '@angular/material/legacy-button';
30-
import * as i11 from '@angular/cdk/stepper';
31-
import * as i12 from '@angular/material/icon';
29+
import * as i10 from '@angular/cdk/stepper';
30+
import * as i11 from '@angular/material/icon';
3231
import * as i7 from '@angular/material/core';
3332
import * as i8 from '@angular/common';
3433
import * as i9 from '@angular/cdk/portal';
@@ -197,7 +196,7 @@ export class MatStepperModule {
197196
// (undocumented)
198197
static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
199198
// (undocumented)
200-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, [typeof i1.MatStep, typeof i2.MatStepLabel, typeof i1.MatStepper, typeof i3.MatStepperNext, typeof i3.MatStepperPrevious, typeof i4.MatStepHeader, typeof i5.MatStepperIcon, typeof i6.MatStepContent], [typeof i7.MatCommonModule, typeof i8.CommonModule, typeof i9.PortalModule, typeof i10.MatLegacyButtonModule, typeof i11.CdkStepperModule, typeof i12.MatIconModule, typeof i7.MatRippleModule], [typeof i7.MatCommonModule, typeof i1.MatStep, typeof i2.MatStepLabel, typeof i1.MatStepper, typeof i3.MatStepperNext, typeof i3.MatStepperPrevious, typeof i4.MatStepHeader, typeof i5.MatStepperIcon, typeof i6.MatStepContent]>;
199+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, [typeof i1.MatStep, typeof i2.MatStepLabel, typeof i1.MatStepper, typeof i3.MatStepperNext, typeof i3.MatStepperPrevious, typeof i4.MatStepHeader, typeof i5.MatStepperIcon, typeof i6.MatStepContent], [typeof i7.MatCommonModule, typeof i8.CommonModule, typeof i9.PortalModule, typeof i10.CdkStepperModule, typeof i11.MatIconModule, typeof i7.MatRippleModule], [typeof i7.MatCommonModule, typeof i1.MatStep, typeof i2.MatStepLabel, typeof i1.MatStepper, typeof i3.MatStepperNext, typeof i3.MatStepperPrevious, typeof i4.MatStepHeader, typeof i5.MatStepperIcon, typeof i6.MatStepContent]>;
201200
}
202201

203202
// @public

0 commit comments

Comments
 (0)