* feat: update to Angular 4.3
* Bumps the Angular requirement to 4.3. This is also a prerequisite to the Angular 5 update since we encountered the same errors there.
* Refactors the sidenav not to use a `Promise.resolve` for toggling the initial animation, because it was making it impossible to flush the animations in unit tests. The new simplified approach uses a property to pass the animation state.
* Fixes the nested menu test failures.
* Fixes a "changed after checked" error in the autocomplete demo app.
Relates to #6454.
* fix: e2e failures
* refactor(sidenav): switch to the angular animations API
Switches the sidenav to use the `@angular/animations` API. This saves us a lot of code that was involved in orchestrating the various animations, in addition to making it easier to follow. It also makes it possible for the consumer to disable the animations by using the `NoopAnimationsModule`.
* chore: remove redundant annotations
* fix: focus restoration issue in IE
* chore: linting error
* chore: put back the toggle animation promises
* fix: avoid initial animation
* fix: sidenav not showing when animation starts
* chore: update e2e tests
Switches the `MdSidenavContainer` to `OnPush` change detection and fixes some changes not being picked up when its sidenav is opened.
Relates to #5035.
* In some situations, developers will change the `id` of a component dynamically. At some point if they set the `[id]` to `null` the input id will look like the following: `null-input`.
* If developers are setting the `id` using a binding then the DOM Id for the host component won't be set at all (because the @Input is triggered instead of the DOM property)
Fixes#5394
* Now TSLint starts reporting unused variables again (Rule has been un-deprecated and now uses the type checker
* In favor of linting the whole project the tsconfig file inside of `src/` needs to live in the project root.
* Renames the e2e test file to match the pattern of `{{component}}-e2e.spec.ts`.
* Flattens the directory structure in the `e2e` directory. Having a separate dir for each component was overkill since only have one file per component.
* Fixes some inconsistent code styles in the Protractor config.
Fixes#5030.
The automatic application of aria-label for md-icon, in hindsight, was
not a great idea. Neither the ligature string nor the SVG filename are
likely to be meaningful descriptions. Even in cases where they *are*,
the icon may be used in such a way that the application of a label is
still the wrong thing. On top of that, adding `role="img"` is usually
not the right approach for an icon, as that role typically refers to
*content* images, rather than icons that are part of the UI.
Ultimately, it is up to the application developer to add the appropriate
meaning for icons based on how they're used. To this end, we add
guidance to the documentation for what to do in different situations.
* refactor: switch e2e tests to async/await
Switches to using async/await in the e2e tests. This should make it a bit easier to deal with Protractor's async APIs.
* chore: remove the async wrapper
* build: tsconfig for editor warnings
Currently when using a code editor that uses the TypeScript language service (Webstorm / VS Code / Atom / Sublime) there will be TypeScript errors in the `.spec` files.
This is because the editor finds the `tsconfig.json` file that doesn't match the spec files. Therefore it complains about the `experimentalDecorators`.
In `angular/angular` there is a global `tsconfig` file that matches everything and is therefore fixing the editor warnings. This file is also used to compile all `.spec` files for the whole project.
We can add such a `tsconfig.json` file as well, and in the future we can use it for compiling the specs as well.
* Add docs for tsconfig files
* Update e2e tests, take screenshots when screen become stable
* fix lint
* Make id optional
* Remove screenshot for checkbox with keyboard event
* Fix radio test
Fixes issue in the dialog that prevented the user from being able to close via the escape key, if any of the elements inside the dialog loses focus.
Fixes#3009.
* feat(compatibility): remove conflicts with material1 css styling
* fix tests
* fix input changes
* autocomplete changes
* merge changes
* change class assignment to evaluation
* add back in the line truncate for select
* fix button on simple snackbar
* fix tests
* Now runs TSLint also against the e2e/ directory.
* Add comments for the different tasks in the lint file.
* Refactors the screenshot e2e file to pass TSLint and also to be less nested.
* Use current directory so e2e test wont complain about directory not exists
* change .gitignore
* Only take screenshot when run on travis
* remove log
* test: add class with e2e test utilities
* Adds a class that simplifies some common and hard to remember Protractor expressions.
* Refactors the existing tests to use the new utilities.
Fixes#2025.
* Add types to the e2e utils and fix the selector on the dialog tests.
* Remove unnecessary rounding.
* Remove `any` cast.
* Simplify the slide toggle tests.
* Split the E2E utils class into smaller files.
* Fix a leftover.
* Adds the missing e2e test for the checkbox, where the space key should toggle the state
* Cleanup the existing e2e test by removing repeating statements
* refactor: change the toolkit directive prefixes and remove Md prefix from toolkit classes
Renames the the component toolkit to use the `cdk-` prefix, in addition to removing the `Md` prefix from classes associated with the toolkit.
The following CSS classes have been renamed as well:
* `md-global-overlay-wrapper` -> `cdk-global-overlay-wrapper`
* `md-overlay-container` -> `cdk-overlay-container`
* `md-overlay-pane` -> `cdk-overlay-pane`
* `md-overlay-backdrop-showing` -> `cdk-overlay-backdrop-showing`
* `md-overlay-dark-backdrop` -> `cdk-overlay-dark-backdrop`
* `md-overlay-backdrop` -> `cdk-overlay-backdrop`
* `md-visually-hidden` -> `cdk-visually-hidden`
* Re-export Md prefixed classes as deprecated
* Fix linter errors.
* Change the overlay variable prefixes to `cdk-` and remove dependency on theming.
* Add backwards compatible selectors for core directives
* test: use proper typings in e2e app
* Switches to use the typings from @types for the e2e app.
* Adds all of the necessary imports and fixes type issues.
Relates to #2025.
Fixes#1531.
* Add missing typings to slide toggle.
* Fix another typo.
* chore: run a11y audits on protractor
* Fixes accessibility issue in grid-list with `role="listitem"`
* Adds protractor plugin to run aXe-core accessibility audits
* Fixes a bunch of a11y issues in the e2e app to make the aXe audits green
* Force menu y-positions because viewport might be different on Selenium browsers.
* Navigiation links should be hidden by default because those can interfere with the tests.
* refactor(connected-position-strategy): use top/left instead of transforms for positioning
Switches the `ConnectedPositionStrategy` to use `top` and `left` for positioning, instead of `translateX` and `translateY`. This avoids having to do extra work to prevent subpixel rendering issues, while freeing up the transforms to be used on animations or for offsets.
* Fix the failing positioning-related tests.