build: add missing bits for material-examples package (#4887)

Adds:
* Missing `flatModuleId` from the ngc options
* Makes templateUrl and styleUrls for example components match material
components.
This commit is contained in:
Jeremy Elbourn
2017-05-31 16:17:50 -07:00
committed by mmalerba
parent e650b049af
commit f169152638
49 changed files with 74 additions and 73 deletions
@@ -6,7 +6,7 @@ import 'rxjs/add/operator/map';
@Component({
selector: 'autocomplete-overview-example',
templateUrl: './autocomplete-overview-example.html',
templateUrl: 'autocomplete-overview-example.html',
})
export class AutocompleteOverviewExample {
stateCtrl: FormControl;
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'button-overview-example',
templateUrl: './button-overview-example.html',
templateUrl: 'button-overview-example.html',
})
export class ButtonOverviewExample {}
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'button-toggle-exclusive-example',
templateUrl: './button-toggle-exclusive-example.html',
styleUrls: ['./button-toggle-exclusive-example.css'],
templateUrl: 'button-toggle-exclusive-example.html',
styleUrls: ['button-toggle-exclusive-example.css'],
})
export class ButtonToggleExclusiveExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'button-toggle-overview-example',
templateUrl: './button-toggle-overview-example.html',
templateUrl: 'button-toggle-overview-example.html',
})
export class ButtonToggleOverviewExample {}
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'button-types-example',
templateUrl: './button-types-example.html',
styleUrls: ['./button-types-example.css'],
templateUrl: 'button-types-example.html',
styleUrls: ['button-types-example.css'],
})
export class ButtonTypesExample {}
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'card-fancy-example',
templateUrl: './card-fancy-example.html',
styleUrls: ['./card-fancy-example.css'],
templateUrl: 'card-fancy-example.html',
styleUrls: ['card-fancy-example.css'],
})
export class CardFancyExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'card-overview-example',
templateUrl: './card-overview-example.html',
templateUrl: 'card-overview-example.html',
})
export class CardOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'checkbox-configurable-example',
templateUrl: './checkbox-configurable-example.html',
styleUrls: ['./checkbox-configurable-example.css'],
templateUrl: 'checkbox-configurable-example.html',
styleUrls: ['checkbox-configurable-example.css'],
})
export class CheckboxConfigurableExample {
checked = false;
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'checkbox-overview-example',
templateUrl: './checkbox-overview-example.html',
templateUrl: 'checkbox-overview-example.html',
})
export class CheckboxOverviewExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'chips-overview-example',
templateUrl: './chips-overview-example.html',
templateUrl: 'chips-overview-example.html',
})
export class ChipsOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'chips-stacked-example',
templateUrl: './chips-stacked-example.html',
styleUrls: ['./chips-stacked-example.css'],
templateUrl: 'chips-stacked-example.html',
styleUrls: ['chips-stacked-example.css'],
})
export class ChipsStackedExample {
color: string;
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'datepicker-overview-example',
templateUrl: './datepicker-overview-example.html',
styleUrls: ['./datepicker-overview-example.css'],
templateUrl: 'datepicker-overview-example.html',
styleUrls: ['datepicker-overview-example.css'],
})
export class DatepickerOverviewExample {}
@@ -4,7 +4,7 @@ import {MdDialog} from '@angular/material';
@Component({
selector: 'dialog-elements-example',
templateUrl: './dialog-elements-example.html',
templateUrl: 'dialog-elements-example.html',
})
export class DialogElementsExample {
constructor(public dialog: MdDialog) { }
@@ -17,6 +17,6 @@ export class DialogElementsExample {
@Component({
selector: 'dialog-elements-example-dialog',
templateUrl: './dialog-elements-example-dialog.html',
templateUrl: 'dialog-elements-example-dialog.html',
})
export class DialogElementsExampleDialog { }
@@ -4,7 +4,7 @@ import {MdDialog} from '@angular/material';
@Component({
selector: 'dialog-overview-example',
templateUrl: './dialog-overview-example.html',
templateUrl: 'dialog-overview-example.html',
})
export class DialogOverviewExample {
constructor(public dialog: MdDialog) {}
@@ -17,6 +17,6 @@ export class DialogOverviewExample {
@Component({
selector: 'dialog-overview-example-dialog',
templateUrl: './dialog-overview-example-dialog.html',
templateUrl: 'dialog-overview-example-dialog.html',
})
export class DialogOverviewExampleDialog {}
@@ -4,7 +4,7 @@ import {MdDialog, MdDialogRef} from '@angular/material';
@Component({
selector: 'dialog-result-example',
templateUrl: './dialog-result-example.html',
templateUrl: 'dialog-result-example.html',
})
export class DialogResultExample {
selectedOption: string;
@@ -22,7 +22,7 @@ export class DialogResultExample {
@Component({
selector: 'dialog-result-example-dialog',
templateUrl: './dialog-result-example-dialog.html',
templateUrl: 'dialog-result-example-dialog.html',
})
export class DialogResultExampleDialog {
constructor(public dialogRef: MdDialogRef<DialogResultExampleDialog>) {}
+2 -2
View File
@@ -82,8 +82,8 @@ import {
export interface LiveExample {
title: string;
component: any;
additionalFiles: string[];
selectorName: string;
additionalFiles?: string[];
selectorName?: string;
}
/**
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'grid-list-dynamic-example',
templateUrl: './grid-list-dynamic-example.html',
templateUrl: 'grid-list-dynamic-example.html',
})
export class GridListDynamicExample {
tiles = [
@@ -2,7 +2,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'grid-list-overview-example',
styleUrls: ['./grid-list-overview-example.css'],
templateUrl: './grid-list-overview-example.html',
styleUrls: ['grid-list-overview-example.css'],
templateUrl: 'grid-list-overview-example.html',
})
export class GridListOverviewExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'icon-overview-example',
templateUrl: './icon-overview-example.html',
templateUrl: 'icon-overview-example.html',
})
export class IconOverviewExample {}
@@ -5,7 +5,7 @@ import {MdIconRegistry} from '@angular/material';
@Component({
selector: 'icon-svg-example',
templateUrl: './icon-svg-example.html',
templateUrl: 'icon-svg-example.html',
})
export class IconSvgExample {
constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) {
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'input-form-example',
templateUrl: './input-form-example.html',
styleUrls: ['./input-form-example.css'],
templateUrl: 'input-form-example.html',
styleUrls: ['input-form-example.css'],
})
export class InputFormExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'input-overview-example',
templateUrl: './input-overview-example.html',
templateUrl: 'input-overview-example.html',
})
export class InputOverviewExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'list-overview-example',
templateUrl: './list-overview-example.html',
templateUrl: 'list-overview-example.html',
})
export class ListOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'list-sections-example',
styleUrls: ['./list-sections-example.css'],
templateUrl: './list-sections-example.html',
styleUrls: ['list-sections-example.css'],
templateUrl: 'list-sections-example.html',
})
export class ListSectionsExample {
folders = [
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'menu-icons-example',
templateUrl: './menu-icons-example.html',
templateUrl: 'menu-icons-example.html',
})
export class MenuIconsExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'menu-overview-example',
templateUrl: './menu-overview-example.html',
templateUrl: 'menu-overview-example.html',
})
export class MenuOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'progress-bar-configurable-example',
templateUrl: './progress-bar-configurable-example.html',
styleUrls: ['./progress-bar-configurable-example.css'],
templateUrl: 'progress-bar-configurable-example.html',
styleUrls: ['progress-bar-configurable-example.css'],
})
export class ProgressBarConfigurableExample {
color = 'primary';
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'progress-bar-overview-example',
templateUrl: './progress-bar-overview-example.html',
templateUrl: 'progress-bar-overview-example.html',
})
export class ProgressBarOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'progress-spinner-configurable-example',
templateUrl: './progress-spinner-configurable-example.html',
styleUrls: ['./progress-spinner-configurable-example.css'],
templateUrl: 'progress-spinner-configurable-example.html',
styleUrls: ['progress-spinner-configurable-example.css'],
})
export class ProgressSpinnerConfigurableExample {
color = 'primary';
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'progress-spinner-overview-example',
templateUrl: './progress-spinner-overview-example.html',
templateUrl: 'progress-spinner-overview-example.html',
})
export class ProgressSpinnerOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'radio-ng-model-example',
templateUrl: './radio-ng-model-example.html',
styleUrls: ['./radio-ng-model-example.css'],
templateUrl: 'radio-ng-model-example.html',
styleUrls: ['radio-ng-model-example.css'],
})
export class RadioNgModelExample {
favoriteSeason: string;
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'radio-overview-example',
templateUrl: './radio-overview-example.html',
templateUrl: 'radio-overview-example.html',
})
export class RadioOverviewExample {}
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'select-form-example',
templateUrl: './select-form-example.html',
templateUrl: 'select-form-example.html',
})
export class SelectFormExample {
selectedValue: string;
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'select-overview-example',
templateUrl: './select-overview-example.html',
templateUrl: 'select-overview-example.html',
})
export class SelectOverviewExample {
foods = [
@@ -3,8 +3,8 @@ import {Component, ViewEncapsulation} from '@angular/core';
@Component({
selector: 'sidenav-fab-example',
templateUrl: './sidenav-fab-example.html',
styleUrls: ['./sidenav-fab-example.css'],
templateUrl: 'sidenav-fab-example.html',
styleUrls: ['sidenav-fab-example.css'],
encapsulation: ViewEncapsulation.None,
})
export class SidenavFabExample {}
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'sidenav-overview-example',
templateUrl: './sidenav-overview-example.html',
styleUrls: ['./sidenav-overview-example.css'],
templateUrl: 'sidenav-overview-example.html',
styleUrls: ['sidenav-overview-example.css'],
})
export class SidenavOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'slide-toggle-configurable-example',
templateUrl: './slide-toggle-configurable-example.html',
styleUrls: ['./slide-toggle-configurable-example.css'],
templateUrl: 'slide-toggle-configurable-example.html',
styleUrls: ['slide-toggle-configurable-example.css'],
})
export class SlideToggleConfigurableExample {
color = 'accent';
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'slide-toggle-overview-example',
templateUrl: './slide-toggle-overview-example.html',
templateUrl: 'slide-toggle-overview-example.html',
})
export class SlideToggleOverviewExample {}
@@ -3,8 +3,8 @@ import {Component, ViewEncapsulation} from '@angular/core';
@Component({
selector: 'slider-configurable-example',
templateUrl: './slider-configurable-example.html',
styleUrls: ['./slider-configurable-example.css'],
templateUrl: 'slider-configurable-example.html',
styleUrls: ['slider-configurable-example.css'],
encapsulation: ViewEncapsulation.None,
})
export class SliderConfigurableExample {
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'slider-overview-example',
templateUrl: './slider-overview-example.html',
styleUrls: ['./slider-overview-example.css'],
templateUrl: 'slider-overview-example.html',
styleUrls: ['slider-overview-example.css'],
})
export class SliderOverviewExample {}
@@ -4,7 +4,7 @@ import {MdSnackBar} from '@angular/material';
@Component({
selector: 'snack-bar-component-example',
templateUrl: './snack-bar-component-example.html',
templateUrl: 'snack-bar-component-example.html',
})
export class SnackBarComponentExample {
constructor(public snackBar: MdSnackBar) {}
@@ -19,7 +19,7 @@ export class SnackBarComponentExample {
@Component({
selector: 'snack-bar-component-example-snack',
templateUrl: './snack-bar-component-example-snack.html',
styleUrls: ['./snack-bar-component-example-snack.css'],
templateUrl: 'snack-bar-component-example-snack.html',
styleUrls: ['snack-bar-component-example-snack.css'],
})
export class PizzaPartyComponent {}
@@ -4,7 +4,7 @@ import {MdSnackBar} from '@angular/material';
@Component({
selector: 'snack-bar-overview-example',
templateUrl: './snack-bar-overview-example.html',
templateUrl: 'snack-bar-overview-example.html',
})
export class SnackBarOverviewExample {
constructor(public snackBar: MdSnackBar) {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'tabs-overview-example',
templateUrl: './tabs-overview-example.html',
templateUrl: 'tabs-overview-example.html',
})
export class TabsOverviewExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'tabs-template-label-example',
templateUrl: './tabs-template-label-example.html',
templateUrl: 'tabs-template-label-example.html',
})
export class TabsTemplateLabelExample {}
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
@Component({
selector: 'toolbar-multirow-example',
templateUrl: './toolbar-multirow-example.html',
styleUrls: ['./toolbar-multirow-example.css'],
templateUrl: 'toolbar-multirow-example.html',
styleUrls: ['toolbar-multirow-example.css'],
})
export class ToolbarMultirowExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'toolbar-overview-example',
templateUrl: './toolbar-overview-example.html',
templateUrl: 'toolbar-overview-example.html',
})
export class ToolbarOverviewExample {}
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
@Component({
selector: 'tooltip-overview-example',
templateUrl: './tooltip-overview-example.html',
templateUrl: 'tooltip-overview-example.html',
})
export class TooltipOverviewExample {}
@@ -3,8 +3,8 @@ import {Component} from '@angular/core';
@Component({
selector: 'tooltip-position-example',
templateUrl: './tooltip-position-example.html',
styleUrls: ['./tooltip-position-example.css'],
templateUrl: 'tooltip-position-example.html',
styleUrls: ['tooltip-position-example.css'],
})
export class TooltipPositionExample {
position = 'before';
@@ -28,6 +28,7 @@
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/material-examples",
"skipTemplateCodegen": true
}
}