Commit Graph

1883 Commits

Author SHA1 Message Date
Kristiyan Kostadinov 6583505abe chore(datepicker): switch to OnPush change detection (#5584)
Switches the `MdDatepicker` component to `OnPush` change detection.

Relates to #5035.
2017-07-08 22:22:19 -07:00
Ji Won Shin 2294ea28fc fix(datepicker): allow disabling calendar popup (#5305)
* Add ability to disable datepicker pop-up in read-only mode.

* Change readOnly to disabled

* Added ability to disable datepicker toggle when the input is disabled.

* Lint edits

* Failed test fixes

* Allow disabled input to disable popup unless specified otherwise for
datepicker.

* Minor comment edits

* Added host bindings and changed delegation logic.

* Added tests for cascade and removed async testing.
2017-07-08 22:20:02 -07:00
Kristiyan Kostadinov c9956a50a2 chore(grid-list): switch to OnPush change detection (#5516)
Switches the grid list component to OnPush change detection.

Relates to #5035.
2017-07-08 21:11:23 -07:00
Kristiyan Kostadinov 880e6d513d fix(autocomplete): error when closing destroyed panel (#5446)
Fixes an error that was being thrown when attempting to close the panel of an autocomplete that is inside a destroyed view. The issue is that `closePanel` can end up getting called multiple times in a row, which leads to an attempt to call `detectChanges` on a destroyed `ChangeDetectorRef`.

Fixes #5413.
2017-07-08 21:10:43 -07:00
Kristiyan Kostadinov 372549c378 fix(select): throwing additional errors if ngModel fails to initialize (#5405)
If the user has an `md-select` with an `ngModel` that doesn't have a name inside a form, the forms module will throw an error, however Material will also start throwing errors, which may cause confusion. These changes add a null check so our errors don't get mixed up with the forms error.

Fixes #5402.
2017-07-08 21:09:04 -07:00
Kristiyan Kostadinov b7efe48a13 fix(live-announcer): remove announcer element on destroy (#5404)
Implements the `ngOnDestroy` hook on the live announcer service and removes the `_removeLiveElement` method.
2017-07-08 21:08:23 -07:00
Paul Gschwendtner 44ca46a184 fix(input): input module depends on forms module (#5579)
* The input module currently depends on the forms module. This is not necessary, because the input is able to work without `NgModel` or a `FormControl` as well.
2017-07-08 21:06:43 -07:00
Paul Gschwendtner c14978b325 fix(slider): slider module depends on forms module (#5578)
* The slider module should not not import the `FormsModule` since the slider is designed to work without forms as well.
2017-07-08 21:05:48 -07:00
Kristiyan Kostadinov b31a304fcc chore(button): switch MdAnchor to OnPush change detection (#5557)
* Switches the `MdAnchor` component to `OnPush` change detection.
* Gets rid of a `@HostBinding` in favor of using the `host`.

Relates to #5035.
2017-07-08 19:43:08 -07:00
Kristiyan Kostadinov d5e42cb656 chore(slider): switch to OnPush change detection (#5551)
* Switches `md-slider` to `OnPush` change detection.
* Fixes a few properties not reacting to external changes.

Relates to #5035.
2017-07-08 19:42:09 -07:00
Kristiyan Kostadinov 5cafa2bb0f chore(expansion-panel): switch to OnPush change detection (#5549)
* Switches the expansion panel to `OnPush` change detection.
* Fixes the open animation not triggering on the body element.

Relates to #5035.
2017-07-08 19:41:03 -07:00
Kristiyan Kostadinov 2ba713eaa5 chore(tooltip): switch to OnPush change detection (#5553)
Switches `md-tooltip` to `OnPush` change detection.

Relates to #5035.
2017-07-08 19:33:13 -07:00
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