Commit Graph

2639 Commits

Author SHA1 Message Date
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
mmalerba c46ba07151 lint: ensure all files are owned by someone (#7937)
* lint: ensure all files are owned by someone

* address comments
2017-10-23 13:20:29 -07:00
Kristiyan Kostadinov 64b566fb95 build: fix examples not building (#7939)
Fixes an error in the `material-examples` build, because the Moment adapter wasn't added as a dependency.
2017-10-23 13:19:51 -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
Paul Gschwendtner 2105326c46 build: individual umd files include other entry-points. (#7976)
Currently every UMD file for a secondary-entry point inlines other secondary-entry points. This means that the individual secondary entry points can't be used properly in SystemJS apps.

Other secondary entry-points that are part of the current build package **should** be only inlined for the primary entry-point UMD bundle.

Fixes #7947
2017-10-23 13:18:18 -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
Jeremy Elbourn 5390abef59 docs(readme): update high-level work for Q4 2017 (#7879) 2017-10-20 17:10:14 -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
Austin d815ebf61e chore(plunkr): fix plunkr demo not loading (#7832) 2017-10-20 17:08:30 -07:00
Paul Gschwendtner bf6a2c37aa build: more stable screenshot tests (#7774)
* Most of the time the screenshot tests are failing because the caret is blinking and therefore the screenshot is different. Setting the caret-color to `transparent` for focused elements ensures that the screenshot tests are running more stable.
2017-10-20 17:08:03 -07:00
Kristiyan Kostadinov 5c6e3df64a build: autocomplete test failure in iOS Safari (#7906) 2017-10-20 14:03:36 -07:00
Paul Gschwendtner fe08c2b74b build: run tests with firefox headless (#7828) 2017-10-18 16:11:36 -07:00
Kristiyan Kostadinov df63ef06ae chore: typo in example directory name (#7863)
Fixes a typo in the directory name of one of the examples.
2017-10-18 16:06:26 -07:00
Kristiyan Kostadinov e8b2e3faaa build: add karma task for easier cross-browser debugging (#7796)
Adds the `gulp test:static` task that is identical to `gulp test`, however it doesn't launch Chrome automatically, which is convenient for debugging any browser that isn't Chrome. Currently the debugging flow for other browsers is running the Gulp task which launches Chrome, waiting for it to finish running the tests, connect the other browser, wait for the new browser to finish and then start debugging. With the new task you can just run the Gulp task and connect and disconnect only the relevant browsers.
2017-10-18 16:05:04 -07:00
Juliano 288c2436b3 fix unescaped open-close (<>) tags (#7756) 2017-10-18 16:03:54 -07:00
Kristiyan Kostadinov 4fc3a0bf20 refactor(select): simplify option sync and more robust unit tests (#7807)
* Currently the select sets the `multiple` and `disableRipple` values on its options manually. In order to avoid "changed after checked" errors we wrap the calls in promises, however this also forces us to have `async` tests which can time out if the browser is out of focus. These changes add a provider that allows for the options to take the value directly from the select.
* Refactors some unit tests that have been timing out in Firefox to run in the `fakeAsync` zone instead of the `async` one.
2017-10-18 11:28:10 -07:00
Kristiyan Kostadinov 26bbeb2cda build: fix safari test failures (#7785)
Fixes a few obscure test failures on iOS Safari.
2017-10-16 12:52:32 -07:00
Philip Pham 9673f63c11 fix(scroll): Replace references to scrollableReferences (#7752)
The demo app won't build due to PR #7630.
2017-10-13 10:46:05 -07:00
Kristiyan Kostadinov b29ac45c0b chore(dialog): add generic param for config data (#7447)
Adds a generic parameter to the `MatDialogConfig` that indicates the type of its `data`.

BREAKING CHANGE: Material now requires at least TypeScript 2.4.

Fixes #4398.
2017-10-12 14:42:40 -07:00
Paul Gschwendtner b6f7f1740b chore: remove accessor type workaround (#7659)
Due to https://github.com/angular/dgeni-packages/issues/246 the Material docs package used a workaround for accessor types.

The issue has been fixed with https://github.com/angular/dgeni-packages/pull/247 and the workaround can be removed now.
2017-10-12 14:41:29 -07:00
Kristiyan Kostadinov 0680481b06 build: fix subpixel failures when running locally (#7671)
Fixes a few e2e tests that were failing due to subpixel measurement differences.
2017-10-12 14:40:48 -07:00
Juliano a7faebc88e correct some typos (#7697) 2017-10-12 14:40:38 -07:00
Paul Gschwendtner 0ab6ebeef1 build: run tests against ios10 (#7707) 2017-10-12 14:40:06 -07:00
Paul Gschwendtner 7f274b4688 build: create coverage reports in chrome (#7714)
* No longer creates the coverage reports inside of Browserstack. The reports can be generated inside of Chrome Headless that doesn't run remotely on BrowserStack or Saucelabs.
2017-10-12 14:39:52 -07:00
Kristiyan Kostadinov b2fbea7e8a refactor(scroll-dispatcher): API improvements (#7630)
* Adds the `ancestorScrolled` method that allows for the consumer to subscribe to scroll events coming from the element's parent scrollables.
* The `scrolled` and `ancestorScrolled` streams now expose the scrollable that was scrolled.

BREAKING CHANGES:
* The `getScrollContainers` method has been renamed to `getAncestorScrollContainers` to better describe what it does.
* The `ScrollDispatcher.scrollableReferences` property has been renamed to `scrollContainers`.
* The `ScrollDispatcher.scrollableContainsElement` method has been removed.
* The `Scrollable` class has been renamed to `CdkScrollable` for consistency.
2017-10-12 14:39:07 -07:00
Derek Burgman 80671bf2e8 fix(selection-list): fix option value coercion and selection events (#6901)
* fix(selection-list): fix md-list-option value coercion and selection event emitters

* md-list-option value is no longer coerced to a boolean value
* md-list-option EventEmitters selectedChange and deselected now emit an event when an option is selected/deselected

Fixes #6864

* review feedback changes

* review feedback changes

* review feedback changes

* review feedback changes
2017-10-12 14:14:01 -07:00
Kristiyan Kostadinov 074f6cea62 fix(menu): wrong offset for nested menu in a fallback position (#7562)
* Adds the ability to set offsets on connected position fallbacks.
* Fixes wrong positioning of nested menu if they're in a fallback position.

Fixes #7549.
2017-10-12 13:48:07 -07:00
Paul Gschwendtner f0f6a7468f chore: fix autocomplete test (#7743)
Due to https://github.com/angular/material2/commit/9b4f4355bc89cb83295f10b8d1bea6ba3ab4d6d5#diff-295d2cf77570f5880fd0c828fe60c2c4 the `mat-disabled` class is no longer being added to the underline element.

The disabled class is now being added to the host element of the `mat-form-field` component.
2017-10-12 13:46:48 -07:00
Will Howell f17cb9969d fix(form-field): remove specific mention of matInput in error (#7727) 2017-10-12 12:39:54 -07:00
Austin 3de57fb1a4 bug(chips): fixes placeholder in chip inputs #7481 (#7509)
* bug(chips): fixes placeholder in chip inputs #7481

* chore(nit): pr feedback

* chore(tests): fix invalid test

* chore(test): remove 'f'
2017-10-12 12:39:43 -07:00
mmalerba 160a511e61 fix(form-field): remove 200px width since it messes up flex layouts (#7083)
* remove 200px width on form-field since it messes up flex layouts

* fix select expanding to 100%
2017-10-12 12:39:30 -07:00
Will Howell 4f571b1d93 fix(snackbar): swap enter and exit animation curves (#6791)
- Use animation constants for maintainability
2017-10-12 12:38:37 -07:00
Kristiyan Kostadinov a0bb1a36bb fix(button): focus styles not applied to programmatically focused buttons (#5966)
Currently the tint that is added on top of focused buttons won't show up if the button is focused programmatically, which means that the button won't appear focused in cases like the dialog closing and restoring focus to its trigger. This seems to have been introduced by 5d6920dde6.

Fixes #7510.
2017-10-12 12:38:29 -07:00