Commit Graph

2729 Commits

Author SHA1 Message Date
Joey Perrott 0e03bf4400 chore(tabs): move tabs to smart portal directive. (#7266) 2017-11-10 09:54:35 -08:00
Jeremy Elbourn 691bb7321a chore(form-field): prevent overzealous floating placeholder rule optimization (#8343) 2017-11-10 09:53:37 -08:00
Aleksey a01972960f docs(slider): change slider value binding to ngModel (#8338) 2017-11-09 16:22:03 -08:00
Kristiyan Kostadinov dbd64b6c31 chore: fix lint errors (#8288) 2017-11-08 14:55:34 -08:00
mmalerba 8b3c8a5873 cleanup(datepicker): undo breaking change to NativeDateAdapter (#8281) 2017-11-07 11:32:47 -08:00
Kristiyan Kostadinov 998153a535 feat(datepicker): dispatch events when datepicker is opened and closed (#7792)
Adds `opened` and `closed` events, dispatched when a datepicker is opened/closed.
2017-11-07 10:09:28 -08:00
Kristiyan Kostadinov b9973532bf fix(progress-spinner): default strokeWidth to 10% of the diameter (#7746)
Currently the default stroke of a spinner is always 10px which doesn't look great on anything that's smaller than the default. These changes switch it to be 10% of the circle's diameter.
2017-11-07 10:07:27 -08:00
Jeremy Elbourn 20b47d72b1 feat(a11y): add autoCapture option to cdkTrapFocus (#7641)
This also renames `FocusTrapDirective` to `CdkTrapFocus` and re-exports it under the old name.
2017-11-07 09:58:41 -08:00
Kristiyan Kostadinov 7610c7c567 fix(drawer): re-add openedStart and closedStart events (#7747)
* Re-adds the `openedStart` and `closedStart` events due to popular demand.
* Fixes wrong signature for the returned promise from toggle. The signature states that the resolved value is supposed to be a `MatDrawerToggleResult` while in practice it was `undefined`.
2017-11-07 09:57:31 -08:00
mmalerba d6d9ff8f79 fix(datepicker): add missing exportAs (#7782) 2017-11-07 09:56:16 -08:00
Joey Perrott 9b88aac155 fix(expansion) Add expansion panel outputs (#7309) 2017-11-07 09:55:54 -08:00
mmalerba 2f2325a856 fix(datepicker): correct DST issues on IE 11 (#7858) 2017-11-07 09:52:39 -08:00
mmalerba c088a0f372 test(select): switch all select tests to fakeAsync (#7913) 2017-11-06 14:17:35 -08:00
Andrew Seguin 020ed61e87 docs(table): add selection example (#8161)
* Add comment

* newline

* triple equals
2017-11-06 14:16:51 -08:00
Andrew Scott 2667c017cd chore(docs): update autocomplete-filter-example.ts (#8167) 2017-11-06 14:16:11 -08:00
Paul Gschwendtner 0c257705a3 build: fix screenshot-tool app deployment (#8174) 2017-11-06 14:15:33 -08:00
Joey Perrott b65c642205 Fix changelog bullet indentation (#8260) 2017-11-06 14:14:09 -08:00
Paul Gschwendtner 4e8626b8ad build: remove es5 tsconfig files (#8203) 2017-11-06 13:59:33 -08:00
Andrew Seguin e172d19f9b chore(table): add sort accessor type to data source (#8222) 2017-11-06 13:58:40 -08:00
Kristiyan Kostadinov 6e872b72a1 docs: fix forms warning in custom form field example (#8224) 2017-11-06 13:57:40 -08:00
Joey Perrott b3e1448b3d Add moment adapter release to changelog (#8257) 2017-11-06 13:29:18 -08:00
Joey Perrott c13848e715 chore: bump version to 5.0.0-rc0 (#8256) 2017-11-06 12:12:00 -08:00
Kristiyan Kostadinov 24f0471b72 chore(spinner): avoid deprecation warning in Safari (#7810)
Fixes a deprecation warning that was being logged by the spinner on Safari.
2017-11-03 12:02:36 -07:00
Andrew Seguin 25bc760eef docs(input): fix example references (#8221) 2017-11-03 10:03:00 -07:00
Kristiyan Kostadinov cf11ff2e3f fix(stepper): error when selectedIndex is pre-set (#8035)
Fixes an error that is thrown if the `selectedIndex` is set before the steps are initialized.

Fixes #8031.
2017-11-01 21:06:26 -07:00
Will Howell 3b50d3d08f docs(elevation): add guide for elevation helpers (#8172)
* docs(elevation): add guide for elevation helpers

- Credit to @M-a-c for intitial version

* Remove extra newlines

* Address comments
2017-11-01 21:05:27 -07:00
Will Howell c5eaa7c852 build(dgeni): render class descriptions as markdown (#8153) 2017-11-01 21:05:12 -07:00
Paul Gschwendtner ebbbcca53f docs: show platform service (#8148)
* No longer marks the `Platform` service from `@angular/cdk/platform` as `docs-private`. The platform service should be documented since it's useful and likely the only thing in the platform entry-point.
2017-11-01 21:04:38 -07:00
Paul Gschwendtner 44d61b2079 docs: create ripples api document (#8147)
* Generates a `material-ripple.html` API file in the material docs content. This can be used to show the ripple API information in material.angular.io.
2017-11-01 21:04:06 -07:00
Andrew Seguin 55476e2cb9 fix(table): throw error when missing row defs (#7751)
* fix(table): throw error when missing row defs

* nit: change conditional
2017-11-01 20:51:44 -07:00
Philip Pham 2347f5bf5f demo(chips): Set addOnBlur for both inputs (#7812)
It's confusing to only have addOnBlur work for one example.
2017-11-01 20:48:56 -07:00
Rafał Krzewski 90fdacf6ad fix(radio) detect non-direct mat-radio descendants of mat-radio-group (#7842)
Fixes #7166
2017-11-01 20:48:21 -07:00
Austin dff97274f7 chore(keycodes): add comma to keycodes and update usages (#7852) 2017-11-01 20:44:58 -07:00
Kristiyan Kostadinov 8edb416d26 fix(select): support typing to select items on when closed (#7885)
Adds support for selecting items on a closed select by typing. This is similar to how the native select works.
2017-11-01 20:38:08 -07:00
Kristiyan Kostadinov 943395ee5c perf(tabs): avoid repainting while scrolling (#7889)
Along the same lines as #7721, #7719 and #6890 the tab body currently repaints on scroll.
2017-11-01 20:37:30 -07:00
Jeffrey Bosch 9a05ecdb63 fix(MatPaginatorIntl): Provide a provider if exists. (#7895)
* fix(MatPaginatorIntl): Provide a provider if exists.

If there is already a MatPaginatorIntl provider that one
If not create a new instance.

Closes #7344

* style(paginator): Changed arguments, removed spacing

* style(paginator): Changed argument name.
2017-11-01 20:36:26 -07:00
Kristiyan Kostadinov ee4915cfca fix(button-toggle): support two-way binding of value (#7911)
Adds support for two-way data binding in the `value` property of the button toggle group. This is consistent with other components like `mat-select`.
2017-11-01 20:34:50 -07:00
Andrew Seguin 7c4b3949d5 feat(table): add access to filtered data in MatTableDataSource (#7912)
* feat(table): add access to filtered data in MatTableDataSource

* add more test
2017-11-01 20:34:26 -07:00
Kristiyan Kostadinov c0ba25a0e8 fix(overlay): CloseScrollStrategy not triggering change detection on close (#7929)
After some refactoring, the `ScrollDispatcher` no longer dispatches inside the `NgZone`, which caused the `CloseScrollStrategy` to break, because it detaches without triggering change detection. These changes bring the detachment back into the `NgZone`.

Fixes #7922.
2017-11-01 20:32:31 -07:00
Kristiyan Kostadinov 6fdc2371b0 fix(overlay): emitting to detachments stream when not attached (#7944)
Currently the `detachments` stream will emit any time the `detach` or `dispose` methods are called, which doesn't reflect actual detachments. It is something I noticed while looking into #7922.
2017-11-01 20:32:06 -07:00
Kristiyan Kostadinov 0d6d9cceb0 fix(viewport-ruler): incorrectly caching viewport size (#7951)
* Currently the `ViewportRuler` caches the `ClientRect` of the `document.documentElement` which is only used for determining the scroll position and is being updated on demand anyway. These changes switch to caching the `innerWidth` and `innerHeight` which was the original intent.
* Adds a `getViewportSize` method that returns the cached viewport width and height. The reasoning is that for all of the cases where we were using `getViewportRect`, we were only taking the `width` and `height`. `getViewportSize` helps us avoid the overhead from determining the `top`, `bottom`, `left` and `right` via the scroll position.
2017-11-01 20:31:53 -07:00
Kristiyan Kostadinov ff7a13b053 perf(focus-monitor): use passive touch listener (#7957)
The `FocusMonitor` works by binding a `touchstart` (as well as some other events) listener to the `document` in order to keep track of focus. These changes make the `touchstart` listener `passive`, which means that on supported browsers it won't block rendering and should make scrolling smoother.
2017-11-01 20:31:40 -07:00
Kristiyan Kostadinov 816866738a fix(chips): programmatically selected chip stealing focus (#7978)
Currently chips that are selected programmatically (e.g. by setting the of `ngModel`) will moves focus to themselves, causing the page the scroll down. This can be observed in the demo app where the bottom chip instances have a preselected value which shifts focus to the bottom. These changes fix the issue by only moving focus if the selection was a result of a user interaction.
2017-11-01 20:31:14 -07:00
Jeffrey Bosch c8df2c16d7 feat(sort): if provider exists provider one, otherwise new one (#7988)
* feat(sort): if provider exists provider one, otherwise new one

* fix(sort): added provider in module
2017-11-01 20:30:45 -07:00
Paul Gschwendtner eaa4a36668 fix: user-select mixin ignores value (#7992)
* Fixes that the `$value` parameter for the `user-select` mixin from core is ignored.
2017-11-01 20:30:17 -07:00
Kristiyan Kostadinov 1547a77397 chore: remove unused directionality provider (#7998)
Removes the `DIRECTIONALITY_PROVIDER` since it isn't being used anywhere. This seems to be a remnant of the old approach to dealing with directionality.
2017-11-01 20:29:48 -07:00
Andrew Seguin 58627c4828 fix(table): empty string should be sorted right (#8011)
* fix(table): empty string should be sorted right

* newline
2017-11-01 20:29:19 -07:00
Kristiyan Kostadinov cc4fc11071 fix(dialog): don't block other dialogs from opening while animating (#8051)
The behavior where we don't allow new dialogs to be opened while a dialog is animating was introduced initially in #5769 to avoid issues where the user might open multiple dialogs by accident if they press enter one too many times. This is problematic because it also means that the consumer is blocked from opening dialogs for certain 300ms intervals. These changes approach the issue differently by moving focus onto the dialog container immediately while it's animating.

Fixes #6560.
2017-11-01 20:27:21 -07:00
Jeremy Elbourn d17f9d22ab fix: don't show sanity check messages in tests (#8080) 2017-11-01 20:26:36 -07:00
Kristiyan Kostadinov 2fa679bb00 fix(input): remove IE clear icon (#8095)
Removes IE's native clear icon from inputs, because it makes them inconsistent between browsers.

Fixes #8076.
2017-11-01 20:24:50 -07:00