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:

committed by
Miško Hevery

parent
e916836261
commit
c349bbbc08
@ -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;
|
||||
|
@ -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. */
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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() {}
|
||||
|
@ -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. */
|
||||
|
@ -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. */
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user