refactor(ViewEncapsulation): rename to PascalCase

BREAKING CHANGE

- ViewEncapsulation.EMULATED => ViewEncapsulation.Emulated
- ViewEncapsulation.NATIVE => ViewEncapsulation.Native
- ViewEncapsulation.NONE => ViewEncapsulation.None

Closes #3889
This commit is contained in:
Misko Hevery
2015-08-28 21:03:19 -07:00
committed by Miško Hevery
parent e916836261
commit c349bbbc08
30 changed files with 75 additions and 75 deletions

View File

@ -17,7 +17,7 @@ import {isPresent} from 'angular2/src/core/facade/lang';
})
@View({
templateUrl: 'package:angular2_material/src/components/button/button.html',
encapsulation: ViewEncapsulation.NONE,
encapsulation: ViewEncapsulation.None,
})
export class MdButton {
/** Whether a mousedown has occured on this element in the last 100ms. */
@ -61,7 +61,7 @@ export class MdButton {
})
@View({
templateUrl: 'package:angular2_material/src/components/button/button.html',
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdAnchor extends MdButton {
tabIndex: number;

View File

@ -18,7 +18,7 @@ import {NumberWrapper} from 'angular2/src/core/facade/lang';
@View({
templateUrl: 'package:angular2_material/src/components/checkbox/checkbox.html',
directives: [],
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdCheckbox {
/** Whether this checkbox is checked. */

View File

@ -210,7 +210,7 @@ export class MdDialogConfig {
},
})
@View({
encapsulation: ViewEncapsulation.NONE,
encapsulation: ViewEncapsulation.None,
templateUrl: 'package:angular2_material/src/components/dialog/dialog.html',
directives: [forwardRef(() => MdDialogContent)]
})
@ -258,7 +258,7 @@ class MdDialogContent {
'(click)': 'onClick()',
},
})
@View({template: '', encapsulation: ViewEncapsulation.NONE})
@View({template: '', encapsulation: ViewEncapsulation.None})
class MdBackdrop {
dialogRef: MdDialogRef;

View File

@ -32,7 +32,7 @@ class RowHeightMode {
})
@View({
templateUrl: 'package:angular2_material/src/components/grid_list/grid_list.html',
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdGridList {
/** Array of tiles that are being rendered. */
@ -230,7 +230,7 @@ export class MdGridList {
})
@View({
templateUrl: 'package:angular2_material/src/components/grid_list/grid_tile.html',
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdGridTile {
gridList: MdGridList;

View File

@ -3,7 +3,7 @@ import {Component, View, ViewEncapsulation} from 'angular2/angular2';
@Component({selector: 'md-progress-circular'})
@View({
templateUrl: 'package:angular2_material/src/components/progress-circular/progress_circular.html',
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdProgressCircular {
constructor() {}

View File

@ -27,7 +27,7 @@ class ProgressMode {
@View({
templateUrl: 'package:angular2_material/src/components/progress-linear/progress_linear.html',
directives: [],
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdProgressLinear {
/** Value for the primary bar. */

View File

@ -47,7 +47,7 @@ var _uniqueIdCounter: number = 0;
})
@View({
templateUrl: 'package:angular2_material/src/components/radio/radio_group.html',
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdRadioGroup {
/** The selected value for the radio group. The value comes from the options. */
@ -205,7 +205,7 @@ export class MdRadioGroup {
@View({
templateUrl: 'package:angular2_material/src/components/radio/radio_button.html',
directives: [],
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdRadioButton {
/** Whether this radio is checked. */

View File

@ -17,7 +17,7 @@ import {MdCheckbox} from "../checkbox/checkbox";
@View({
templateUrl: 'package:angular2_material/src/components/switcher/switch.html',
directives: [],
encapsulation: ViewEncapsulation.NONE
encapsulation: ViewEncapsulation.None
})
export class MdSwitch extends MdCheckbox {
constructor(@Attribute('tabindex') tabindex: string) {