Skip to content

Commit a96b545

Browse files
jelbournmmalerba
authored andcommitted
fix: add mat exportAs and class aliases (#7106)
1 parent b296e2b commit a96b545

File tree

17 files changed

+623
-72
lines changed

17 files changed

+623
-72
lines changed

package-lock.json

Lines changed: 62 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"node": ">= 5.4.1"
2626
},
2727
"dependencies": {
28-
"@angular/animations": "~4.3.6",
29-
"@angular/common": "~4.3.6",
30-
"@angular/compiler": "~4.3.6",
31-
"@angular/core": "~4.3.6",
32-
"@angular/forms": "~4.3.6",
33-
"@angular/http": "~4.3.6",
34-
"@angular/platform-browser": "~4.3.6",
28+
"@angular/animations": "~4.4.0-RC.0",
29+
"@angular/common": "~4.4.0-RC.0",
30+
"@angular/compiler": "~4.4.0-RC.0",
31+
"@angular/core": "~4.4.0-RC.0",
32+
"@angular/forms": "~4.4.0-RC.0",
33+
"@angular/http": "~4.4.0-RC.0",
34+
"@angular/platform-browser": "~4.4.0-RC.0",
3535
"core-js": "^2.4.1",
3636
"rxjs": "^5.0.1",
3737
"systemjs": "0.19.43",
@@ -40,11 +40,11 @@
4040
"zone.js": "^0.8.12"
4141
},
4242
"devDependencies": {
43-
"@angular/compiler-cli": "~4.3.6",
44-
"@angular/platform-browser-dynamic": "~4.3.6",
45-
"@angular/platform-server": "~4.3.6",
46-
"@angular/router": "~4.3.6",
47-
"@angular/tsc-wrapped": "~4.3.6",
43+
"@angular/compiler-cli": "~4.4.0-RC.0",
44+
"@angular/platform-browser-dynamic": "~4.4.0-RC.0",
45+
"@angular/platform-server": "~4.4.0-RC.0",
46+
"@angular/router": "~4.4.0-RC.0",
47+
"@angular/tsc-wrapped": "~4.4.0-RC.0",
4848
"@google-cloud/storage": "^1.1.1",
4949
"@types/chalk": "^0.4.31",
5050
"@types/fs-extra": "^3.0.1",

src/lib/autocomplete/autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class MdAutocompleteSelectedEvent {
4444
styleUrls: ['autocomplete.css'],
4545
encapsulation: ViewEncapsulation.None,
4646
changeDetection: ChangeDetectionStrategy.OnPush,
47-
exportAs: 'mdAutocomplete',
47+
exportAs: 'mdAutocomplete, matAutocomplete',
4848
host: {
4949
'class': 'mat-autocomplete'
5050
}

src/lib/button-toggle/button-toggle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class MdButtonToggleChange {
6969
'class': 'mat-button-toggle-group',
7070
'[class.mat-button-toggle-vertical]': 'vertical'
7171
},
72-
exportAs: 'mdButtonToggleGroup',
72+
exportAs: 'mdButtonToggleGroup, matButtonToggleGroup',
7373
})
7474
export class MdButtonToggleGroup extends _MdButtonToggleGroupMixinBase
7575
implements ControlValueAccessor, CanDisable {
@@ -229,7 +229,7 @@ export class MdButtonToggleGroup extends _MdButtonToggleGroupMixinBase
229229
/** Multiple selection button-toggle group. `ngModel` is not supported in this mode. */
230230
@Directive({
231231
selector: 'md-button-toggle-group[multiple], mat-button-toggle-group[multiple]',
232-
exportAs: 'mdButtonToggleGroup',
232+
exportAs: 'mdButtonToggleGroup, matButtonToggleGroup',
233233
inputs: ['disabled'],
234234
host: {
235235
'class': 'mat-button-toggle-group',

src/lib/chips/chip-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion';
3434
moduleId: module.id,
3535
selector: 'md-chip-list, mat-chip-list',
3636
template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`,
37-
exportAs: 'mdChipList',
37+
exportAs: 'mdChipList, matChipList',
3838
host: {
3939
'[attr.tabindex]': '_tabIndex',
4040
'role': 'listbox',

src/lib/chips/chip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class MdBasicChip { }
5959
selector: `md-basic-chip, [md-basic-chip], md-chip, [md-chip],
6060
mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]`,
6161
inputs: ['color', 'disabled'],
62-
exportAs: 'mdChip',
62+
exportAs: 'mdChip, matChip',
6363
host: {
6464
'class': 'mat-chip',
6565
'tabindex': '-1',

src/lib/core/ripple/ripple.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const MD_RIPPLE_GLOBAL_OPTIONS =
3434

3535
@Directive({
3636
selector: '[md-ripple], [mat-ripple], [mdRipple], [matRipple]',
37-
exportAs: 'mdRipple',
37+
exportAs: 'mdRipple, matRipple',
3838
host: {
3939
'class': 'mat-ripple',
4040
'[class.mat-ripple-unbounded]': 'unbounded'

src/lib/datepicker/datepicker-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class MdDatepickerInputEvent<D> {
8282
'(blur)': '_onTouched()',
8383
'(keydown)': '_onKeydown($event)',
8484
},
85-
exportAs: 'mdDatepickerInput',
85+
exportAs: 'mdDatepickerInput, matDatepickerInput',
8686
})
8787
export class MdDatepickerInput<D> implements AfterContentInit, ControlValueAccessor, OnDestroy,
8888
Validator {

src/lib/input/autosize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {Platform} from '@angular/cdk/platform';
1616
@Directive({
1717
selector: `textarea[md-autosize], textarea[mdTextareaAutosize],
1818
textarea[mat-autosize], textarea[matTextareaAutosize]`,
19-
exportAs: 'mdTextareaAutosize',
19+
exportAs: 'mdTextareaAutosize, matTextareaAutosize',
2020
host: {
2121
// Textarea elements that have the directive applied should have a single row by default.
2222
// Browsers normally show two rows by default and therefore this limits the minRows binding.

0 commit comments

Comments
 (0)