diff --git a/.gitignore b/.gitignore index 423aaf3af..302d77575 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ /tmp /src/assets/documents /src/assets/examples +/src/assets/plunker/examples # dependencies /node_modules diff --git a/package.json b/package.json index 682809a4f..e0401cbcc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@angular/material": "^2.0.0-beta.6", "@angular/platform-browser": "^4.0.0", "@angular/platform-browser-dynamic": "^4.0.0", - "@angular/router": "~4.0.0", + "@angular/router": "^4.0.0", "core-js": "^2.4.1", "rxjs": "^5.1.0", "zone.js": "^0.8.4" diff --git a/src/app/app-module.ts b/src/app/app-module.ts index 22199d0c8..ca16677dc 100644 --- a/src/app/app-module.ts +++ b/src/app/app-module.ts @@ -5,6 +5,8 @@ import {Location, LocationStrategy, PathLocationStrategy} from '@angular/common' import {FormsModule} from '@angular/forms'; import {HttpModule} from '@angular/http'; import {MaterialModule, MdNativeDateModule} from '@angular/material'; +import {ExampleModule} from '@angular/material-examples'; + import {MaterialDocsApp} from './material-docs-app'; import {Homepage} from './pages/homepage/homepage'; import {routing} from './routes'; @@ -12,7 +14,6 @@ import {ComponentList} from './pages/component-list/component-list'; import {ComponentViewer} from './pages/component-viewer/component-viewer'; import {GuideList} from './pages/guide-list'; import {GuideViewer} from './pages/guide-viewer'; -import {ExampleModule} from './examples/example-module'; import {SharedModule} from './shared/shared-module'; import {ComponentCategoryList} from './pages/component-category-list/component-category-list'; import {ComponentSidenav} from './pages/component-sidenav/component-sidenav'; diff --git a/src/app/examples/autocomplete-overview/autocomplete-overview-example.css b/src/app/examples/autocomplete-overview/autocomplete-overview-example.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/app/examples/autocomplete-overview/autocomplete-overview-example.html b/src/app/examples/autocomplete-overview/autocomplete-overview-example.html deleted file mode 100644 index e5217f9c2..000000000 --- a/src/app/examples/autocomplete-overview/autocomplete-overview-example.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - {{ state }} - - \ No newline at end of file diff --git a/src/app/examples/autocomplete-overview/autocomplete-overview-example.ts b/src/app/examples/autocomplete-overview/autocomplete-overview-example.ts deleted file mode 100644 index fc2ca560b..000000000 --- a/src/app/examples/autocomplete-overview/autocomplete-overview-example.ts +++ /dev/null @@ -1,80 +0,0 @@ -import {Component} from '@angular/core'; -import {FormControl} from '@angular/forms'; - -import 'rxjs/add/operator/startWith'; -import 'rxjs/add/operator/map'; - -@Component({ - selector: 'autocomplete-overview-example', - templateUrl: './autocomplete-overview-example.html', -}) -export class AutocompleteOverviewExample { - stateCtrl: FormControl; - filteredStates: any; - - states = [ - 'Alabama', - 'Alaska', - 'Arizona', - 'Arkansas', - 'California', - 'Colorado', - 'Connecticut', - 'Delaware', - 'Florida', - 'Georgia', - 'Hawaii', - 'Idaho', - 'Illinois', - 'Indiana', - 'Iowa', - 'Kansas', - 'Kentucky', - 'Louisiana', - 'Maine', - 'Maryland', - 'Massachusetts', - 'Michigan', - 'Minnesota', - 'Mississippi', - 'Missouri', - 'Montana', - 'Nebraska', - 'Nevada', - 'New Hampshire', - 'New Jersey', - 'New Mexico', - 'New York', - 'North Carolina', - 'North Dakota', - 'Ohio', - 'Oklahoma', - 'Oregon', - 'Pennsylvania', - 'Rhode Island', - 'South Carolina', - 'South Dakota', - 'Tennessee', - 'Texas', - 'Utah', - 'Vermont', - 'Virginia', - 'Washington', - 'West Virginia', - 'Wisconsin', - 'Wyoming', - ]; - - constructor() { - this.stateCtrl = new FormControl(); - this.filteredStates = this.stateCtrl.valueChanges - .startWith(null) - .map(name => this.filterStates(name)); - } - - filterStates(val: string) { - return val ? this.states.filter(s => new RegExp(`^${val}`, 'gi').test(s)) - : this.states; - } - -} diff --git a/src/app/examples/button-overview/button-overview-example.css b/src/app/examples/button-overview/button-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/button-overview/button-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/button-overview/button-overview-example.html b/src/app/examples/button-overview/button-overview-example.html deleted file mode 100644 index 56f6fa44f..000000000 --- a/src/app/examples/button-overview/button-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/button-overview/button-overview-example.ts b/src/app/examples/button-overview/button-overview-example.ts deleted file mode 100644 index 41a52022f..000000000 --- a/src/app/examples/button-overview/button-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-overview-example', - templateUrl: './button-overview-example.html', -}) -export class ButtonOverviewExample {} diff --git a/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.css b/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.css deleted file mode 100644 index d21ca3ce5..000000000 --- a/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.css +++ /dev/null @@ -1,3 +0,0 @@ -.example-selected-value { - margin: 15px 0; -} diff --git a/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.html b/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.html deleted file mode 100644 index dd5cd2771..000000000 --- a/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.html +++ /dev/null @@ -1,15 +0,0 @@ - - - format_align_left - - - format_align_center - - - format_align_right - - - format_align_justify - - -
Selected value: {{group.value}}
diff --git a/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.ts b/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.ts deleted file mode 100644 index d014b8a28..000000000 --- a/src/app/examples/button-toggle-exclusive/button-toggle-exclusive-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-toggle-exclusive-example', - templateUrl: './button-toggle-exclusive-example.html', - styleUrls: ['./button-toggle-exclusive-example.css'], -}) -export class ButtonToggleExclusiveExample {} diff --git a/src/app/examples/button-toggle-overview/button-toggle-overview-example.css b/src/app/examples/button-toggle-overview/button-toggle-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/button-toggle-overview/button-toggle-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/button-toggle-overview/button-toggle-overview-example.html b/src/app/examples/button-toggle-overview/button-toggle-overview-example.html deleted file mode 100644 index bb215d5b5..000000000 --- a/src/app/examples/button-toggle-overview/button-toggle-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Toggle me! diff --git a/src/app/examples/button-toggle-overview/button-toggle-overview-example.ts b/src/app/examples/button-toggle-overview/button-toggle-overview-example.ts deleted file mode 100644 index 38a4afd05..000000000 --- a/src/app/examples/button-toggle-overview/button-toggle-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-toggle-overview-example', - templateUrl: './button-toggle-overview-example.html', -}) -export class ButtonToggleOverviewExample {} diff --git a/src/app/examples/button-types/button-types-example.css b/src/app/examples/button-types/button-types-example.css deleted file mode 100644 index b0b34952f..000000000 --- a/src/app/examples/button-types/button-types-example.css +++ /dev/null @@ -1,9 +0,0 @@ -.example-container { - width: 500px; -} - -.example-button-row { - display: flex; - align-items: center; - justify-content: space-around; -} diff --git a/src/app/examples/button-types/button-types-example.html b/src/app/examples/button-types/button-types-example.html deleted file mode 100644 index 4c5783de9..000000000 --- a/src/app/examples/button-types/button-types-example.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

Normal Buttons

-
- - - - -
- -

Link Buttons

-
- Flat button - Raised button - check - check -
-
diff --git a/src/app/examples/button-types/button-types-example.ts b/src/app/examples/button-types/button-types-example.ts deleted file mode 100644 index 9dbb329f1..000000000 --- a/src/app/examples/button-types/button-types-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-types-example', - templateUrl: './button-types-example.html', - styleUrls: ['./button-types-example.css'], -}) -export class ButtonTypesExample {} diff --git a/src/app/examples/card-fancy/card-fancy-example.css b/src/app/examples/card-fancy/card-fancy-example.css deleted file mode 100644 index 6a2f0a625..000000000 --- a/src/app/examples/card-fancy/card-fancy-example.css +++ /dev/null @@ -1,8 +0,0 @@ -.example-card { - width: 400px; -} - -.example-header-image { - background-image: url('../../../assets/img/examples/shiba1.jpg'); - background-size: cover; -} diff --git a/src/app/examples/card-fancy/card-fancy-example.html b/src/app/examples/card-fancy/card-fancy-example.html deleted file mode 100644 index 07d25dfb8..000000000 --- a/src/app/examples/card-fancy/card-fancy-example.html +++ /dev/null @@ -1,19 +0,0 @@ - - -
- Shiba Inu - Dog Breed -
- - -

- The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan. - A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally - bred for hunting. -

-
- - - - -
diff --git a/src/app/examples/card-fancy/card-fancy-example.ts b/src/app/examples/card-fancy/card-fancy-example.ts deleted file mode 100644 index 8e19840d7..000000000 --- a/src/app/examples/card-fancy/card-fancy-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'card-fancy-example', - templateUrl: './card-fancy-example.html', - styleUrls: ['./card-fancy-example.css'], -}) -export class CardFancyExample {} diff --git a/src/app/examples/card-overview/card-overview-example.css b/src/app/examples/card-overview/card-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/card-overview/card-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/card-overview/card-overview-example.html b/src/app/examples/card-overview/card-overview-example.html deleted file mode 100644 index 5e0c2b6df..000000000 --- a/src/app/examples/card-overview/card-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Simple card diff --git a/src/app/examples/card-overview/card-overview-example.ts b/src/app/examples/card-overview/card-overview-example.ts deleted file mode 100644 index 55fc9a690..000000000 --- a/src/app/examples/card-overview/card-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'card-overview-example', - templateUrl: './card-overview-example.html', -}) -export class CardOverviewExample {} diff --git a/src/app/examples/checkbox-configurable/checkbox-configurable-example.css b/src/app/examples/checkbox-configurable/checkbox-configurable-example.css deleted file mode 100644 index 558293fbb..000000000 --- a/src/app/examples/checkbox-configurable/checkbox-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 0 10px; -} diff --git a/src/app/examples/checkbox-configurable/checkbox-configurable-example.html b/src/app/examples/checkbox-configurable/checkbox-configurable-example.html deleted file mode 100644 index 5876c05c6..000000000 --- a/src/app/examples/checkbox-configurable/checkbox-configurable-example.html +++ /dev/null @@ -1,40 +0,0 @@ - - -

Checkbox configuration

- -
- Checked - Indeterminate -
- -
- - - Start - End - -
- -
- Disabled -
-
-
- - - -

Result

- -
- - I'm a checkbox - -
-
-
- diff --git a/src/app/examples/checkbox-configurable/checkbox-configurable-example.ts b/src/app/examples/checkbox-configurable/checkbox-configurable-example.ts deleted file mode 100644 index 2c0149199..000000000 --- a/src/app/examples/checkbox-configurable/checkbox-configurable-example.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'checkbox-configurable-example', - templateUrl: './checkbox-configurable-example.html', - styleUrls: ['./checkbox-configurable-example.css'], -}) -export class CheckboxConfigurableExample { - checked = false; - indeterminate = false; - align = 'start'; - disabled = false; -} diff --git a/src/app/examples/checkbox-overview/checkbox-overview-example.css b/src/app/examples/checkbox-overview/checkbox-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/checkbox-overview/checkbox-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/checkbox-overview/checkbox-overview-example.html b/src/app/examples/checkbox-overview/checkbox-overview-example.html deleted file mode 100644 index c301bbe5c..000000000 --- a/src/app/examples/checkbox-overview/checkbox-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Check me! diff --git a/src/app/examples/checkbox-overview/checkbox-overview-example.ts b/src/app/examples/checkbox-overview/checkbox-overview-example.ts deleted file mode 100644 index be9aefc59..000000000 --- a/src/app/examples/checkbox-overview/checkbox-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'checkbox-overview-example', - templateUrl: './checkbox-overview-example.html', -}) -export class CheckboxOverviewExample {} diff --git a/src/app/examples/chips-overview/chips-overview-example.css b/src/app/examples/chips-overview/chips-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/chips-overview/chips-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/chips-overview/chips-overview-example.html b/src/app/examples/chips-overview/chips-overview-example.html deleted file mode 100644 index bb0410569..000000000 --- a/src/app/examples/chips-overview/chips-overview-example.html +++ /dev/null @@ -1,6 +0,0 @@ - - One fish - Two fish - Primary fish - Accent fish - diff --git a/src/app/examples/chips-overview/chips-overview-example.ts b/src/app/examples/chips-overview/chips-overview-example.ts deleted file mode 100644 index fa1bbf7c1..000000000 --- a/src/app/examples/chips-overview/chips-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'chips-overview-example', - templateUrl: './chips-overview-example.html', -}) -export class ChipsOverviewExample {} diff --git a/src/app/examples/chips-stacked/chips-stacked-example.css b/src/app/examples/chips-stacked/chips-stacked-example.css deleted file mode 100644 index dfb2f8c00..000000000 --- a/src/app/examples/chips-stacked/chips-stacked-example.css +++ /dev/null @@ -1,3 +0,0 @@ -md-chip { - max-width: 200px; -} diff --git a/src/app/examples/chips-stacked/chips-stacked-example.html b/src/app/examples/chips-stacked/chips-stacked-example.html deleted file mode 100644 index 27677b1c6..000000000 --- a/src/app/examples/chips-stacked/chips-stacked-example.html +++ /dev/null @@ -1,7 +0,0 @@ - - - {{chipColor.name}} - - diff --git a/src/app/examples/chips-stacked/chips-stacked-example.ts b/src/app/examples/chips-stacked/chips-stacked-example.ts deleted file mode 100644 index 8c48ccc92..000000000 --- a/src/app/examples/chips-stacked/chips-stacked-example.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'chips-stacked-example', - templateUrl: './chips-stacked-example.html', - styleUrls: ['./chips-stacked-example.css'], -}) -export class ChipsStackedExample { - color: string; - - availableColors = [ - { name: 'none', color: '' }, - { name: 'Primary', color: 'primary' }, - { name: 'Accent', color: 'accent' }, - { name: 'Warn', color: 'warn' } - ]; -} diff --git a/src/app/examples/datepicker-overview/datepicker-overview-example.css b/src/app/examples/datepicker-overview/datepicker-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/datepicker-overview/datepicker-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/datepicker-overview/datepicker-overview-example.html b/src/app/examples/datepicker-overview/datepicker-overview-example.html deleted file mode 100644 index 3dbb917b0..000000000 --- a/src/app/examples/datepicker-overview/datepicker-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/app/examples/datepicker-overview/datepicker-overview-example.ts b/src/app/examples/datepicker-overview/datepicker-overview-example.ts deleted file mode 100644 index 51fce60b5..000000000 --- a/src/app/examples/datepicker-overview/datepicker-overview-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'datepicker-overview-example', - templateUrl: './datepicker-overview-example.html', - styleUrls: ['./datepicker-overview-example.css'], -}) -export class DatepickerOverviewExample {} diff --git a/src/app/examples/dialog-elements/dialog-elements-example-dialog.html b/src/app/examples/dialog-elements/dialog-elements-example-dialog.html deleted file mode 100644 index 5238b0eb6..000000000 --- a/src/app/examples/dialog-elements/dialog-elements-example-dialog.html +++ /dev/null @@ -1,5 +0,0 @@ -

Dialog with elements

-
This dialog showcases the title, close, content and actions elements.
-
- -
diff --git a/src/app/examples/dialog-elements/dialog-elements-example.css b/src/app/examples/dialog-elements/dialog-elements-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/dialog-elements/dialog-elements-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/dialog-elements/dialog-elements-example.html b/src/app/examples/dialog-elements/dialog-elements-example.html deleted file mode 100644 index 40637c4bd..000000000 --- a/src/app/examples/dialog-elements/dialog-elements-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/dialog-elements/dialog-elements-example.ts b/src/app/examples/dialog-elements/dialog-elements-example.ts deleted file mode 100644 index aba941a57..000000000 --- a/src/app/examples/dialog-elements/dialog-elements-example.ts +++ /dev/null @@ -1,22 +0,0 @@ -import {Component} from '@angular/core'; -import {MdDialog} from '@angular/material'; - - -@Component({ - selector: 'dialog-elements-example', - templateUrl: './dialog-elements-example.html', -}) -export class DialogElementsExample { - constructor(public dialog: MdDialog) { } - - openDialog() { - this.dialog.open(DialogElementsExampleDialog); - } -} - - -@Component({ - selector: 'dialog-elements-example-dialog', - templateUrl: './dialog-elements-example-dialog.html', -}) -export class DialogElementsExampleDialog { } diff --git a/src/app/examples/dialog-overview/dialog-overview-example-dialog.html b/src/app/examples/dialog-overview/dialog-overview-example-dialog.html deleted file mode 100644 index 751e1339b..000000000 --- a/src/app/examples/dialog-overview/dialog-overview-example-dialog.html +++ /dev/null @@ -1 +0,0 @@ -

Hi, I'm a dialog!

diff --git a/src/app/examples/dialog-overview/dialog-overview-example.css b/src/app/examples/dialog-overview/dialog-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/dialog-overview/dialog-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/dialog-overview/dialog-overview-example.html b/src/app/examples/dialog-overview/dialog-overview-example.html deleted file mode 100644 index 176a3c411..000000000 --- a/src/app/examples/dialog-overview/dialog-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/dialog-overview/dialog-overview-example.ts b/src/app/examples/dialog-overview/dialog-overview-example.ts deleted file mode 100644 index 9bc9882ac..000000000 --- a/src/app/examples/dialog-overview/dialog-overview-example.ts +++ /dev/null @@ -1,22 +0,0 @@ -import {Component} from '@angular/core'; -import {MdDialog} from '@angular/material'; - - -@Component({ - selector: 'dialog-overview-example', - templateUrl: './dialog-overview-example.html', -}) -export class DialogOverviewExample { - constructor(public dialog: MdDialog) {} - - openDialog() { - this.dialog.open(DialogOverviewExampleDialog); - } -} - - -@Component({ - selector: 'dialog-overview-example-dialog', - templateUrl: './dialog-overview-example-dialog.html', -}) -export class DialogOverviewExampleDialog {} diff --git a/src/app/examples/dialog-result/dialog-result-example-dialog.html b/src/app/examples/dialog-result/dialog-result-example-dialog.html deleted file mode 100644 index 0e4dd6339..000000000 --- a/src/app/examples/dialog-result/dialog-result-example-dialog.html +++ /dev/null @@ -1,6 +0,0 @@ -

Dialog

-
What would you like to do?
-
- - -
diff --git a/src/app/examples/dialog-result/dialog-result-example.css b/src/app/examples/dialog-result/dialog-result-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/dialog-result/dialog-result-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/dialog-result/dialog-result-example.html b/src/app/examples/dialog-result/dialog-result-example.html deleted file mode 100644 index 04850b42d..000000000 --- a/src/app/examples/dialog-result/dialog-result-example.html +++ /dev/null @@ -1,2 +0,0 @@ - -You chose: {{selectedOption}} diff --git a/src/app/examples/dialog-result/dialog-result-example.ts b/src/app/examples/dialog-result/dialog-result-example.ts deleted file mode 100644 index ec25f92f1..000000000 --- a/src/app/examples/dialog-result/dialog-result-example.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {Component} from '@angular/core'; -import {MdDialog, MdDialogRef} from '@angular/material'; - - -@Component({ - selector: 'dialog-result-example', - templateUrl: './dialog-result-example.html', -}) -export class DialogResultExample { - selectedOption: string; - - constructor(public dialog: MdDialog) {} - - openDialog() { - let dialogRef = this.dialog.open(DialogResultExampleDialog); - dialogRef.afterClosed().subscribe(result => { - this.selectedOption = result; - }); - } -} - - -@Component({ - selector: 'dialog-result-example-dialog', - templateUrl: './dialog-result-example-dialog.html', -}) -export class DialogResultExampleDialog { - constructor(public dialogRef: MdDialogRef) {} -} diff --git a/src/app/examples/example-data.ts b/src/app/examples/example-data.ts deleted file mode 100644 index 3dd2b5a3e..000000000 --- a/src/app/examples/example-data.ts +++ /dev/null @@ -1,46 +0,0 @@ -import {EXAMPLE_COMPONENTS} from './example-module'; - - -/** - * Example data - * with information about Component name, selector, files used in example, and path to examples - */ -export class ExampleData { - // TODO: figure out how do we get these variables. - description: string = 'Some description for material'; - // TODO: use real example and delete the example/ folder. - examplePath = '/assets/example/'; - exampleFiles = ['button-demo.html', 'button-demo.scss', 'button-demo.ts']; - - // TODO: extract these variables from example code. - selectorName = 'button-demo'; - indexFilename = 'button-demo'; - componentName = 'ButtonDemo'; - - constructor(example: string) { - if (example && EXAMPLE_COMPONENTS[example]) { - this.examplePath = `/assets/plunker/examples/${example}/`; - // TODO(tinayuangao): Do not hard-code extensions - this.exampleFiles = ['html', 'ts', 'css'] - .map((extension) => `${example}-example.${extension}`); - if (EXAMPLE_COMPONENTS[example].additionalFiles) { - this.exampleFiles = this.exampleFiles.concat(EXAMPLE_COMPONENTS[example].additionalFiles); - } - this.selectorName = this.indexFilename = `${example}-example`; - - let exampleName = example.replace(/(?:^\w|\b\w)/g, letter => letter.toUpperCase()); - - if (EXAMPLE_COMPONENTS[example].title) { - this.description = EXAMPLE_COMPONENTS[example].title; - } else { - this.description = exampleName.replace(/[\-]+/g, ' ') + ' Example'; - } - - if (EXAMPLE_COMPONENTS[example].selectorName) { - this.componentName = EXAMPLE_COMPONENTS[example].selectorName; - } else { - this.componentName = exampleName.replace(/[\-]+/g, '') + 'Example'; - } - } - } -} diff --git a/src/app/examples/example-module.ts b/src/app/examples/example-module.ts deleted file mode 100644 index bb990d759..000000000 --- a/src/app/examples/example-module.ts +++ /dev/null @@ -1,239 +0,0 @@ -import {NgModule} from '@angular/core'; -import {FormsModule, ReactiveFormsModule} from '@angular/forms'; -import {CommonModule} from '@angular/common'; -import {MaterialModule} from '@angular/material'; -import {AutocompleteOverviewExample} from './autocomplete-overview/autocomplete-overview-example'; -import {ButtonOverviewExample} from './button-overview/button-overview-example'; -import {ButtonTypesExample} from './button-types/button-types-example'; -import {CheckboxOverviewExample} from './checkbox-overview/checkbox-overview-example'; -import {SliderConfigurableExample} from './slider-configurable/slider-configurable-example'; -import {TabsOverviewExample} from './tabs-overview/tabs-overview-example'; -import { - PizzaPartyComponent, - SnackBarComponentExample -} from './snack-bar-component/snack-bar-component-example'; -import { - ProgressBarConfigurableExample -} from './progress-bar-configurable/progress-bar-configurable-example'; -import { - DialogOverviewExampleDialog, - DialogOverviewExample -} from './dialog-overview/dialog-overview-example'; -import {RadioNgModelExample} from './radio-ng-model/radio-ng-model-example'; -import {CardFancyExample} from './card-fancy/card-fancy-example'; -import {ToolbarOverviewExample} from './toolbar-overview/toolbar-overview-example'; -import {ToolbarMultirowExample} from './toolbar-multirow/toolbar-multirow-example'; -import {MenuIconsExample} from './menu-icons/menu-icons-example'; -import {GridListDynamicExample} from './grid-list-dynamic/grid-list-dynamic-example'; -import {IconOverviewExample} from './icon-overview/icon-overview-example'; -import {ProgressBarOverviewExample} from './progress-bar-overview/progress-bar-overview-example'; -import {SlideToggleOverviewExample} from './slide-toggle-overview/slide-toggle-overview-example'; -import {InputOverviewExample} from './input-overview/input-overview-example'; -import {MenuOverviewExample} from './menu-overview/menu-overview-example'; -import {CheckboxConfigurableExample} from './checkbox-configurable/checkbox-configurable-example'; -import { - ButtonToggleExclusiveExample -} from './button-toggle-exclusive/button-toggle-exclusive-example'; -import {ListSectionsExample} from './list-sections/list-sections-example'; -import {SnackBarOverviewExample} from './snack-bar-overview/snack-bar-overview-example'; -import { - DialogResultExampleDialog, - DialogResultExample -} from './dialog-result/dialog-result-example'; -import { - DialogElementsExampleDialog, - DialogElementsExample -} from './dialog-elements/dialog-elements-example'; -import {TooltipOverviewExample} from './tooltip-overview/tooltip-overview-example'; -import {ButtonToggleOverviewExample} from './button-toggle-overview/button-toggle-overview-example'; -import {GridListOverviewExample} from './grid-list-overview/grid-list-overview-example'; -import {TooltipPositionExample} from './tooltip-position/tooltip-position-example'; -import { - ProgressSpinnerConfigurableExample -} from './progress-spinner-configurable/progress-spinner-configurable-example'; -import {InputFormExample} from './input-form/input-form-example'; -import {ListOverviewExample} from './list-overview/list-overview-example'; -import {SliderOverviewExample} from './slider-overview/slider-overview-example'; -import { - SlideToggleConfigurableExample -} from './slide-toggle-configurable/slide-toggle-configurable-example'; -import {IconSvgExample} from './icon-svg-example/icon-svg-example'; -import {SidenavFabExample} from './sidenav-fab/sidenav-fab-example'; -import {CardOverviewExample} from './card-overview/card-overview-example'; -import { - ProgressSpinnerOverviewExample -} from './progress-spinner-overview/progress-spinner-overview-example'; -import {TabsTemplateLabelExample} from './tabs-template-label/tabs-template-label-example'; -import {RadioOverviewExample} from './radio-overview/radio-overview-example'; -import {SidenavOverviewExample} from './sidenav-overview/sidenav-overview-example'; -import {SelectOverviewExample} from './select-overview/select-overview-example'; -import {ChipsOverviewExample} from './chips-overview/chips-overview-example'; -import {ChipsStackedExample} from './chips-stacked/chips-stacked-example'; -import {SelectFormExample} from './select-form/select-form-example'; -import {DatepickerOverviewExample} from './datepicker-overview/datepicker-overview-example'; - - -export interface LiveExample { - title: string; - component: any; - additionalFiles?: string[]; - selectorName?: string; -} - -/** - * The list of example components. - * Key is the example name which will be used in `material-docs-example="key"`. - * Value is the component. - */ -export const EXAMPLE_COMPONENTS = { - 'autocomplete-overview': {title: 'Basic autocomplete', component: AutocompleteOverviewExample}, - 'button-overview': {title: 'Basic buttons', component: ButtonOverviewExample}, - 'button-types': {title: 'Button varieties', component: ButtonTypesExample}, - 'button-toggle-exclusive': { - title: 'Exclusive selection', - component: ButtonToggleExclusiveExample - }, - 'button-toggle-overview': {title: 'Basic button-toggles', component: ButtonToggleOverviewExample}, - 'chips-overview': {title: 'Basic chips', component: ChipsOverviewExample}, - 'chips-stacked': {title: 'Stacked chips', component: ChipsStackedExample}, - 'card-fancy': {title: 'Card with multiple sections', component: CardFancyExample}, - 'card-overview': {title: 'Basic cards', component: CardOverviewExample}, - 'checkbox-configurable': {title: 'Configurable checkbox', component: CheckboxConfigurableExample}, - 'checkbox-overview': {title: 'Basic checkboxes', component: CheckboxOverviewExample}, - 'datepicker-overview': {title: 'Basic datepicker', component: DatepickerOverviewExample}, - 'dialog-overview': { - title: 'Basic dialog', - component: DialogOverviewExample, - additionalFiles: ['dialog-overview-example-dialog.html'], - selectorName: 'DialogOverviewExample, DialogOverviewExampleDialog', - }, - 'dialog-result': { - title: 'Dialog with a result', - component: DialogResultExample, - additionalFiles: ['dialog-result-example-dialog.html'], - selectorName: 'DialogResultExample, DialogResultExampleDialog', - }, - 'dialog-elements': { - title: 'Dialog elements', - component: DialogElementsExample, - additionalFiles: ['dialog-elements-example-dialog.html'], - selectorName: 'DialogElementsExample, DialogElementsExampleDialog', - }, - 'grid-list-dynamic': {title: 'Dynamic grid-list', component: GridListDynamicExample}, - 'grid-list-overview': {title: 'Basic grid-list', component: GridListOverviewExample}, - 'icon-overview': {title: 'Basic icons', component: IconOverviewExample}, - 'icon-svg': {title: 'SVG icons', component: IconSvgExample}, - 'input-form': {title: 'Inputs in a form', component: InputFormExample}, - 'input-overview': {title: 'Basic inputs', component: InputOverviewExample}, - 'list-overview': {title: 'Basic list', component: ListOverviewExample}, - 'list-sections': {title: 'List with sections', component: ListSectionsExample}, - 'menu-icons': {title: 'Menu with icons', component: MenuIconsExample}, - 'menu-overview': {title: 'Basic menu', component: MenuOverviewExample}, - 'progress-bar-configurable': { - title: 'Configurable progress-bar', - component: ProgressBarConfigurableExample - }, - 'progress-bar-overview': {title: 'Basic progress-bar', component: ProgressBarOverviewExample}, - 'progress-spinner-configurable': { - title: 'Configurable progress-bar', - component: ProgressSpinnerConfigurableExample - }, - 'progress-spinner-overview': { - title: 'Basic progress-spinner', - component: ProgressSpinnerOverviewExample - }, - 'radio-ng-model': {title: 'Radios with ngModel', component: RadioNgModelExample}, - 'radio-overview': {title: 'Basic radios', component: RadioOverviewExample}, - 'select-overview': {title: 'Basic select', component: SelectOverviewExample}, - 'select-form': {title: 'Select in a form', component: SelectFormExample}, - 'sidenav-fab': {title: 'Sidenav with a FAB', component: SidenavFabExample}, - 'sidenav-overview': {title: 'Basic sidenav', component: SidenavOverviewExample}, - 'slider-configurable': {title: 'Configurable slider', component: SliderConfigurableExample}, - 'slider-overview': {title: 'Basic slider', component: SliderOverviewExample}, - 'slide-toggle-configurable': { - title: 'Configurable slide-toggle', - component: SlideToggleConfigurableExample - }, - 'slide-toggle-overview': {title: 'Basic slide-toggles', component: SlideToggleOverviewExample}, - 'snack-bar-component': { - title: 'Snack-bar with a custom component', - component: SnackBarComponentExample - }, - 'snack-bar-overview': {title: 'Basic snack-bar', component: SnackBarOverviewExample}, - 'tabs-overview': {title: 'Basic tabs', component: TabsOverviewExample}, - 'tabs-template-label': {title: 'Coming soon!', component: TabsTemplateLabelExample}, - 'toolbar-multirow': {title: 'Multi-row toolbar', component: ToolbarMultirowExample}, - 'toolbar-overview': {title: 'basic toolbar', component: ToolbarOverviewExample}, - 'tooltip-overview': {title: 'Basic tooltip', component: TooltipOverviewExample}, - 'tooltip-position': {title: 'Tooltip with custom position', component: TooltipPositionExample}, -}; - -/** - * The list of all example components. - * We need to put them in both `declarations` and `entryComponents` to make them work. - */ -export const EXAMPLE_LIST = [ - AutocompleteOverviewExample, - ButtonOverviewExample, - ButtonToggleExclusiveExample, - ButtonToggleOverviewExample, - ButtonTypesExample, - CardFancyExample, - CardOverviewExample, - ChipsOverviewExample, - ChipsStackedExample, - CheckboxConfigurableExample, - CheckboxOverviewExample, - DatepickerOverviewExample, - DialogOverviewExample, - DialogOverviewExampleDialog, - DialogResultExample, - DialogResultExampleDialog, - DialogElementsExample, - DialogElementsExampleDialog, - GridListDynamicExample, - GridListOverviewExample, - IconOverviewExample, - IconSvgExample, - InputFormExample, - InputOverviewExample, - ListOverviewExample, - ListSectionsExample, - MenuIconsExample, - MenuOverviewExample, - ProgressBarConfigurableExample, - ProgressBarOverviewExample, - ProgressSpinnerConfigurableExample, - ProgressSpinnerOverviewExample, - RadioNgModelExample, - RadioOverviewExample, - SidenavFabExample, - SelectOverviewExample, - SelectFormExample, - SidenavOverviewExample, - SliderConfigurableExample, - SliderOverviewExample, - SlideToggleConfigurableExample, - SlideToggleOverviewExample, - SnackBarComponentExample, - PizzaPartyComponent, - SnackBarOverviewExample, - TabsOverviewExample, - TabsTemplateLabelExample, - ToolbarMultirowExample, - ToolbarOverviewExample, - TooltipOverviewExample, - TooltipPositionExample, -]; - -@NgModule({ - declarations: EXAMPLE_LIST, - entryComponents: EXAMPLE_LIST, - imports: [ - MaterialModule, - FormsModule, - ReactiveFormsModule, - CommonModule, - ] -}) -export class ExampleModule { } diff --git a/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.css b/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.html b/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.html deleted file mode 100644 index 19c84dd5b..000000000 --- a/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.html +++ /dev/null @@ -1,9 +0,0 @@ - - - {{tile.text}} - - diff --git a/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.ts b/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.ts deleted file mode 100644 index 8f0834fa0..000000000 --- a/src/app/examples/grid-list-dynamic/grid-list-dynamic-example.ts +++ /dev/null @@ -1,15 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'grid-list-dynamic-example', - templateUrl: './grid-list-dynamic-example.html', -}) -export class GridListDynamicExample { - tiles = [ - {text: 'One', cols: 3, rows: 1, color: 'lightblue'}, - {text: 'Two', cols: 1, rows: 2, color: 'lightgreen'}, - {text: 'Three', cols: 1, rows: 1, color: 'lightpink'}, - {text: 'Four', cols: 2, rows: 1, color: '#DDBDF1'}, - ]; -} diff --git a/src/app/examples/grid-list-overview/grid-list-overview-example.css b/src/app/examples/grid-list-overview/grid-list-overview-example.css deleted file mode 100644 index 2598f58f5..000000000 --- a/src/app/examples/grid-list-overview/grid-list-overview-example.css +++ /dev/null @@ -1,3 +0,0 @@ -md-grid-tile { - background: lightblue; -} diff --git a/src/app/examples/grid-list-overview/grid-list-overview-example.html b/src/app/examples/grid-list-overview/grid-list-overview-example.html deleted file mode 100644 index 6651887f6..000000000 --- a/src/app/examples/grid-list-overview/grid-list-overview-example.html +++ /dev/null @@ -1,6 +0,0 @@ - - 1 - 2 - 3 - 4 - diff --git a/src/app/examples/grid-list-overview/grid-list-overview-example.ts b/src/app/examples/grid-list-overview/grid-list-overview-example.ts deleted file mode 100644 index ba23f5740..000000000 --- a/src/app/examples/grid-list-overview/grid-list-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - -@Component({ - selector: 'grid-list-overview-example', - styleUrls: ['./grid-list-overview-example.css'], - templateUrl: './grid-list-overview-example.html', -}) -export class GridListOverviewExample {} diff --git a/src/app/examples/icon-overview/icon-overview-example.css b/src/app/examples/icon-overview/icon-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/icon-overview/icon-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/icon-overview/icon-overview-example.html b/src/app/examples/icon-overview/icon-overview-example.html deleted file mode 100644 index dd46af80f..000000000 --- a/src/app/examples/icon-overview/icon-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -home diff --git a/src/app/examples/icon-overview/icon-overview-example.ts b/src/app/examples/icon-overview/icon-overview-example.ts deleted file mode 100644 index 90ed28a61..000000000 --- a/src/app/examples/icon-overview/icon-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'icon-overview-example', - templateUrl: './icon-overview-example.html', -}) -export class IconOverviewExample {} diff --git a/src/app/examples/icon-svg-example/icon-svg-example.css b/src/app/examples/icon-svg-example/icon-svg-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/icon-svg-example/icon-svg-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/icon-svg-example/icon-svg-example.html b/src/app/examples/icon-svg-example/icon-svg-example.html deleted file mode 100644 index ac74cf790..000000000 --- a/src/app/examples/icon-svg-example/icon-svg-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/icon-svg-example/icon-svg-example.ts b/src/app/examples/icon-svg-example/icon-svg-example.ts deleted file mode 100644 index b9689b420..000000000 --- a/src/app/examples/icon-svg-example/icon-svg-example.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {Component} from '@angular/core'; -import {DomSanitizer} from '@angular/platform-browser'; -import {MdIconRegistry} from '@angular/material'; - - -@Component({ - selector: 'icon-svg-example', - templateUrl: './icon-svg-example.html', -}) -export class IconSvgExample { - constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) { - iconRegistry.addSvgIcon( - 'thumbs-up', - sanitizer.bypassSecurityTrustResourceUrl('assets/img/examples/thumbup-icon.svg')); - } -} diff --git a/src/app/examples/input-form/input-form-example.css b/src/app/examples/input-form/input-form-example.css deleted file mode 100644 index 269cb291a..000000000 --- a/src/app/examples/input-form/input-form-example.css +++ /dev/null @@ -1,7 +0,0 @@ -.example-form { - width: 500px; -} - -.example-full-width { - width: 100%; -} diff --git a/src/app/examples/input-form/input-form-example.html b/src/app/examples/input-form/input-form-example.html deleted file mode 100644 index 04c3bb5ae..000000000 --- a/src/app/examples/input-form/input-form-example.html +++ /dev/null @@ -1,36 +0,0 @@ -
- - - - - - - -
- - - -
- -

- - - - - - -

- - - - - -
- - - - - - {{postalCode.value.length}} / 5 -
-
diff --git a/src/app/examples/input-form/input-form-example.ts b/src/app/examples/input-form/input-form-example.ts deleted file mode 100644 index 2e209d9f5..000000000 --- a/src/app/examples/input-form/input-form-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'input-form-example', - templateUrl: './input-form-example.html', - styleUrls: ['./input-form-example.css'], -}) -export class InputFormExample {} diff --git a/src/app/examples/input-overview/input-overview-example.css b/src/app/examples/input-overview/input-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/input-overview/input-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/input-overview/input-overview-example.html b/src/app/examples/input-overview/input-overview-example.html deleted file mode 100644 index c864c5d36..000000000 --- a/src/app/examples/input-overview/input-overview-example.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/app/examples/input-overview/input-overview-example.ts b/src/app/examples/input-overview/input-overview-example.ts deleted file mode 100644 index 2bdc3fd6b..000000000 --- a/src/app/examples/input-overview/input-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'input-overview-example', - templateUrl: './input-overview-example.html', -}) -export class InputOverviewExample {} diff --git a/src/app/examples/list-overview/list-overview-example.css b/src/app/examples/list-overview/list-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/list-overview/list-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/list-overview/list-overview-example.html b/src/app/examples/list-overview/list-overview-example.html deleted file mode 100644 index ada715ee0..000000000 --- a/src/app/examples/list-overview/list-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - Item 1 - Item 2 - Item 3 - diff --git a/src/app/examples/list-overview/list-overview-example.ts b/src/app/examples/list-overview/list-overview-example.ts deleted file mode 100644 index f38e18602..000000000 --- a/src/app/examples/list-overview/list-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'list-overview-example', - templateUrl: './list-overview-example.html', -}) -export class ListOverviewExample {} diff --git a/src/app/examples/list-sections/list-sections-example.css b/src/app/examples/list-sections/list-sections-example.css deleted file mode 100644 index 25346c921..000000000 --- a/src/app/examples/list-sections/list-sections-example.css +++ /dev/null @@ -1,3 +0,0 @@ -.mat-list-icon { - color: rgba(0,0,0,0.54); -} \ No newline at end of file diff --git a/src/app/examples/list-sections/list-sections-example.html b/src/app/examples/list-sections/list-sections-example.html deleted file mode 100644 index 38d20f97e..000000000 --- a/src/app/examples/list-sections/list-sections-example.html +++ /dev/null @@ -1,15 +0,0 @@ - -

Folders

- - folder -

{{folder.name}}

-

{{folder.updated | date}}

-
- -

Notes

- - note -

{{note.name}}

-

{{note.updated | date}}

-
-
diff --git a/src/app/examples/list-sections/list-sections-example.ts b/src/app/examples/list-sections/list-sections-example.ts deleted file mode 100644 index d5a20e8f4..000000000 --- a/src/app/examples/list-sections/list-sections-example.ts +++ /dev/null @@ -1,34 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'list-sections-example', - styleUrls: ['./list-sections-example.css'], - templateUrl: './list-sections-example.html', -}) -export class ListSectionsExample { - folders = [ - { - name: 'Photos', - updated: new Date('1/1/16'), - }, - { - name: 'Recipes', - updated: new Date('1/17/16'), - }, - { - name: 'Work', - updated: new Date('1/28/16'), - } - ]; - notes = [ - { - name: 'Vacation Itinerary', - updated: new Date('2/20/16'), - }, - { - name: 'Kitchen Remodel', - updated: new Date('1/18/16'), - } - ]; -} diff --git a/src/app/examples/menu-icons/menu-icons-example.css b/src/app/examples/menu-icons/menu-icons-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/menu-icons/menu-icons-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/menu-icons/menu-icons-example.html b/src/app/examples/menu-icons/menu-icons-example.html deleted file mode 100644 index e14942451..000000000 --- a/src/app/examples/menu-icons/menu-icons-example.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - diff --git a/src/app/examples/menu-icons/menu-icons-example.ts b/src/app/examples/menu-icons/menu-icons-example.ts deleted file mode 100644 index 070bc434b..000000000 --- a/src/app/examples/menu-icons/menu-icons-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'menu-icons-example', - templateUrl: './menu-icons-example.html', -}) -export class MenuIconsExample {} diff --git a/src/app/examples/menu-overview/menu-overview-example.css b/src/app/examples/menu-overview/menu-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/menu-overview/menu-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/menu-overview/menu-overview-example.html b/src/app/examples/menu-overview/menu-overview-example.html deleted file mode 100644 index 2b5d246c2..000000000 --- a/src/app/examples/menu-overview/menu-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/app/examples/menu-overview/menu-overview-example.ts b/src/app/examples/menu-overview/menu-overview-example.ts deleted file mode 100644 index b5b8c8a8d..000000000 --- a/src/app/examples/menu-overview/menu-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'menu-overview-example', - templateUrl: './menu-overview-example.html', -}) -export class MenuOverviewExample {} diff --git a/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.css b/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.css deleted file mode 100644 index 558293fbb..000000000 --- a/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 0 10px; -} diff --git a/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.html b/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.html deleted file mode 100644 index 93937b77a..000000000 --- a/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.html +++ /dev/null @@ -1,63 +0,0 @@ - - -

Progress bar configuration

- -
- - - - Primary - - - Accent - - - Warn - - -
- -
- - - - Determinate - - - Indeterminate - - - Buffer - - - Query - - -
- -
- - -
-
- - -
-
-
- - - -

Result

- -
- - -
-
-
diff --git a/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.ts b/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.ts deleted file mode 100644 index f3fa93782..000000000 --- a/src/app/examples/progress-bar-configurable/progress-bar-configurable-example.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-bar-configurable-example', - templateUrl: './progress-bar-configurable-example.html', - styleUrls: ['./progress-bar-configurable-example.css'], -}) -export class ProgressBarConfigurableExample { - color = 'primary'; - mode = 'determinate'; - value = 50; - bufferValue = 75; -} diff --git a/src/app/examples/progress-bar-overview/progress-bar-overview-example.css b/src/app/examples/progress-bar-overview/progress-bar-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/progress-bar-overview/progress-bar-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/progress-bar-overview/progress-bar-overview-example.html b/src/app/examples/progress-bar-overview/progress-bar-overview-example.html deleted file mode 100644 index 8ab16e9cf..000000000 --- a/src/app/examples/progress-bar-overview/progress-bar-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/progress-bar-overview/progress-bar-overview-example.ts b/src/app/examples/progress-bar-overview/progress-bar-overview-example.ts deleted file mode 100644 index cf11f1cf2..000000000 --- a/src/app/examples/progress-bar-overview/progress-bar-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-bar-overview-example', - templateUrl: './progress-bar-overview-example.html', -}) -export class ProgressBarOverviewExample {} diff --git a/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.css b/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.css deleted file mode 100644 index 558293fbb..000000000 --- a/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 0 10px; -} diff --git a/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.html b/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.html deleted file mode 100644 index 8dcc52802..000000000 --- a/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.html +++ /dev/null @@ -1,49 +0,0 @@ - - -

Progress spinner configuration

- -
- - - - Primary - - - Accent - - - Warn - - -
- -
- - - - Determinate - - - Indeterminate - - -
- -
- - -
-
-
- - -

Result

- - - -
-
diff --git a/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.ts b/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.ts deleted file mode 100644 index b621aaa51..000000000 --- a/src/app/examples/progress-spinner-configurable/progress-spinner-configurable-example.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-spinner-configurable-example', - templateUrl: './progress-spinner-configurable-example.html', - styleUrls: ['./progress-spinner-configurable-example.css'], -}) -export class ProgressSpinnerConfigurableExample { - color = 'primary'; - mode = 'determinate'; - value = 50; -} diff --git a/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.css b/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.html b/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.html deleted file mode 100644 index cd768c673..000000000 --- a/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.ts b/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.ts deleted file mode 100644 index 89cce852a..000000000 --- a/src/app/examples/progress-spinner-overview/progress-spinner-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-spinner-overview-example', - templateUrl: './progress-spinner-overview-example.html', -}) -export class ProgressSpinnerOverviewExample {} diff --git a/src/app/examples/radio-ng-model/radio-ng-model-example.css b/src/app/examples/radio-ng-model/radio-ng-model-example.css deleted file mode 100644 index f70c1b3b5..000000000 --- a/src/app/examples/radio-ng-model/radio-ng-model-example.css +++ /dev/null @@ -1,12 +0,0 @@ -.example-radio-group { - display: inline-flex; - flex-direction: column; -} - -.example-radio-button { - margin: 5px; -} - -.example-selected-value { - margin: 15px 0; -} diff --git a/src/app/examples/radio-ng-model/radio-ng-model-example.html b/src/app/examples/radio-ng-model/radio-ng-model-example.html deleted file mode 100644 index 108971b57..000000000 --- a/src/app/examples/radio-ng-model/radio-ng-model-example.html +++ /dev/null @@ -1,6 +0,0 @@ - - - {{season}} - - -
Your favorite season is: {{favoriteSeason}}
diff --git a/src/app/examples/radio-ng-model/radio-ng-model-example.ts b/src/app/examples/radio-ng-model/radio-ng-model-example.ts deleted file mode 100644 index 42e93bc5d..000000000 --- a/src/app/examples/radio-ng-model/radio-ng-model-example.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'radio-ng-model-example', - templateUrl: './radio-ng-model-example.html', - styleUrls: ['./radio-ng-model-example.css'], -}) -export class RadioNgModelExample { - favoriteSeason: string; - - seasons = [ - 'Winter', - 'Spring', - 'Summer', - 'Autumn', - ]; -} diff --git a/src/app/examples/radio-overview/radio-overview-example.css b/src/app/examples/radio-overview/radio-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/radio-overview/radio-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/radio-overview/radio-overview-example.html b/src/app/examples/radio-overview/radio-overview-example.html deleted file mode 100644 index 4038381cc..000000000 --- a/src/app/examples/radio-overview/radio-overview-example.html +++ /dev/null @@ -1,4 +0,0 @@ - - Option 1 - Option 2 - diff --git a/src/app/examples/radio-overview/radio-overview-example.ts b/src/app/examples/radio-overview/radio-overview-example.ts deleted file mode 100644 index a845835e4..000000000 --- a/src/app/examples/radio-overview/radio-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'radio-overview-example', - templateUrl: './radio-overview-example.html', -}) -export class RadioOverviewExample {} diff --git a/src/app/examples/select-form/select-form-example.css b/src/app/examples/select-form/select-form-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/select-form/select-form-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/select-form/select-form-example.html b/src/app/examples/select-form/select-form-example.html deleted file mode 100644 index 6dea33cc5..000000000 --- a/src/app/examples/select-form/select-form-example.html +++ /dev/null @@ -1,9 +0,0 @@ -
- - - {{food.viewValue}} - - - -

Selected value: {{selectedValue}}

-
diff --git a/src/app/examples/select-form/select-form-example.ts b/src/app/examples/select-form/select-form-example.ts deleted file mode 100644 index 684bf016e..000000000 --- a/src/app/examples/select-form/select-form-example.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'select-form-example', - templateUrl: './select-form-example.html', -}) -export class SelectFormExample { - selectedValue: string; - - foods = [ - {value: 'steak-0', viewValue: 'Steak'}, - {value: 'pizza-1', viewValue: 'Pizza'}, - {value: 'tacos-2', viewValue: 'Tacos'} - ]; -} diff --git a/src/app/examples/select-overview/select-overview-example.css b/src/app/examples/select-overview/select-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/select-overview/select-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/select-overview/select-overview-example.html b/src/app/examples/select-overview/select-overview-example.html deleted file mode 100644 index a4017ca5c..000000000 --- a/src/app/examples/select-overview/select-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - - {{ food.viewValue }} - - diff --git a/src/app/examples/select-overview/select-overview-example.ts b/src/app/examples/select-overview/select-overview-example.ts deleted file mode 100644 index 8162dc7f6..000000000 --- a/src/app/examples/select-overview/select-overview-example.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'select-overview-example', - templateUrl: './select-overview-example.html', -}) -export class SelectOverviewExample { - foods = [ - {value: 'steak-0', viewValue: 'Steak'}, - {value: 'pizza-1', viewValue: 'Pizza'}, - {value: 'tacos-2', viewValue: 'Tacos'} - ]; -} diff --git a/src/app/examples/sidenav-fab/sidenav-fab-example.css b/src/app/examples/sidenav-fab/sidenav-fab-example.css deleted file mode 100644 index 51cdee38f..000000000 --- a/src/app/examples/sidenav-fab/sidenav-fab-example.css +++ /dev/null @@ -1,25 +0,0 @@ -.example-sidenav-fab-container { - width: 500px; - height: 300px; - border: 1px solid rgba(0, 0, 0, 0.5); -} - -.example-sidenav-fab-container md-sidenav { - max-width: 200px; -} - -.example-sidenav-fab-container .mat-sidenav-content, -.example-sidenav-fab-container md-sidenav { - display: flex; - overflow: visible; -} - -.example-scrolling-content { - overflow: auto; -} - -.example-fab { - position: absolute; - right: 20px; - bottom: 10px; -} diff --git a/src/app/examples/sidenav-fab/sidenav-fab-example.html b/src/app/examples/sidenav-fab/sidenav-fab-example.html deleted file mode 100644 index f194c0985..000000000 --- a/src/app/examples/sidenav-fab/sidenav-fab-example.html +++ /dev/null @@ -1,32 +0,0 @@ - - - -
- Lorem ipsum dolor sit amet, pede a libero aenean phasellus, lectus metus sint ut risus, - fusce vel in pellentesque. Nisl rutrum etiam morbi consectetuer tempor magna, aenean nullam - nunc id, neque vivamus interdum sociis nulla scelerisque sem, dolor id wisi turpis magna - aliquam magna. Risus accumsan hac eget etiam donec sed, senectus erat mattis quam, tempor - vel urna occaecat cras, metus urna augue nec at. Et morbi amet dui praesent, nec eu at, - ligula ipsum dui sollicitudin, quis nisl massa viverra ligula, mauris fermentum orci arcu - enim fringilla. Arcu erat nulla in aenean lacinia ullamcorper, urna ante nam et sagittis, - tristique vehicula nibh ipsum vivamus, proin proin. Porta commodo nibh quis libero amet. - Taciti dui, sapien consectetuer. -
-
- -
- Lorem ipsum dolor sit amet, pede a libero aenean phasellus, lectus metus sint ut risus, fusce - vel in pellentesque. Nisl rutrum etiam morbi consectetuer tempor magna, aenean nullam nunc id, - neque vivamus interdum sociis nulla scelerisque sem, dolor id wisi turpis magna aliquam magna. - Risus accumsan hac eget etiam donec sed, senectus erat mattis quam, tempor vel urna occaecat - cras, metus urna augue nec at. Et morbi amet dui praesent, nec eu at, ligula ipsum dui - sollicitudin, quis nisl massa viverra ligula, mauris fermentum orci arcu enim fringilla. Arcu - erat nulla in aenean lacinia ullamcorper, urna ante nam et sagittis, tristique vehicula nibh - ipsum vivamus, proin proin. Porta commodo nibh quis libero amet. Taciti dui, sapien - consectetuer. -
-
diff --git a/src/app/examples/sidenav-fab/sidenav-fab-example.ts b/src/app/examples/sidenav-fab/sidenav-fab-example.ts deleted file mode 100644 index a86050b29..000000000 --- a/src/app/examples/sidenav-fab/sidenav-fab-example.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {Component, ViewEncapsulation} from '@angular/core'; - - -@Component({ - selector: 'sidenav-fab-example', - templateUrl: './sidenav-fab-example.html', - styleUrls: ['./sidenav-fab-example.css'], - encapsulation: ViewEncapsulation.None, -}) -export class SidenavFabExample {} diff --git a/src/app/examples/sidenav-overview/sidenav-overview-example.css b/src/app/examples/sidenav-overview/sidenav-overview-example.css deleted file mode 100644 index 8ab00588b..000000000 --- a/src/app/examples/sidenav-overview/sidenav-overview-example.css +++ /dev/null @@ -1,16 +0,0 @@ -.example-container { - width: 500px; - height: 300px; - border: 1px solid rgba(0, 0, 0, 0.5); -} - -.example-sidenav-content { - display: flex; - height: 100%; - align-items: center; - justify-content: center; -} - -.example-sidenav { - padding: 20px; -} diff --git a/src/app/examples/sidenav-overview/sidenav-overview-example.html b/src/app/examples/sidenav-overview/sidenav-overview-example.html deleted file mode 100644 index 83f34793b..000000000 --- a/src/app/examples/sidenav-overview/sidenav-overview-example.html +++ /dev/null @@ -1,12 +0,0 @@ - - - Jolly good! - - -
- -
- -
diff --git a/src/app/examples/sidenav-overview/sidenav-overview-example.ts b/src/app/examples/sidenav-overview/sidenav-overview-example.ts deleted file mode 100644 index 533802a90..000000000 --- a/src/app/examples/sidenav-overview/sidenav-overview-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'sidenav-overview-example', - templateUrl: './sidenav-overview-example.html', - styleUrls: ['./sidenav-overview-example.css'], -}) -export class SidenavOverviewExample {} diff --git a/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.css b/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.css deleted file mode 100644 index 060532ee7..000000000 --- a/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 10px; -} diff --git a/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.html b/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.html deleted file mode 100644 index 88099f4b0..000000000 --- a/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.html +++ /dev/null @@ -1,44 +0,0 @@ - - -

Slider configuration

- -
- - - - Primary - - - Accent - - - Warn - - -
- -
- Checked -
- -
- Disabled -
-
-
- - - -

Result

- -
- - Slide me! - -
-
-
diff --git a/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.ts b/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.ts deleted file mode 100644 index cfa28cedd..000000000 --- a/src/app/examples/slide-toggle-configurable/slide-toggle-configurable-example.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'slide-toggle-configurable-example', - templateUrl: './slide-toggle-configurable-example.html', - styleUrls: ['./slide-toggle-configurable-example.css'], -}) -export class SlideToggleConfigurableExample { - color = 'accent'; - checked = false; - disabled = false; -} diff --git a/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.css b/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.html b/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.html deleted file mode 100644 index 6b9586e14..000000000 --- a/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Slide me! diff --git a/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.ts b/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.ts deleted file mode 100644 index 0f35c9d5e..000000000 --- a/src/app/examples/slide-toggle-overview/slide-toggle-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'slide-toggle-overview-example', - templateUrl: './slide-toggle-overview-example.html', -}) -export class SlideToggleOverviewExample {} diff --git a/src/app/examples/slider-configurable/slider-configurable-example.css b/src/app/examples/slider-configurable/slider-configurable-example.css deleted file mode 100644 index 1f954ba8b..000000000 --- a/src/app/examples/slider-configurable/slider-configurable-example.css +++ /dev/null @@ -1,22 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 10px; -} - -.mat-slider-horizontal { - width: 300px; -} - -.mat-slider-vertical { - height: 300px; -} diff --git a/src/app/examples/slider-configurable/slider-configurable-example.html b/src/app/examples/slider-configurable/slider-configurable-example.html deleted file mode 100644 index ba886e760..000000000 --- a/src/app/examples/slider-configurable/slider-configurable-example.html +++ /dev/null @@ -1,63 +0,0 @@ - - -

Slider configuration

- -
- - - - - - - - - - - - -
- -
- Show ticks - - Auto ticks - - - - -
- -
- Show thumb label -
- -
- Vertical - Inverted -
- -
- Disabled -
- -
-
- - - -

Result

- - - -
-
diff --git a/src/app/examples/slider-configurable/slider-configurable-example.ts b/src/app/examples/slider-configurable/slider-configurable-example.ts deleted file mode 100644 index 933a9dee7..000000000 --- a/src/app/examples/slider-configurable/slider-configurable-example.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {Component, ViewEncapsulation} from '@angular/core'; - - -@Component({ - selector: 'slider-configurable-example', - templateUrl: './slider-configurable-example.html', - styleUrls: ['./slider-configurable-example.css'], - encapsulation: ViewEncapsulation.None, -}) -export class SliderConfigurableExample { - autoTicks = false; - disabled = false; - invert = false; - max = 100; - min = 0; - showTicks = false; - step = 1; - thumbLabel = false; - value = 0; - vertical = false; - - get tickInterval(): number | 'auto' { - return this.showTicks ? (this.autoTicks ? 'auto' : this._tickInterval) : null; - } - set tickInterval(v) { - this._tickInterval = Number(v); - } - private _tickInterval = 1; -} diff --git a/src/app/examples/slider-overview/slider-overview-example.css b/src/app/examples/slider-overview/slider-overview-example.css deleted file mode 100644 index 8dfe08ccc..000000000 --- a/src/app/examples/slider-overview/slider-overview-example.css +++ /dev/null @@ -1,4 +0,0 @@ -/** No CSS for this example */ -md-slider { - width: 300px; -} diff --git a/src/app/examples/slider-overview/slider-overview-example.html b/src/app/examples/slider-overview/slider-overview-example.html deleted file mode 100644 index 9a92c8f86..000000000 --- a/src/app/examples/slider-overview/slider-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/app/examples/slider-overview/slider-overview-example.ts b/src/app/examples/slider-overview/slider-overview-example.ts deleted file mode 100644 index 1f020fd66..000000000 --- a/src/app/examples/slider-overview/slider-overview-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'slider-overview-example', - templateUrl: './slider-overview-example.html', - styleUrls: ['./slider-overview-example.css'], -}) -export class SliderOverviewExample {} diff --git a/src/app/examples/snack-bar-component/snack-bar-component-example-snack.css b/src/app/examples/snack-bar-component/snack-bar-component-example-snack.css deleted file mode 100644 index fa7dc6749..000000000 --- a/src/app/examples/snack-bar-component/snack-bar-component-example-snack.css +++ /dev/null @@ -1,3 +0,0 @@ -.example-pizza-party { - color: hotpink; -} diff --git a/src/app/examples/snack-bar-component/snack-bar-component-example-snack.html b/src/app/examples/snack-bar-component/snack-bar-component-example-snack.html deleted file mode 100644 index d43b91e9a..000000000 --- a/src/app/examples/snack-bar-component/snack-bar-component-example-snack.html +++ /dev/null @@ -1,3 +0,0 @@ - - 🍕🍕🍕🍕🍕 Pizza party!!! 🍕🍕🍕🍕🍕 - diff --git a/src/app/examples/snack-bar-component/snack-bar-component-example.html b/src/app/examples/snack-bar-component/snack-bar-component-example.html deleted file mode 100644 index 69fe01bc3..000000000 --- a/src/app/examples/snack-bar-component/snack-bar-component-example.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/src/app/examples/snack-bar-component/snack-bar-component-example.ts b/src/app/examples/snack-bar-component/snack-bar-component-example.ts deleted file mode 100644 index 03ef19e8a..000000000 --- a/src/app/examples/snack-bar-component/snack-bar-component-example.ts +++ /dev/null @@ -1,25 +0,0 @@ -import {Component} from '@angular/core'; -import {MdSnackBar} from '@angular/material'; - - -@Component({ - selector: 'snack-bar-component-example', - templateUrl: './snack-bar-component-example.html', -}) -export class SnackBarComponentExample { - constructor(public snackBar: MdSnackBar) {} - - openSnackBar() { - this.snackBar.openFromComponent(PizzaPartyComponent, { - duration: 500, - }); - } -} - - -@Component({ - selector: 'snack-bar-component-example-snack', - templateUrl: './snack-bar-component-example-snack.html', - styleUrls: ['./snack-bar-component-example-snack.css'], -}) -export class PizzaPartyComponent {} diff --git a/src/app/examples/snack-bar-overview/snack-bar-overview-example.css b/src/app/examples/snack-bar-overview/snack-bar-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/snack-bar-overview/snack-bar-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/snack-bar-overview/snack-bar-overview-example.html b/src/app/examples/snack-bar-overview/snack-bar-overview-example.html deleted file mode 100644 index 91cb38c8b..000000000 --- a/src/app/examples/snack-bar-overview/snack-bar-overview-example.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/src/app/examples/snack-bar-overview/snack-bar-overview-example.ts b/src/app/examples/snack-bar-overview/snack-bar-overview-example.ts deleted file mode 100644 index 312de83ea..000000000 --- a/src/app/examples/snack-bar-overview/snack-bar-overview-example.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {Component} from '@angular/core'; -import {MdSnackBar} from '@angular/material'; - - -@Component({ - selector: 'snack-bar-overview-example', - templateUrl: './snack-bar-overview-example.html', -}) -export class SnackBarOverviewExample { - constructor(public snackBar: MdSnackBar) {} - - openSnackBar(message: string, action: string) { - this.snackBar.open(message, action, { - duration: 2000, - }); - } -} diff --git a/src/app/examples/tabs-overview/tabs-overview-example.css b/src/app/examples/tabs-overview/tabs-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/tabs-overview/tabs-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/tabs-overview/tabs-overview-example.html b/src/app/examples/tabs-overview/tabs-overview-example.html deleted file mode 100644 index 173ece5dc..000000000 --- a/src/app/examples/tabs-overview/tabs-overview-example.html +++ /dev/null @@ -1,4 +0,0 @@ - - Content 1 - Content 2 - diff --git a/src/app/examples/tabs-overview/tabs-overview-example.ts b/src/app/examples/tabs-overview/tabs-overview-example.ts deleted file mode 100644 index 4f222c112..000000000 --- a/src/app/examples/tabs-overview/tabs-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tabs-overview-example', - templateUrl: './tabs-overview-example.html', -}) -export class TabsOverviewExample {} diff --git a/src/app/examples/tabs-template-label/tabs-template-label-example.css b/src/app/examples/tabs-template-label/tabs-template-label-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/tabs-template-label/tabs-template-label-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/tabs-template-label/tabs-template-label-example.html b/src/app/examples/tabs-template-label/tabs-template-label-example.html deleted file mode 100644 index bde67b8e9..000000000 --- a/src/app/examples/tabs-template-label/tabs-template-label-example.html +++ /dev/null @@ -1 +0,0 @@ -More examples coming soon! diff --git a/src/app/examples/tabs-template-label/tabs-template-label-example.ts b/src/app/examples/tabs-template-label/tabs-template-label-example.ts deleted file mode 100644 index 7015b1f74..000000000 --- a/src/app/examples/tabs-template-label/tabs-template-label-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tabs-template-label-example', - templateUrl: './tabs-template-label-example.html', -}) -export class TabsTemplateLabelExample {} diff --git a/src/app/examples/toolbar-multirow/toolbar-multirow-example.css b/src/app/examples/toolbar-multirow/toolbar-multirow-example.css deleted file mode 100644 index d7c40156b..000000000 --- a/src/app/examples/toolbar-multirow/toolbar-multirow-example.css +++ /dev/null @@ -1,7 +0,0 @@ -.example-icon { - padding: 0 14px; -} - -.example-spacer { - flex: 1 1 auto; -} diff --git a/src/app/examples/toolbar-multirow/toolbar-multirow-example.html b/src/app/examples/toolbar-multirow/toolbar-multirow-example.html deleted file mode 100644 index 9b178a212..000000000 --- a/src/app/examples/toolbar-multirow/toolbar-multirow-example.html +++ /dev/null @@ -1,16 +0,0 @@ - - Custom Toolbar - - - Second Line - - verified_user - - - - Third Line - - favorite - delete - - diff --git a/src/app/examples/toolbar-multirow/toolbar-multirow-example.ts b/src/app/examples/toolbar-multirow/toolbar-multirow-example.ts deleted file mode 100644 index 132b98174..000000000 --- a/src/app/examples/toolbar-multirow/toolbar-multirow-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'toolbar-multirow-example', - templateUrl: './toolbar-multirow-example.html', - styleUrls: ['./toolbar-multirow-example.css'], -}) -export class ToolbarMultirowExample {} diff --git a/src/app/examples/toolbar-overview/toolbar-overview-example.css b/src/app/examples/toolbar-overview/toolbar-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/toolbar-overview/toolbar-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/toolbar-overview/toolbar-overview-example.html b/src/app/examples/toolbar-overview/toolbar-overview-example.html deleted file mode 100644 index bf8cc3998..000000000 --- a/src/app/examples/toolbar-overview/toolbar-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -My App diff --git a/src/app/examples/toolbar-overview/toolbar-overview-example.ts b/src/app/examples/toolbar-overview/toolbar-overview-example.ts deleted file mode 100644 index 6919aca4f..000000000 --- a/src/app/examples/toolbar-overview/toolbar-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'toolbar-overview-example', - templateUrl: './toolbar-overview-example.html', -}) -export class ToolbarOverviewExample {} diff --git a/src/app/examples/tooltip-overview/tooltip-overview-example.css b/src/app/examples/tooltip-overview/tooltip-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/app/examples/tooltip-overview/tooltip-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/app/examples/tooltip-overview/tooltip-overview-example.html b/src/app/examples/tooltip-overview/tooltip-overview-example.html deleted file mode 100644 index 8319a8545..000000000 --- a/src/app/examples/tooltip-overview/tooltip-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -I have a tooltip diff --git a/src/app/examples/tooltip-overview/tooltip-overview-example.ts b/src/app/examples/tooltip-overview/tooltip-overview-example.ts deleted file mode 100644 index cf9eefc94..000000000 --- a/src/app/examples/tooltip-overview/tooltip-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tooltip-overview-example', - templateUrl: './tooltip-overview-example.html', -}) -export class TooltipOverviewExample {} diff --git a/src/app/examples/tooltip-position/tooltip-position-example.css b/src/app/examples/tooltip-position/tooltip-position-example.css deleted file mode 100644 index 04ec59dd1..000000000 --- a/src/app/examples/tooltip-position/tooltip-position-example.css +++ /dev/null @@ -1,9 +0,0 @@ -.example-tooltip-host { - display: inline-flex; - align-items: center; - margin: 50px; -} - -.example-select { - margin: 0 10px; -} diff --git a/src/app/examples/tooltip-position/tooltip-position-example.html b/src/app/examples/tooltip-position/tooltip-position-example.html deleted file mode 100644 index 156a5bf68..000000000 --- a/src/app/examples/tooltip-position/tooltip-position-example.html +++ /dev/null @@ -1,11 +0,0 @@ -
- Show tooltip - - Before - After - Above - Below - Left - Right - -
diff --git a/src/app/examples/tooltip-position/tooltip-position-example.ts b/src/app/examples/tooltip-position/tooltip-position-example.ts deleted file mode 100644 index 0b580c722..000000000 --- a/src/app/examples/tooltip-position/tooltip-position-example.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tooltip-position-example', - templateUrl: './tooltip-position-example.html', - styleUrls: ['./tooltip-position-example.css'], -}) -export class TooltipPositionExample { - position = 'before'; -} diff --git a/src/app/shared/example-viewer/example-viewer.spec.ts b/src/app/shared/example-viewer/example-viewer.spec.ts index ec5af76f5..fb359e737 100644 --- a/src/app/shared/example-viewer/example-viewer.spec.ts +++ b/src/app/shared/example-viewer/example-viewer.spec.ts @@ -1,13 +1,12 @@ -import {NgModule, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; +import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {CommonModule} from '@angular/common'; import {ReactiveFormsModule} from '@angular/forms'; -import {async, TestBed, ComponentFixture} from '@angular/core/testing'; +import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {Http} from '@angular/http'; -import {MaterialModule, ComponentPortal} from '@angular/material'; +import {MaterialModule} from '@angular/material'; -import {AutocompleteOverviewExample} from '../../examples/autocomplete-overview/autocomplete-overview-example'; -import {EXAMPLE_COMPONENTS} from '../../examples/example-module'; +import {EXAMPLE_COMPONENTS, ExampleModule, LiveExample} from '@angular/material-examples'; import {ExampleViewer} from './example-viewer'; const exampleComponentString = 'autocomplete-overview'; @@ -16,14 +15,13 @@ const exampleComponentString = 'autocomplete-overview'; // Required for the set example function @NgModule({ imports: [ + ExampleModule, BrowserAnimationsModule, CommonModule, MaterialModule, ReactiveFormsModule, ], schemas: [CUSTOM_ELEMENTS_SCHEMA], - declarations: [AutocompleteOverviewExample], - entryComponents: [AutocompleteOverviewExample] }) class TestAutocompleteOverviewModule { } @@ -62,7 +60,8 @@ describe('ExampleViewer', () => { component.example = exampleComponentString; fixture.detectChanges(); const data = component.exampleData; - expect(data).toEqual(EXAMPLE_COMPONENTS[exampleComponentString]); + // TODO(jelbourn): remove `as any` once LiveExample is updated to hve optional members. + expect(data).toEqual(EXAMPLE_COMPONENTS[exampleComponentString] as any); }); it('should log message about missing example', () => { diff --git a/src/app/shared/example-viewer/example-viewer.ts b/src/app/shared/example-viewer/example-viewer.ts index 490b544f2..0bf075fad 100644 --- a/src/app/shared/example-viewer/example-viewer.ts +++ b/src/app/shared/example-viewer/example-viewer.ts @@ -3,7 +3,7 @@ import {Http} from '@angular/http'; import {ComponentPortal} from '@angular/material'; import 'rxjs/add/operator/first'; -import {EXAMPLE_COMPONENTS, LiveExample} from '../../examples/example-module'; +import {EXAMPLE_COMPONENTS, LiveExample} from '@angular/material-examples'; @Component({ diff --git a/src/app/shared/plunker/plunker-button.ts b/src/app/shared/plunker/plunker-button.ts index 5ff365790..8a3c10db7 100644 --- a/src/app/shared/plunker/plunker-button.ts +++ b/src/app/shared/plunker/plunker-button.ts @@ -1,6 +1,6 @@ -import { Component, Input } from '@angular/core'; -import { PlunkerWriter } from './plunker-writer'; -import { ExampleData } from '../../examples/example-data'; +import {Component, Input} from '@angular/core'; +import {PlunkerWriter} from './plunker-writer'; +import {ExampleData} from '@angular/material-examples'; @Component({ selector: 'plunker-button', diff --git a/src/app/shared/plunker/plunker-writer.spec.ts b/src/app/shared/plunker/plunker-writer.spec.ts index b312f69f2..937c1405b 100644 --- a/src/app/shared/plunker/plunker-writer.spec.ts +++ b/src/app/shared/plunker/plunker-writer.spec.ts @@ -2,7 +2,7 @@ import {TestBed, inject, async, flushMicrotasks, fakeAsync} from '@angular/core/ import {MockBackend} from '@angular/http/testing'; import {BaseRequestOptions, Http, Response, ResponseOptions, XHRBackend} from '@angular/http'; import {PlunkerWriter} from './plunker-writer'; -import {ExampleData} from '../../examples/example-data'; +import {ExampleData} from '@angular/material-examples'; describe('PlunkerWriter', () => { diff --git a/src/app/shared/plunker/plunker-writer.ts b/src/app/shared/plunker/plunker-writer.ts index df6a9bde2..9ea1575a4 100644 --- a/src/app/shared/plunker/plunker-writer.ts +++ b/src/app/shared/plunker/plunker-writer.ts @@ -1,6 +1,6 @@ -import { Injectable } from '@angular/core'; -import { Http } from '@angular/http'; -import { ExampleData } from '../../examples/example-data'; +import {Injectable} from '@angular/core'; +import {Http} from '@angular/http'; +import {ExampleData} from '@angular/material-examples'; import 'rxjs/add/operator/toPromise'; const PLUNKER_URL = 'https://plnkr.co/edit/?p=preview'; diff --git a/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.css b/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.html b/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.html deleted file mode 100644 index e5217f9c2..000000000 --- a/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - {{ state }} - - \ No newline at end of file diff --git a/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.ts b/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.ts deleted file mode 100644 index fc2ca560b..000000000 --- a/src/assets/plunker/examples/autocomplete-overview/autocomplete-overview-example.ts +++ /dev/null @@ -1,80 +0,0 @@ -import {Component} from '@angular/core'; -import {FormControl} from '@angular/forms'; - -import 'rxjs/add/operator/startWith'; -import 'rxjs/add/operator/map'; - -@Component({ - selector: 'autocomplete-overview-example', - templateUrl: './autocomplete-overview-example.html', -}) -export class AutocompleteOverviewExample { - stateCtrl: FormControl; - filteredStates: any; - - states = [ - 'Alabama', - 'Alaska', - 'Arizona', - 'Arkansas', - 'California', - 'Colorado', - 'Connecticut', - 'Delaware', - 'Florida', - 'Georgia', - 'Hawaii', - 'Idaho', - 'Illinois', - 'Indiana', - 'Iowa', - 'Kansas', - 'Kentucky', - 'Louisiana', - 'Maine', - 'Maryland', - 'Massachusetts', - 'Michigan', - 'Minnesota', - 'Mississippi', - 'Missouri', - 'Montana', - 'Nebraska', - 'Nevada', - 'New Hampshire', - 'New Jersey', - 'New Mexico', - 'New York', - 'North Carolina', - 'North Dakota', - 'Ohio', - 'Oklahoma', - 'Oregon', - 'Pennsylvania', - 'Rhode Island', - 'South Carolina', - 'South Dakota', - 'Tennessee', - 'Texas', - 'Utah', - 'Vermont', - 'Virginia', - 'Washington', - 'West Virginia', - 'Wisconsin', - 'Wyoming', - ]; - - constructor() { - this.stateCtrl = new FormControl(); - this.filteredStates = this.stateCtrl.valueChanges - .startWith(null) - .map(name => this.filterStates(name)); - } - - filterStates(val: string) { - return val ? this.states.filter(s => new RegExp(`^${val}`, 'gi').test(s)) - : this.states; - } - -} diff --git a/src/assets/plunker/examples/button-overview/button-overview-example.css b/src/assets/plunker/examples/button-overview/button-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/button-overview/button-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/button-overview/button-overview-example.html b/src/assets/plunker/examples/button-overview/button-overview-example.html deleted file mode 100644 index 56f6fa44f..000000000 --- a/src/assets/plunker/examples/button-overview/button-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/button-overview/button-overview-example.ts b/src/assets/plunker/examples/button-overview/button-overview-example.ts deleted file mode 100644 index 41a52022f..000000000 --- a/src/assets/plunker/examples/button-overview/button-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-overview-example', - templateUrl: './button-overview-example.html', -}) -export class ButtonOverviewExample {} diff --git a/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.css b/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.css deleted file mode 100644 index d21ca3ce5..000000000 --- a/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.css +++ /dev/null @@ -1,3 +0,0 @@ -.example-selected-value { - margin: 15px 0; -} diff --git a/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.html b/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.html deleted file mode 100644 index dd5cd2771..000000000 --- a/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.html +++ /dev/null @@ -1,15 +0,0 @@ - - - format_align_left - - - format_align_center - - - format_align_right - - - format_align_justify - - -
Selected value: {{group.value}}
diff --git a/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.ts b/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.ts deleted file mode 100644 index d014b8a28..000000000 --- a/src/assets/plunker/examples/button-toggle-exclusive/button-toggle-exclusive-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-toggle-exclusive-example', - templateUrl: './button-toggle-exclusive-example.html', - styleUrls: ['./button-toggle-exclusive-example.css'], -}) -export class ButtonToggleExclusiveExample {} diff --git a/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.css b/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.html b/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.html deleted file mode 100644 index bb215d5b5..000000000 --- a/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Toggle me! diff --git a/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.ts b/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.ts deleted file mode 100644 index 38a4afd05..000000000 --- a/src/assets/plunker/examples/button-toggle-overview/button-toggle-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-toggle-overview-example', - templateUrl: './button-toggle-overview-example.html', -}) -export class ButtonToggleOverviewExample {} diff --git a/src/assets/plunker/examples/button-types/button-types-example.css b/src/assets/plunker/examples/button-types/button-types-example.css deleted file mode 100644 index b0b34952f..000000000 --- a/src/assets/plunker/examples/button-types/button-types-example.css +++ /dev/null @@ -1,9 +0,0 @@ -.example-container { - width: 500px; -} - -.example-button-row { - display: flex; - align-items: center; - justify-content: space-around; -} diff --git a/src/assets/plunker/examples/button-types/button-types-example.html b/src/assets/plunker/examples/button-types/button-types-example.html deleted file mode 100644 index 4c5783de9..000000000 --- a/src/assets/plunker/examples/button-types/button-types-example.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

Normal Buttons

-
- - - - -
- -

Link Buttons

- -
diff --git a/src/assets/plunker/examples/button-types/button-types-example.ts b/src/assets/plunker/examples/button-types/button-types-example.ts deleted file mode 100644 index 9dbb329f1..000000000 --- a/src/assets/plunker/examples/button-types/button-types-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'button-types-example', - templateUrl: './button-types-example.html', - styleUrls: ['./button-types-example.css'], -}) -export class ButtonTypesExample {} diff --git a/src/assets/plunker/examples/card-fancy/card-fancy-example.css b/src/assets/plunker/examples/card-fancy/card-fancy-example.css deleted file mode 100644 index 6a2f0a625..000000000 --- a/src/assets/plunker/examples/card-fancy/card-fancy-example.css +++ /dev/null @@ -1,8 +0,0 @@ -.example-card { - width: 400px; -} - -.example-header-image { - background-image: url('../../../assets/img/examples/shiba1.jpg'); - background-size: cover; -} diff --git a/src/assets/plunker/examples/card-fancy/card-fancy-example.html b/src/assets/plunker/examples/card-fancy/card-fancy-example.html deleted file mode 100644 index 07d25dfb8..000000000 --- a/src/assets/plunker/examples/card-fancy/card-fancy-example.html +++ /dev/null @@ -1,19 +0,0 @@ - - -
- Shiba Inu - Dog Breed -
- - -

- The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan. - A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally - bred for hunting. -

-
- - - - -
diff --git a/src/assets/plunker/examples/card-fancy/card-fancy-example.ts b/src/assets/plunker/examples/card-fancy/card-fancy-example.ts deleted file mode 100644 index 8e19840d7..000000000 --- a/src/assets/plunker/examples/card-fancy/card-fancy-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'card-fancy-example', - templateUrl: './card-fancy-example.html', - styleUrls: ['./card-fancy-example.css'], -}) -export class CardFancyExample {} diff --git a/src/assets/plunker/examples/card-overview/card-overview-example.css b/src/assets/plunker/examples/card-overview/card-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/card-overview/card-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/card-overview/card-overview-example.html b/src/assets/plunker/examples/card-overview/card-overview-example.html deleted file mode 100644 index 5e0c2b6df..000000000 --- a/src/assets/plunker/examples/card-overview/card-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Simple card diff --git a/src/assets/plunker/examples/card-overview/card-overview-example.ts b/src/assets/plunker/examples/card-overview/card-overview-example.ts deleted file mode 100644 index 55fc9a690..000000000 --- a/src/assets/plunker/examples/card-overview/card-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'card-overview-example', - templateUrl: './card-overview-example.html', -}) -export class CardOverviewExample {} diff --git a/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.css b/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.css deleted file mode 100644 index 558293fbb..000000000 --- a/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 0 10px; -} diff --git a/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.html b/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.html deleted file mode 100644 index 5876c05c6..000000000 --- a/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.html +++ /dev/null @@ -1,40 +0,0 @@ - - -

Checkbox configuration

- -
- Checked - Indeterminate -
- -
- - - Start - End - -
- -
- Disabled -
-
-
- - - -

Result

- -
- - I'm a checkbox - -
-
-
- diff --git a/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.ts b/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.ts deleted file mode 100644 index 2c0149199..000000000 --- a/src/assets/plunker/examples/checkbox-configurable/checkbox-configurable-example.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'checkbox-configurable-example', - templateUrl: './checkbox-configurable-example.html', - styleUrls: ['./checkbox-configurable-example.css'], -}) -export class CheckboxConfigurableExample { - checked = false; - indeterminate = false; - align = 'start'; - disabled = false; -} diff --git a/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.css b/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.html b/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.html deleted file mode 100644 index c301bbe5c..000000000 --- a/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Check me! diff --git a/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.ts b/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.ts deleted file mode 100644 index be9aefc59..000000000 --- a/src/assets/plunker/examples/checkbox-overview/checkbox-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'checkbox-overview-example', - templateUrl: './checkbox-overview-example.html', -}) -export class CheckboxOverviewExample {} diff --git a/src/assets/plunker/examples/chips-overview/chips-overview-example.css b/src/assets/plunker/examples/chips-overview/chips-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/chips-overview/chips-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/chips-overview/chips-overview-example.html b/src/assets/plunker/examples/chips-overview/chips-overview-example.html deleted file mode 100644 index bb0410569..000000000 --- a/src/assets/plunker/examples/chips-overview/chips-overview-example.html +++ /dev/null @@ -1,6 +0,0 @@ - - One fish - Two fish - Primary fish - Accent fish - diff --git a/src/assets/plunker/examples/chips-overview/chips-overview-example.ts b/src/assets/plunker/examples/chips-overview/chips-overview-example.ts deleted file mode 100644 index fa1bbf7c1..000000000 --- a/src/assets/plunker/examples/chips-overview/chips-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'chips-overview-example', - templateUrl: './chips-overview-example.html', -}) -export class ChipsOverviewExample {} diff --git a/src/assets/plunker/examples/chips-stacked/chips-stacked-example.css b/src/assets/plunker/examples/chips-stacked/chips-stacked-example.css deleted file mode 100644 index dfb2f8c00..000000000 --- a/src/assets/plunker/examples/chips-stacked/chips-stacked-example.css +++ /dev/null @@ -1,3 +0,0 @@ -md-chip { - max-width: 200px; -} diff --git a/src/assets/plunker/examples/chips-stacked/chips-stacked-example.html b/src/assets/plunker/examples/chips-stacked/chips-stacked-example.html deleted file mode 100644 index 27677b1c6..000000000 --- a/src/assets/plunker/examples/chips-stacked/chips-stacked-example.html +++ /dev/null @@ -1,7 +0,0 @@ - - - {{chipColor.name}} - - diff --git a/src/assets/plunker/examples/chips-stacked/chips-stacked-example.ts b/src/assets/plunker/examples/chips-stacked/chips-stacked-example.ts deleted file mode 100644 index 8c48ccc92..000000000 --- a/src/assets/plunker/examples/chips-stacked/chips-stacked-example.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'chips-stacked-example', - templateUrl: './chips-stacked-example.html', - styleUrls: ['./chips-stacked-example.css'], -}) -export class ChipsStackedExample { - color: string; - - availableColors = [ - { name: 'none', color: '' }, - { name: 'Primary', color: 'primary' }, - { name: 'Accent', color: 'accent' }, - { name: 'Warn', color: 'warn' } - ]; -} diff --git a/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.css b/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.html b/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.html deleted file mode 100644 index 3dbb917b0..000000000 --- a/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.ts b/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.ts deleted file mode 100644 index 51fce60b5..000000000 --- a/src/assets/plunker/examples/datepicker-overview/datepicker-overview-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'datepicker-overview-example', - templateUrl: './datepicker-overview-example.html', - styleUrls: ['./datepicker-overview-example.css'], -}) -export class DatepickerOverviewExample {} diff --git a/src/assets/plunker/examples/dialog-elements/dialog-elements-example-dialog.html b/src/assets/plunker/examples/dialog-elements/dialog-elements-example-dialog.html deleted file mode 100644 index 5238b0eb6..000000000 --- a/src/assets/plunker/examples/dialog-elements/dialog-elements-example-dialog.html +++ /dev/null @@ -1,5 +0,0 @@ -

Dialog with elements

-
This dialog showcases the title, close, content and actions elements.
-
- -
diff --git a/src/assets/plunker/examples/dialog-elements/dialog-elements-example.css b/src/assets/plunker/examples/dialog-elements/dialog-elements-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/dialog-elements/dialog-elements-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/dialog-elements/dialog-elements-example.html b/src/assets/plunker/examples/dialog-elements/dialog-elements-example.html deleted file mode 100644 index 40637c4bd..000000000 --- a/src/assets/plunker/examples/dialog-elements/dialog-elements-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/dialog-elements/dialog-elements-example.ts b/src/assets/plunker/examples/dialog-elements/dialog-elements-example.ts deleted file mode 100644 index aba941a57..000000000 --- a/src/assets/plunker/examples/dialog-elements/dialog-elements-example.ts +++ /dev/null @@ -1,22 +0,0 @@ -import {Component} from '@angular/core'; -import {MdDialog} from '@angular/material'; - - -@Component({ - selector: 'dialog-elements-example', - templateUrl: './dialog-elements-example.html', -}) -export class DialogElementsExample { - constructor(public dialog: MdDialog) { } - - openDialog() { - this.dialog.open(DialogElementsExampleDialog); - } -} - - -@Component({ - selector: 'dialog-elements-example-dialog', - templateUrl: './dialog-elements-example-dialog.html', -}) -export class DialogElementsExampleDialog { } diff --git a/src/assets/plunker/examples/dialog-overview/dialog-overview-example-dialog.html b/src/assets/plunker/examples/dialog-overview/dialog-overview-example-dialog.html deleted file mode 100644 index 751e1339b..000000000 --- a/src/assets/plunker/examples/dialog-overview/dialog-overview-example-dialog.html +++ /dev/null @@ -1 +0,0 @@ -

Hi, I'm a dialog!

diff --git a/src/assets/plunker/examples/dialog-overview/dialog-overview-example.css b/src/assets/plunker/examples/dialog-overview/dialog-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/dialog-overview/dialog-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/dialog-overview/dialog-overview-example.html b/src/assets/plunker/examples/dialog-overview/dialog-overview-example.html deleted file mode 100644 index 176a3c411..000000000 --- a/src/assets/plunker/examples/dialog-overview/dialog-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/dialog-overview/dialog-overview-example.ts b/src/assets/plunker/examples/dialog-overview/dialog-overview-example.ts deleted file mode 100644 index 9bc9882ac..000000000 --- a/src/assets/plunker/examples/dialog-overview/dialog-overview-example.ts +++ /dev/null @@ -1,22 +0,0 @@ -import {Component} from '@angular/core'; -import {MdDialog} from '@angular/material'; - - -@Component({ - selector: 'dialog-overview-example', - templateUrl: './dialog-overview-example.html', -}) -export class DialogOverviewExample { - constructor(public dialog: MdDialog) {} - - openDialog() { - this.dialog.open(DialogOverviewExampleDialog); - } -} - - -@Component({ - selector: 'dialog-overview-example-dialog', - templateUrl: './dialog-overview-example-dialog.html', -}) -export class DialogOverviewExampleDialog {} diff --git a/src/assets/plunker/examples/dialog-result/dialog-result-example-dialog.html b/src/assets/plunker/examples/dialog-result/dialog-result-example-dialog.html deleted file mode 100644 index 0e4dd6339..000000000 --- a/src/assets/plunker/examples/dialog-result/dialog-result-example-dialog.html +++ /dev/null @@ -1,6 +0,0 @@ -

Dialog

-
What would you like to do?
-
- - -
diff --git a/src/assets/plunker/examples/dialog-result/dialog-result-example.css b/src/assets/plunker/examples/dialog-result/dialog-result-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/dialog-result/dialog-result-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/dialog-result/dialog-result-example.html b/src/assets/plunker/examples/dialog-result/dialog-result-example.html deleted file mode 100644 index 04850b42d..000000000 --- a/src/assets/plunker/examples/dialog-result/dialog-result-example.html +++ /dev/null @@ -1,2 +0,0 @@ - -You chose: {{selectedOption}} diff --git a/src/assets/plunker/examples/dialog-result/dialog-result-example.ts b/src/assets/plunker/examples/dialog-result/dialog-result-example.ts deleted file mode 100644 index ec25f92f1..000000000 --- a/src/assets/plunker/examples/dialog-result/dialog-result-example.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {Component} from '@angular/core'; -import {MdDialog, MdDialogRef} from '@angular/material'; - - -@Component({ - selector: 'dialog-result-example', - templateUrl: './dialog-result-example.html', -}) -export class DialogResultExample { - selectedOption: string; - - constructor(public dialog: MdDialog) {} - - openDialog() { - let dialogRef = this.dialog.open(DialogResultExampleDialog); - dialogRef.afterClosed().subscribe(result => { - this.selectedOption = result; - }); - } -} - - -@Component({ - selector: 'dialog-result-example-dialog', - templateUrl: './dialog-result-example-dialog.html', -}) -export class DialogResultExampleDialog { - constructor(public dialogRef: MdDialogRef) {} -} diff --git a/src/assets/plunker/examples/example-data.ts b/src/assets/plunker/examples/example-data.ts deleted file mode 100644 index 3dd2b5a3e..000000000 --- a/src/assets/plunker/examples/example-data.ts +++ /dev/null @@ -1,46 +0,0 @@ -import {EXAMPLE_COMPONENTS} from './example-module'; - - -/** - * Example data - * with information about Component name, selector, files used in example, and path to examples - */ -export class ExampleData { - // TODO: figure out how do we get these variables. - description: string = 'Some description for material'; - // TODO: use real example and delete the example/ folder. - examplePath = '/assets/example/'; - exampleFiles = ['button-demo.html', 'button-demo.scss', 'button-demo.ts']; - - // TODO: extract these variables from example code. - selectorName = 'button-demo'; - indexFilename = 'button-demo'; - componentName = 'ButtonDemo'; - - constructor(example: string) { - if (example && EXAMPLE_COMPONENTS[example]) { - this.examplePath = `/assets/plunker/examples/${example}/`; - // TODO(tinayuangao): Do not hard-code extensions - this.exampleFiles = ['html', 'ts', 'css'] - .map((extension) => `${example}-example.${extension}`); - if (EXAMPLE_COMPONENTS[example].additionalFiles) { - this.exampleFiles = this.exampleFiles.concat(EXAMPLE_COMPONENTS[example].additionalFiles); - } - this.selectorName = this.indexFilename = `${example}-example`; - - let exampleName = example.replace(/(?:^\w|\b\w)/g, letter => letter.toUpperCase()); - - if (EXAMPLE_COMPONENTS[example].title) { - this.description = EXAMPLE_COMPONENTS[example].title; - } else { - this.description = exampleName.replace(/[\-]+/g, ' ') + ' Example'; - } - - if (EXAMPLE_COMPONENTS[example].selectorName) { - this.componentName = EXAMPLE_COMPONENTS[example].selectorName; - } else { - this.componentName = exampleName.replace(/[\-]+/g, '') + 'Example'; - } - } - } -} diff --git a/src/assets/plunker/examples/example-module.ts b/src/assets/plunker/examples/example-module.ts deleted file mode 100644 index 9c1b974af..000000000 --- a/src/assets/plunker/examples/example-module.ts +++ /dev/null @@ -1,236 +0,0 @@ -import {NgModule} from '@angular/core'; -import {FormsModule, ReactiveFormsModule} from '@angular/forms'; -import {CommonModule} from '@angular/common'; -import {MaterialModule} from '@angular/material'; -import {AutocompleteOverviewExample} from './autocomplete-overview/autocomplete-overview-example'; -import {ButtonOverviewExample} from './button-overview/button-overview-example'; -import {ButtonTypesExample} from './button-types/button-types-example'; -import {CheckboxOverviewExample} from './checkbox-overview/checkbox-overview-example'; -import {SliderConfigurableExample} from './slider-configurable/slider-configurable-example'; -import {TabsOverviewExample} from './tabs-overview/tabs-overview-example'; -import { - PizzaPartyComponent, - SnackBarComponentExample -} from './snack-bar-component/snack-bar-component-example'; -import { - ProgressBarConfigurableExample -} from './progress-bar-configurable/progress-bar-configurable-example'; -import { - DialogOverviewExampleDialog, - DialogOverviewExample -} from './dialog-overview/dialog-overview-example'; -import {RadioNgModelExample} from './radio-ng-model/radio-ng-model-example'; -import {CardFancyExample} from './card-fancy/card-fancy-example'; -import {ToolbarOverviewExample} from './toolbar-overview/toolbar-overview-example'; -import {ToolbarMultirowExample} from './toolbar-multirow/toolbar-multirow-example'; -import {MenuIconsExample} from './menu-icons/menu-icons-example'; -import {GridListDynamicExample} from './grid-list-dynamic/grid-list-dynamic-example'; -import {IconOverviewExample} from './icon-overview/icon-overview-example'; -import {ProgressBarOverviewExample} from './progress-bar-overview/progress-bar-overview-example'; -import {SlideToggleOverviewExample} from './slide-toggle-overview/slide-toggle-overview-example'; -import {InputOverviewExample} from './input-overview/input-overview-example'; -import {MenuOverviewExample} from './menu-overview/menu-overview-example'; -import {CheckboxConfigurableExample} from './checkbox-configurable/checkbox-configurable-example'; -import { - ButtonToggleExclusiveExample -} from './button-toggle-exclusive/button-toggle-exclusive-example'; -import {ListSectionsExample} from './list-sections/list-sections-example'; -import {SnackBarOverviewExample} from './snack-bar-overview/snack-bar-overview-example'; -import { - DialogResultExampleDialog, - DialogResultExample -} from './dialog-result/dialog-result-example'; -import { - DialogElementsExampleDialog, - DialogElementsExample -} from './dialog-elements/dialog-elements-example'; -import {TooltipOverviewExample} from './tooltip-overview/tooltip-overview-example'; -import {ButtonToggleOverviewExample} from './button-toggle-overview/button-toggle-overview-example'; -import {GridListOverviewExample} from './grid-list-overview/grid-list-overview-example'; -import {TooltipPositionExample} from './tooltip-position/tooltip-position-example'; -import { - ProgressSpinnerConfigurableExample -} from './progress-spinner-configurable/progress-spinner-configurable-example'; -import {InputFormExample} from './input-form/input-form-example'; -import {ListOverviewExample} from './list-overview/list-overview-example'; -import {SliderOverviewExample} from './slider-overview/slider-overview-example'; -import { - SlideToggleConfigurableExample -} from './slide-toggle-configurable/slide-toggle-configurable-example'; -import {IconSvgExample} from './icon-svg-example/icon-svg-example'; -import {SidenavFabExample} from './sidenav-fab/sidenav-fab-example'; -import {CardOverviewExample} from './card-overview/card-overview-example'; -import { - ProgressSpinnerOverviewExample -} from './progress-spinner-overview/progress-spinner-overview-example'; -import {TabsTemplateLabelExample} from './tabs-template-label/tabs-template-label-example'; -import {RadioOverviewExample} from './radio-overview/radio-overview-example'; -import {SidenavOverviewExample} from './sidenav-overview/sidenav-overview-example'; -import {SelectOverviewExample} from './select-overview/select-overview-example'; -import {ChipsOverviewExample} from './chips-overview/chips-overview-example'; -import {ChipsStackedExample} from './chips-stacked/chips-stacked-example'; -import {SelectFormExample} from './select-form/select-form-example'; - - -export interface LiveExample { - title: string; - component: any; - additionalFiles: string[]; - selectorName: string; -} - -/** - * The list of example components. - * Key is the example name which will be used in `material-docs-example="key"`. - * Value is the component. - */ -export const EXAMPLE_COMPONENTS = { - 'autocomplete-overview': {title: 'Basic autocomplete', component: AutocompleteOverviewExample}, - 'button-overview': {title: 'Basic buttons', component: ButtonOverviewExample}, - 'button-types': {title: 'Button varieties', component: ButtonTypesExample}, - 'button-toggle-exclusive': { - title: 'Exclusive selection', - component: ButtonToggleExclusiveExample - }, - 'button-toggle-overview': {title: 'Basic button-toggles', component: ButtonToggleOverviewExample}, - 'chips-overview': {title: 'Basic chips', component: ChipsOverviewExample}, - 'chips-stacked': {title: 'Stacked chips', component: ChipsStackedExample}, - 'card-fancy': {title: 'Card with multiple sections', component: CardFancyExample}, - 'card-overview': {title: 'Basic cards', component: CardOverviewExample}, - 'checkbox-configurable': {title: 'Configurable checkbox', component: CheckboxConfigurableExample}, - 'checkbox-overview': {title: 'Basic checkboxes', component: CheckboxOverviewExample}, - 'dialog-overview': { - title: 'Basic dialog', - component: DialogOverviewExample, - additionalFiles: ['dialog-overview-example-dialog.html'], - selectorName: 'DialogOverviewExample, DialogOverviewExampleDialog', - }, - 'dialog-result': { - title: 'Dialog with a result', - component: DialogResultExample, - additionalFiles: ['dialog-result-example-dialog.html'], - selectorName: 'DialogResultExample, DialogResultExampleDialog', - }, - 'dialog-elements': { - title: 'Dialog elements', - component: DialogElementsExample, - additionalFiles: ['dialog-elements-example-dialog.html'], - selectorName: 'DialogElementsExample, DialogElementsExampleDialog', - }, - 'grid-list-dynamic': {title: 'Dynamic grid-list', component: GridListDynamicExample}, - 'grid-list-overview': {title: 'Basic grid-list', component: GridListOverviewExample}, - 'icon-overview': {title: 'Basic icons', component: IconOverviewExample}, - 'icon-svg': {title: 'SVG icons', component: IconSvgExample}, - 'input-form': {title: 'Inputs in a form', component: InputFormExample}, - 'input-overview': {title: 'Basic inputs', component: InputOverviewExample}, - 'list-overview': {title: 'Basic list', component: ListOverviewExample}, - 'list-sections': {title: 'List with sections', component: ListSectionsExample}, - 'menu-icons': {title: 'Menu with icons', component: MenuIconsExample}, - 'menu-overview': {title: 'Basic menu', component: MenuOverviewExample}, - 'progress-bar-configurable': { - title: 'Configurable progress-bar', - component: ProgressBarConfigurableExample - }, - 'progress-bar-overview': {title: 'Basic progress-bar', component: ProgressBarOverviewExample}, - 'progress-spinner-configurable': { - title: 'Configurable progress-bar', - component: ProgressSpinnerConfigurableExample - }, - 'progress-spinner-overview': { - title: 'Basic progress-spinner', - component: ProgressSpinnerOverviewExample - }, - 'radio-ng-model': {title: 'Radios with ngModel', component: RadioNgModelExample}, - 'radio-overview': {title: 'Basic radios', component: RadioOverviewExample}, - 'select-overview': {title: 'Basic select', component: SelectOverviewExample}, - 'select-form': {title: 'Select in a form', component: SelectFormExample}, - 'sidenav-fab': {title: 'Sidenav with a FAB', component: SidenavFabExample}, - 'sidenav-overview': {title: 'Basic sidenav', component: SidenavOverviewExample}, - 'slider-configurable': {title: 'Configurable slider', component: SliderConfigurableExample}, - 'slider-overview': {title: 'Basic slider', component: SliderOverviewExample}, - 'slide-toggle-configurable': { - title: 'Configurable slide-toggle', - component: SlideToggleConfigurableExample - }, - 'slide-toggle-overview': {title: 'Basic slide-toggles', component: SlideToggleOverviewExample}, - 'snack-bar-component': { - title: 'Snack-bar with a custom component', - component: SnackBarComponentExample - }, - 'snack-bar-overview': {title: 'Basic snack-bar', component: SnackBarOverviewExample}, - 'tabs-overview': {title: 'Basic tabs', component: TabsOverviewExample}, - 'tabs-template-label': {title: 'Coming soon!', component: TabsTemplateLabelExample}, - 'toolbar-multirow': {title: 'Multi-row toolbar', component: ToolbarMultirowExample}, - 'toolbar-overview': {title: 'basic toolbar', component: ToolbarOverviewExample}, - 'tooltip-overview': {title: 'Basic tooltip', component: TooltipOverviewExample}, - 'tooltip-position': {title: 'Tooltip with custom position', component: TooltipPositionExample}, -}; - -/** - * The list of all example components. - * We need to put them in both `declarations` and `entryComponents` to make them work. - */ -export const EXAMPLE_LIST = [ - AutocompleteOverviewExample, - ButtonOverviewExample, - ButtonToggleExclusiveExample, - ButtonToggleOverviewExample, - ButtonTypesExample, - CardFancyExample, - CardOverviewExample, - ChipsOverviewExample, - ChipsStackedExample, - CheckboxConfigurableExample, - CheckboxOverviewExample, - DialogOverviewExample, - DialogOverviewExampleDialog, - DialogResultExample, - DialogResultExampleDialog, - DialogElementsExample, - DialogElementsExampleDialog, - GridListDynamicExample, - GridListOverviewExample, - IconOverviewExample, - IconSvgExample, - InputFormExample, - InputOverviewExample, - ListOverviewExample, - ListSectionsExample, - MenuIconsExample, - MenuOverviewExample, - ProgressBarConfigurableExample, - ProgressBarOverviewExample, - ProgressSpinnerConfigurableExample, - ProgressSpinnerOverviewExample, - RadioNgModelExample, - RadioOverviewExample, - SidenavFabExample, - SelectOverviewExample, - SelectFormExample, - SidenavOverviewExample, - SliderConfigurableExample, - SliderOverviewExample, - SlideToggleConfigurableExample, - SlideToggleOverviewExample, - SnackBarComponentExample, - PizzaPartyComponent, - SnackBarOverviewExample, - TabsOverviewExample, - TabsTemplateLabelExample, - ToolbarMultirowExample, - ToolbarOverviewExample, - TooltipOverviewExample, - TooltipPositionExample, -]; - -@NgModule({ - declarations: EXAMPLE_LIST, - entryComponents: EXAMPLE_LIST, - imports: [ - MaterialModule, - FormsModule, - ReactiveFormsModule, - CommonModule, - ] -}) -export class ExampleModule { } diff --git a/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.css b/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.html b/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.html deleted file mode 100644 index 19c84dd5b..000000000 --- a/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.html +++ /dev/null @@ -1,9 +0,0 @@ - - - {{tile.text}} - - diff --git a/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.ts b/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.ts deleted file mode 100644 index 8f0834fa0..000000000 --- a/src/assets/plunker/examples/grid-list-dynamic/grid-list-dynamic-example.ts +++ /dev/null @@ -1,15 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'grid-list-dynamic-example', - templateUrl: './grid-list-dynamic-example.html', -}) -export class GridListDynamicExample { - tiles = [ - {text: 'One', cols: 3, rows: 1, color: 'lightblue'}, - {text: 'Two', cols: 1, rows: 2, color: 'lightgreen'}, - {text: 'Three', cols: 1, rows: 1, color: 'lightpink'}, - {text: 'Four', cols: 2, rows: 1, color: '#DDBDF1'}, - ]; -} diff --git a/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.css b/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.css deleted file mode 100644 index 2598f58f5..000000000 --- a/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.css +++ /dev/null @@ -1,3 +0,0 @@ -md-grid-tile { - background: lightblue; -} diff --git a/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.html b/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.html deleted file mode 100644 index 6651887f6..000000000 --- a/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.html +++ /dev/null @@ -1,6 +0,0 @@ - - 1 - 2 - 3 - 4 - diff --git a/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.ts b/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.ts deleted file mode 100644 index ba23f5740..000000000 --- a/src/assets/plunker/examples/grid-list-overview/grid-list-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - -@Component({ - selector: 'grid-list-overview-example', - styleUrls: ['./grid-list-overview-example.css'], - templateUrl: './grid-list-overview-example.html', -}) -export class GridListOverviewExample {} diff --git a/src/assets/plunker/examples/icon-overview/icon-overview-example.css b/src/assets/plunker/examples/icon-overview/icon-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/icon-overview/icon-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/icon-overview/icon-overview-example.html b/src/assets/plunker/examples/icon-overview/icon-overview-example.html deleted file mode 100644 index dd46af80f..000000000 --- a/src/assets/plunker/examples/icon-overview/icon-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -home diff --git a/src/assets/plunker/examples/icon-overview/icon-overview-example.ts b/src/assets/plunker/examples/icon-overview/icon-overview-example.ts deleted file mode 100644 index 90ed28a61..000000000 --- a/src/assets/plunker/examples/icon-overview/icon-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'icon-overview-example', - templateUrl: './icon-overview-example.html', -}) -export class IconOverviewExample {} diff --git a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.css b/src/assets/plunker/examples/icon-svg-example/icon-svg-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.html b/src/assets/plunker/examples/icon-svg-example/icon-svg-example.html deleted file mode 100644 index ac74cf790..000000000 --- a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.ts b/src/assets/plunker/examples/icon-svg-example/icon-svg-example.ts deleted file mode 100644 index b9689b420..000000000 --- a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {Component} from '@angular/core'; -import {DomSanitizer} from '@angular/platform-browser'; -import {MdIconRegistry} from '@angular/material'; - - -@Component({ - selector: 'icon-svg-example', - templateUrl: './icon-svg-example.html', -}) -export class IconSvgExample { - constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) { - iconRegistry.addSvgIcon( - 'thumbs-up', - sanitizer.bypassSecurityTrustResourceUrl('assets/img/examples/thumbup-icon.svg')); - } -} diff --git a/src/assets/plunker/examples/icon-svg/icon-svg-example.css b/src/assets/plunker/examples/icon-svg/icon-svg-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/icon-svg/icon-svg-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/icon-svg/icon-svg-example.html b/src/assets/plunker/examples/icon-svg/icon-svg-example.html deleted file mode 100644 index ac74cf790..000000000 --- a/src/assets/plunker/examples/icon-svg/icon-svg-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/icon-svg/icon-svg-example.ts b/src/assets/plunker/examples/icon-svg/icon-svg-example.ts deleted file mode 100644 index b9689b420..000000000 --- a/src/assets/plunker/examples/icon-svg/icon-svg-example.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {Component} from '@angular/core'; -import {DomSanitizer} from '@angular/platform-browser'; -import {MdIconRegistry} from '@angular/material'; - - -@Component({ - selector: 'icon-svg-example', - templateUrl: './icon-svg-example.html', -}) -export class IconSvgExample { - constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) { - iconRegistry.addSvgIcon( - 'thumbs-up', - sanitizer.bypassSecurityTrustResourceUrl('assets/img/examples/thumbup-icon.svg')); - } -} diff --git a/src/assets/plunker/examples/input-form/input-form-example.css b/src/assets/plunker/examples/input-form/input-form-example.css deleted file mode 100644 index 269cb291a..000000000 --- a/src/assets/plunker/examples/input-form/input-form-example.css +++ /dev/null @@ -1,7 +0,0 @@ -.example-form { - width: 500px; -} - -.example-full-width { - width: 100%; -} diff --git a/src/assets/plunker/examples/input-form/input-form-example.html b/src/assets/plunker/examples/input-form/input-form-example.html deleted file mode 100644 index 04c3bb5ae..000000000 --- a/src/assets/plunker/examples/input-form/input-form-example.html +++ /dev/null @@ -1,36 +0,0 @@ -
- - - - - - - -
- - - -
- -

- - - - - - -

- - - - - -
- - - - - - {{postalCode.value.length}} / 5 -
-
diff --git a/src/assets/plunker/examples/input-form/input-form-example.ts b/src/assets/plunker/examples/input-form/input-form-example.ts deleted file mode 100644 index 2e209d9f5..000000000 --- a/src/assets/plunker/examples/input-form/input-form-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'input-form-example', - templateUrl: './input-form-example.html', - styleUrls: ['./input-form-example.css'], -}) -export class InputFormExample {} diff --git a/src/assets/plunker/examples/input-overview/input-overview-example.css b/src/assets/plunker/examples/input-overview/input-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/input-overview/input-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/input-overview/input-overview-example.html b/src/assets/plunker/examples/input-overview/input-overview-example.html deleted file mode 100644 index c864c5d36..000000000 --- a/src/assets/plunker/examples/input-overview/input-overview-example.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/plunker/examples/input-overview/input-overview-example.ts b/src/assets/plunker/examples/input-overview/input-overview-example.ts deleted file mode 100644 index 2bdc3fd6b..000000000 --- a/src/assets/plunker/examples/input-overview/input-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'input-overview-example', - templateUrl: './input-overview-example.html', -}) -export class InputOverviewExample {} diff --git a/src/assets/plunker/examples/list-overview/list-overview-example.css b/src/assets/plunker/examples/list-overview/list-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/list-overview/list-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/list-overview/list-overview-example.html b/src/assets/plunker/examples/list-overview/list-overview-example.html deleted file mode 100644 index ada715ee0..000000000 --- a/src/assets/plunker/examples/list-overview/list-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - Item 1 - Item 2 - Item 3 - diff --git a/src/assets/plunker/examples/list-overview/list-overview-example.ts b/src/assets/plunker/examples/list-overview/list-overview-example.ts deleted file mode 100644 index f38e18602..000000000 --- a/src/assets/plunker/examples/list-overview/list-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'list-overview-example', - templateUrl: './list-overview-example.html', -}) -export class ListOverviewExample {} diff --git a/src/assets/plunker/examples/list-sections/list-sections-example.css b/src/assets/plunker/examples/list-sections/list-sections-example.css deleted file mode 100644 index 25346c921..000000000 --- a/src/assets/plunker/examples/list-sections/list-sections-example.css +++ /dev/null @@ -1,3 +0,0 @@ -.mat-list-icon { - color: rgba(0,0,0,0.54); -} \ No newline at end of file diff --git a/src/assets/plunker/examples/list-sections/list-sections-example.html b/src/assets/plunker/examples/list-sections/list-sections-example.html deleted file mode 100644 index 38d20f97e..000000000 --- a/src/assets/plunker/examples/list-sections/list-sections-example.html +++ /dev/null @@ -1,15 +0,0 @@ - -

Folders

- - folder -

{{folder.name}}

-

{{folder.updated | date}}

-
- -

Notes

- - note -

{{note.name}}

-

{{note.updated | date}}

-
-
diff --git a/src/assets/plunker/examples/list-sections/list-sections-example.ts b/src/assets/plunker/examples/list-sections/list-sections-example.ts deleted file mode 100644 index d5a20e8f4..000000000 --- a/src/assets/plunker/examples/list-sections/list-sections-example.ts +++ /dev/null @@ -1,34 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'list-sections-example', - styleUrls: ['./list-sections-example.css'], - templateUrl: './list-sections-example.html', -}) -export class ListSectionsExample { - folders = [ - { - name: 'Photos', - updated: new Date('1/1/16'), - }, - { - name: 'Recipes', - updated: new Date('1/17/16'), - }, - { - name: 'Work', - updated: new Date('1/28/16'), - } - ]; - notes = [ - { - name: 'Vacation Itinerary', - updated: new Date('2/20/16'), - }, - { - name: 'Kitchen Remodel', - updated: new Date('1/18/16'), - } - ]; -} diff --git a/src/assets/plunker/examples/menu-icons/menu-icons-example.css b/src/assets/plunker/examples/menu-icons/menu-icons-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/menu-icons/menu-icons-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/menu-icons/menu-icons-example.html b/src/assets/plunker/examples/menu-icons/menu-icons-example.html deleted file mode 100644 index e14942451..000000000 --- a/src/assets/plunker/examples/menu-icons/menu-icons-example.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - diff --git a/src/assets/plunker/examples/menu-icons/menu-icons-example.ts b/src/assets/plunker/examples/menu-icons/menu-icons-example.ts deleted file mode 100644 index 070bc434b..000000000 --- a/src/assets/plunker/examples/menu-icons/menu-icons-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'menu-icons-example', - templateUrl: './menu-icons-example.html', -}) -export class MenuIconsExample {} diff --git a/src/assets/plunker/examples/menu-overview/menu-overview-example.css b/src/assets/plunker/examples/menu-overview/menu-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/menu-overview/menu-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/menu-overview/menu-overview-example.html b/src/assets/plunker/examples/menu-overview/menu-overview-example.html deleted file mode 100644 index 2b5d246c2..000000000 --- a/src/assets/plunker/examples/menu-overview/menu-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/assets/plunker/examples/menu-overview/menu-overview-example.ts b/src/assets/plunker/examples/menu-overview/menu-overview-example.ts deleted file mode 100644 index b5b8c8a8d..000000000 --- a/src/assets/plunker/examples/menu-overview/menu-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'menu-overview-example', - templateUrl: './menu-overview-example.html', -}) -export class MenuOverviewExample {} diff --git a/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.css b/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.css deleted file mode 100644 index 558293fbb..000000000 --- a/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 0 10px; -} diff --git a/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.html b/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.html deleted file mode 100644 index 93937b77a..000000000 --- a/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.html +++ /dev/null @@ -1,63 +0,0 @@ - - -

Progress bar configuration

- -
- - - - Primary - - - Accent - - - Warn - - -
- -
- - - - Determinate - - - Indeterminate - - - Buffer - - - Query - - -
- -
- - -
-
- - -
-
-
- - - -

Result

- -
- - -
-
-
diff --git a/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.ts b/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.ts deleted file mode 100644 index f3fa93782..000000000 --- a/src/assets/plunker/examples/progress-bar-configurable/progress-bar-configurable-example.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-bar-configurable-example', - templateUrl: './progress-bar-configurable-example.html', - styleUrls: ['./progress-bar-configurable-example.css'], -}) -export class ProgressBarConfigurableExample { - color = 'primary'; - mode = 'determinate'; - value = 50; - bufferValue = 75; -} diff --git a/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.css b/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.html b/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.html deleted file mode 100644 index 8ab16e9cf..000000000 --- a/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.ts b/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.ts deleted file mode 100644 index cf11f1cf2..000000000 --- a/src/assets/plunker/examples/progress-bar-overview/progress-bar-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-bar-overview-example', - templateUrl: './progress-bar-overview-example.html', -}) -export class ProgressBarOverviewExample {} diff --git a/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.css b/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.css deleted file mode 100644 index 558293fbb..000000000 --- a/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 0 10px; -} diff --git a/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.html b/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.html deleted file mode 100644 index 8dcc52802..000000000 --- a/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.html +++ /dev/null @@ -1,49 +0,0 @@ - - -

Progress spinner configuration

- -
- - - - Primary - - - Accent - - - Warn - - -
- -
- - - - Determinate - - - Indeterminate - - -
- -
- - -
-
-
- - -

Result

- - - -
-
diff --git a/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.ts b/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.ts deleted file mode 100644 index b621aaa51..000000000 --- a/src/assets/plunker/examples/progress-spinner-configurable/progress-spinner-configurable-example.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-spinner-configurable-example', - templateUrl: './progress-spinner-configurable-example.html', - styleUrls: ['./progress-spinner-configurable-example.css'], -}) -export class ProgressSpinnerConfigurableExample { - color = 'primary'; - mode = 'determinate'; - value = 50; -} diff --git a/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.css b/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.html b/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.html deleted file mode 100644 index cd768c673..000000000 --- a/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.ts b/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.ts deleted file mode 100644 index 89cce852a..000000000 --- a/src/assets/plunker/examples/progress-spinner-overview/progress-spinner-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'progress-spinner-overview-example', - templateUrl: './progress-spinner-overview-example.html', -}) -export class ProgressSpinnerOverviewExample {} diff --git a/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.css b/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.css deleted file mode 100644 index f70c1b3b5..000000000 --- a/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.css +++ /dev/null @@ -1,12 +0,0 @@ -.example-radio-group { - display: inline-flex; - flex-direction: column; -} - -.example-radio-button { - margin: 5px; -} - -.example-selected-value { - margin: 15px 0; -} diff --git a/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.html b/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.html deleted file mode 100644 index 108971b57..000000000 --- a/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.html +++ /dev/null @@ -1,6 +0,0 @@ - - - {{season}} - - -
Your favorite season is: {{favoriteSeason}}
diff --git a/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.ts b/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.ts deleted file mode 100644 index 42e93bc5d..000000000 --- a/src/assets/plunker/examples/radio-ng-model/radio-ng-model-example.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'radio-ng-model-example', - templateUrl: './radio-ng-model-example.html', - styleUrls: ['./radio-ng-model-example.css'], -}) -export class RadioNgModelExample { - favoriteSeason: string; - - seasons = [ - 'Winter', - 'Spring', - 'Summer', - 'Autumn', - ]; -} diff --git a/src/assets/plunker/examples/radio-overview/radio-overview-example.css b/src/assets/plunker/examples/radio-overview/radio-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/radio-overview/radio-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/radio-overview/radio-overview-example.html b/src/assets/plunker/examples/radio-overview/radio-overview-example.html deleted file mode 100644 index 4038381cc..000000000 --- a/src/assets/plunker/examples/radio-overview/radio-overview-example.html +++ /dev/null @@ -1,4 +0,0 @@ - - Option 1 - Option 2 - diff --git a/src/assets/plunker/examples/radio-overview/radio-overview-example.ts b/src/assets/plunker/examples/radio-overview/radio-overview-example.ts deleted file mode 100644 index a845835e4..000000000 --- a/src/assets/plunker/examples/radio-overview/radio-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'radio-overview-example', - templateUrl: './radio-overview-example.html', -}) -export class RadioOverviewExample {} diff --git a/src/assets/plunker/examples/select-form/select-form-example.css b/src/assets/plunker/examples/select-form/select-form-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/select-form/select-form-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/select-form/select-form-example.html b/src/assets/plunker/examples/select-form/select-form-example.html deleted file mode 100644 index 6dea33cc5..000000000 --- a/src/assets/plunker/examples/select-form/select-form-example.html +++ /dev/null @@ -1,9 +0,0 @@ -
- - - {{food.viewValue}} - - - -

Selected value: {{selectedValue}}

-
diff --git a/src/assets/plunker/examples/select-form/select-form-example.ts b/src/assets/plunker/examples/select-form/select-form-example.ts deleted file mode 100644 index 684bf016e..000000000 --- a/src/assets/plunker/examples/select-form/select-form-example.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'select-form-example', - templateUrl: './select-form-example.html', -}) -export class SelectFormExample { - selectedValue: string; - - foods = [ - {value: 'steak-0', viewValue: 'Steak'}, - {value: 'pizza-1', viewValue: 'Pizza'}, - {value: 'tacos-2', viewValue: 'Tacos'} - ]; -} diff --git a/src/assets/plunker/examples/select-overview/select-overview-example.css b/src/assets/plunker/examples/select-overview/select-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/select-overview/select-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/select-overview/select-overview-example.html b/src/assets/plunker/examples/select-overview/select-overview-example.html deleted file mode 100644 index a4017ca5c..000000000 --- a/src/assets/plunker/examples/select-overview/select-overview-example.html +++ /dev/null @@ -1,5 +0,0 @@ - - - {{ food.viewValue }} - - diff --git a/src/assets/plunker/examples/select-overview/select-overview-example.ts b/src/assets/plunker/examples/select-overview/select-overview-example.ts deleted file mode 100644 index 8162dc7f6..000000000 --- a/src/assets/plunker/examples/select-overview/select-overview-example.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'select-overview-example', - templateUrl: './select-overview-example.html', -}) -export class SelectOverviewExample { - foods = [ - {value: 'steak-0', viewValue: 'Steak'}, - {value: 'pizza-1', viewValue: 'Pizza'}, - {value: 'tacos-2', viewValue: 'Tacos'} - ]; -} diff --git a/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.css b/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.css deleted file mode 100644 index 51cdee38f..000000000 --- a/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.css +++ /dev/null @@ -1,25 +0,0 @@ -.example-sidenav-fab-container { - width: 500px; - height: 300px; - border: 1px solid rgba(0, 0, 0, 0.5); -} - -.example-sidenav-fab-container md-sidenav { - max-width: 200px; -} - -.example-sidenav-fab-container .mat-sidenav-content, -.example-sidenav-fab-container md-sidenav { - display: flex; - overflow: visible; -} - -.example-scrolling-content { - overflow: auto; -} - -.example-fab { - position: absolute; - right: 20px; - bottom: 10px; -} diff --git a/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.html b/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.html deleted file mode 100644 index f194c0985..000000000 --- a/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.html +++ /dev/null @@ -1,32 +0,0 @@ - - - -
- Lorem ipsum dolor sit amet, pede a libero aenean phasellus, lectus metus sint ut risus, - fusce vel in pellentesque. Nisl rutrum etiam morbi consectetuer tempor magna, aenean nullam - nunc id, neque vivamus interdum sociis nulla scelerisque sem, dolor id wisi turpis magna - aliquam magna. Risus accumsan hac eget etiam donec sed, senectus erat mattis quam, tempor - vel urna occaecat cras, metus urna augue nec at. Et morbi amet dui praesent, nec eu at, - ligula ipsum dui sollicitudin, quis nisl massa viverra ligula, mauris fermentum orci arcu - enim fringilla. Arcu erat nulla in aenean lacinia ullamcorper, urna ante nam et sagittis, - tristique vehicula nibh ipsum vivamus, proin proin. Porta commodo nibh quis libero amet. - Taciti dui, sapien consectetuer. -
-
- -
- Lorem ipsum dolor sit amet, pede a libero aenean phasellus, lectus metus sint ut risus, fusce - vel in pellentesque. Nisl rutrum etiam morbi consectetuer tempor magna, aenean nullam nunc id, - neque vivamus interdum sociis nulla scelerisque sem, dolor id wisi turpis magna aliquam magna. - Risus accumsan hac eget etiam donec sed, senectus erat mattis quam, tempor vel urna occaecat - cras, metus urna augue nec at. Et morbi amet dui praesent, nec eu at, ligula ipsum dui - sollicitudin, quis nisl massa viverra ligula, mauris fermentum orci arcu enim fringilla. Arcu - erat nulla in aenean lacinia ullamcorper, urna ante nam et sagittis, tristique vehicula nibh - ipsum vivamus, proin proin. Porta commodo nibh quis libero amet. Taciti dui, sapien - consectetuer. -
-
diff --git a/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.ts b/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.ts deleted file mode 100644 index a86050b29..000000000 --- a/src/assets/plunker/examples/sidenav-fab/sidenav-fab-example.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {Component, ViewEncapsulation} from '@angular/core'; - - -@Component({ - selector: 'sidenav-fab-example', - templateUrl: './sidenav-fab-example.html', - styleUrls: ['./sidenav-fab-example.css'], - encapsulation: ViewEncapsulation.None, -}) -export class SidenavFabExample {} diff --git a/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.css b/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.css deleted file mode 100644 index 8ab00588b..000000000 --- a/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.css +++ /dev/null @@ -1,16 +0,0 @@ -.example-container { - width: 500px; - height: 300px; - border: 1px solid rgba(0, 0, 0, 0.5); -} - -.example-sidenav-content { - display: flex; - height: 100%; - align-items: center; - justify-content: center; -} - -.example-sidenav { - padding: 20px; -} diff --git a/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.html b/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.html deleted file mode 100644 index 83f34793b..000000000 --- a/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.html +++ /dev/null @@ -1,12 +0,0 @@ - - - Jolly good! - - -
- -
- -
diff --git a/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.ts b/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.ts deleted file mode 100644 index 533802a90..000000000 --- a/src/assets/plunker/examples/sidenav-overview/sidenav-overview-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'sidenav-overview-example', - templateUrl: './sidenav-overview-example.html', - styleUrls: ['./sidenav-overview-example.css'], -}) -export class SidenavOverviewExample {} diff --git a/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.css b/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.css deleted file mode 100644 index 060532ee7..000000000 --- a/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.css +++ /dev/null @@ -1,14 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 10px; -} diff --git a/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.html b/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.html deleted file mode 100644 index 88099f4b0..000000000 --- a/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.html +++ /dev/null @@ -1,44 +0,0 @@ - - -

Slider configuration

- -
- - - - Primary - - - Accent - - - Warn - - -
- -
- Checked -
- -
- Disabled -
-
-
- - - -

Result

- -
- - Slide me! - -
-
-
diff --git a/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.ts b/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.ts deleted file mode 100644 index cfa28cedd..000000000 --- a/src/assets/plunker/examples/slide-toggle-configurable/slide-toggle-configurable-example.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'slide-toggle-configurable-example', - templateUrl: './slide-toggle-configurable-example.html', - styleUrls: ['./slide-toggle-configurable-example.css'], -}) -export class SlideToggleConfigurableExample { - color = 'accent'; - checked = false; - disabled = false; -} diff --git a/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.css b/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.html b/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.html deleted file mode 100644 index 6b9586e14..000000000 --- a/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -Slide me! diff --git a/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.ts b/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.ts deleted file mode 100644 index 0f35c9d5e..000000000 --- a/src/assets/plunker/examples/slide-toggle-overview/slide-toggle-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'slide-toggle-overview-example', - templateUrl: './slide-toggle-overview-example.html', -}) -export class SlideToggleOverviewExample {} diff --git a/src/assets/plunker/examples/slider-configurable/slider-configurable-example.css b/src/assets/plunker/examples/slider-configurable/slider-configurable-example.css deleted file mode 100644 index 1f954ba8b..000000000 --- a/src/assets/plunker/examples/slider-configurable/slider-configurable-example.css +++ /dev/null @@ -1,22 +0,0 @@ -.example-h2 { - margin: 10px; -} - -.example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; -} - -.example-margin { - margin: 10px; -} - -.mat-slider-horizontal { - width: 300px; -} - -.mat-slider-vertical { - height: 300px; -} diff --git a/src/assets/plunker/examples/slider-configurable/slider-configurable-example.html b/src/assets/plunker/examples/slider-configurable/slider-configurable-example.html deleted file mode 100644 index ba886e760..000000000 --- a/src/assets/plunker/examples/slider-configurable/slider-configurable-example.html +++ /dev/null @@ -1,63 +0,0 @@ - - -

Slider configuration

- -
- - - - - - - - - - - - -
- -
- Show ticks - - Auto ticks - - - - -
- -
- Show thumb label -
- -
- Vertical - Inverted -
- -
- Disabled -
- -
-
- - - -

Result

- - - -
-
diff --git a/src/assets/plunker/examples/slider-configurable/slider-configurable-example.ts b/src/assets/plunker/examples/slider-configurable/slider-configurable-example.ts deleted file mode 100644 index 933a9dee7..000000000 --- a/src/assets/plunker/examples/slider-configurable/slider-configurable-example.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {Component, ViewEncapsulation} from '@angular/core'; - - -@Component({ - selector: 'slider-configurable-example', - templateUrl: './slider-configurable-example.html', - styleUrls: ['./slider-configurable-example.css'], - encapsulation: ViewEncapsulation.None, -}) -export class SliderConfigurableExample { - autoTicks = false; - disabled = false; - invert = false; - max = 100; - min = 0; - showTicks = false; - step = 1; - thumbLabel = false; - value = 0; - vertical = false; - - get tickInterval(): number | 'auto' { - return this.showTicks ? (this.autoTicks ? 'auto' : this._tickInterval) : null; - } - set tickInterval(v) { - this._tickInterval = Number(v); - } - private _tickInterval = 1; -} diff --git a/src/assets/plunker/examples/slider-overview/slider-overview-example.css b/src/assets/plunker/examples/slider-overview/slider-overview-example.css deleted file mode 100644 index 8dfe08ccc..000000000 --- a/src/assets/plunker/examples/slider-overview/slider-overview-example.css +++ /dev/null @@ -1,4 +0,0 @@ -/** No CSS for this example */ -md-slider { - width: 300px; -} diff --git a/src/assets/plunker/examples/slider-overview/slider-overview-example.html b/src/assets/plunker/examples/slider-overview/slider-overview-example.html deleted file mode 100644 index 9a92c8f86..000000000 --- a/src/assets/plunker/examples/slider-overview/slider-overview-example.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/plunker/examples/slider-overview/slider-overview-example.ts b/src/assets/plunker/examples/slider-overview/slider-overview-example.ts deleted file mode 100644 index 1f020fd66..000000000 --- a/src/assets/plunker/examples/slider-overview/slider-overview-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'slider-overview-example', - templateUrl: './slider-overview-example.html', - styleUrls: ['./slider-overview-example.css'], -}) -export class SliderOverviewExample {} diff --git a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example-snack.css b/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example-snack.css deleted file mode 100644 index fa7dc6749..000000000 --- a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example-snack.css +++ /dev/null @@ -1,3 +0,0 @@ -.example-pizza-party { - color: hotpink; -} diff --git a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example-snack.html b/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example-snack.html deleted file mode 100644 index d43b91e9a..000000000 --- a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example-snack.html +++ /dev/null @@ -1,3 +0,0 @@ - - 🍕🍕🍕🍕🍕 Pizza party!!! 🍕🍕🍕🍕🍕 - diff --git a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.css b/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.css deleted file mode 100644 index fa7dc6749..000000000 --- a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.css +++ /dev/null @@ -1,3 +0,0 @@ -.example-pizza-party { - color: hotpink; -} diff --git a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.html b/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.html deleted file mode 100644 index 69fe01bc3..000000000 --- a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.ts b/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.ts deleted file mode 100644 index 03ef19e8a..000000000 --- a/src/assets/plunker/examples/snack-bar-component/snack-bar-component-example.ts +++ /dev/null @@ -1,25 +0,0 @@ -import {Component} from '@angular/core'; -import {MdSnackBar} from '@angular/material'; - - -@Component({ - selector: 'snack-bar-component-example', - templateUrl: './snack-bar-component-example.html', -}) -export class SnackBarComponentExample { - constructor(public snackBar: MdSnackBar) {} - - openSnackBar() { - this.snackBar.openFromComponent(PizzaPartyComponent, { - duration: 500, - }); - } -} - - -@Component({ - selector: 'snack-bar-component-example-snack', - templateUrl: './snack-bar-component-example-snack.html', - styleUrls: ['./snack-bar-component-example-snack.css'], -}) -export class PizzaPartyComponent {} diff --git a/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.css b/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.html b/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.html deleted file mode 100644 index 91cb38c8b..000000000 --- a/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.ts b/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.ts deleted file mode 100644 index 312de83ea..000000000 --- a/src/assets/plunker/examples/snack-bar-overview/snack-bar-overview-example.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {Component} from '@angular/core'; -import {MdSnackBar} from '@angular/material'; - - -@Component({ - selector: 'snack-bar-overview-example', - templateUrl: './snack-bar-overview-example.html', -}) -export class SnackBarOverviewExample { - constructor(public snackBar: MdSnackBar) {} - - openSnackBar(message: string, action: string) { - this.snackBar.open(message, action, { - duration: 2000, - }); - } -} diff --git a/src/assets/plunker/examples/tabs-overview/tabs-overview-example.css b/src/assets/plunker/examples/tabs-overview/tabs-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/tabs-overview/tabs-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/tabs-overview/tabs-overview-example.html b/src/assets/plunker/examples/tabs-overview/tabs-overview-example.html deleted file mode 100644 index 173ece5dc..000000000 --- a/src/assets/plunker/examples/tabs-overview/tabs-overview-example.html +++ /dev/null @@ -1,4 +0,0 @@ - - Content 1 - Content 2 - diff --git a/src/assets/plunker/examples/tabs-overview/tabs-overview-example.ts b/src/assets/plunker/examples/tabs-overview/tabs-overview-example.ts deleted file mode 100644 index 4f222c112..000000000 --- a/src/assets/plunker/examples/tabs-overview/tabs-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tabs-overview-example', - templateUrl: './tabs-overview-example.html', -}) -export class TabsOverviewExample {} diff --git a/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.css b/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.html b/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.html deleted file mode 100644 index bde67b8e9..000000000 --- a/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.html +++ /dev/null @@ -1 +0,0 @@ -More examples coming soon! diff --git a/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.ts b/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.ts deleted file mode 100644 index 7015b1f74..000000000 --- a/src/assets/plunker/examples/tabs-template-label/tabs-template-label-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tabs-template-label-example', - templateUrl: './tabs-template-label-example.html', -}) -export class TabsTemplateLabelExample {} diff --git a/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.css b/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.css deleted file mode 100644 index d7c40156b..000000000 --- a/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.css +++ /dev/null @@ -1,7 +0,0 @@ -.example-icon { - padding: 0 14px; -} - -.example-spacer { - flex: 1 1 auto; -} diff --git a/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.html b/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.html deleted file mode 100644 index 9b178a212..000000000 --- a/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.html +++ /dev/null @@ -1,16 +0,0 @@ - - Custom Toolbar - - - Second Line - - verified_user - - - - Third Line - - favorite - delete - - diff --git a/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.ts b/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.ts deleted file mode 100644 index 132b98174..000000000 --- a/src/assets/plunker/examples/toolbar-multirow/toolbar-multirow-example.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'toolbar-multirow-example', - templateUrl: './toolbar-multirow-example.html', - styleUrls: ['./toolbar-multirow-example.css'], -}) -export class ToolbarMultirowExample {} diff --git a/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.css b/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.html b/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.html deleted file mode 100644 index bf8cc3998..000000000 --- a/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -My App diff --git a/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.ts b/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.ts deleted file mode 100644 index 6919aca4f..000000000 --- a/src/assets/plunker/examples/toolbar-overview/toolbar-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'toolbar-overview-example', - templateUrl: './toolbar-overview-example.html', -}) -export class ToolbarOverviewExample {} diff --git a/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.css b/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.css deleted file mode 100644 index 743230875..000000000 --- a/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.css +++ /dev/null @@ -1 +0,0 @@ -/** No CSS for this example */ diff --git a/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.html b/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.html deleted file mode 100644 index 8319a8545..000000000 --- a/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.html +++ /dev/null @@ -1 +0,0 @@ -I have a tooltip diff --git a/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.ts b/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.ts deleted file mode 100644 index cf9eefc94..000000000 --- a/src/assets/plunker/examples/tooltip-overview/tooltip-overview-example.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tooltip-overview-example', - templateUrl: './tooltip-overview-example.html', -}) -export class TooltipOverviewExample {} diff --git a/src/assets/plunker/examples/tooltip-position/tooltip-position-example.css b/src/assets/plunker/examples/tooltip-position/tooltip-position-example.css deleted file mode 100644 index 04ec59dd1..000000000 --- a/src/assets/plunker/examples/tooltip-position/tooltip-position-example.css +++ /dev/null @@ -1,9 +0,0 @@ -.example-tooltip-host { - display: inline-flex; - align-items: center; - margin: 50px; -} - -.example-select { - margin: 0 10px; -} diff --git a/src/assets/plunker/examples/tooltip-position/tooltip-position-example.html b/src/assets/plunker/examples/tooltip-position/tooltip-position-example.html deleted file mode 100644 index 156a5bf68..000000000 --- a/src/assets/plunker/examples/tooltip-position/tooltip-position-example.html +++ /dev/null @@ -1,11 +0,0 @@ -
- Show tooltip - - Before - After - Above - Below - Left - Right - -
diff --git a/src/assets/plunker/examples/tooltip-position/tooltip-position-example.ts b/src/assets/plunker/examples/tooltip-position/tooltip-position-example.ts deleted file mode 100644 index 0b580c722..000000000 --- a/src/assets/plunker/examples/tooltip-position/tooltip-position-example.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {Component} from '@angular/core'; - - -@Component({ - selector: 'tooltip-position-example', - templateUrl: './tooltip-position-example.html', - styleUrls: ['./tooltip-position-example.css'], -}) -export class TooltipPositionExample { - position = 'before'; -} diff --git a/tools/fetch-assets.sh b/tools/fetch-assets.sh index a96ec904b..1636c108e 100755 --- a/tools/fetch-assets.sh +++ b/tools/fetch-assets.sh @@ -9,6 +9,8 @@ docAssetsPath=./src/assets/documents/ # Dir where live-example assets will be copied exampleAssetsPath=./src/assets/ +plunkerExampleAssetsPath=./src/assets/plunker/ + # Dir where published assets will temporarily copied to (using `git clone`). tmpAssetClonePath=/tmp/material-assets @@ -17,21 +19,26 @@ docsContentRepo=https://github.com/angular/material2-docs-content # Dirs for each of api docs, guides, overviews, and live-examples within the # cloned content repo. -apiPath=$tmpAssetClonePath/api -guidesPath=$tmpAssetClonePath/guides -overviewPath=$tmpAssetClonePath/overview -examplesPath=$tmpAssetClonePath/examples/ +apiPath=${tmpAssetClonePath}/api +guidesPath=${tmpAssetClonePath}/guides +overviewPath=${tmpAssetClonePath}/overview +examplesPath=${tmpAssetClonePath}/examples/ +plunkerExamplesPath=${tmpAssetClonePath}/plunker/examples/ # Create folders into which to copy content and assets. -mkdir -p $tmpAssetClonePath -mkdir -p $exampleAssetsPath $docAssetsPath +mkdir -p ${tmpAssetClonePath} +mkdir -p ${exampleAssetsPath} ${docAssetsPath} # Pull assets from repo and remove .git directory -git clone $docsContentRepo $tmpAssetClonePath +git clone ${docsContentRepo} ${tmpAssetClonePath} # Copy files over to their proper place in src/assets -cp -r $apiPath $overviewPath $guidesPath $docAssetsPath -cp -r $examplesPath $exampleAssetsPath +cp -r ${apiPath} ${overviewPath} ${guidesPath} ${docAssetsPath} +cp -r ${examplesPath} ${exampleAssetsPath} +cp -r ${plunkerExamplesPath} ${plunkerExampleAssetsPath} + +# Install the live examples component library +npm i ${tmpAssetClonePath}/examples-package # Remove temporary directory -rm -rf $tmpAssetClonePath +rm -rf ${tmpAssetClonePath}