Commit Graph

2961 Commits

Author SHA1 Message Date
Joey Perrott 2c4f4e28b6 chore: fix build errors related to material-experimental dialog-container style file (#9072) 2017-12-20 09:59:31 -08:00
Joey Perrott e8c7a1923f docs(chips): spacing before comment (#9065) 2017-12-20 09:41:14 -08:00
Joey Perrott 82f5ffa48f chore: only run circleCI for master branch. (#9057) 2017-12-20 07:21:53 -08:00
Kristiyan Kostadinov 4bfe59887b build: enable fullTemplateTypeCheck everywhere (#9029) 2017-12-20 07:20:50 -08:00
Roy 230b2977fb fix(dialog): change order of button actions (#9021) 2017-12-19 17:33:27 -08:00
Rafael Santana 0c26ddb68f chore: remove leftover 'md-' prefixes (#9004) 2017-12-19 17:32:51 -08:00
kouMatsumoto 9f4856f97e docs(tabs): correct typo (#8980) 2017-12-19 17:32:06 -08:00
Paul Gschwendtner 291f6cf3af chore: filter alias exports in docs (#8782) 2017-12-19 17:29:40 -08:00
Jeremy Elbourn 444784bcc9 build(material): add bazel rules for all components (#8457) 2017-12-19 17:12:39 -08:00
Kristiyan Kostadinov 4f97232b21 fix(autocomplete): panelClosingActions emitting twice in some cases (#8998) 2017-12-19 16:50:44 -08:00
Kristiyan Kostadinov 5674c83184 chore(datepicker): fix test failure (#9015) 2017-12-19 16:49:39 -08:00
Jeremy Elbourn 28943dd956 chore: update to Angular 5.1.1 to fix bazel build (#8979) 2017-12-19 16:49:14 -08:00
Joey Perrott 1121d53af7 chore: create cdk-experimental package (#9059) 2017-12-19 16:45:54 -08:00
Andrew Seguin 1bcd8ca12c Revert "fix(chips): event propagation not stopped by remove button (#8772)" (#9064) 2017-12-19 16:22:46 -08:00
Andrew Seguin 7caf12618e bump to 5.0.2 and changelog (#9060) 2017-12-19 12:01:17 -08:00
Joey Perrott 2436acda3f chore: blacklist usage of data url scheme in scss. (#8899) 2017-12-14 15:33:59 -08:00
Joey Perrott 4d675d6aac Create Dialog in CDK. (#8844) 2017-12-14 15:33:44 -08:00
Kristiyan Kostadinov dc045967d8 build: expand validateDecoratorsRule to support blacklisting (#8897)
Expands the decorator validation rule to support blacklisting properties whose values match a pattern. This allows disabling things like inline styles.
2017-12-14 15:33:34 -08:00
Paul Gschwendtner f5a2faf22a chore: missing type for parameter in autosize (#8906)
* The ``MatTextareaAutosize` directive misses a type for the `resizeToFitContent` method. The `gulp api-docs` task showed that the type is missing.
* Improves the `normalizeMethodParameters` method in the Dgeni setup, to also add type information to parameters that have been parsed properly by Dgeni, but still miss a type.
2017-12-14 15:33:00 -08:00
Kristiyan Kostadinov 253bff6161 build: fix IE and Edge test flakes (#8909)
* Fixes the `OverlayKeyboardDispatcher` tests leaking `.cdk-overlay-container` instances which can throw off any subsequent tests. This seems to be what is causing the current test flakes in master that happen if the tests are run in a minimized browser window.
* Gets rid of the explicit cleanup of overlay containers in the overlay container tests. This can cause tests to be even flakier if there are any leaks, in addition to being unnecessary because there shouldn't be any containers to begin with.
2017-12-14 15:32:23 -08:00
Andrew Seguin b6c462f2a5 chore(icon): fix comment referring to deprecated Md (#8940) 2017-12-14 15:32:16 -08:00
Rafael Santana 6794722b06 docs(changelog): fix wrong description (#8945) 2017-12-14 15:32:08 -08:00
Paul Gschwendtner 898cded17a build(artifacts): sed should not update .git/ files (#8938)
* Adds more logging messages to the publish artifacts script (better debugging)
* Updates the `find` command for the version `sed` call to no longer match files inside of the `.git/` directory (might lead to a broken .git/ setup)
2017-12-14 15:31:38 -08:00
Kristiyan Kostadinov f95f832ab0 chore: add missing imports (#8977) 2017-12-13 14:28:19 -08:00
Andrew Seguin e2047af8d9 Revert "feat(datepicker): add animation to calendar popup" (#8976)
This reverts commit 3dca420e532ad2affbcbc3610c8e79ab2ff8d1a6.
2017-12-13 14:19:01 -08:00
Rafael Santana 03882026b0 fix(paginator): coerce string values (#8946) 2017-12-13 14:03:32 -08:00
Kristiyan Kostadinov c3e267ffb6 feat(datepicker): add animation to calendar popup (#8542)
Adds an animation when opening and closing the datepicker's calendar.
2017-12-13 14:03:09 -08:00
Austin 3a52624499 feat(tabs): add animation done event #5238 (#6811)
* feat(tabs): add animation done event #5238

* chore(test): add test

* chore(tests): remove fit
2017-12-13 13:58:44 -08:00
Kristiyan Kostadinov a411382108 fix(datepicker): unable to close calendar when opened on focus in IE11 (#8918)
Fixes not being able to close a datepicker's calendar in IE11, if the datepicker's trigger opens it on focus. The issue comes down to the fact that all browsers focus elements synchronously, whereas IE does so asynchronously. Since our logic depends on everything firing in sequence, when IE focuses at a later point, the datepicker is already considered as closed which causes the logic that restores focus to the trigger to reopen the calendar.

Fixes #8914.
2017-12-13 13:58:33 -08:00
Kristiyan Kostadinov 3dcf4cdc26 feat(tooltip): add injection token for specifying the default delays (#8109)
Adds the `MAT_TOOLTIP_DEFAULT_OPTIONS` provider that allows users to set app-wide defaults for the tooltip delays.

Fixes #7928.
2017-12-13 13:57:37 -08:00
Kristiyan Kostadinov 60ba0a7591 feat(expansion-panel): allow for content to be rendered lazily (#8243)
Currently the expansion panel renders all of its content on load which can be expensive, considering that all of it won't be visible. These changes allow for some of the content to be rendered lazily via the `matExpansionPanelContent` directive.

Fixes #8230.
2017-12-13 13:57:08 -08:00
Kristiyan Kostadinov c0ff761250 feat(close-scroll-strategy): add scroll threshold option (#8656)
Adds the `threshold` option to the `CloseScrollStrategy` that allows for the consumer to specify the amount of pixels that the user has to scroll before the overlay is closed.
2017-12-13 13:54:45 -08:00
Andrew Seguin 693c8e843e feat(table): support directly adding column, row, and header defs (#8744)
* feat(table): support added column and row defs

* fix imports

* fix imports again
2017-12-13 13:53:57 -08:00
Austin 4f7861333a fix(select): complete state change event (#8777)
* fix(select): complete state change event

* chore: add event test
2017-12-13 13:53:41 -08:00
Kristiyan Kostadinov 8a3b19ea92 fix(aria-describer): server-side rendering error during cleanup (#8903)
Fixes a potential server-side rendering error when the `AriaDescriber` is being cleaned up.

Fixes #8901.
2017-12-13 13:53:26 -08:00
Kristiyan Kostadinov a4c042b6c9 fix(select): alt + arrow key not opening in single-selection mode (#8910)
Fixes not being able to open a closed `mat-select` in single selection mode using the alt + up/down arrow combo. It seems like this was introduced when we added the ability go through the values using arrow keys on a closed select.
2017-12-13 13:53:00 -08:00
Kristiyan Kostadinov 91053020c3 fix(selection-list): unable to select using the enter key (#8595)
Fixes not being able to select items in the selection list using enter.

Fixes #8589.
2017-12-13 13:52:44 -08:00
Kristiyan Kostadinov 12feff7064 perf(ripple): use passive event listeners (#8719)
Switches all of the ripple-related event listeners to be passive for improved performance and to prevent Chrome from logging warnings for almost every Material component.
2017-12-13 13:52:14 -08:00
Kristiyan Kostadinov 7c84490df9 fix(drawer): infinite loop when two-way opened binding is toggled mid-animation (#8872)
As of https://github.com/angular/material2/commit/004e0fef2fe5172b6e6ed2c4d368d21dab051355 the drawer supports a two-way binding on the `opened` property, however because the `openedChange` emits at the end of the animation and two-way bindings invoke their setter which then trigger an animation which in turn invokes `openedChange`, there is the potential for an infinite loop if the user changes the `opened` state mid-animation. These changes avoid the issue by turning the `openedChanged` into an async stream and emitting the current value at the end of the animation, rather than determining the value based on the animation state.

Fixes #8869.
2017-12-13 13:52:03 -08:00
Chuck Jazdzewski 50967b6f7c fix(chip,stepper): compile cleanly with "fullTemplateTypeCheck" (#8889)
Using chip or step-header in an application will cause errors
if the application enables `"fullTemplateTypeCheck"`.
2017-12-13 13:51:34 -08:00
Kristiyan Kostadinov 3728555c6e fix(datepicker): leaking backdropClick subscriptions (#8919)
Currently the datepicker re-subscribes to the same `backdropClicked` stream whenever the popup is attached, which causes it to stack up multiple subscriptions for every time the calendar is opened. These changes move the subscription so it only happens once.
2017-12-13 13:51:07 -08:00
Kristiyan Kostadinov 4d8c71223a fix(menu): not closing when overlay is detached externally (#8868)
Fixes the menu panel not being closed when its `OverlayRef` is detached externally using `detach`, for example when using the `CloseScrollStrategy`.
2017-12-13 13:50:54 -08:00
Alex Shevchenko 0b05a1fe27 fix(slider): prevent slider thumb from getting cropped (#8061)
Slider thumb may sometimes get cropped by a scale transformation.
Removing backface visibility ensures that the thumb is painted correctly.
2017-12-13 13:50:02 -08:00
Kristiyan Kostadinov a8cd0334cc fix(autocomplete): not resetting completely when overlay is detached externally (#8515)
Fixes the autocomplete not closing correctly when its `OverlayRef` is detached externally (e.g. by a scroll strategy).
2017-12-13 13:49:41 -08:00
Kristiyan Kostadinov 92bc503be6 fix(autocomplete): not implementing setDisabledState from ControlValueAccessor (#8746)
Fixes plain inputs (without a `matInput`) that has a `formControl` and an autocomplete attached not being disabled via `FormControl.disable`. The issue was due to the `MatAutocompleteTrigger` not implementing the `setDisableState`. The current implementation is in line with the approach in the `DefaultValueAccessor`.

Fixes #8735.
2017-12-13 13:49:19 -08:00
Kristiyan Kostadinov c7e2d4ec73 fix(chips): event propagation not stopped by remove button (#8772)
Fixes clicking on the chip remove button propagating up and potentially triggering its parent control. This is usually handled by the chip itself, however clicking on the button could remove the chip before it has the chance to stop propagation.

Fixes #8771.
2017-12-13 13:49:02 -08:00
Kristiyan Kostadinov fba3728821 fix(drawer): unable to close using keyboard if there are no focusable elements (#8783)
Fixes the drawer not trapping focus if it doesn't have any focusable elements, making it impossible to close using the keyboard.
2017-12-13 13:48:45 -08:00
Kristiyan Kostadinov bd50fa6c36 fix(paginator): set default display value (#8455)
Makes the `mat-paginator` a block-level element by default, instead of inline.

Fixes #8454.
2017-12-13 13:47:47 -08:00
Kristiyan Kostadinov 139c506418 fix(typography): handle inherit being set as a typography value (#8721)
Fixes the `mat-typography-level-to-styles` mixin generating an invalid style declaration if any of its value are set to `inherit`.

Fixes #8700.
2017-12-13 13:46:06 -08:00
Kristiyan Kostadinov 5819385e0a fix(select): change event emitted before data binding is updated (#8740)
Fixes the select's `change` event emitting before the `value` binding has been updated, causing consumers that check the data-bound output to get a stale value.

Fixes #8739.
2017-12-13 13:45:52 -08:00