Commit Graph

2096 Commits

Author SHA1 Message Date
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
Paul Gschwendtner c4e12b5b65 refactor(list): easier overriding of list-item height (#8120)
* Makes it easier for developers to override the height of a list-item.

Fixes #8067
2017-11-01 20:21:51 -07:00
Paul Gschwendtner 02d3eb6c30 fix(tabs): incorrect ripple color for tabs with background (#8123)
* Tabs with a background color need to set the ripple colors to be the contrast color. Otherwise the ripples might be too dark/or light, depending on the color palette that is being used.
2017-11-01 20:21:35 -07:00
Kristiyan Kostadinov 75bccde374 fix(block-scroll-strategy): disable smooth scrolling before restoring scroll position (#8132)
Disables user-defined `scroll-behavior: smooth` before restoring the scroll position when disabling the `BlockScrollStrategy`, which prevents browsers from animating the scroll position change.

Fixes #7139.
2017-11-01 20:21:02 -07:00
Joey Perrott 9e4c636821 fix(spinner): set initial value for spinner to 0. (#8139) 2017-11-01 20:20:48 -07:00
Kristiyan Kostadinov dfe8091d95 feat: angular 5 support (#6018) 2017-11-01 11:03:57 -07:00
Andrew Seguin a2129fc7e7 fix(table): switch when arguments (#7516) 2017-10-31 16:05:55 -07:00
Kristiyan Kostadinov de8c6e2881 fix: import individual rx operators (#8160)
After the switch to lettable operators, we had started importing all operators via `rxjs/operators`. These changes switch us back to only importing the individual ones and add some linting so it doesn't happen in the future.
2017-10-31 16:05:10 -07:00
Joey Perrott e0eda5a9ce use camelCase for cdkAccordion selector. (#7862) 2017-10-31 16:04:43 -07:00
Paul Gschwendtner c3405aad52 fix(toolbar): no longer auto-generate toolbar rows (#6661)
Currently the toolbar always generates the first `<md-toolbar-row>`. This means that developers have no opportunity to set directives/attributes/classes on the first toolbar row (e.g with flex-layout).

With this change, the toolbar won't auto-generate any `<md-toolbar-row>` element.

The toolbar will have two different row modes:

_Single row toolbar_

```html
<md-toolbar>
  First Tow
</md-toolbar>
```

_Multiple rows toolbar_

```html
<md-toolbar>
  <md-toolbar-row>First Row</md-toolbar-row>
  <md-toolbar-row>Second Row</md-toolbar-row>
</md-toolbar>
```

This means that mixing those two row modes is no longer possible and allowed

```html
<md-toolbar>
  <span>First Row</span>
  <md-toolbar-row>Second Row</md-toolbar-row>
</md-toolbar>
```

BREAKING CHANGE: `<md-toolbar-row>` elements will be no longer auto-generated for the first row. Meaning that custom styling for the first `<md-toolbar-row>` is no longer working as before. Since no toolbar-row is auto-generated anymore, there are two different modes for the toolbar now. Either place content directly inside of the `<md-toolbar>` or place multiple `<md-toolbar-row>` elements.

Fixes #6004. Fixes #1718.
2017-10-31 16:04:34 -07:00
Kristiyan Kostadinov b39202ff3f chore: fix lint error (#8136)
Fixes a few linting errors
2017-10-30 15:12:50 -07:00
Jeremy Elbourn f08b3f0e1e fix: consistent names for all cdk directives (#8088)
Renames:
`OverlayOrigin` -> `CdkOverlayOrigin`
`ConnectedOverlayDirective` -> `CdkConnectedOverlay`
`PortalDirective` -> `CdkPortal`
`PortalHostDirective` -> `CdkPortalOutlet`
`ObserveContent` -> `CdkObserveContent`

Also stop using "mat" completely in the cdk.

BREAKING CHANGE:
`MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY` is renamed to
`CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY`
2017-10-30 15:07:18 -07:00
Austin cd05b54e37 fix(overlay): overlay class audits #6372 (#8056)
* fix(overlay): overlay class audits #6372

* chore(nit): pr feedback

* chore(nit): remove param
2017-10-30 15:06:59 -07:00
Jeremy Elbourn 1e6762926e chore(table): fix missing import in tests (#8135) 2017-10-30 14:52:34 -07:00
Austin c5cbe18f51 a11y(table): add basic, sort, pager demos for a11y #6498 (#6653)
* a11y(table): add basic, sort, pager demos for a11y #6498

* chore(nit): few tweaks

* a11y(table): add readonly flag

* chore(nit): export interface

* chore(tests): fix old prefixes

* chore(build): update comp names from md to mat
2017-10-30 14:36:45 -07:00
Jeremy Elbourn 10c1c0617d docs(dialog): don't say that entryComponents is for AOT only (#8133)
Fixes #8102
2017-10-30 14:35:47 -07:00
Austin 804f925d92 docs(focus): Add docs for regions #8082 (#8128)
* docs(focus): Add docs for regions #8082

* docs(a11y): add more desc for focus trap
2017-10-30 14:35:32 -07:00
Austin f59abdb3d5 fix(select): make @Output names consistent #6677 (#8052) 2017-10-30 14:31:44 -07:00
Andrew Seguin d47b37a7e4 fix(table): broaden abstraction for filtering (#8059)
* fix(table): broaden abstraction for filtering

* cleanup

* rename filter function

* fix wording
2017-10-30 14:08:29 -07:00
Austin b2dd17ad09 fix(menu): make @Output names consistent #6677 (#8053)
* fix(menu): make @Output names consistent #6677

* chore(nit): pr feedback updates

* chore(merge): fix bad merge
2017-10-30 14:07:43 -07:00
mmalerba 9fa075e001 fix(datepicker): allow DateAdapter authors to have more control ove… (#7346)
* fix(datepicker): allow `DateAdapter` authors to have more control over what can/can't be coerced to a date

BREAKING CHANGES:
- `fromIso8601` method on `DateAdapter` removed in favor of `coerceToDate`

* address comments

* more comments addressed

* return invalid date instead of throwing
2017-10-30 14:05:09 -07:00
Kristiyan Kostadinov 00de3f6509 refactor(portal): rename PortalHost to PortalOutlet (#7546)
Renames the `PortalHost` and related symbols to `PortalOutlet` for consistency with core.

Fixes #7544.
2017-10-30 14:04:36 -07:00
Andrew Seguin f601e8335f fix(table): render cells even if data is falsy (#7914)
* fix(table): render cells even if data is falsy

* add test

* test naming

* fix all usages of evensimpler
2017-10-30 14:03:57 -07:00
Kristiyan Kostadinov f29da63583 feat: update to rxjs 5.5.0 and switch to lettable operators (#7276)
Bumps the required RxJS version to 5.5.0 and gets rid of our RxChain in favor of using the lettable Rx operators. Refactors all the usages and updates the configs.

Fixes #7275.
2017-10-28 09:37:43 -07:00
Kristiyan Kostadinov 62b149f3ce chore: fix prerender failure (#8091)
Fixes the prerender check failing due to a faulty rebase in an earlier PR.
2017-10-27 23:46:28 -07:00
Kristiyan Kostadinov 97447f9349 chore: lint error (#8086)
Fixes a linting error in the docs
2017-10-27 15:40:55 -07:00
Paul Gschwendtner b3a493c584 build(docs): exclude readme files (#8087)
* No longer copies and prefixes `README.md` files for the docs. Those are just in the repository for a better overview, but don't really have any use for the docs. Also they are conflicting with the `fetch` script on the material.angular.io repository.

```
cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/slide-toggle/material-README.html'
cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/slider/material-README.html'
cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/snack-bar/material-README.html'
cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/tabs/material-README.html'
cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/toolbar/material-README.html'
cp: will not overwrite just-created './src/assets/documents/overview/material-README.html' with '../material2/dist/docs/markdown/tooltip/material-README.html'
`
* Also updates the `example-module.ts` file to the current state of the material-examples.
2017-10-27 15:40:38 -07:00
Austin 94981eaad5 docs(menu): move nested to section (#7884) 2017-10-27 10:23:12 -07:00
Paul Gschwendtner c707007d65 docs(ripple): update documentation (#7941)
* docs(ripple): update documentation

* Improves the documentation of the `matRipple` attribute directive.

References #7543.

* Address feedback

* Omit matRipple header
2017-10-27 10:22:54 -07:00
Kristiyan Kostadinov f6a9b1ade7 docs(dialog): add note about focus trapping (#7945)
Adds a note about the dialog's focus trapping behavior to the docs.

Fixes #7935.
2017-10-27 10:22:20 -07:00
Andrew Seguin e15fc0b06d docs(table): change docs to use MatTableDataSource (#8007)
* chore(table): change docs to use MatTableDataSource

* review changes

* comments
2017-10-27 10:21:39 -07:00
Joey Perrott eb12317dc8 chore(dialog): add comment for MatDialogContainer injection token (#8029) 2017-10-27 10:19:53 -07:00
barnesma 24984f5e44 Update card-demo.html (#8042)
#7241 was a little heavy handed in removing all md prefixes.
2017-10-27 10:18:04 -07:00
barnesma 5f82278e37 Update card.md (#8043)
#7241 was a little heavy handed in removing all md prefixes.
2017-10-27 10:17:44 -07:00
Will Howell a2ca4d6dbb feat(overlay): add keyboard dispatcher for targeting correct overlay (#6682)
* feat(overlay): add keyboard dispatcher for targeting correct overlay

Fix typo and add comment

Address comments

Add keyboard tracking demo to overlay

Address comments

Revert no-longer-needed dispose changes

Address comments

Fix prerender error by lazily starting dispatcher

Address naming comment

* Update license

* Remove DOCUMENT token
2017-10-27 10:15:51 -07:00
Austin c663fadaf2 fix(focus-trap): update focus trap attrs to camel case #6799 (#6960)
* fix(focus-trap): update focus trap attrs to camel case #6799

* chore(nit): update to use lower case names

* chore(nit): fix typo

* chore(demo): update demos

* chore(nit): fix pr feedback
2017-10-27 09:58:26 -07:00
Jeremy Elbourn 0f2c2721e5 chore: expand and polish cdk docs (#7675)
* Add JsDocs where missing
* Adds and polishes overviews for main cdk subpackages
* Tweaks dgeni to disambiguate between material and cdk output (e.g. with "table").
* Tweaks markdown process to disambiguate between material and cdk output
* Fix an issue where method return types were missing from _all_ api docs
* Correct some `any` property types in cdk/stepper
* Correct table trackBy JsDoc being omitted because it was on the setter
2017-10-27 09:57:50 -07:00
Kristiyan Kostadinov dcef604506 refactor: remove compatibility mode (#7689)
Since the switch to the `mat-` prefix, the compatibility mode is no longer necessary. These changes remove anything that was left.

BREAKING CHANGE:
The `MATERIAL_COMPATIBILITY_MODE`, `CompatibilityModule`, `NoConflictStyleCompatibilityMode`, `MatPrefixRejector`, `MdPrefixRejector` symbols have been removed.
2017-10-27 09:56:04 -07:00
Andrew Seguin f8062865f7 fix(table): update implicit when using trackby (#7893)
* fix(table): update implicit when using trackby

* imports

* syntax change
2017-10-27 09:55:31 -07:00
Kristiyan Kostadinov 0ea43700ef refactor: switch to HttpClient (#6702)
Refactors all of the usages of the deprecated `Http` by replacing them with the `HttpClient`.

BREAKING CHANGE: Material now requires `@angular/common` instead of `@angular/http` and uses `HttpClient` instead of `Http`.
2017-10-24 10:42:35 -07:00
Roy 65d36302fc fix(card): change image path to https in example (#7800) 2017-10-23 13:21:05 -07:00
Kristiyan Kostadinov edf91c99e8 build: bump to tslint 5.8.0 and fix failures (#7943)
Updates to `tslint@5.8.0` and fixes a few previously-uncaught failures.
2017-10-23 13:19:03 -07:00
Kristiyan Kostadinov 76a6e7beab chore: re-enable prerender checks for all components (#7930)
Re-enables the prerender checks for the checkbox and button toggle modules since the issue that was breaking them initially has been resolved.
2017-10-20 17:10:33 -07:00
Austin 74bc62320e docs(demos): add more progress bar examples (#7859) 2017-10-20 17:09:47 -07:00
mmalerba 206d9e0d91 docs(datepicker): update docs and add examples (#7837)
* make some tweaks to datepicker docs

* add examples

* fix e2e

* address comments
2017-10-20 17:09:11 -07:00