Commit Graph

4028 Commits

Author SHA1 Message Date
Jeremy Elbourn dc0732bc2c docs: update README for Q3 2018 (#12143)
Fixes #12088
2018-07-11 08:23:00 -07:00
Paul Gschwendtner c43b102118 chore: invalid jsdoc in focus-monitor (#12136) 2018-07-11 08:22:33 -07:00
Kristiyan Kostadinov a05aafead4 fix(drag-drop): add fallback if the placeholder transition doesn't complete (#12121)
Since a lot of functionality depends on the animation completing, these changes add a fallback for the case where there's a transition on the preview, but it doesn't complete for some reason (e.g. it being too short). Currently clicking rapidly on the drag handle can cause it to get stuck and not complete the drop sequence correctly.
2018-07-11 08:22:08 -07:00
heavybeard 2f9b51f18e chore: fix typo in karma config comment (#12111) 2018-07-11 08:21:49 -07:00
Paul Gschwendtner f315e3e7e6 build: fix random ngc resolve failures (#12103)
* Depending on the timing for building the assets and building the ESM output (kind of randomly), building the Material package will result in NGC failures. This happens when running the `material:build-no-bundles` task (e.g. unit testing; serving the dev-app) because the assets are built in parallel with the ESM output.
* Removes a duplicated function in the package-tools.
2018-07-11 08:21:04 -07:00
Paul Gschwendtner 309f830ccd build: enable fullTemplateTypeCheck in aot mode (#12100)
Enables `fullTemplateTypeCheck` in the aot demo app and e2e app.
2018-07-11 08:20:14 -07:00
Kristiyan Kostadinov 40ff3f9a5e build: make body scrollable element in demo (#12093)
Reworks the demo to make the `body` the scrollable element. Currently we have the `mat-sidenav-content` be scrollable which doesn't reflect the setup in most apps and makes it harder to test some cases, because of some things like the overlay backdrop blocking scrolling.
2018-07-11 08:19:43 -07:00
Paul Gschwendtner dd7421db6c docs: add example for ripple (#12063) 2018-07-11 08:19:27 -07:00
Jerry Orta 118344ef95 fix(schematic): parse5 v5.0.0 requires different parse options (#12028)
Fixes #12027
2018-07-11 08:19:06 -07:00
Paul Gschwendtner fdd70823cf build: fix small browser test coverage (#11970)
* No longer just runs the tests against the first browser of a test platform (travis, saucelabs, browserstack)
* Stability is more valuable than speed (runs sequentially on CI now)
* Update Saucelabs Connect
* Remove unused spec reporter
* Update from Edge 14 to Edge 17
* Fix pixel deviations in Edge 17
2018-07-11 08:18:32 -07:00
Kristiyan Kostadinov de107b7e23 feat(slider): support two-way binding for value (#12003)
Currently we support having a two-way binding via `ngModel`, but not through the `value` binding. These changes add support for a two-way binding on the `value`.
2018-07-11 08:13:35 -07:00
Kristiyan Kostadinov 57b066a0a2 fix(datepicker): set role on datepicker popup and aria-haspopup on the datepicker toggle (#12008)
Currently the datepicker in touch UI mode has `role="dialog"` which is inherited from `MatDialog`, however it doesn't have a role in popup mode. These changes add the proper role for the popup element, in addition to `aria-haspopup` which was missing from the datepicker toggle button.
2018-07-11 08:12:39 -07:00
Kristiyan Kostadinov 49119ed0b1 fix(progress-bar): query animation not working on safari (#12014)
Fixes the query animation not working on Safari. The issue comes from the fact that Safari won't resolve references correctly when the page has a `base` tag (which is required by `@angular/router`).
2018-07-11 08:11:39 -07:00
Kristiyan Kostadinov 947c29afcc fix(button): don't show hover overlay on devices that don't support hovering (#12030)
Fixes the hover overlay persisting on touch devices after tapping on a button.

Fixes #12022.
2018-07-11 08:10:51 -07:00
Paul Gschwendtner 6314d15353 fix(toolbar): deprecate unused landscape row-height variable (#12129)
* Deprecates the unused landscape row-height variable. The logic for this has been removed a long time ago, and the SCSS variable should be removed at some point.
* Makes the host bindings more clear by expanding the truthy and falsy check.
2018-07-11 08:10:37 -07:00
Kristiyan Kostadinov 330176d6ba fix(sidenav): continuously hitting zone when using autosize option (#12067)
Fixes the sidenav going into an infinite change detection loop when using the `autosize` option. Initially this was fixed in #11231, but it got reintroduced in #11986 where we started comparing `0` against `null` which always evaluates to true.

Fixes #11215.
2018-07-11 08:09:32 -07:00
Paul Gschwendtner cc5dfb87b0 fix(form-field): placeholder not hiding if -webkit-text-fill-color is used (#12076)
If developers use `-webkit-text-fill-color` to change the color of the placeholder and label, the actual "native" placeholder won't be invisible because `-webkit-text-fill-color` overwrites `color: transparent`.

Fixes #12074
2018-07-11 08:08:26 -07:00
Pavel Agarkov dd6aec64ed fix(icon): reverse for loop when removing child nodes from mat-icon (#12078)
When mat-icon element has more than one child node (like when mat-badge is used) then child nodes should be removed in the reversed order otherwise you will attempt to get node by index which is not correct any more since you've deleted some nodes already in the previous iterations and it will cause an error.
2018-07-11 08:07:31 -07:00
Kristiyan Kostadinov d4623ff357 fix(slider): track not being rendered under some conditions when using a thumb label (#12079)
Fixes a rendering issue where the slider track won't be rendered when starting a drag from 0% or 100% while the thumb label is enabled.

Fixes #12071.
2018-07-11 08:06:12 -07:00
Kristiyan Kostadinov 25eb43f0bd fix(expansion-panel): disable hover highlight on non-hover devices (#12080)
Disables the expansion panel header's hover if the device doesn't support hovering. This prevents the header from appearing as stuck if the user taps it on a touch device.

Relates to #12030.
2018-07-11 08:05:03 -07:00
Kristiyan Kostadinov 8e2ff1fbeb fix(ripple): remove webkit touch highlights from ripple containers (#12082)
Since the ripples are feedback enough that the element was touched, we should disable the native feedback on touch devices so it doesn't overlap with the ripples. These changes go through the various clickable ripple triggers and remove the Webkit highlighting.
2018-07-11 08:04:43 -07:00
Kristiyan Kostadinov 0186a039a3 fix(tabs): don't fire change event when amount of tabs changes (#12097)
Fixes the tab group firing its `selectedTabChange` event when the amount of tabs changes, which might throw the consumer into an infinite loop if they're adding new tabs inside the callback.

Fixes #12084.
2018-07-11 08:03:37 -07:00
Kristiyan Kostadinov 6a472eb6a7 fix(datepicker): showing dot in high contrast mode after popup has closed (#12099)
Fixes the datepicker's popup showing a 1x1 pixel dot in high contrast mode, after the calendar has been closed. The dot comes from the outline that we add to the popup which collapses after we detach the overlay.
2018-07-11 08:02:20 -07:00
Paul Gschwendtner a1aa9e7eb8 fix(focus-origin): focus origin sometimes invalid in firefox 57 (#8669)
Sometimes the focus origin is not valid because Firefox seems to focus a tick after the keyboard/interaction event fired a tick before. To ensure the focus origin is always correct, the focus origin will be added to the next tick event loop

Fixes #6984
2018-07-10 07:36:10 -07:00
Kristiyan Kostadinov d75fa7591a fix(form-field): label gap not being calculated when switching to outline dynamically (#11658)
Fixes the form field gap not being calculated if the field switches to the `outline` appearance after init.

Fixes #11653.
2018-07-10 07:35:35 -07:00
Kristiyan Kostadinov a831bf652c feat(overlay): expose keydown events on the opened overlay (#11867)
Since the consumer doesn't have direct access to the overlay that is being opened, there's no way for them to listen for keyboard events. These changes expose the `OverlayRef.keydownEvents` via an output.
2018-07-10 07:34:36 -07:00
Kristiyan Kostadinov 6b1a672c40 fix(autocomplete): error when typing in input with disabled autocomplete and no panel (#11881)
Fixes an edge case where the input will throw an error if it has a disabled autocomplete and no autocomplete panel.

Fixes #11876.
2018-07-10 07:33:56 -07:00
Kristiyan Kostadinov ae39535644 fix(stepper): unable to set aria-label on step (#11989)
Along the same lines as #11898. In our stepper docs we recommend for people to add a meaningful label via `aria-label` or `aria-labelledby`, however even if they do, the attributes don't get forwarded to the underlying element that has the proper role. These changes add inputs for `aria-label` and `aria-labelledby` and correctly forward the attributes.
2018-07-10 07:28:51 -07:00
Kristiyan Kostadinov 3bf10f9aed fix(button-toggle): parent margin and padding being propagated to underlying button (#11993)
Fixes the button inside a button toggle inheriting the margin and padding from its parent.

Fixes #11976.
2018-07-10 07:28:32 -07:00
Jeremy Elbourn eed6110b86 feat: support lazy-loading HammerJS w/ Angular 6.1 (#11960)
Angular 6.1 adds the HAMMER_LOADER token that can be used to lazy-load
HammerJS. This commit updates Angular Material's gesture config to be
compatible with lazy-loading HammerJS by:
* Only reading `window.Hammer` after Angular knows that HammerJS has
been loaded.
* Always registering the set of gesture events used in the Angular
Material components (instead of registering no events when Hammer is
absent).

Once we are able to depend on HAMMER_LOADER itself (in v7.0), this can
be simplified a bit.
2018-07-10 07:25:51 -07:00
mmalerba e1fd13aec5 update changelog for 6.3.3 (#12120)
* update changelog for 6.3.3

* add release name
2018-07-09 13:55:33 -07:00
Kristiyan Kostadinov a410865c78 feat(drag-drop): support sorting items horizontally (#12104) 2018-07-09 10:43:10 -07:00
Kristiyan Kostadinov f2963bc48d feat(drag-drop): add support for multiple handles and handles that are added after init (#12102) 2018-07-09 10:40:59 -07:00
Kristiyan Kostadinov a6e28db2a0 fix(drag-drop): not accounting for scroll position when dragging (#12098) 2018-07-09 10:35:47 -07:00
Kristiyan Kostadinov 5c41410481 build: don't allow duplicate scss imports (#12077)
Enables a rule that doesn't allow duplicate `@import` statements. Also fixes a failure.

Fixes #12069.
2018-07-05 14:42:33 -07:00
Paul Gschwendtner fd771fcc29 docs(radio): fix wrong documentation comment (#12005)
* Fixes that the radio group JSdoc descriptions mention the state of the radio button while the `selected` property is actually about the `MatRadioGroup`
2018-07-05 14:41:07 -07:00
Kristiyan Kostadinov 9b7d56c305 chore(select): panel class example not working and pluralize custom trigger (#11999)
* Fixes the "Custom panel class" example not working due to style encapsulation.
* Pluralizes the example in the "Custom trigger" demo.
2018-07-05 14:40:39 -07:00
Paul Gschwendtner 485016745f build: use index file from material package (#11995)
* A `index.ts` file for the Material package has been added at some point. To be consistent, we switch away from `public-api.ts` to `index.ts` for the output of the individual packages.
2018-07-05 14:40:20 -07:00
heavybeard 2ac5baa522 doc(card): fix landmark roles link (#12018)
* doc(card): fix landmark roles link

* doc(card): fix roles links with updated w3 routes
2018-07-05 14:39:28 -07:00
Kristiyan Kostadinov 3e530e7820 chore: fix duplicate dependency in bazel build (#12054)
Seems like this got through in 89cad3fd15 due to a bad rebase. Removes a duplicate dependency which was throwing an error during the Bazel build.
2018-07-05 14:32:10 -07:00
Kristiyan Kostadinov 89cad3fd15 fix(tabs): don't show focus indication for mouse focus (#11194)
Similarly to other components, makes the tabs focus indication not to show for mouse focus.

Fixes #11184.
2018-07-04 03:34:37 +09:00
tinayuangao 20cbdba075 feat(list): allow avatar in selection list options (#10316) 2018-07-04 03:32:52 +09:00
Joey Perrott c40fef4b1a chore: update changelog for 6.3.2 (#12019) 2018-07-02 10:58:46 -07:00
Jeremy Elbourn 444fb38763 fix(sidenav): remove margin from content instead of setting zero (#11986) 2018-06-29 15:30:30 -07:00
Kristiyan Kostadinov d64f94d6d1 fix(focus-trap): not attaching correctly if element is not in the DOM on init (#7665) 2018-06-29 14:03:50 -07:00
Kristiyan Kostadinov 78f556a37b fix(tabs): maintain selected tab when new tabs are added or removed (#9132) 2018-06-29 11:11:21 -07:00
Paul Gschwendtner e0bbe073da fix: parse5 not listed as dependency for material (#11981) 2018-06-29 11:04:44 -07:00
Kristiyan Kostadinov 2b80dbf583 fix(autocomplete): reposition the panel when the amount of options changes (#4469) 2018-06-29 10:43:58 -07:00
Kristiyan Kostadinov 4a02bb1514 fix(focus-monitor): allow native focus options to be passed through focusVia (#11962) 2018-06-29 09:38:28 -07:00
Paul Gschwendtner d3212a6bb8 fix(selection-list): disabling list doesn't disable ripples of options (#11955) 2018-06-29 09:37:54 -07:00