Skip to content

Commit ce66095

Browse files
Merge branch 'master' into ts-2.6-errors
2 parents 4a9f2e5 + 6d94aec commit ce66095

File tree

299 files changed

+19488
-6738
lines changed

Some content is hidden

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

299 files changed

+19488
-6738
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
# This may be unnecessary once rules_nodejs uses nodejs 8
3737
- run: bazel run @nodejs//:npm run postinstall
3838
- run: bazel build src/...
39+
- run: bazel test src/...
3940
- save_cache:
4041
key: material2-{{ .Branch }}-{{ checksum "package-lock.json" }}
4142
paths:

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
/src/lib/tabs/** @andrewseguin
3333
/src/lib/toolbar/** @devversion
3434
/src/lib/tooltip/** @andrewseguin
35+
/src/lib/badge/** @amcdnl
36+
/src/lib/tree/** @tinayuangao
3537

3638
# Angular Material core
3739
/src/lib/core/* @jelbourn
@@ -70,6 +72,7 @@
7072
/src/cdk/stepper/** @mmalerba
7173
/src/cdk/table/** @andrewseguin
7274
/src/cdk/testing/** @devversion
75+
/src/cdk/tree/** @tinayuangao
7376

7477
# Moment adapter package
7578
/src/material-moment-adapter/** @mmalerba
@@ -128,7 +131,9 @@
128131
/src/demo-app/tabs/** @andrewseguin
129132
/src/demo-app/toolbar/** @devversion
130133
/src/demo-app/tooltip/** @andrewseguin
134+
/src/demo-app/tree/** @tinayuangao
131135
/src/demo-app/typography/** @crisbeto
136+
/src/demo-app/badge/** @amcdnl
132137

133138
# E2E app
134139
/e2e/* @jelbourn

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,21 @@ jobs:
2626
- env: "MODE=aot"
2727
- env: "MODE=payload"
2828
- env: "MODE=prerender"
29-
# Closure Compiler CI check is temporarily disabled until a new version of
30-
# the tool is released with https://github.com/google/closure-compiler/pull/2600
31-
# - env: "MODE=closure-compiler"
3229
- env: "MODE=e2e"
3330
- env: "MODE=saucelabs_required"
3431
- env: "MODE=browserstack_required"
3532
- env: "MODE=travis_required"
3633
- env: "DEPLOY_MODE=build-artifacts"
34+
if: type = push
3735
- env: "DEPLOY_MODE=docs-content"
36+
if: type = push
3837
- env: "DEPLOY_MODE=screenshot-tool"
38+
if: type = cron
3939
- env: "DEPLOY_MODE=dashboard"
40+
if: type = cron
41+
# Closure Compiler CI check is temporarily disabled until a new version of
42+
# the tool is released with https://github.com/google/closure-compiler/pull/2600
43+
# - env: "MODE=closure-compiler"
4044
env:
4145
global:
4246
- LOGS_DIR=/tmp/angular-material2-build/logs

BUILD.bazel

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,67 @@ filegroup(
1414
# TODO(alexeagle): figure out what to do
1515
srcs = glob(["/".join(["node_modules", pkg, "**", ext]) for pkg in [
1616
"@angular",
17-
"jasmine",
18-
"typescript",
19-
"tslib",
20-
"zone.js",
2117
"@types",
22-
"tsickle",
23-
"hammerjs",
24-
"protobufjs",
2518
"bytebuffer",
26-
"reflect-metadata",
19+
"hammerjs",
20+
"jasmine",
2721
"minimist",
2822
"moment",
23+
"protobufjs",
24+
"protractor",
25+
"reflect-metadata",
26+
"tsickle",
27+
"tslib",
28+
"tsutils",
29+
"typescript",
30+
"zone.js",
2931
] for ext in [
3032
"*.js",
3133
"*.json",
3234
"*.d.ts",
33-
]]),
35+
]] + [
36+
"node_modules/http-server/**",
37+
]),
38+
)
39+
40+
41+
# Glob pattern that matches all Angular testing bundles.
42+
ANGULAR_TESTING = [
43+
"node_modules/@angular/*/bundles/*-testing.umd.js",
44+
# The compiler and the dynamic platform-browser should be visible only in tests
45+
"node_modules/@angular/compiler/bundles/*.umd.js",
46+
"node_modules/@angular/platform-browser-dynamic/bundles/*.umd.js",
47+
]
48+
49+
filegroup(
50+
name = "angular_bundles",
51+
srcs = glob(["node_modules/@angular/*/bundles/*.umd.js"], exclude = ANGULAR_TESTING),
52+
)
53+
54+
filegroup(
55+
name = "angular_test_bundles",
56+
testonly = 1,
57+
srcs = glob(ANGULAR_TESTING),
3458
)
3559

60+
filegroup(
61+
name = "tslib_bundle",
62+
testonly = 1,
63+
srcs = glob(["node_modules/tslib/tslib.js"]),
64+
)
65+
66+
# Files necessary for unit tests that use zonejs
67+
filegroup(
68+
name = "web_test_bootstrap_scripts",
69+
# The order of these deps is important.
70+
# Do not sort.
71+
srcs = [
72+
"//:node_modules/reflect-metadata/Reflect.js",
73+
"//:node_modules/zone.js/dist/zone.js",
74+
"//:node_modules/zone.js/dist/async-test.js",
75+
"//:node_modules/zone.js/dist/sync-test.js",
76+
"//:node_modules/zone.js/dist/fake-async-test.js",
77+
"//:node_modules/zone.js/dist/proxy.js",
78+
"//:node_modules/zone.js/dist/jasmine-patch.js",
79+
],
80+
)

CHANGELOG.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,81 @@
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+
39+
<a name="6.0.0-beta-0"></a>
40+
# [6.0.0-beta-0](https://github.com/angular/material2/compare/5.2.0...6.0.0-beta-0) (2018-02-12)
41+
42+
43+
### Bug Fixes
44+
45+
* **overlay:** validate that ConnectedPositionStrategy positions are passed in correctly at runtime ([#9466](https://github.com/angular/material2/issues/9466)) ([6a8ce02](https://github.com/angular/material2/commit/6a8ce02))
46+
47+
48+
### Features
49+
50+
* add bottom sheet component ([#9764](https://github.com/angular/material2/issues/9764)) ([bbf62cd](https://github.com/angular/material2/commit/bbf62cd))
51+
* **datepicker:** @Output for year and month selected in multiyear/year ([#9678](https://github.com/angular/material2/issues/9678)) ([c2e108e](https://github.com/angular/material2/commit/c2e108e))
52+
* **expansion:** add accordion expand/collapse all ([#6929](https://github.com/angular/material2/issues/6929)) ([#7461](https://github.com/angular/material2/issues/7461)) ([3aceb73](https://github.com/angular/material2/commit/3aceb73))
53+
* **form-field, chip:** merge new form-field and chip features to master ([#9762](https://github.com/angular/material2/issues/9762)) ([4a5287c](https://github.com/angular/material2/commit/4a5287c)), closes [#9743](https://github.com/angular/material2/issues/9743) [#9759](https://github.com/angular/material2/issues/9759) [#9767](https://github.com/angular/material2/issues/9767)
54+
* **schematics:** add initial schematics utils ([#9451](https://github.com/angular/material2/issues/9451)) ([673d56e](https://github.com/angular/material2/commit/673d56e))
55+
* **tabs:** add ability to lazy load tab content ([#8921](https://github.com/angular/material2/issues/8921)) ([6feaf62](https://github.com/angular/material2/commit/6feaf62))
56+
57+
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+
78+
179
<a name="5.2.1"></a>
280
## [5.2.1 ghillie-soup](https://github.com/angular/material2/compare/5.2.0...5.2.1) (2018-02-12)
381

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)