Skip to content

Commit 8b715e0

Browse files
mmalerbaandrewseguin
authored andcommitted
chore: fix demo app build (#7428)
1 parent f5e916d commit 8b715e0

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

src/demo-app/system-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ System.config({
3535
'@angular/cdk/coercion': 'dist/packages/cdk/coercion/index.js',
3636
'@angular/cdk/collections': 'dist/packages/cdk/collections/index.js',
3737
'@angular/cdk/keycodes': 'dist/packages/cdk/keycodes/index.js',
38-
'@angular/cdk/layout': 'dist/bundles/cdk-layout.umd.js',
38+
'@angular/cdk/layout': 'dist/packages/cdk/layout/index.js',
3939
'@angular/cdk/observers': 'dist/packages/cdk/observers/index.js',
4040
'@angular/cdk/overlay': 'dist/packages/cdk/overlay/index.js',
4141
'@angular/cdk/platform': 'dist/packages/cdk/platform/index.js',

src/e2e-app/system-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ System.config({
3232
'@angular/cdk/coercion': 'dist/bundles/cdk-coercion.umd.js',
3333
'@angular/cdk/collections': 'dist/bundles/cdk-collections.umd.js',
3434
'@angular/cdk/keycodes': 'dist/bundles/cdk-keycodes.umd.js',
35+
'@angular/cdk/layout': 'dist/bundles/cdk-layout.umd.js',
3536
'@angular/cdk/observers': 'dist/bundles/cdk-observers.umd.js',
3637
'@angular/cdk/overlay': 'dist/bundles/cdk-overlay.umd.js',
3738
'@angular/cdk/platform': 'dist/bundles/cdk-platform.umd.js',

src/lib/chips/chip-list.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,5 +1059,5 @@ class SelectedChipList {
10591059
{ value: 1, viewValue: 'Pizza', selected: false },
10601060
{ value: 2, viewValue: 'Pasta', selected: true },
10611061
];
1062-
@ViewChildren(MdChip) chips: QueryList<MdChip>;
1062+
@ViewChildren(MatChip) chips: QueryList<MatChip>;
10631063
}

src/lib/list/selection-list.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ describe('MatSelectionList', () => {
229229
});
230230

231231
describe('with list option selected', () => {
232-
let fixture: ComponentFixture<SelectionListWithListOptions>;
232+
let fixture: ComponentFixture<SelectionListWithSelecedOption>;
233233
let listItemEl: DebugElement;
234234
let selectionList: DebugElement;
235235

236236
beforeEach(async(() => {
237237
TestBed.configureTestingModule({
238-
imports: [MdListModule],
238+
imports: [MatListModule],
239239
declarations: [SelectionListWithSelecedOption],
240240
});
241241

@@ -244,13 +244,13 @@ describe('MatSelectionList', () => {
244244

245245
beforeEach(async(() => {
246246
fixture = TestBed.createComponent(SelectionListWithSelecedOption);
247-
listItemEl = fixture.debugElement.query(By.directive(MdListOption));
248-
selectionList = fixture.debugElement.query(By.directive(MdSelectionList));
247+
listItemEl = fixture.debugElement.query(By.directive(MatListOption));
248+
selectionList = fixture.debugElement.query(By.directive(MatSelectionList));
249249
fixture.detectChanges();
250250
}));
251251

252252
it('should set its initial selected state in the selectedOptions', () => {
253-
let optionEl = listItemEl.injector.get(MdListOption);
253+
let optionEl = listItemEl.injector.get(MatListOption);
254254
let selectedOptions = selectionList.componentInstance.selectedOptions;
255255
expect(selectedOptions.isSelected(optionEl)).toBeTruthy();
256256
});

src/lib/stepper/stepper.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {FormControl, FormGroup, ReactiveFormsModule, Validators} from '@angular/
77
import {By} from '@angular/platform-browser';
88
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
99
import {MatStepperModule} from './index';
10-
import {MatHorizontalStepper, MatStepper, MatVerticalStepper} from './stepper';
10+
import {MatHorizontalStepper, MatStep, MatStepper, MatVerticalStepper} from './stepper';
1111
import {MatStepperNext, MatStepperPrevious} from './stepper-button';
1212

1313
const VALID_REGEX = /valid/;
@@ -306,23 +306,23 @@ function assertSelectionChangeOnHeaderClick(fixture: ComponentFixture<any>,
306306
let stepperComponent = fixture.debugElement.query(By.directive(MatStepper)).componentInstance;
307307

308308
expect(stepperComponent.selectedIndex).toBe(0);
309-
expect(stepperComponent.selected instanceof MdStep).toBe(true);
309+
expect(stepperComponent.selected instanceof MatStep).toBe(true);
310310

311311
// select the second step
312312
let stepHeaderEl = stepHeaders[1].nativeElement;
313313
stepHeaderEl.click();
314314
fixture.detectChanges();
315315

316316
expect(stepperComponent.selectedIndex).toBe(1);
317-
expect(stepperComponent.selected instanceof MdStep).toBe(true);
317+
expect(stepperComponent.selected instanceof MatStep).toBe(true);
318318

319319
// select the third step
320320
stepHeaderEl = stepHeaders[2].nativeElement;
321321
stepHeaderEl.click();
322322
fixture.detectChanges();
323323

324324
expect(stepperComponent.selectedIndex).toBe(2);
325-
expect(stepperComponent.selected instanceof MdStep).toBe(true);
325+
expect(stepperComponent.selected instanceof MatStep).toBe(true);
326326
}
327327

328328
/** Asserts that 'aria-expanded' attribute is correct for expanded content of step. */

test/karma-test-shim.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ System.config({
5555
'@angular/cdk/coercion': 'dist/packages/cdk/coercion/index.js',
5656
'@angular/cdk/collections': 'dist/packages/cdk/collections/index.js',
5757
'@angular/cdk/keycodes': 'dist/packages/cdk/keycodes/index.js',
58+
'@angular/cdk/layout': 'dist/packages/cdk/layout/index.js',
5859
'@angular/cdk/observers': 'dist/packages/cdk/observers/index.js',
5960
'@angular/cdk/overlay': 'dist/packages/cdk/overlay/index.js',
6061
'@angular/cdk/platform': 'dist/packages/cdk/platform/index.js',

tools/dgeni/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ let apiDocsPackage = new DgeniPackage('material2-api-docs', dgeniPackageDeps)
8888
'cdk/coercion/index.ts',
8989
'cdk/collections/index.ts',
9090
'cdk/keycodes/index.ts',
91+
'cdk/layout/index.ts',
9192
'cdk/overlay/index.ts',
9293
'cdk/platform/index.ts',
9394
'cdk/portal/index.ts',

0 commit comments

Comments
 (0)