Skip to content

Commit 55a5bcf

Browse files
committed
Changes made along with BUILD changes in google3
1 parent 3413438 commit 55a5bcf

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ export class CdkStep {
117117
}
118118

119119
@Directive({
120-
selector: 'cdk-stepper',
121-
host: {
122-
'(focus)': '_focusStep()',
123-
'(keydown)': '_onKeydown($event)'
124-
},
120+
selector: '[cdkStepper]',
125121
})
126122
export class CdkStepper {
127123
/** The list of step components that the stepper is holding. */

src/demo-app/stepper/stepper-demo.scss

Whitespace-only changes.

src/demo-app/stepper/stepper-demo.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import {Component} from '@angular/core';
2-
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
2+
import {AbstractControl, FormBuilder, FormGroup, Validators} from '@angular/forms';
33

44
const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
55

66
@Component({
77
moduleId: module.id,
88
selector: 'stepper-demo',
9-
templateUrl: 'stepper-demo.html',
10-
styleUrls: ['stepper-demo.scss']
9+
templateUrl: 'stepper-demo.html'
1110
})
1211
export class StepperDemo {
1312
formGroup: FormGroup;
@@ -25,7 +24,7 @@ export class StepperDemo {
2524
];
2625

2726
/** Returns a FormArray with the name 'formArray'. */
28-
get formArray() { return this.formGroup.get('formArray'); }
27+
get formArray(): AbstractControl | null { return this.formGroup.get('formArray'); }
2928

3029
constructor(private _formBuilder: FormBuilder) { }
3130

src/lib/stepper/stepper-vertical.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[attr.aria-labelledby]="_getStepLabelId(i)"
2222
[attr.aria-expanded]="selectedIndex == i">
2323
<div class="mat-vertical-content">
24-
<ng-container[ngTemplateOutlet]="step.content"></ng-container>
24+
<ng-container [ngTemplateOutlet]="step.content"></ng-container>
2525
</div>
2626
</div>
2727
</div>

src/lib/stepper/stepper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {CdkStep, CdkStepper} from '@angular/cdk/stepper';
1010
import {
1111
Component,
1212
ContentChild,
13-
ContentChildren,
13+
ContentChildren, Directive,
1414
// This import is only used to define a generic type. The current TypeScript version incorrectly
1515
// considers such imports as unused (https://github.com/Microsoft/TypeScript/issues/14953)
1616
// tslint:disable-next-line:no-unused-variable
@@ -67,6 +67,9 @@ export class MdStep extends CdkStep implements ErrorOptions {
6767
}
6868
}
6969

70+
@Directive({
71+
selector: '[mdStepper]'
72+
})
7073
export class MdStepper extends CdkStepper implements ErrorOptions {
7174
/** The list of step headers of the steps in the stepper. */
7275
@ViewChildren(MdStepHeader, {read: ElementRef}) _stepHeader: QueryList<ElementRef>;

0 commit comments

Comments
 (0)