Skip to content

Commit 46b2c9d

Browse files
author
Tobias Schweizer
committed
Merge branch 'master' into tobiasschweizer/calendar-header-comp
# Conflicts: # src/lib/datepicker/calendar.ts
2 parents b238107 + 64ef3a8 commit 46b2c9d

File tree

242 files changed

+7564
-1218
lines changed

Some content is hidden

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

242 files changed

+7564
-1218
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/src/lib/toolbar/** @devversion
3434
/src/lib/tooltip/** @andrewseguin
3535
/src/lib/badge/** @amcdnl
36+
/src/lib/tree/** @tinayuangao
3637

3738
# Angular Material core
3839
/src/lib/core/* @jelbourn
@@ -71,6 +72,7 @@
7172
/src/cdk/stepper/** @mmalerba
7273
/src/cdk/table/** @andrewseguin
7374
/src/cdk/testing/** @devversion
75+
/src/cdk/tree/** @tinayuangao
7476

7577
# Moment adapter package
7678
/src/material-moment-adapter/** @mmalerba
@@ -129,6 +131,7 @@
129131
/src/demo-app/tabs/** @andrewseguin
130132
/src/demo-app/toolbar/** @devversion
131133
/src/demo-app/tooltip/** @andrewseguin
134+
/src/demo-app/tree/** @tinayuangao
132135
/src/demo-app/typography/** @crisbeto
133136
/src/demo-app/badge/** @amcdnl
134137

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
<a name="6.0.0-beta.2"></a>
2+
# [6.0.0-beta.2](https://github.com/angular/material2/compare/6.0.0-beta-0...6.0.0-beta.2) (2018-02-21)
3+
4+
5+
### Bug Fixes
6+
7+
* **badge:** AoT and server-side rendering errors ([#9935](https://github.com/angular/material2/issues/9935)) ([06b4017](https://github.com/angular/material2/commit/06b4017))
8+
* **badge:** hard to see in high contrast mode ([#9973](https://github.com/angular/material2/issues/9973)) ([1b2f90c](https://github.com/angular/material2/commit/1b2f90c))
9+
* **badge:** incorrectly setting aria-describedby ([#9957](https://github.com/angular/material2/issues/9957)) ([aed7e8a](https://github.com/angular/material2/commit/aed7e8a))
10+
* **badge:** move styles into the theme mixin ([#9999](https://github.com/angular/material2/issues/9999)) ([00a6c90](https://github.com/angular/material2/commit/00a6c90))
11+
* **badge:** remove top-level ampersand selectors from theme mixin ([#9991](https://github.com/angular/material2/issues/9991)) ([bd7a408](https://github.com/angular/material2/commit/bd7a408)), closes [#9990](https://github.com/angular/material2/issues/9990)
12+
* **bottom-sheet:** inject correct directionality in child components ([#9996](https://github.com/angular/material2/issues/9996)) ([9d784a0](https://github.com/angular/material2/commit/9d784a0))
13+
* **button:** inconsistent overflow value between browsers ([#9933](https://github.com/angular/material2/issues/9933)) ([9d19291](https://github.com/angular/material2/commit/9d19291))
14+
* **chips:** Fix chip and chip list selectable ([#9955](https://github.com/angular/material2/issues/9955)) ([949a69b](https://github.com/angular/material2/commit/949a69b))
15+
* **expansion-panel,menu,select:** nested animations not working ([#9134](https://github.com/angular/material2/issues/9134)) ([1e2b79a](https://github.com/angular/material2/commit/1e2b79a)), closes [#8814](https://github.com/angular/material2/issues/8814) [#8953](https://github.com/angular/material2/issues/8953)
16+
* **input:** AutofillMonitor stream not being completed when stopping monitoring ([#9886](https://github.com/angular/material2/issues/9886)) ([87bbfc5](https://github.com/angular/material2/commit/87bbfc5))
17+
* **overlay:** default to global directionality ([#9994](https://github.com/angular/material2/issues/9994)) ([47674f1](https://github.com/angular/material2/commit/47674f1)), closes [#9817](https://github.com/angular/material2/issues/9817)
18+
* **tooltip:** memory leak in _setTooltipMessage ([#6782](https://github.com/angular/material2/issues/6782)) ([66a01fb](https://github.com/angular/material2/commit/66a01fb))
19+
20+
### Features
21+
22+
* **button-toggle** add ripples to button-toggle ([#9891](https://github.com/angular/material2/issues/9891)) ([53417d4](https://github.com/angular/material2/commit/53417d4)), closes [#9442](https://github.com/angular/material2/issues/9442)
23+
* **autocomplete:** add opened/closed events to panel ([#9904](https://github.com/angular/material2/issues/9904)) ([82c5ff0](https://github.com/angular/material2/commit/82c5ff0)), closes [#9894](https://github.com/angular/material2/issues/9894)
24+
* **badge:** add badge component ([#7483](https://github.com/angular/material2/issues/7483)) ([c98d217](https://github.com/angular/material2/commit/c98d217))
25+
* **bottom-sheet:** add result param when dismissing bottom sheet ([#9810](https://github.com/angular/material2/issues/9810)) ([98a6910](https://github.com/angular/material2/commit/98a6910))
26+
* **datepicker:** add theming support ([#9407](https://github.com/angular/material2/issues/9407)) ([0383704](https://github.com/angular/material2/commit/0383704))
27+
* **drawer:** allow for backdrop to be disabled ([#9381](https://github.com/angular/material2/issues/9381)) ([6d4e052](https://github.com/angular/material2/commit/6d4e052)), closes [#5300](https://github.com/angular/material2/issues/5300)
28+
* **schematics:** add material scaffolding schematic ([#9883](https://github.com/angular/material2/issues/9883)) ([45399c6](https://github.com/angular/material2/commit/45399c6))
29+
* **typography:** add letter-spacing configuration to typography configs. ([#9932](https://github.com/angular/material2/issues/9932)) ([f30609c](https://github.com/angular/material2/commit/f30609c))
30+
31+
32+
33+
<a name="6.0.0-beta.1"></a>
34+
# [6.0.0-beta.1](https://github.com/angular/material2/compare/5.2.0...6.0.0-beta-0) (2018-02-12)
35+
36+
* Fix typo in version name (using a dash instead of a dot)
37+
* Update Angular peer dependency to 6.0.0-beta.x
38+
139
<a name="6.0.0-beta-0"></a>
240
# [6.0.0-beta-0](https://github.com/angular/material2/compare/5.2.0...6.0.0-beta-0) (2018-02-12)
341

@@ -17,6 +55,26 @@
1755
* **tabs:** add ability to lazy load tab content ([#8921](https://github.com/angular/material2/issues/8921)) ([6feaf62](https://github.com/angular/material2/commit/6feaf62))
1856

1957

58+
<a name="5.2.2"></a>
59+
## [5.2.2 cork-yacht](https://github.com/angular/material2/compare/5.2.1...5.2.2) (2018-02-21)
60+
61+
62+
### Bug Fixes
63+
64+
* **aria-describer:** better handling of non-string values ([#9959](https://github.com/angular/material2/issues/9959)) ([d351e33](https://github.com/angular/material2/commit/d351e33))
65+
* **list:** list-options require a parent selection list ([#9899](https://github.com/angular/material2/issues/9899)) ([8cca2c2](https://github.com/angular/material2/commit/8cca2c2))
66+
* **list-key-manager:** infinite loop if all items are disabled ([#9981](https://github.com/angular/material2/issues/9981)) ([775f560](https://github.com/angular/material2/commit/775f560))
67+
* **menu:** not picking up indirect descendant items ([#9971](https://github.com/angular/material2/issues/9971)) ([14b21e9](https://github.com/angular/material2/commit/14b21e9)), closes [#9969](https://github.com/angular/material2/issues/9969)
68+
* **overlay:** expose backdropClick mouse event in ConnectedOverlayDirective ([#9845](https://github.com/angular/material2/issues/9845)) ([5a1e7fe](https://github.com/angular/material2/commit/5a1e7fe))
69+
* **platform:** potential error if CSS object is undefined ([#9968](https://github.com/angular/material2/issues/9968)) ([3212111](https://github.com/angular/material2/commit/3212111)), closes [#9801](https://github.com/angular/material2/issues/9801)
70+
* **select:** icons inside option not centered ([#9982](https://github.com/angular/material2/issues/9982)) ([ecc7f53](https://github.com/angular/material2/commit/ecc7f53)), closes [#9978](https://github.com/angular/material2/issues/9978)
71+
* **select:** lock dropdown position when scrolling ([#9789](https://github.com/angular/material2/issues/9789)) ([30b90a2](https://github.com/angular/material2/commit/30b90a2))
72+
* **selection-list:** incorrect cursor if disabled ([#9963](https://github.com/angular/material2/issues/9963)) ([13e809a](https://github.com/angular/material2/commit/13e809a)), closes [#9952](https://github.com/angular/material2/issues/9952)
73+
* **tabs:** ink bar not visible in high contrast mode ([#9997](https://github.com/angular/material2/issues/9997)) ([1ba04eb](https://github.com/angular/material2/commit/1ba04eb))
74+
* **theming:** add aliases for alternate spelling of "grey" ([#9903](https://github.com/angular/material2/issues/9903)) ([36e1bc0](https://github.com/angular/material2/commit/36e1bc0))
75+
* **viewport-ruler:** fix server-side rendering errors when attempting to measure the viewport ([#9870](https://github.com/angular/material2/issues/9870)) ([ac4cd91](https://github.com/angular/material2/commit/ac4cd91))
76+
77+
2078

2179
<a name="5.2.1"></a>
2280
## [5.2.1 ghillie-soup](https://github.com/angular/material2/compare/5.2.0...5.2.1) (2018-02-12)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for more insight into our process.
2323
If you'd like to contribute, you must follow our [contributing guidelines](https://github.com/angular/material2/blob/master/CONTRIBUTING.md).
2424
You can look through the issues (which should be up-to-date on who is working on which features
2525
and which pieces are blocked) and make a comment.
26-
Also see our [`Good for community contribution`](https://github.com/angular/material2/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+for+community+contribution%22)
26+
Also see our [`help wanted`](https://github.com/angular/material2/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
2727
label.
2828

2929
High level stuff planned for Q1 2018 (January - March):

build-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const buildVersion = package.version;
1313
* Required Angular version for all Angular Material packages. This version will be used
1414
* as the peer dependency version for Angular in all release packages.
1515
*/
16-
const angularVersion = '^5.0.0';
16+
const angularVersion = '>=6.0.0-beta.0 <7.0.0';
1717

1818
/** License that will be placed inside of all created bundles. */
1919
const buildLicense = `/**

guides/bidirectionality.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
### Setting a text-direction for your application
44
The [`dir` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir)
55
is typically applied to `<html>` or `<body>` element of a page. However, it can be used on any
6-
element to apply a text-direction to a smaller subset of the page.
6+
element, within your Angular app, to apply a text-direction to a smaller subset of the page.
77

88
All Angular Material components automatically reflect the LTR/RTL direction
9-
of their container.
9+
of their container.
1010

1111
### Reading the text-direction in your own components
1212
`@angular/cdk/bidi` provides a `Directionality` injectable that can be used by any component
13-
in your application. To consume this injectable, you must import `BidiModule`
14-
from `@angular/cdk/bidi`.
13+
in your application. To consume it, you must import `BidiModule` from `@angular/cdk/bidi`.
1514

1615
`Directionality` provides two useful properties:
1716
* `value`: the current text direction, either `'ltr'` or `'rtl'`.
1817
* `change`: an `Observable` that emits whenever the text-direction changes. Note that this only
1918
captures changes from `dir` attributes _inside the Angular application context_. It will not
20-
emit for changes to `dir` on `<html>` and `<body>`, as these are assumed to be static.
19+
emit for changes to `dir` on `<html>` and `<body>`, as they are assumed to be static.
2120

2221
#### Example
2322
```ts
24-
@Component({ /* ... */})
23+
@Component({ /* ... */ })
2524
export class MyCustomComponent {
2625
private dir: Direction;
2726

2827
constructor(directionality: Directionality) {
2928
this.dir = directionality.value;
29+
3030
directionality.change.subscribe(() => {
3131
this.dir = directionality.value;
3232
});

guides/theming-your-components.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ You can use the `mat-color` function to extract a specific color from a palette.
6565
// Use mat-color to extract individual colors from a palette as necessary.
6666
// The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
6767
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
68-
// For example a hue of "darker-contrast" gives a light color to contrast with a "darker" hue
68+
// For example a hue of "darker-contrast" gives a light color to contrast with a "darker" hue.
69+
// Note that quotes are needed when using a numeric hue with the "-contrast" modifier.
6970
// Available color palettes: https://www.google.com/design/spec/style/color.html
7071
.candy-carousel {
7172
background-color: mat-color($candy-app-primary);
7273
border-color: mat-color($candy-app-accent, A400);
73-
color: mat-color($candy-app-primary, darker);
74+
color: mat-color($candy-app-primary, '100-contrast');
7475
}
7576
```

0 commit comments

Comments
 (0)