Skip to content

Commit a4d0c5a

Browse files
committed
Merge branch 'master' into issue-2011
# Conflicts: # src/lib/checkbox/checkbox.ts
2 parents 7fd1e12 + b842b32 commit a4d0c5a

File tree

318 files changed

+6880
-12733
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

318 files changed

+6880
-12733
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# compiled output
44
/dist
55
/tmp
6-
/typings
76
/deploy
87

98
# dependencies

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ before_script:
5252
script:
5353
- ./scripts/ci/build-and-test.sh
5454

55+
after_success:
56+
- ./scripts/ci/after-success.sh
57+
5558
cache:
5659
directories:
5760
- node_modules

CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,70 @@
1+
<a name="2.0.0-alpha.11"></a>
2+
# [2.0.0-alpha.11 polyester-golem](https://github.com/angular/material2/compare/2.0.0-alpha.9...2.0.0-alpha.11) (2016-12-08)
3+
4+
5+
**NOTE:** Be sure to delete your previous install of `@angular/material` and install it fresh, as
6+
`npm` sometimes doesn't see that there is a more recent alpha release.
7+
8+
### Bug Fixes
9+
10+
* **a11y:** improved accessibility in high contrast mode ([#1941](https://github.com/angular/material2/issues/1941)) ([5cf7d17](https://github.com/angular/material2/commit/5cf7d17)), closes [#421](https://github.com/angular/material2/issues/421) [#1769](https://github.com/angular/material2/issues/1769)
11+
* **button:** ensure icons are aligned vertically. ([#1736](https://github.com/angular/material2/issues/1736)) ([d3a50b3](https://github.com/angular/material2/commit/d3a50b3)), closes [#1093](https://github.com/angular/material2/issues/1093)
12+
* **button:** improved tap responsiveness on mobile ([#1792](https://github.com/angular/material2/issues/1792)) ([4183fbc](https://github.com/angular/material2/commit/4183fbc)), closes [#1316](https://github.com/angular/material2/issues/1316)
13+
* **button:** remove `disabled` attribute when disabled value is false for MdAnchor ([#1789](https://github.com/angular/material2/issues/1789)) ([716372b](https://github.com/angular/material2/commit/716372b))
14+
* **checkbox:** fix native checked not being checked when MdCheckbox initial checked value is true ([#2055](https://github.com/angular/material2/issues/2055)) ([3fd3117](https://github.com/angular/material2/commit/3fd3117))
15+
* **checkbox, input, radio, slide-toggle:** implement setDisabledState from ControlValueAccessor ([#1750](https://github.com/angular/material2/issues/1750)) ([77a960c](https://github.com/angular/material2/commit/77a960c)), closes [#1171](https://github.com/angular/material2/issues/1171)
16+
* **dialog:** add border radius ([#1872](https://github.com/angular/material2/issues/1872)) ([6aa7e22](https://github.com/angular/material2/commit/6aa7e22)), closes [#1868](https://github.com/angular/material2/issues/1868)
17+
* **dialog:** avoid subpixel rendering issues and refactor GlobalPositionStrategy ([#1962](https://github.com/angular/material2/issues/1962)) ([1ea6d34](https://github.com/angular/material2/commit/1ea6d34)), closes [#932](https://github.com/angular/material2/issues/932)
18+
* **dialog:** backdrop not being removed if it doesn't have transitions ([#1716](https://github.com/angular/material2/issues/1716)) ([accab20](https://github.com/angular/material2/commit/accab20)), closes [#1607](https://github.com/angular/material2/issues/1607)
19+
* **elevation:** change elevations to match spec ([#1857](https://github.com/angular/material2/issues/1857)) ([c2597b6](https://github.com/angular/material2/commit/c2597b6))
20+
* **interactivity-checker:** improve robustness of isTabbable ([#1950](https://github.com/angular/material2/issues/1950)) ([4b7e52d](https://github.com/angular/material2/commit/4b7e52d))
21+
* **list:** prevent list item wrapper elements from collapsing ([#2075](https://github.com/angular/material2/issues/2075)) ([27f9c99](https://github.com/angular/material2/commit/27f9c99)), closes [#2012](https://github.com/angular/material2/issues/2012)
22+
* **list-key-manager:** prevent the default keyboard actions ([#2009](https://github.com/angular/material2/issues/2009)) ([a8355e4](https://github.com/angular/material2/commit/a8355e4))
23+
* **menu:** reposition menu if it would open off screen ([#1761](https://github.com/angular/material2/issues/1761)) ([7572e34](https://github.com/angular/material2/commit/7572e34))
24+
* **overlay:** prevent blurry connected overlays ([#1784](https://github.com/angular/material2/issues/1784)) ([303dd69](https://github.com/angular/material2/commit/303dd69))
25+
* **overlay-directives:** update offsets if they change after overlay creation ([#1981](https://github.com/angular/material2/issues/1981)) ([b36db15](https://github.com/angular/material2/commit/b36db15))
26+
* **radio:** fix radio group behavior on change ([#1735](https://github.com/angular/material2/issues/1735)) ([bbc5f6a](https://github.com/angular/material2/commit/bbc5f6a))
27+
* **ripple:** Always remove ripple after a certain period ([#1915](https://github.com/angular/material2/issues/1915)) ([62cc830](https://github.com/angular/material2/commit/62cc830))
28+
* **ripple:** don't create background div until ripple becomes enabled ([#1849](https://github.com/angular/material2/issues/1849)) ([d7a54ef](https://github.com/angular/material2/commit/d7a54ef))
29+
* **ripple:** Fix the ripple position when page is scrolled ([#1907](https://github.com/angular/material2/issues/1907)) ([dd508ea](https://github.com/angular/material2/commit/dd508ea))
30+
* **sidenav:** resolve promise as false rather than ([#1930](https://github.com/angular/material2/issues/1930)) ([7816752](https://github.com/angular/material2/commit/7816752))
31+
* **slider:** emit change event after updating value accessor ([#1901](https://github.com/angular/material2/issues/1901)) ([8caf9a6](https://github.com/angular/material2/commit/8caf9a6))
32+
* **slider:** support for RTL and invert ([#1794](https://github.com/angular/material2/issues/1794)) ([5ac29dd](https://github.com/angular/material2/commit/5ac29dd))
33+
* **spinner:** animation not being cleaned up when used with AoT ([#1838](https://github.com/angular/material2/issues/1838)) ([83de14f](https://github.com/angular/material2/commit/83de14f)), closes [#1283](https://github.com/angular/material2/issues/1283)
34+
* **tab-link:** avoid potential memory leak ([#1877](https://github.com/angular/material2/issues/1877)) ([e332f15](https://github.com/angular/material2/commit/e332f15))
35+
* **tabs:** tabs should update when tabs are added or removed ([#2014](https://github.com/angular/material2/issues/2014)) ([dfc580d](https://github.com/angular/material2/commit/dfc580d))
36+
* **tooltip:** check tooltip disposed on animation hidden ([#1816](https://github.com/angular/material2/issues/1816)) ([9c0d82a](https://github.com/angular/material2/commit/9c0d82a))
37+
* **tooltip:** don't show tooltip if message is empty or not present ([#2081](https://github.com/angular/material2/issues/2081)) ([2701aae](https://github.com/angular/material2/commit/2701aae)), closes [#2078](https://github.com/angular/material2/issues/2078)
38+
* **tooltip:** throw a better error when an invalid position is passed ([#1986](https://github.com/angular/material2/issues/1986)) ([539e44e](https://github.com/angular/material2/commit/539e44e))
39+
40+
41+
### Features
42+
43+
* **select** initial version of md-select (too many commits to list)
44+
* **textarea:** add md-autosize directive (this will be more useful once the md-input refactoring is complete) ([#1846](https://github.com/angular/material2/issues/1846)) ([9ec17c0](https://github.com/angular/material2/commit/9ec17c0))
45+
* **tabs:** paginate tab header when exceeds width ([#2084](https://github.com/angular/material2/issues/2084)) ([92e26d7](https://github.com/angular/material2/commit/92e26d7))
46+
* **tabs:** add ripples to the tab group and nav bar links ([#1700](https://github.com/angular/material2/issues/1700)) ([b9fe75a](https://github.com/angular/material2/commit/b9fe75a))
47+
* **tabs:** animate tab change, include optional dynamic height ([#1788](https://github.com/angular/material2/issues/1788)) ([f6944e4](https://github.com/angular/material2/commit/f6944e4))
48+
* **tabs:** md-stretch-tabs ([#1909](https://github.com/angular/material2/issues/1909)) ([78464a2](https://github.com/angular/material2/commit/78464a2)), closes [#1353](https://github.com/angular/material2/issues/1353)
49+
* **button-toggle:** add option for vertical toggle groups ([#1936](https://github.com/angular/material2/issues/1936)) ([cb0d6fc](https://github.com/angular/material2/commit/cb0d6fc)), closes [#1892](https://github.com/angular/material2/issues/1892)
50+
* **dialog:** add configurable width, height and position ([#1848](https://github.com/angular/material2/issues/1848)) ([bc6cf6e](https://github.com/angular/material2/commit/bc6cf6e)), closes [#1698](https://github.com/angular/material2/issues/1698)
51+
* **dialog:** add the ability to close all dialogs ([#1965](https://github.com/angular/material2/issues/1965)) ([b2999c9](https://github.com/angular/material2/commit/b2999c9))
52+
* **focus-trap:** add the ability to specify a focus target ([#1752](https://github.com/angular/material2/issues/1752)) ([72ac7a0](https://github.com/angular/material2/commit/72ac7a0)), closes [#1468](https://github.com/angular/material2/issues/1468)
53+
* **icon:** added color attribute to md-icon for icon theming ([#1896](https://github.com/angular/material2/issues/1896)) ([da5febc](https://github.com/angular/material2/commit/da5febc))
54+
* **overlay:** emit position change event ([#1832](https://github.com/angular/material2/issues/1832)) ([b79c953](https://github.com/angular/material2/commit/b79c953))
55+
* **overlay:** support min width and min height ([#2063](https://github.com/angular/material2/issues/2063)) ([a695574](https://github.com/angular/material2/commit/a695574))
56+
* **overlay-directives:** attach and detach events ([#1972](https://github.com/angular/material2/issues/1972)) ([a5eab75](https://github.com/angular/material2/commit/a5eab75))
57+
* **overlay-directives:** support fallback positions ([#1865](https://github.com/angular/material2/issues/1865)) ([aa472a0](https://github.com/angular/material2/commit/aa472a0))
58+
* **sidenav:** emit event when backdrop is clicked ([#1638](https://github.com/angular/material2/issues/1638)) ([93807ed](https://github.com/angular/material2/commit/93807ed)), closes [#1427](https://github.com/angular/material2/issues/1427)
59+
* **sidenav:** focus capturing ([#1695](https://github.com/angular/material2/issues/1695)) ([b9c3304](https://github.com/angular/material2/commit/b9c3304))
60+
* **slider:** keyboard support ([#1759](https://github.com/angular/material2/issues/1759)) ([13b7dd0](https://github.com/angular/material2/commit/13b7dd0))
61+
* **slider:** vertical mode ([#1878](https://github.com/angular/material2/issues/1878)) ([deb940f](https://github.com/angular/material2/commit/deb940f))
62+
* **snackbar:** add onAction to snackbar ref ([#1826](https://github.com/angular/material2/issues/1826)) ([a40cae9](https://github.com/angular/material2/commit/a40cae9))
63+
* **snackbar:** add timeout for snackbar ([#1856](https://github.com/angular/material2/issues/1856)) ([6ce6396](https://github.com/angular/material2/commit/6ce6396))
64+
* **tooltip:** show tooltip on longpress; remove delay on mouseleave ([#1819](https://github.com/angular/material2/issues/1819)) ([1552d70](https://github.com/angular/material2/commit/1552d70))
65+
* **a11y:** add wrap mode to key manager ([#1796](https://github.com/angular/material2/issues/1796)) ([3d4abac](https://github.com/angular/material2/commit/3d4abac))
66+
67+
168
<a name="2.0.0-alpha.10"></a>
269
# [2.0.0-alpha.10 mithril-hoverboard](https://github.com/angular/material2/compare/2.0.0-alpha.9...2.0.0-alpha.10) (2016-11-10)
370

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
237237
[github]: https://github.com/angular/material2
238238
[gitter]: https://gitter.im/angular/material2
239239
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
240-
[js-style-guide]: https://google.github.io/styleguide/javascriptguide.xml
240+
[js-style-guide]: https://google.github.io/styleguide/jsguide.html
241241
[codepen]: http://codepen.io/
242242
[jsbin]: http://jsbin.com/
243243
[jsfiddle]: http://jsfiddle.net/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ High level items planned for December 2016:
5555
| list | Available | [README][8] | [#107][0107] |
5656
| grid-list | Available | [README][9] | - |
5757
| icon | Available | [README][10] | - |
58-
| progress-circle | Available | [README][11] | - |
58+
| progress-spinner | Available | [README][11] | - |
5959
| progress-bar | Available | [README][12] | - |
6060
| tabs | Available | [README][13] | - |
6161
| slide-toggle | Available | [README][14] | - |
@@ -95,7 +95,7 @@ High level items planned for December 2016:
9595
[8]: https://github.com/angular/material2/blob/master/src/lib/list/README.md
9696
[9]: https://github.com/angular/material2/blob/master/src/lib/grid-list/README.md
9797
[10]: https://github.com/angular/material2/blob/master/src/lib/icon/README.md
98-
[11]: https://github.com/angular/material2/blob/master/src/lib/progress-circle/README.md
98+
[11]: https://github.com/angular/material2/blob/master/src/lib/progress-spinner/README.md
9999
[12]: https://github.com/angular/material2/blob/master/src/lib/progress-bar/README.md
100100
[13]: https://github.com/angular/material2/blob/master/src/lib/tabs/README.md
101101
[14]: https://github.com/angular/material2/blob/master/src/lib/slide-toggle/README.md

e2e/components/button/button.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {browser, by, element} from 'protractor';
2+
13
describe('button', function () {
24
describe('disabling behavior', function () {
35
beforeEach(function() {

e2e/components/checkbox/checkbox.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {browser, by, element} from 'protractor';
2+
13
describe('checkbox', function () {
24
describe('check behavior', function () {
35
beforeEach(function() {

e2e/components/dialog/dialog.e2e.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
import {browser, by, element, Key, ProtractorBy} from 'protractor';
2+
13
describe('dialog', () => {
24
beforeEach(() => browser.get('/dialog'));
35

46
it('should open a dialog', () => {
57
element(by.id('default')).click();
6-
waitForDialog().then(isPresent => expect(isPresent).toBe(true));
8+
waitForDialog().then((isPresent: boolean) => expect(isPresent).toBe(true));
79
});
810

911
it('should close by clicking on the backdrop', () => {
1012
element(by.id('default')).click();
1113

1214
waitForDialog().then(() => {
1315
clickOnBackrop();
14-
waitForDialog().then(isPresent => expect(isPresent).toBe(false));
16+
waitForDialog().then((isPresent: boolean) => expect(isPresent).toBe(false));
1517
});
1618
});
1719

@@ -20,7 +22,7 @@ describe('dialog', () => {
2022

2123
waitForDialog().then(() => {
2224
pressEscape();
23-
waitForDialog().then(isPresent => expect(isPresent).toBe(false));
25+
waitForDialog().then((isPresent: boolean) => expect(isPresent).toBe(false));
2426
});
2527
});
2628

@@ -29,7 +31,7 @@ describe('dialog', () => {
2931

3032
waitForDialog().then(() => {
3133
element(by.id('close')).click();
32-
waitForDialog().then(isPresent => expect(isPresent).toBe(false));
34+
waitForDialog().then((isPresent: boolean) => expect(isPresent).toBe(false));
3335
});
3436
});
3537

@@ -56,7 +58,7 @@ describe('dialog', () => {
5658
element(by.id('default')).click();
5759

5860
waitForDialog().then(() => {
59-
let tab = protractor.Key.TAB;
61+
let tab = Key.TAB;
6062

6163
browser.actions().sendKeys(tab, tab, tab).perform();
6264
expectFocusOn(element(by.id('close')));
@@ -68,7 +70,7 @@ describe('dialog', () => {
6870

6971
waitForDialog().then(() => {
7072
clickOnBackrop();
71-
waitForDialog().then(isPresent => expect(isPresent).toBe(true));
73+
waitForDialog().then((isPresent: boolean) => expect(isPresent).toBe(true));
7274
});
7375
});
7476

@@ -77,25 +79,25 @@ describe('dialog', () => {
7779

7880
waitForDialog().then(() => {
7981
pressEscape();
80-
waitForDialog().then(isPresent => expect(isPresent).toBe(true));
82+
waitForDialog().then((isPresent: boolean) => expect(isPresent).toBe(true));
8183
});
8284
});
8385

8486
function waitForDialog() {
85-
return browser.isElementPresent(by.css('md-dialog-container'));
87+
return browser.isElementPresent(by.css('md-dialog-container') as ProtractorBy);
8688
}
8789

8890
function clickOnBackrop() {
8991
browser.actions()
9092
// We need to move the cursor to the top left so
9193
// the dialog doesn't receive the click accidentally.
92-
.mouseMove(element(by.css('.md-overlay-backdrop')).getWebElement(), { x: 0, y: 0 })
94+
.mouseMove(element(by.css('.cdk-overlay-backdrop')).getWebElement(), { x: 0, y: 0 })
9395
.click()
9496
.perform();
9597
}
9698

9799
function pressEscape() {
98-
browser.actions().sendKeys(protractor.Key.ESCAPE).perform();
100+
browser.actions().sendKeys(Key.ESCAPE).perform();
99101
}
100102

101103
// TODO(crisbeto): should be moved to a common util. copied from the menu e2e setup.

e2e/components/grid-list/grid-list.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {browser, by, element} from 'protractor';
2+
13
describe('grid-list', () => {
24
beforeEach(() => browser.get('/grid-list'));
35

e2e/components/icon/icon.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {browser, by, element} from 'protractor';
2+
13
describe('icon', () => {
24
describe('font icons by ligature', () => {
35
let testIcon: any;

e2e/components/list/list.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import {browser, by, element} from 'protractor';
2+
13
describe('list', () => {
24
beforeEach(() => browser.get('/list'));
35

e2e/components/menu/menu-page.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ElementFinder = protractor.ElementFinder;
1+
import {browser, by, element, ElementFinder, ProtractorBy} from 'protractor';
22

33
export class MenuPage {
44

@@ -14,11 +14,9 @@ export class MenuPage {
1414

1515
triggerTwo() { return element(by.id('trigger-two')); }
1616

17-
backdrop() { return element(by.css('.md-overlay-backdrop')); }
17+
backdrop() { return element(by.css('.cdk-overlay-backdrop')); }
1818

19-
items(index: number) {
20-
return element.all(by.css('[md-menu-item]')).get(index);
21-
}
19+
items(index: number) { return element.all(by.css('[md-menu-item]')).get(index); }
2220

2321
textArea() { return element(by.id('text')); }
2422

@@ -35,26 +33,27 @@ export class MenuPage {
3533
combinedMenu() { return element(by.css('.md-menu-panel.combined')); }
3634

3735
// TODO(kara): move to common testing utility
38-
pressKey(key: any): void {
36+
pressKey(key: string): void {
3937
browser.actions().sendKeys(key).perform();
4038
}
4139

4240
// TODO(kara): move to common testing utility
43-
expectFocusOn(el: ElementFinder): void {
41+
expectFocusOn(el: any): void {
4442
expect(browser.driver.switchTo().activeElement().getInnerHtml())
4543
.toBe(el.getInnerHtml());
4644
}
4745

4846
expectMenuPresent(expected: boolean) {
49-
return browser.isElementPresent(by.css('.md-menu-panel')).then(isPresent => {
50-
expect(isPresent).toBe(expected);
51-
});
47+
return browser.isElementPresent(by.css('.md-menu-panel') as ProtractorBy)
48+
.then((isPresent: boolean) => {
49+
expect(isPresent).toBe(expected);
50+
});
5251
}
5352

5453
expectMenuLocation(el: ElementFinder, {x, y}: {x: number, y: number}) {
5554
el.getLocation().then(loc => {
56-
expect(loc.x).toEqual(x);
57-
expect(loc.y).toEqual(y);
55+
expect(loc.x).toEqual(x, 'Expect the x-position to be equal');
56+
expect(loc.y).toEqual(y, 'Expect the y-position to be equal');
5857
});
5958
}
6059

0 commit comments

Comments
 (0)