Commit Graph

2684 Commits

Author SHA1 Message Date
Kristiyan Kostadinov 3f8523cdce refactor(radio): remove 6.0.0 deletion targets (#10218)
Removes the deletion targets for 6.0.0 in the `material/radio` entry point.

BREAKING CHANGES:
* `align` input in `MatRadioGroup` which was deprecated in 5.0.0 has been removed. Use `labelPosition` instead.
* `align` input in `MatRadioButton` which was deprecated in 5.0.0 has been removed. Use `labelPosition` instead.
2018-03-06 10:35:49 -05:00
Kristiyan Kostadinov 5c5f3b67ec perf(ripple): cache ClientRect between overlapping ripples (#10206)
Avoids doing extra `getBoundingClientRect` calls when there are multiple active ripples. The cache is cleared once the last ripple is removed.
2018-03-06 10:35:11 -05:00
Kristiyan Kostadinov ccf7a4d024 fix(overlay): OverlayKeyboardDispatcher not removing global event listener (#10160)
Fixes the `OverlayKeyboardDispatcher` not removing the global event listener, even though the subscription gets removed correctly. The issue seems to come from the fact that rxjs attaches the event using `useCapture = true`, however it doesn't pass the `useCapture` parameter when unsubscribing, which leaves listener in place. These changes switch to using `addEventListener` and `removeEventListener` to manage the event.

Fixes #10143.
2018-03-06 10:34:42 -05:00
Kristiyan Kostadinov 67cc2c2436 fix(autocomplete): closed event emitting when panel wasn't shown due to lack of options (#10176)
Adds an extra check to ensure that the `MatAutocomplete.closed` event won't emit when the user tried to open the panel, but it wasn't shown because there were no rendered options.

Fixes #10154.
2018-03-06 10:33:27 -05:00
Kristiyan Kostadinov 8228c5f1fd refactor(tabs): switch to fakeAsync tests (#10263)
* Reworks the tabs unit tests to run in the `fakeAsync` zone, rather than `async`. This has the advantage of being quicker, cleaner and avoiding timeouts in IE and Edge when the browser isn't focused.
* Fixes a few unit tests that weren't asserting correctly, because their assertions were inside `whenStable` promises that weren't resolving.
2018-03-05 18:08:54 -05:00
Kristiyan Kostadinov a943b36c7b feat(snack-bar): add injection token for overriding the default options (#9849)
Adds the `MAT_SNACK_BAR_DEFAULT_OPTIONS` injection token that allows consumers to set the default snack bar options globally.

Fixes #9821.
2018-03-02 14:47:03 -08:00
Kristiyan Kostadinov ccbab877c3 refactor(stepper): use common keyboard focus handling (#10074)
Switches the stepper to use the `FocusKeyManager`, instead of re-implementing all of the logic itself.
2018-03-02 13:39:47 -08:00
Kristiyan Kostadinov bb1803dcc0 fix(menu): detach lazily-rendered content when the menu is closed (#10005)
Currently the lazily-rendered content is maintained in the background while a menu is open. These changes switch to detaching it once the user closes the menu.

Fixes #9915.
2018-03-02 13:27:07 -08:00
tinayuangao 67e710c81f fix(chips): Update chips in chip list, and add margin to chip input (#8579) 2018-03-02 12:55:41 -08:00
tinayuangao c8261744b7 Revert "fix(button): hide overflow of buttons to prevent overflow of hover/ripple (#9424)" (#10204)
This reverts commit 915a2b7327.
2018-03-02 12:55:08 -08:00
Joey Perrott 915a2b7327 fix(button): hide overflow of buttons to prevent overflow of hover/ripple (#9424) 2018-02-28 16:32:26 -08:00
llorenspujol 981c9a9691 fix(drawer): drawer running inside the zone keydown event. (#10092)
Currently the drawer is listening to the event 'keydown' inside the zone. This makes the change detector be fired every time while whe are pressing 'any' key.
2018-02-28 16:23:33 -08:00
Kristiyan Kostadinov b4b76bd3db fix(expansion-panel): entire body content being shown on animation start (#10138)
Fixes expansion panels becoming `overflow: visible` as soon as their expansion animation starts, causing them to show the entire content before they're done animating. It seems like we were setting the `mat-expanded` class both through the view and manually when the animation is done.

Fixes #10134.
2018-02-28 16:21:54 -08:00
Kristiyan Kostadinov 92ed9c8c63 feat(list-key-manager): accept item references in setActiveItem (#10029)
* Adds an overload to `setActiveItem` to allow for an item to be set as active, rather than its index. This avoids awkward conversions in certain cases (see the chips and select changes).
* Deprecates the `updateActiveItemIndex` method in favor of `updateActiveItem` which accepts both an index and an item.
* Fixes the active item not being updated when it is set via `updateActiveItemIndex`.
2018-02-28 16:05:39 -08:00
Kristiyan Kostadinov dd082cbdd6 fix(paginator): first/last icons being thrown off on IE and Edge; simplify icon setup (#9776)
* Fixes the paginator icons being thrown off on IE and Edge.
* Simplifies the paginator's icon setup by using the SVG icons, rather than trying to construct them through CSS. Using SVGs has the advantage of requiring a lot less code, being more consistent across browsers and being easier to center vertically.
2018-02-28 16:00:48 -08:00
Kristiyan Kostadinov 4b528f668c fix(overlay): hide overlay container when there are no attached overlays (#10139)
Hides the `.cdk-overlay-container` if it doesn't have any attached overlays. This prevents the browser from rendering it as a transparent overlay.

Fixes #6882.
Fixes #10033.
2018-02-28 15:32:36 -08:00
Paul Gschwendtner 51fce512e0 fix(selection-list): improve accessibility of selection list (#10137)
* Since the selection list is still a `list` that contains some content, there should be a way for screenreader users, to navigate through the options (even if disabled). With this change, if the list is disabled, it's still possible to walk through the options.
* Adds a new functionality to the `ListKeyManager` that allows the developer to control the items that can't be focused. `skipPredicate`. (e.g. for the selection list we want to make sure that users can navigate using the arrow keys to disabled items as well)
* Testing: Fixes that by default all fake events bubble up the DOM. This works in most of the cases, but it's wrong to always bubble events. e.g. `focus` doesn't bubble.

Fixes #9995
2018-02-28 15:31:23 -08:00
Kristiyan Kostadinov e42f0bcead feat(menu): allow for backdrop to be disabled (#10070)
Adds the `hasBackdrop` input on the `MatMenu` directive, allowing consumers to remove the backdrop.

Fixes #9938.
2018-02-28 15:31:00 -08:00
Kristiyan Kostadinov d078e5ee6a build: add stylelint rule to ban concrete CSS rules inside theme files (#10003)
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to #9999.
2018-02-26 07:05:53 -08:00
Kristiyan Kostadinov e3d7aeccc6 fix(dialog): don't provide directionality if user injector has one already (#10004)
Switches the dialog injector to provide the `Directionality` only when the user-provided injector doesn't have one already.

Relates to #9996.
2018-02-26 07:05:26 -08:00
Kristiyan Kostadinov 8a402d06d2 fix(dialog): actions not being pulled down when trapping focus (#10007)
Fixes the dialog action buttons not being pulled down to the correct spacing when there is a focus trap around the actions container. These changes remove the `:last-child` selector, because it is easy to break and the actions are intended to always be placed at the bottom of a dialog anyway.

Fixes #9722.
2018-02-26 07:04:34 -08:00
Kristiyan Kostadinov 900716aaf7 fix: avoid layout jumping on elements with ripples in RTL (#10026)
A while ago we added a `backface-visibility` to some components that have scrollable content in order to avoid repaints while scrolling (see #7889, #7721, #7719, #6890, #2156) which worked at the time, however in the more recent versions of Chrome it causes the content in RTL mode to shift whenever a child has a transform that is being animated (in our case it's usually ripples). These changes revert the `backface-visibility` in order to avoid the jumping, until we can find a better solution.

Relates to #10023.
2018-02-26 07:03:47 -08:00
Kristiyan Kostadinov d4a4f61e60 fix(list): align avatar size in dense list with spec (#10028)
* Fixes the dense list avatar being slightly larger than the spec.
* Removes an unnecessary setter from the `MatListItem` class.

Fixes #10019.
2018-02-26 07:02:53 -08:00
mmalerba 77c8d8fc3d feat(stepper): require users to visit non-optional steps (#10048) 2018-02-26 07:02:12 -08:00
Kristiyan Kostadinov a5909db1df fix(select): animation jumping on IE11 (#10050)
Fixes the select animation looking off in IE11 by starting from the end, before resetting to the beginning and animating again. Seems to be due to the fact that we haven't defined the initial state, but we were setting it as a keyframe in the animation.
2018-02-26 07:01:30 -08:00
Juliano 2fad732b09 fix(datepicker): improve native adapter DST handling (#10068) 2018-02-26 07:00:45 -08:00
Kristiyan Kostadinov ffbb42501b fix(list-key-manager): not ignoring vertical key events in horizontal-only mode (#10075)
Fixes the a `ListKeyManager` that is in `horizontal`-only mode not ignoring the vertical key events due it falling into the switch statement.
2018-02-26 06:57:21 -08:00
Kristiyan Kostadinov 2ece035327 feat(menu): allow for backdrop class to be customized (#10097)
Allows for the backdrop class of a menu to be overwritten.

Fixes #10062.
2018-02-26 06:56:50 -08:00
Kristiyan Kostadinov cdd224a2ca fix(selection-list): repeated preselected items not appearing as selected with OnPush parent (#10100)
Fixes preselected options, rendered with via `NgFor`, inside a component with `OnPush` change detection, not appearing as selected.

Fixes #10090.
2018-02-26 06:56:07 -08:00
Kristiyan Kostadinov a27d9dfffc fix(grid-list): invalid style declaration during server-side rendering (#10131)
A while ago in #6052, we switched the grid list inline styles to be assigned through the dash-cased properties in order for them to be valid when using the old renderer with parse5. These changes go back to the camel-cased properties, because the dash-cased ones don't work with Domino.

Relates to #6048.
2018-02-26 06:55:31 -08:00
Jeremy Elbourn 64ef3a8540 fix(grid-list): default to LTR when Directionality value is empty (#10111) 2018-02-24 14:52:59 -08:00
Kristiyan Kostadinov 609a7c825d build: e2e test timeout due to missing systemjs map (#10130)
Fixes the e2e tests currently timing out, because the e2e app throws a runtime error due to a missing mapping for the `tree` in the SystemJS config.
2018-02-24 09:11:15 -08:00
Kristiyan Kostadinov 653d8dcce6 chore: revert #9971 (#10091) 2018-02-22 14:43:59 -08:00
Kristiyan Kostadinov a25786dc06 build: fix TS 2.6 compilation error in tree (#10096) 2018-02-22 12:16:09 -08:00
Kristiyan Kostadinov f33e2a2d3e refactor: clean out variables that are being assigned to but not being read (#9871) 2018-02-22 11:34:10 -08:00
tinayuangao 6d94aec797 fix(tree): fix type error in tree (#10095) 2018-02-22 11:01:51 -08:00
Jeremy Elbourn 19463bb6c9 chore: update master to Angular 6.0.0 beta (#10078) 2018-02-22 08:17:29 -08:00
tinayuangao c975ca8746 feat(tree): merge tree branch to master (#9796) 2018-02-22 08:15:02 -08:00
Anthony Barone 4a36cf63d1 chore(menu): fix incorrect docs example (#10077) 2018-02-22 07:25:13 -08:00
Roy 57babcf5ef docs(tooltip): fix typo left/right (#10069) 2018-02-21 13:34:43 -08:00
Operations Research Engineering Software+ 74116cf9f3 docs: fix table documentation (#9811) 2018-02-21 09:51:23 -08:00
CDDelta 355ebf8df0 docs(snackbar): add position example (#10000) 2018-02-21 09:50:15 -08:00
Juliano c6915e33ac docs(datepicker): improve and fix month picker example (#10008) 2018-02-21 09:49:41 -08:00
Joey Perrott 27e33e0144 fix(cdk-dialog): decorate dialog as an injectable (#10052) 2018-02-21 09:48:26 -08:00
Kristiyan Kostadinov af26b01dfe chore: fix example compilation error (#10049)
Fixes a compilation error in the examples, presumably due to a faulty rebase.
2018-02-20 11:33:10 -08:00
Kristiyan Kostadinov 1e2b79af82 fix(expansion-panel,menu,select): nested animations not working (#9134)
Fixes issues with the expansion panel, menu and select animations where the child animations were being blocked by the parent ones.

**Note:** the menu animations needed a bit more refactoring since the old approach wasn't very idiomatic and made it harder to run the parallel animations.

Fixes #8814.
Fixes #8953.
2018-02-20 10:21:42 -08:00
Kristiyan Kostadinov 959804b26b chore(menu): fix incorrect docs example (#9954)
Fixes an incorrect example in the menu docs and the `matMenuContent` being used incorrectly in a unit test.

Fixes #9944.
2018-02-20 07:38:18 -08:00
VTHINKXIE 0e11849272 chore(autosize): fix test name in autosize spec (#9941) 2018-02-20 07:37:55 -08:00
Juliano 8ff51aeb97 docs(select): Change select's openedChange output comment (#9934) 2018-02-20 07:37:10 -08:00
Kristiyan Kostadinov 2abdb654f9 chore: fix e2e axe failure (#9929) 2018-02-20 07:36:38 -08:00