Commit Graph

2672 Commits

Author SHA1 Message Date
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
Joey Perrott f6b80f4358 chore: update plunker short link (#8137) 2017-10-30 15:08:57 -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 e703b3edd3 docs(types): null chk descriptions, type placement updates (#8125) 2017-10-30 14:35:11 -07:00
Gabriel fd527821cf chore: add link to tracking issue for bottom-sheet component (#8119) 2017-10-30 14:34:52 -07:00
Paul Gschwendtner bffe5f52c4 docs: proper module import name (#8105)
* No longer shows import paths for the CDK without the secondary-entry point. Those imports are not valid and for the CDK its required to specify a secondary-entry point.
2017-10-30 14:34:35 -07:00
Michael Prentice 8d74d6798a docs(readme): cleanup (#8103)
* docs(readme): cleanup

fix broken ripples link 
use aio for getting started
nested menus are here, remove coming Q3 message

* docs(readme): add link to cdk docs
2017-10-30 14:33:40 -07:00
Paul Gschwendtner 34306ad0f9 ci: skip more tasks if only markdown files changed (#8096)
* No longer just skips the unit test and e2e tasks if only markdown files changed. Now everything will be skipped, since there is nothing that tests against the `.md` files.
* Prints messages for the deploy tasks that run inside of Pull Requests but end up in a NOOP.
2017-10-30 14:33:13 -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
Paul Gschwendtner 520d83bb61 chore(docs): show extends clauses for classes (#8078)
* chore(docs): show extends clauses for classes

Classes like `MatAnchor` in the button docs should indicate that those are extending the `MatButton` class. Clauses without any related Dgeni doc can be ignored, because no information for this is available (right now; e.g. `MatSlideToggleBase` with mixins)

* Address feedback
2017-10-28 09:38:29 -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
Austin 4c811d4432 chore(docs): adds toc to api docs (#7827) 2017-10-27 15:41:21 -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
mmalerba 4efb70cc9f Revert "chore(docs): adds types column and null checks for description (#7713)" (#8083)
This reverts commit 8993451007.
2017-10-27 10:30:00 -07:00
Austin 8993451007 chore(docs): adds types column and null checks for description (#7713)
* chore(docs): adds types column and null checks for description

* chore(nit): update per pr feedback
2017-10-27 10:25:23 -07:00
Gabriel 38d1ec29ca chore: switch stepper from the list of planned features to the list of available features (#7732) 2017-10-27 10:23:47 -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
Paul Gschwendtner 305dccfd52 chore: fix plunker link in readme (#7991)
* The current Plunker link is referring to an anonymous Plunker that nobody can't change.
* Changes the Plunker and StackBlitz links in the Readme to the `goo.gl` shorthand links from the issue template.
2017-10-27 10:21:57 -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
Jeremy Elbourn 4e9e75be60 chore: always deploy every commit, not just when tests pass (#8009) 2017-10-27 10:20:22 -07:00
Joey Perrott eb12317dc8 chore(dialog): add comment for MatDialogContainer injection token (#8029) 2017-10-27 10:19:53 -07:00
Paul Gschwendtner dc1bf54e28 chore: fix gulp-utils color issue (#8030)
With (DefinitelyTyped #21004) the typings for @gulp-utils are declaring `chalk` as dependency of the types. This causes a conflict with the types from chalk and gulp fails everywhere in the CI. (https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21004)

A possible solution would be locking the version of the gulp-util types to the working version `3.0.31`.

As `gulp-utils` is only used in one place right now, we are just remove the `gulp-utils` import and just use `console.log` as everywhere else.
2017-10-27 10:19:25 -07:00
Joey Perrott 473b1dfafd chore: create tslint rule to allow @HostListener and @HostBinding in abstract classes (#8036) 2017-10-27 10:18:36 -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
Kristiyan Kostadinov 8c389b4c26 docs: add note about web animations polyfill (#8069)
Adds a note that the WebAnimations polyfill is required for component animations to work in all browsers.
2017-10-27 10:16:39 -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