Commit Graph

2380 Commits

Author SHA1 Message Date
Paul Gschwendtner bdadbad7dd chore(sort): fix invalid import path (#7148)
* Fixes an incorrect import inside of the sort entry-point of Material. Due to a relative import to the core entry-point, the prerender task fails to execute and the packaging doesn't work properly either.
2017-09-18 11:11:01 -07:00
Fady Samir Sadek 95ab1eb2c7 fix(sidenav-fab-example): remove overflow: auto (#7099) 2017-09-18 10:33:28 -07:00
Kristiyan Kostadinov 6cfe5c4aa3 feat: move FocusMonitor into cdk (#6921)
Moves the `FocusOriginMonitor` into `@angular/cdk/a11y`, renames it to `FocusMonitor`, deprecates the `StyleModule` and updates all the references.

BREAKING CHANGE: `FocusOriginMonitor` has been renamed to `FocusMonitor`.
2017-09-18 10:32:21 -07:00
Jeremy Elbourn e4a93234c1 chore: bump Angular dep to 4.4.1 (#7118)
BREAKING CHANGE: Angular Material now requires Angular 4.4.1 or greater
2017-09-18 10:29:38 -07:00
tinayuangao 7a42706614 feat(chip-list): implement FormFieldControl and ControlValueAccessor (#6686)
BREAKING CHANGES:
 - Deprecated: @Output() select, and @Output() deselect
 - Added @Output() onSelectionChange = EventEmitter<MdChipSelectionChange>
2017-09-18 10:28:52 -07:00
Andrew Seguin 6fa9e6f88b fix(sort): reverse directions and better animation (#6802) 2017-09-18 10:28:10 -07:00
Andrew Seguin 86ec493c00 compat(sort): add mat compatible sort event (#6611) 2017-09-18 10:05:10 -07:00
Paul Gschwendtner 90434668bb build: fix payload calculation (#7132)
* Due to the recent changes in the Material package, the payload is no longer calculated correctly. All components have been moved into different bundles instead of a single bundle.
2017-09-18 09:57:25 -07:00
tinayuangao b5d2e0ba9d docs(chips): Add chips with input example (#7081) 2017-09-18 09:56:17 -07:00
Will Howell 7e096b1382 fix(sidenav-fab-example): correctly position fab in plunker (#7108)
Fixes #7051
2017-09-18 09:55:49 -07:00
Kristiyan Kostadinov a611d36ece build: new packaging not working on Windows (#7120)
Fixes the new packaging throwing an error on Windows as a result of b296e2bd59.
2017-09-18 09:55:16 -07:00
Jeremy Elbourn df808b845c build: fix material unit tests not running (#7117) 2017-09-15 15:28:38 -07:00
mmalerba 548eca0538 chore: add missing mat prefix selectors (#7114) 2017-09-15 14:04:40 -07:00
Jeremy Elbourn a96b545d28 fix: add mat exportAs and class aliases (#7106) 2017-09-15 13:55:38 -07:00
Jeremy Elbourn b296e2bd59 build: compile entry-points in parallel (#7094) 2017-09-15 13:51:08 -07:00
Paul Gschwendtner 5ec538eeeb build: fix umd bundles build task (#7102)
Currently when trying to serve the devapp, the `build-bundles` task seems to be broken. Rollup is not able to properly read the source files from the disk because the `.js` file extension is missing.
2017-09-15 08:36:36 -07:00
Paul Gschwendtner 34b5620aa3 build: cancel screenshot diff if there is no activity (#6957)
* build: cancel screenshot diff if there is no activity

* No longer just gives the screenshot diff task 8 minutes to pass, because the run time can vary. Now it just exits the process if the last action in the task takes longer than 6 minutes.
* Instead of just closing the firebase connection, the process will be exited with an error code. Just closing the connection is not helpful and breaks the screenshot diff Web Interface.

* Add comments
2017-09-14 17:11:12 -07:00
Jeremy Elbourn b8218e1489 build: fix regex for matching imports for umd generation (#7093) 2017-09-14 17:10:46 -07:00
Andrew Seguin 2730fe0337 docs(chips): remove example from component jsdoc (#6888)
* docs(chips): close md-chip tag

* remove example
2017-09-14 17:00:49 -07:00
Jeremy Elbourn 5daf7ff3c1 docs(overlay): expand overview for overlay (#6976) 2017-09-14 16:59:47 -07:00
Kristiyan Kostadinov 5e02aef3a7 demo(tooltip): add accessibility demo for tooltip (#7058)
Adds an accessibility demo page for the tooltip.

Fixes #6499.
2017-09-14 16:59:20 -07:00
Kristiyan Kostadinov b666616a45 chore: move overlay-container specs (#7080)
It seems like the overlay container tests got left behind during the move to the CDK. These changes move them next to the container.
2017-09-14 16:58:52 -07:00
Joey Perrott ed74da7c55 Bump to gulp-highlight-files@0.0.5 (#7085) 2017-09-14 16:57:34 -07:00
Jeremy Elbourn 1cb8907a66 build: create JS bundles for each component (#6998)
Before this change, all of `@angular/material` was bundled into a
single, flat JS file.

After this change, each top-level component (i.e., each directory under
`src/lib`) will be have its own JS file (and d.ts and metadata.json).

The benefit of this change is that current versions of webpack will be
able to do a much better job of only including the code an app is using.

It also allows (but does not require) people to explicitly import from specific components,
e.g.
```
import {MdButtonModule} from '@angular/material/button';
``

For development _within Angular Material itself_ we have to use these
deeper imports because the root `@angular/material` doesn't exist until
we build the relase package.

Additionally, this PR adds a `tsconfig.json` for each dir under `src/`
with the correct path mappings for that directory, so that IDEs will
correctly generate imports.

Closure Compiler CI check is also disabled by this PR; it cannot work
with the new package structure until a release with
https://github.com/google/closure-compiler/pull/2600 is made available.
2017-09-14 15:15:17 -07:00
Kristiyan Kostadinov 2f1f0fd0b6 chore(menu): missing method call (#7065)
Fixes a method not being called, causing the check to always evaluate to true.
2017-09-14 09:27:02 -07:00
Rose Perrone e4d48d709a fix(datepicker): makes sure the datepickerInput is registered (#7049) 2017-09-13 09:31:30 -07:00
mmalerba 259cc7537c Revert "feat(viewport-ruler): add common window resize handler" (#7054)
* Revert "Revert "fix(menu): multiple close events for a single close" (#7036)"

This reverts commit dcfe515f6b.

* Revert "feat(datepicker): Add Moment.js adapter (#6860)"

This reverts commit 9545427c73.

* Revert "fix(menu): multiple close events for a single close (#6961)"

This reverts commit 1cccd4bda6.

* Revert "fix(menu): nested trigger staying highlighted after click (#6853)"

This reverts commit 04bf3d1fd5.

* Revert "feat(viewport-ruler): add common window resize handler (#6680)"

This reverts commit 881630f31d.
2017-09-13 09:30:44 -07:00
mmalerba dcfe515f6b Revert "fix(menu): multiple close events for a single close" (#7036)
* Revert "feat(datepicker): Add Moment.js adapter (#6860)"

This reverts commit 9545427c73.

* Revert "fix(menu): multiple close events for a single close (#6961)"

This reverts commit 1cccd4bda6.
2017-09-12 20:09:51 -07:00
mmalerba 9545427c73 feat(datepicker): Add Moment.js adapter (#6860)
* create moment adapter

* add Moment to karma.conf.js

* use MAT_DATE_LOCALE

* tests are now running

* add in tests

* WIP: demo

* add synthetic default imports for moment

* add locale switching to demo

* fix moment import issues with tests

* fix aot

* address comments

* fix closure issue

* add additional explanation of rollup issue

* remove moment adapter demo since it is preventing sync into g3 (will add
back as a docs example in future PR).

* fix bad rebase
2017-09-12 13:24:23 -07:00
Philip Pham 1cccd4bda6 fix(menu): multiple close events for a single close (#6961)
* fix(menu): multiple close events for a single close

Don't emit a closed event when another event will be emitted. Previously, if one clicked on a menu item, one would get two events: `undefined` and `click` in that order. One would see similar behavior for `keydown` or clicking the backdrop. Unit tests were updated to prevent a regression.

* Responding to review comments from @crisbeto

* Observable.empty() -> Observable.of()
_closeMenu -> _destroyMenu
2017-09-12 13:22:00 -07:00
Kristiyan Kostadinov 04bf3d1fd5 fix(menu): nested trigger staying highlighted after click (#6853)
* fix(menu): nested trigger staying highlighted after click

Prevents the sub-menu trigger from staying highlighted if the user clicks on it and moves away to another menu item.

Fixes #6838.

* fix: firefox tests crashing
2017-09-12 13:21:28 -07:00
Kristiyan Kostadinov 881630f31d feat(viewport-ruler): add common window resize handler (#6680)
Adds the `change` method to the `ViewportRuler`, allowing for components to hook up to a common window resize handler.

BREAKING CHANGE: Previously the `ScrollDispatcher.scrolled` subscription would react both on scroll events and on window resize events. Now it only reacts to scroll events. To react to resize events, subscribe to the `ViewportRuler.change()` stream.
2017-09-12 13:20:56 -07:00
Kristiyan Kostadinov bcd026f457 fix(tooltip): closing immediately when triggered on click (#6590)
Fixes the tooltip being closed immediately if it is opened as a result of a click. It seems like the logic that was supposed to handle this in master fires before the event has had the chance to bubble up to the body. These changes switch to relying on Angular's animation events to disable the body click.

Relates to #6552.
2017-09-12 13:18:55 -07:00
Kristiyan Kostadinov 0257f4824b chore(tooltip): regression when trimming non-string messages (#7024)
Fixes a regression from f6d1078e54.
2017-09-12 13:06:08 -07:00
Jeremy Elbourn acbb1d42f3 chore: remove accidental premature changelog (#7019) 2017-09-12 10:59:04 -07:00
mmalerba f6d1078e54 fix(tooltip): ensure tooltip never passes undefined message to (#7018)
AriaDescriber
2017-09-12 10:58:14 -07:00
mmalerba 50a6bb7796 fix(aria-describer): remove unsafe !.s in aria-describer (#7011) 2017-09-12 10:21:29 -07:00
Paul Gschwendtner dfe01f2d5f fix(selection-list): do not coerece option value to boolean (#6983)
Currently the value of a `MdListOption` is coerced to a boolean. This is not the correct behavior because it would mean that there could be only two values (true/false).

Needed for #6896
2017-09-11 17:36:53 -07:00
Kristiyan Kostadinov dc9679da4f feat(selection-list): add selectAll and deselectAll functions (#6971)
* Adds the ability to select and deselect all options at once.
* Adds a demo of the selection list to the demo app.
* Fixes an issue that caused the checkbox inside the selection list to collapse.
* Sets the proper cursor on the list items.

Fixes #6969.
2017-09-11 17:35:43 -07:00
Kristiyan Kostadinov f6c9172afe perf: memory leak when subscribing to zone events (#6918)
Fixes a few memory leaks that were caused by subscribing to `NgZone.onMicrotaskEmpty` or `NgZone.onStable`. Because the two streams are `EventEmitters`, the subscription doesn't get GC-ed correctly. These changes switch to converting the emitters to observables before subscribing to them.

Fixes #6905.
2017-09-11 17:33:56 -07:00
Paul Gschwendtner a1ec81ab69 fix(slide-toggle): remove side-margin if slide-toggle label is empty (#6881)
* Removes the side-margin of the actual indicator of the slide-toggle if the user label is empty (similar as in #4730)

Fixes #6868
2017-09-11 17:30:07 -07:00
Kristiyan Kostadinov 2239e7daf0 compat(stepper): error in compatibility mode (#6989)
Fixes an error thrown by the stepper in compatibility mode.

Fixes #6988.
2017-09-11 17:23:37 -07:00
Kristiyan Kostadinov 2cefe67c77 docs: add live example of nested menu (#6977)
Adds a live example for the nested menu functionality.

Fixes #6920.
2017-09-11 17:21:37 -07:00
Kristiyan Kostadinov 85993d3a96 fix(datepicker): toggle not reacting to disabled state changes in datepicker or input (#6964)
Fixes the datepicker toggle not reacting to changes in the disabled state of the associated datepicker and datepicker input.
2017-09-11 17:20:30 -07:00
Kristiyan Kostadinov 9fe6386eec fix(select): extra whitespace around placeholder (#6955)
Fixes some extra whitespace being added around the placeholder.

Fixes #6923.
2017-09-11 17:19:22 -07:00
Terry 841e88f947 docs(table): remove duplicate css in the table-filtering-example (#6935) 2017-09-11 17:16:39 -07:00
Joey Perrott 5d2ca2aaf7 Move CanDisable mixin to MdExpansionPanel. (#6926) 2017-09-11 17:15:35 -07:00
Kristiyan Kostadinov 8a21881fe3 fix(progress-bar): query mode not reversing direction in rtl (#6922)
Fixes the progressbar in query mode not reversing its direction in RTL.
2017-09-11 17:14:48 -07:00
Kristiyan Kostadinov 51396d027f perf(dialog): avoid repaintin dialog content element on scroll (#6890)
Fixes the `<md-dialog-content>` element being repainted on scroll.

Fixes #6878.
2017-09-11 17:13:12 -07:00
Will Howell 27cbe47839 feat(dialog): add afterOpen to MdDialogRef (#6887)
* feat(dialog): add afterOpen to MdDialogRef

Provides a hook for initializing component after animation is
complete.

* Complete afterOpen observable
2017-09-11 17:12:09 -07:00