Commit Graph

1871 Commits

Author SHA1 Message Date
Kristiyan Kostadinov ae5bca261a chore(autocomplete): switch to OnPush change detection (#5546)
* Switches `md-autocomplete` to `OnPush` change detection.
* Fixes a newly-introduced test failure.

Relates to #5035.
2017-07-08 18:57:45 -07:00
Paul Gschwendtner 9ab0c90493 fix(button-toggle): button-toggle module depends on forms module (#5542) 2017-07-08 18:57:17 -07:00
Paul Gschwendtner d716b002ef fix(slide-toggle): slide-toggle module depends on forms module (#5523)
* Currently the slide-toggle module always imports the `FormsModule` and therefore when treeshaking the `FormsModule` would be always included (even if FormsModule is not used at all)
2017-07-08 18:56:29 -07:00
Kristiyan Kostadinov 173cdddd8f chore(menu): switch to OnPush change detection (#5518)
Switches the `md-menu` and `md-menu-item` components to `OnPush` change detection.

Relates to #5035.
2017-07-08 18:55:08 -07:00
Kristiyan Kostadinov 1efa594c6b fix(expansion-panel): remove closed panel contents from tab order (#5441)
Fixes being able to tab into the content of a closed `md-expansion-panel`.

Fixes #5432.
2017-07-08 18:53:54 -07:00
Paul Gschwendtner 97494f75ac fix(select): required asterisk should use warn color (#5498)
* When the select is focused and is also required, the asterisk of the select should use the accent palette. Similar to the Material Design input specifications.

Fixes #5496
2017-07-08 18:53:08 -07:00
Kristiyan Kostadinov 42b2413ab8 chore(progess-spinner): switch to OnPush change detection (#5421)
* Switches the progress spinner component to `OnPush` change detection.
* Removes a workaround for older Angular 2.x versions where inherited lifecycle hooks weren't being called.
* Fixes some wrong terminology in the spinner demo.

Relates to #5035.
2017-07-08 18:50:30 -07:00
Joey Perrott c9a4320a0b Emit events for home and end key events on slider. (#5139) 2017-07-08 18:49:39 -07:00
Kristiyan Kostadinov d810138475 fix(menu): complete close stream on destroy (#5368)
This is something I noticed while working on the nested menus: We're subscribing to the `close` event internally inside the menu trigger, but we're never unsubscribing. These changes complete the observable so we don't have to unsubscribe manually.
2017-07-08 18:48:58 -07:00
Paul Gschwendtner 8817b4da8d refactor: remove unused promise completer (#5522)
* The PromiseCompleter is not used anywhere and in reality everbody can implement such a thing on his own. Also since there is the best practice to resolve/reject the promise while being inside of the anonymous function.
2017-07-07 20:51:02 -07:00
Paul Gschwendtner 48e4e926a6 build: incorrect path mapping in editor tsconfig (#5591)
* The root tsconfig file used to have proper autocompletion in editors like WebStorm is currently not working correctly. The path to the `@angular/cdk/testing` package is mapped to a non-existing folder.
2017-07-07 15:04:42 -07:00
Paul Gschwendtner 589dc05149 build: enable no-unused-variable lint rule (#5184)
* Now TSLint starts reporting unused variables again (Rule has been un-deprecated and now uses the type checker
* In favor of linting the whole project the tsconfig file inside of `src/` needs to live in the project root.
2017-07-07 11:42:52 -07:00
Juliano eedf36cafd fix(github docs): Includes @angular/cdk in installation instructions (#5555)
* includes @angular/cdk in github material installation instructions

* Mention the latest builds instructions

Add the latest builds instructions in the installation section (Step 1).

* Delete the installation section

The Getting Started section has all the information necessary to proceed with installations: https://github.com/angular/material2/issues/5552#issuecomment-313581831
2017-07-07 10:16:15 -07:00
Kristiyan Kostadinov 2732bb4fbb chore(snack-bar): switch to OnPush change detection (#5515)
* Switches the snack bar component to `OnPush` change detection.
* Removes the `detectChanges` workaround for the choppy animations, because it no longer works with `OnPush`. Properly fixes the initial issue by providing a `void` animation state.

Relates to #5035.
2017-07-07 10:13:31 -07:00
michastreppel 32db2bafea fix(tooltip): remove native event listener on component destroy (#5144)
* fix(tooltip): remove native event listener on component destroy

Component should clean up events it has registered to.

Closes #4499

* Break at higher syntactic level

* Undo accidental formatting
2017-07-07 10:06:22 -07:00
Kristiyan Kostadinov 68241a8640 fix(dialog): add config option for aria-describedby (#5365)
Adds an option to the dialog config that allows for the `aria-describedby` to be set on the dialog container.
2017-07-07 10:05:04 -07:00
Kristiyan Kostadinov 6b4f9c86b2 fix(select): disabled select being set to touched state on click (#5328)
Fixes being able to set a disabled `md-select` to `touched` by clicking on it.
2017-07-07 10:04:07 -07:00
Kristiyan Kostadinov a5a8ff25e3 fix(chips): not visible in high contrast mode (#5338)
Fixes `md-chip` instances not being visible for users running high contrast mode.
2017-07-07 10:02:45 -07:00
Kristiyan Kostadinov 36dc75a39a fix(input): prevent textarea from resizing beyond input container (#5333)
Prevents `textarea` instances from resizing beyond their `md-input-container`.
2017-07-07 10:01:33 -07:00
Kristiyan Kostadinov b8c900c3f5 fix(select): wrong option amount being read out by NVDA (#5181)
Fixes an issue that caused the wrong amount of options to be read out by NVDA. E.g. if the select has 3 options, NVDA reads out "<value> selected, 2 of 4". The issue seems to come from the fact that NVDA considers the trigger as one of the options, potentially because it's clickable.
2017-07-07 09:58:54 -07:00
Kristiyan Kostadinov 4d3919bc53 chore(list): switch to OnPush change detection (#5520)
Switches the `md-list` and `md-list-item` to `OnPush` change detection.

Relates to #5035.
2017-07-07 09:57:30 -07:00
Kristiyan Kostadinov b3957d8083 refactor(menu): set animation origin based on overlay position (#5347)
Uses the menu panel's overlay position to determine the animation origin, instead of the trigger. These changes make it easier to follow and avoid having to correct it explicitly based on the `overlapTrigger` flag, in addition to fixing some issues in nested menus.
2017-07-07 09:06:45 -07:00
Leo Caseiro dd230a3090 docs(table): set correct CDK data-table link (#5565)
The correct link is `/guide/cdk-table` instead of ~/guides/cdk-
2017-07-06 23:28:37 -07:00
robindijkhof 20e704b074 test(input): add textarea e2e test (#5517)
* e2e(input): add textarea e2e test

* test(input): remove fdescribe
2017-07-06 15:53:21 -07:00
Paul Gschwendtner e3f3233c88 build: dgeni is building docs twice (#5536)
* With #5429 dgeni runs twice when running the `gulp docs` command. This is because the dgeni generate function has been added to the `dgeni/index.js` file.
2017-07-06 15:52:01 -07:00
Paul Gschwendtner bb500b71cc tests(checkbox, slide-toggle): use fakeAsync instead of whenStable (#5547)
* Most of the `whenStable()` promise calls can be replaced with the `flushMicrotasks` method, which just flushes them instead of waiting for them to really happen (when using `async`).
* This reduces nesting of functions and also makes the tests in theory faster.
2017-07-06 15:51:43 -07:00
Jeremy Elbourn 24035b0f25 chore: update readme for beta.8 (#5558) 2017-07-06 15:50:47 -07:00
Paul Gschwendtner 95590613cc build: randomize execution order of tests (#5425)
* Randomizes the order of test execution inside of Jasmine / Karma.
2017-07-06 15:50:05 -07:00
Kristiyan Kostadinov 448db8b416 fix(tabs): server-side rendering error when aligning ink bar (#5455)
* Fixes a server-side rendering error in the ink bar due to a lack of `requestAnimationFrame`. The error is being logged, but it didn't fail the build, because it happens in a lifecycle hook.
* Enables the checkbox and button toggle cases in the kitchen sink since it looks like they're not failing anymore.
2017-07-06 15:47:30 -07:00
Paul Gschwendtner 8de3b98935 refactor: move testing utilities to cdk (#5437)
* Deletes the duplicate testing utilities because #5386 just copied them to the CDK but didn't delete the old files.
* Introduces a secondary entry point (only inside of development right now) that allows us to use the testing utilities from the Material package tests
2017-07-06 15:46:29 -07:00
Jeremy Elbourn ac3e21a334 chore: bump version to beta.8 w/ changelog (#5541) 2017-07-06 10:04:10 -07:00
Jeremy Elbourn 8a74973c8a docs(table): add missing table JsDoc (#5525) 2017-07-05 18:50:27 -07:00
Jeremy Elbourn 3181335074 Revert "build: publish build tools on github (#5458)" (#5526)
This reverts commit 0675568d03.
2017-07-05 18:10:22 -07:00
Andrew Seguin 38b4265704 docs(sort): add initial sorting docs (#5513)
* docs(sort): add initial sorting docs

* add newlines

* update

* minor

* rebase, add table example
2017-07-05 16:32:31 -07:00
Jeremy Elbourn d65087bc6b docs(paginator): rephrase overview intro (#5519) 2017-07-05 16:30:56 -07:00
Kristiyan Kostadinov 79fb7582dd build: fail build for prerender errors in lifecycle hooks (#5459)
* Currently the build won't fail if an error is thrown inside a lifecycle hook, because `platform-server` writes it to STDERR, but still exits with a 0 code. These changes set up the Universal testing task to fail for these cases as well. This should prevent issues like #5455 in the future.
* Stops logging the entire rendered document after the prerender task is done. This makes the log a bit easier to look through.
2017-07-05 16:30:11 -07:00
Paul Gschwendtner 0675568d03 build: publish build tools on github (#5458)
* Publishes the material2-build-tools on Github.
2017-07-05 16:29:52 -07:00
Jeremy Elbourn 45624077c6 docs: add temporary docs for cdk (#5429) 2017-07-05 16:29:35 -07:00
Andrew Seguin 6499ccbb5c Table docs (#5449)
* docs(table): initial table docs

* add filtering msg

* add overview

* fix height

* split cdk table into guide

* revisions

* add to examples

* fix heading

* example changes

* lint

* example style prefix, rename file

* newline
2017-07-05 16:28:51 -07:00
mmalerba 05302b8380 docs(input): add example of a clearable input (#3730)
* docs(input): add example of a clearable input

* use icon button
2017-07-05 15:46:04 -07:00
Jeremy Elbourn 8ae4d9d085 build: add flatModuleIndexRedirect to generated metadata redirect (#5512) 2017-07-05 10:35:22 -07:00
Paul Gschwendtner 960d7eb1fe docs(ripple): remove outdated createRipple method in docs (#5497)
* Replaces the outdated `createRipple()` method with the new `launch()` method in the docs.

Fixes #5480
2017-07-05 10:34:33 -07:00
Paul Gschwendtner 41942d4678 build: use sequence task function from build-tools (#5473)
* Switches the manual use of `run-sequence` to the utility function `sequenceTask` from the build-tools.
2017-07-05 10:34:05 -07:00
Paul Gschwendtner 3580806adb chore: remove invalid rx type dependency (#5462)
* At some point the `@types/rx` package has been added as a dependency on the project. The `@types/rx` are not for the RxJS implementation that Angular uses. Also RxJS provides typings on it's own since it's build using TypeScript.
2017-07-05 10:33:34 -07:00
Paul Gschwendtner bf2326004a build: use node to resolve build version (#5460)
* instead of using a complex RegExp that will likely break at some point in the future, we are switching to a single-line NodeJS script to resolve the version.
2017-07-05 10:30:34 -07:00
Austin 17d6346977 docs(datepicker): datepicker overview demos (#5273)
* docs(datepicker): datepicker overview demos

* chore(*): rename `DatePickerAPIExample` to `DatepickerApiExample`

* chore(*): files end w/ new lines

* chore(demo): update date filter demo to exclude weekends

* docs(datepicker): add comments to filter

* chore(lint): fix lint errors
2017-07-05 10:28:48 -07:00
Kristiyan Kostadinov 4a959e9313 refactor: fix flaky focus origin tests (#5454)
Fixes failures in the `FocusOriginMonitor` tests on IE, if the browser is in focus. The issue comes from the fact that IE will trigger the `focus` handlers asynchronously, whereas other browsers are synchronous. Here's an example log:

```
IE 11.0.0 (Windows 10 0.0.0) LOG: 'dispatching events'
IE 11.0.0 (Windows 10 0.0.0) LOG: 'making assertions'
IE 11.0.0 (Windows 10 0.0.0) LOG: 'focus event fired'
-----------------------------------------------------------
Chrome 59.0.3071 (Windows 10 0.0.0) LOG: 'dispatching events'
Chrome 59.0.3071 (Windows 10 0.0.0) LOG: 'focus event fired'
Chrome 59.0.3071 (Windows 10 0.0.0) LOG: 'making assertions'
```

The issue only happens when the browser is focused, because the `patchElementFocus` function will override the native `focus` method with a synchronous one only if the browser is **not** focused. These changes make it so the native event is always overwritten, in order to make the tests a little more predictable. Also switches all the tests from `async` to `fakeAsync` to avoid using `setTimeout` in tests.
2017-07-05 10:24:13 -07:00
Paul Gschwendtner b00f83879a feat: move observe-content to cdk (#5438)
* Moves the observe content directive to the CDK package.
2017-06-30 16:28:36 -07:00
Paul Gschwendtner 9d621c7a82 build: livereload not working for cdk changes (#5452)
When serving the demo-app the Material package will be watched using the generated `material:watch` task. This does not mean that the `cdk:watch` task will run too because Material depends on the CDK.

With this change, the watch task will now also run the watch tasks of the packages it depends on.
2017-06-30 16:28:17 -07:00
swftvsn c9f7f462ed Fix typo which caused CdkHeaderRow to be used instead of CdkRow (#5433) 2017-06-30 13:49:21 -07:00