Commit Graph

2264 Commits

Author SHA1 Message Date
mmalerba cea4d9fa32 fix(radio): forward focus to native input (#6274)
* fix(radio): forward focus to native input

* add comment
2017-08-08 23:21:53 -07:00
Jeremy Elbourn 9df292fba8 feat: rename cdk/keyboard -> keycodes & cdk/observe-content -> observers (#6039) 2017-08-08 23:19:32 -07:00
Paul Gschwendtner fc98a1d0cf build: move changelog script to gulp task (#5472)
* Moves the changelog script to a gulp task that includes better instructions and error reporting.
2017-08-08 23:18:38 -07:00
Paul Gschwendtner 333ec80750 build: fix screenshot tool deployment (#6337)
* Currently the screenshot tool application is not built in the deploy script. This causes Firebase to throw an error because the target directory does not exist.
2017-08-08 13:26:33 -07:00
Scott 7bc648b3f3 feat(datepicker): export unexported components for potential extension (#6314)
Although the team has export those files, but users can't redeclare them in another NgModule for angular constraints. It's impossible for someone to extend the functionality or create a custom date(time)picker view without this patch.
2017-08-08 13:25:49 -07:00
Kristiyan Kostadinov 4a1f10ecd5 fix(dialog): support passing in dialog result through all MdDialogClose selectors (#6293)
Fixes not being able to pass in a dialog result through the `mdDialogClose`, `matDialogClose` and `mat-dialog-close` selectors, even though they are allowed by the `MdDialogClose` directive.

Fixes #6278.
2017-08-08 13:25:19 -07:00
Paul Gschwendtner 4ae1b0f372 feat(tab-nav-bar): allow disabling ripples for links (#6273)
* Adds a possibility to disable ripples for a tab-nav-bar with links.

Closes #6245
2017-08-08 13:24:49 -07:00
Scott c20bcf997a fix(xxx-intl): replace misused EventEmitter with Subject (#6313)
* fix(xxx-intl): replace misused EventEmitter with Subject

According to https://angular.io/api/core/EventEmitter#description, EventEmitter is not for services. And Subject is preferrable.

* test(xxx-intl): update the related tests

* refactor: remove spaces
2017-08-08 13:21:52 -07:00
Kristiyan Kostadinov 5ebca5ee81 feat(select): allow focusing items by typing (#2907)
* feat(select): allow focusing items by typing

Allows for users to skip to a select item by typing, similar to the native select.

Fixes #2668.

* refactor: address feedback

* chore: linting errors
2017-08-08 13:21:03 -07:00
Kristiyan Kostadinov 504b5df88d fix(select,autocomplete): darken selected option (#6302)
Darkens the selected option background in order to distinguish it from the ones that are focused or hovered.

Fixes #6229.
2017-08-08 13:20:23 -07:00
Kristiyan Kostadinov 7626c51930 feat(focus-trap): return whether shifting focus was successful (#6279)
Adds return types to the focus trap methods, allowing the consumer to react based on whether the focus trap managed to find a focusable element. This is useful for cases like the dialog where focus could be left behind if it is a purely text-based dialog.
2017-08-08 13:19:48 -07:00
Kristiyan Kostadinov a190de7c43 feat(overlay): support setting multiple panel classes (#6326)
Allows for more than one class to be added via the `panelClass` option.

Fixes #6318.
2017-08-07 14:24:36 -07:00
Kristiyan Kostadinov 18c668952e build: disallow usage of HostBinding and HostListener (#6307)
Adds the `HostBinding` and `HostListener` decorators to the banned symbols list for consistency's sake. Refactors the handful of places that were using them.

Relates to #6304.
2017-08-07 14:24:13 -07:00
Kristiyan Kostadinov faa760104f fix(overlay): error when removing empty string theme (#6306)
Something I ran into while doing #6305. If the previous overlay theme is a blank string, switching to another theme throws an error.
2017-08-07 14:23:47 -07:00
Kristiyan Kostadinov 8b54715053 feat(dialog): open dialog API improvements (#6289)
* Makes the `openDialog` public.
* Adds a unique id to each `MdDialogRef`, as well as the option to override the id and to look dialogs by id.
* The `afterAllClosed` stream now emits on subscribe if there are no open dialogs.

Fixes #6272.
2017-08-07 14:23:21 -07:00
Will Howell 667a4e4405 fix(autocomplete): attach overlay to a more accurate input element (#6282)
* fix(autocomplete): attach overlay to a more accurate input element

* Fix issue with transient prefix/suffix

* Remove unneeded position change subscription
2017-08-07 14:22:28 -07:00
Kristiyan Kostadinov 48d3a0cde1 refactor(slider): remove redundant renderer class (#6281)
Gets rid of the `SliderRenderer` class which doesn't really do much, apart from holding a couple of methods. The methods have been moved into the slider itself.
2017-08-07 14:22:00 -07:00
Paul Gschwendtner e94f26c785 chore(): add sort module to universal app (#6324)
* Adds the `MdSortModule` to the universal app. This means that it will be part of the prerender check on the CI.
2017-08-07 11:35:10 -07:00
Paul Gschwendtner 18a85f35a1 build: version placeholder replacement grep alternative (#6290)
For the version placeholde replacement a Grep statement is used as well. For Windows environments there is an alternative called `Findstr` which can be used to avoid having a dependency on ported Unix-tools.
2017-08-07 11:34:57 -07:00
Paul Gschwendtner 0680774fcd ci: shorter wait timeout for saucelabs and browserstack (#6317)
* Changes the wait timeout for Saucelabs and Browserstack from 2 minutes to 1 minute. This is possible now because if the timeout fails we still re-try to create a connection a second time.
2017-08-07 10:24:09 -07:00
Austin 4851dea42e chore(build): add examples to docs build and annotate table examples (#6311) 2017-08-07 10:23:47 -07:00
Paul Gschwendtner 8d09961562 test(): screenshot diff for opened dialog (#6309)
* Creates a screenshot for a simple opened dialog
2017-08-07 10:22:53 -07:00
Paul Gschwendtner fbc0b95758 test(): screenshot diff for toolbar (#6308)
* Adds the toolbar demo to the e2e app and adds a screenshot diff for it.
2017-08-07 10:22:28 -07:00
Kristiyan Kostadinov af67e7c273 build: toggle demo app dark theme for overlay components (#6305)
Fixes the dark theme not being added to overlay-based components.
2017-08-07 10:22:01 -07:00
Paul Gschwendtner 49d6080b09 chore: add cdk table to universal app (#6300)
* Adds the CDK table to the universal app. This ensures that CDK tables can be rendered inside of platform-server.
2017-08-07 10:20:47 -07:00
Paul Gschwendtner 3944d70435 build: deploy screenshot app for push builds (#6299)
* Currently only the screenshot functions are deployed, but not he screenshot application. With this change the application will be also deployed on Travis Push builds.
2017-08-07 10:20:30 -07:00
Paul Gschwendtner 5ecc509763 chore: fix missing types error for screenshot-tool functions (#6286)
The Google Cloud functions for the screenshot-test tool can't be deployed on the CI because there appear to be some errors that indicate that the types for the `jsonwebtoken` package are not installed.

This commit adds the types for the `jsonwebtoken` package to the dependencies (similar as for the dashboard)
2017-08-07 10:19:43 -07:00
Paul Gschwendtner 48d092093d build: fix docs generation highlight files task (#6285)
Recently with https://github.com/angular/material2/commit/edcbb24f11ae776b94d97634ae91e9175ffd6f8a the ambigious variable `path` has been renamed to `filePath`, but there is one remaining instance of `path` that didn't get updated.

This currently causes the docs-content CI job to fail.
2017-08-07 10:19:15 -07:00
Paul Gschwendtner 509e3e90f5 build: fix error when running devapp on windows (#6288)
Currently developers using Windows are not able to serve the devapp because the secondary entry-points can't be resolved. This can happen because of two things:

* `egrep`, which is an alias for `grep -E` is not part of the global `$PATH` variable on Windows
* The Regular Expression for the `grep` call is ambiguous and expects zero-width characters to be present.

This commit changes the `spawnSync` call to use `grep -E` and also changes the Regular Expression to be more explicit about what characters to match after the `from`.
2017-08-07 10:18:48 -07:00
Kristiyan Kostadinov 08509816b2 fix(input): required asterisk being read out by screen readers (#6277)
Fixes the asterisk that gets added after a required input being read out by screen readers.
2017-08-04 16:09:42 -07:00
Kristiyan Kostadinov 3df4d72c28 fix(input): set proper role on md-error (#6259)
Sets the `alert` role on `md-error` instances, causing the messages to be read out properly by screen readers. For reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_alert_role
2017-08-04 15:18:52 -07:00
mmalerba 9d3c4050f4 fix(slider): fix change & input emit logic. (#6234) 2017-08-04 15:17:55 -07:00
mmalerba 2af284cd3a fix(input): update aria-describedby to also include errors (#6239)
* fix(input): update aria-describedby to also include errors

* comments addressed

* check for null errorChildren
2017-08-04 15:15:48 -07:00
Will Howell 73c6d8d757 style(expansion): simplify vertical centering in header (#5950) 2017-08-04 15:03:19 -07:00
mmalerba 787a8f0008 demo(slider): add slider a11y demos (#6230)
* demo(slider): add slider a11y demos

* add description text to each example
2017-08-04 15:01:19 -07:00
Jeremy Elbourn f913cc992a chore: don't hard-code cdk build order (#6207)
* chore: don't hard-code cdk build order

* Use BuildPackage

* packagename grep

* fix rollup globals conflict
2017-08-04 14:05:07 -07:00
Paul Gschwendtner c6c7908c29 chore(): fix package dependencies for screenshot-tool app (#6276)
Recently some utilities have been moved from the Material package to the CDK package. At this point Material added the CDK as a peer dependency.

The screenshot-test application uses the most recent (released) Angular Material version (due to the caret in the semver expression) but doesn't have a dependency on the CDK yet.

This commit adds the CDK as a dependency and also switches Material and the CDK to the latest build artifcats on GitHub (as same as for the dashboard).
2017-08-04 14:03:26 -07:00
Paul Gschwendtner 298bc031da ci: incorrect path to screenshot-test tool (#6275)
The deploy script for the screenshot-test tool right now references a incorrect directory. This means that the screenshot-test tool can't be uploaded for push builds right now.
2017-08-04 14:03:08 -07:00
Jeremy Elbourn b0db9122c4 chore: block use of public access modifier outside constructors (#6261) 2017-08-04 14:01:30 -07:00
Kristiyan Kostadinov e86b9649c3 a11y: add autocomplete accessibility demo (#6254)
Adds a demo page for testing the autocomplete accessibility.
2017-08-04 14:01:14 -07:00
Paul Gschwendtner ea6e829239 build: retry attemps for tunnel connections (#6246)
On the CI it happens pretty often that the tunnel connection to the different providers like Browserstack or Saucelabs is timing out.

Instead of always restarting manually, the script should automatically retry to run the connection establishing script.
2017-08-04 14:00:47 -07:00
Paul Gschwendtner 991c1e0d90 chore(tslint): use globs for custom rule source file filtering (#6235)
A few custom TSLint rules already accept an option array that can be used to whitelist specific files. These whitelists are based on normal Regular Expressions which do not work very well for path matching.

This commit changes the existing whitelists to use minimatch, which is a package that allows matching strings/paths against globs. For rules like `requireLicenseBanner` where the whitelist is hardcoded right now, the whitelist has been introduced as well.
2017-08-04 14:00:29 -07:00
Cyrille Tuzi 1af2ce6e17 docs(getting-started): mention importing hammer in same file as bootstrap (#6225)
* docs(hammerjs): new import location for Universal

As mentioned in #308, if hammerjs is imported in AppModule, Universal server-side rendering will fail as hammerjs is a browser specific library using window, document... So it must be imported in browser entry point src/main.ts instead.

* docs(hammerjs): new import location for Universal

As mentioned in #308, if hammerjs is imported in AppModule, Universal server-side rendering will fail as hammerjs is a browser specific library using window, document... So it must be imported in browser entry point src/main.ts instead.
2017-08-04 14:00:09 -07:00
Kristiyan Kostadinov 5967f6e59c fix(dialog): better handling of custom ViewContainerRef with OnPush change detection (#6164)
* Adds a `markForCheck` call after starting the dialog animation, in order to ensure that it animates away if it was opened from a component with OnPush change detection.
* Since we can't know whether the animation will start right after the `markForCheck`, these changes switch to starting the backdrop animation together with the dialog animation. This avoids some slight timing issues where the backdrop can start its animation a little too early.
* Simplifies the dialog animation streams to avoid having to subscribe to the `completed` callback in the `MdDialogRef`.
* Fixes the demo app sidenav jumping to the bottom when it is opened from the homepage.
* Fixes some alignment in the dialog demo that got thrown off by the new input width.

The dialog changes should solve issues like #5118.
2017-08-02 16:17:42 -07:00
Kristiyan Kostadinov 916d1f3bb0 fix(autocomplete,datepicker,menu): closing parent dialog by pressing escape (#6226)
Prevents the autocomplete, datepicker and menu components from closing their parent dialog when the user presses escape.

Fixes #6223.
2017-08-02 16:17:12 -07:00
Andrew Seguin a043bec9da docs(table): simplify first basic example (#6177)
* docs(table): simplify first basic example

* update docs

* export Element
2017-08-02 16:16:09 -07:00
Kristiyan Kostadinov d6f1a8d9bf build: enforce line length in scss files (#6233)
Enforces a 100-character line length in the SCSS files for consistency with the TS.
2017-08-02 16:15:05 -07:00
Paul Gschwendtner 4e6e42ea2f fix(list): properly align contents in subheader (#6221)
* fix(list): properly align contents in subheader

* The line-height of the subheaders is currently based on the typography level. This is problematic because the subheader is set to a specific height and can't grow/shrink accordingly.

Fixes #6214

* Address feedback
2017-08-02 16:14:57 -07:00
Kristiyan Kostadinov 07954325a2 fix(icon): error when toggling icon with binding in IE11 (#6102)
* fix(icon): error when toggling icon with binding in IE11

* Fixes an error that was being logged by IE11 for icons that are toggled via `ngIf` and have a binding expression.
* Some minor readability improvements in the icon component.

Fixes #6093.

* fix: address feedback
2017-08-02 16:14:36 -07:00
Kristiyan Kostadinov 49a0d7b033 fix(expansion-panel): only highlight keyboard-focused panel headers (#6148)
Previously the expansion panel header would be focused if it was toggled by mouse, which makes it appear stuck. These changes switch to only highlighting it if focus came programmatically or through the keyboard.
2017-08-02 15:58:52 -07:00