Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 03fa123

Browse files
josephperrottjelbourn
authored andcommitted
Update plunker SystemJS config for cdk secondary entry points
* Add expansion panel to doc items * Add styling guide to guide items
1 parent 166c12d commit 03fa123

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

src/app/pages/component-sidenav/component-sidenav.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {MdSidenav} from '@angular/material';
33
import {ComponentSidenav, ComponentSidenavModule} from './component-sidenav';
44
import {DocsAppTestingModule} from '../../testing/testing-module';
55

6-
76
describe('ComponentSidenav', () => {
87
let fixture: ComponentFixture<ComponentSidenav>;
98

@@ -26,10 +25,11 @@ describe('ComponentSidenav', () => {
2625
});
2726

2827
fixture.detectChanges();
29-
30-
expect(component.sidenav instanceof MdSidenav).toBeTruthy();
31-
expect(component.isScreenSmall()).toBeTruthy();
32-
expect(component.sidenav.opened).toBe(false);
28+
async(() => {
29+
expect(component.sidenav instanceof MdSidenav).toBeTruthy();
30+
expect(component.isScreenSmall()).toBeTruthy();
31+
expect(component.sidenav.opened).toBe(false);
32+
})
3333
});
3434

3535
it('should show a link for each item in doc items categories', () => {

src/app/shared/documentation-items/documentation-items.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const DOCS = [
4545
{id: 'grid-list', name: 'Grid list', examples: ['grid-list-dynamic']},
4646
{id: 'card', name: 'Card', examples: ['card-fancy']},
4747
{id: 'tabs', name: 'Tabs', examples: ['tabs-template-label']},
48+
{id: 'expansion', name: 'Expansion Panel',
49+
examples: ['expansion-overview', 'expansion-steps']},
4850
]
4951
},
5052
{

src/app/shared/example-viewer/example-viewer.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:host {
22
display: block;
3+
padding: 20px 0;
34
}
45

56
.docs-example-viewer-wrapper {

src/app/shared/guide-items/guide-items.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ const GUIDES = [
3232
name: `CDK data-table`,
3333
document: '/assets/documents/guides/cdk-table.html',
3434
},
35+
{
36+
id: 'customizing-component-styles',
37+
name: 'Customizing Component Styles',
38+
document: '/assets/documents/guides/customizing-component-styles.html'
39+
}
3540
];
3641

3742
@Injectable()

src/assets/plunker/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
} from '@angular/material';
3939
import {MaterialDocsExample} from './material-docs-example';
4040
import {HttpModule} from '@angular/http';
41-
import {CdkTableModule} from '@angular/cdk';
41+
import {CdkTableModule} from '@angular/cdk/table';
4242

4343
@NgModule({
4444
exports: [

src/assets/plunker/systemjs.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ System.config({
3232
'@angular/platform-browser/animations': 'https://unpkg.com/@angular/platform-browser/bundles/platform-browser-animations.umd.js',
3333
'@angular/material': 'https://unpkg.com/@angular/material/bundles/material.umd.js',
3434
'@angular/cdk': 'https://unpkg.com/@angular/cdk/bundles/cdk.umd.js',
35+
'@angular/cdk/a11y': 'https://unpkg.com/@angular/cdk/bundles/cdk-a11y.umd.js',
36+
'@angular/cdk/bidi': 'https://unpkg.com/@angular/cdk/bundles/cdk-bidi.umd.js',
37+
'@angular/cdk/coercion': 'https://unpkg.com/@angular/cdk/bundles/cdk-coercion.umd.js',
38+
'@angular/cdk/collections': 'https://unpkg.com/@angular/cdk/bundles/cdk-collections.umd.js',
39+
'@angular/cdk/keycodes': 'https://unpkg.com/@angular/cdk/bundles/cdk-keycodes.umd.js',
40+
'@angular/cdk/observers': 'https://unpkg.com/@angular/cdk/bundles/cdk-observers.umd.js',
41+
'@angular/cdk/overlay': 'https://unpkg.com/@angular/cdk/bundles/cdk-overlay.umd.js',
42+
'@angular/cdk/platform': 'https://unpkg.com/@angular/cdk/bundles/cdk-platform.umd.js',
43+
'@angular/cdk/portal': 'https://unpkg.com/@angular/cdk/bundles/cdk-portal.umd.js',
44+
'@angular/cdk/rxjs': 'https://unpkg.com/@angular/cdk/bundles/cdk-rxjs.umd.js',
45+
'@angular/cdk/scrolling': 'https://unpkg.com/@angular/cdk/bundles/cdk-scrolling.umd.js',
46+
'@angular/cdk/table': 'https://unpkg.com/@angular/cdk/bundles/cdk-table.umd.js',
3547

3648
// Rxjs mapping
3749
'rxjs': 'https://unpkg.com/rxjs',

0 commit comments

Comments
 (0)