Commit Graph

1400 Commits

Author SHA1 Message Date
Jeremy Elbourn 8826d6718d chore: add missing breaking changes from beta.3 (#4126) 2017-04-17 17:24:21 -07:00
Paul Gschwendtner d1a752eb4d chore: remove typedoc.json file (#4112)
* The docs are generated using `Dgeni` and the `typedoc.json` file is
therefore unused and can be removed.
2017-04-17 15:18:28 -07:00
Paul Gschwendtner a7ca7c1f24 build: build cdk package (#4111)
* Introduces another package called `@angular/cdk`. This package is
currently empty but all the logic for SASS, HTML, TypeScript and tests
is ready.
2017-04-17 15:18:16 -07:00
tinayuangao b2ca0f5d84 feat(screenshot): add control panel for pixacto (#4055) 2017-04-17 15:17:41 -07:00
Kristiyan Kostadinov ee1a5a7aa3 fix(dialog): fire afterClosed callback after all dialog actions are done (#3892)
* Fires the afterClosed callback once the dialog is removed and the previously-focused element has been refocused. Until now the order was reversed, which prevents people from being able to refocus a different element.
* Cleaned up the `MdDialogContainer` logic to simplify it and to remove the need to subscribe to zone events.
2017-04-17 15:16:02 -07:00
Kristiyan Kostadinov 7336bdc237 fix(tabs): unnecessary scrollbar if content has a margin (#4062)
Fixes the tabs having a scrollbar if their inner content has a margin. This seems to be a side-effect of #3162.

Fixes #4035.
2017-04-17 14:53:31 -07:00
Kristiyan Kostadinov aebbd8a155 fix(progress-spinner): not working with server-side rendering (#4020)
* Switches the progress spinner from using `querySelector` to `ViewChild`.
* Moves all of the remaining DOM manipulation to the renderer.
* Skips animations if `requestAnimationFrame` is not available.
* Simplifies some unnecessarily complex logic for adding/removing the theme class.

Fixes #3988.
2017-04-17 14:33:40 -07:00
Kristiyan Kostadinov 32b7426741 fix(input): allow pointer events on placeholder (#3878)
Removes the `pointer-events: none` from the input placeholder in order to allow for users to bind events to it. Clicking through isn't necessary anyway, because it automatically redirects focus to the underlying input already.
2017-04-17 14:33:20 -07:00
Kristiyan Kostadinov e263fb7807 fix(list): set explicit box-sizing on icon (#3876)
Sets an explicit `box-sizing` on the icons inside of lists, in order to avoid alignment issues if the consumer uses `border-box` globally.

Fixes #3863.
2017-04-17 14:32:57 -07:00
Paul Gschwendtner d20a4ca3fa chore: remove outdated guide to generate docs (#4123) 2017-04-17 12:11:49 -07:00
tinayuangao 25a688106c feat(pixacto): use TypeScript for tooling and refactor into tools/ (#3732)
Move code to TypeScript and perform several clean-up refactorings
2017-04-17 11:52:47 -07:00
tinayuangao de8b97f68e fix(checkbox): do not set indeterminate when set checked programmatically (#4024)
Only set indeterminate when user clicked on checkbox
2017-04-17 11:48:33 -07:00
Mac 9f2c7aca2e docs(dialog): address injecting dialog data (#3907) 2017-04-17 11:40:57 -07:00
Paul Gschwendtner 5c3278a4cb chore: remove unused providers in demo-app (#3851)
* Since the MaterialModule now includes all providers, the old explicit providers on demo-app components are unnecessary. Those can be removed safely.
2017-04-17 11:39:25 -07:00
Paul Gschwendtner 21f88999bb fix(input): incorrect height with autosize (#4084)
Currently when using the `mdTextareaAutosize` directive the textarea height might be incorrect on component initialization.

This happens because the textarea `scrollHeight` property is not ready in the `ngOnInit` lifecycle hook yet.

Other libraries like `angular-elastic` have timeouts for that. But using the `ngAfterViewInit` lifecycle hook is more elegant and also ensures that the `scrollHeight` property is ready.

Also switches `offsetHeight` to `clientHeight` since we don't want to include the border in our line-height calculations.

Also by default `textarea` elements have a padding of `2px` and the `padding` needs to be explicitly set to `0px` when resolving the line-height.

Fixes #4070.
2017-04-14 14:03:33 -07:00
tinayuangao efb39da377 fix(checkbox): support OnPush for disabled with forms module (#4087) 2017-04-14 14:02:49 -07:00
Paul Gschwendtner 02b2cc9210 chore: remove public folder (#4061)
* Removes the unused `public` folder from the repository.
2017-04-14 13:07:28 -07:00
Paul Gschwendtner a773515c56 build: detect todos in public comments (#4059)
* build: detect todos in public comments

* Creates a naive rule that checks all multi-line comments and reports failures once it detects TODOs inside of it.

* This means that TODOs always need to placed inside of single-line comments.

Fixes #4026
2017-04-14 13:06:38 -07:00
Mac dbe2c33afc chore: fix typo in closure compiler script (#4040) 2017-04-14 13:05:25 -07:00
Ed Pelc a05aa7c9f9 docs(guides): add guide for using compatibility mode (#4082)
Fixes #4018
2017-04-14 08:34:37 -07:00
Will Howell 1de1f72887 docs(theming): cleanup grammar on overlay theming (#4089) 2017-04-13 14:13:27 -07:00
Paul Gschwendtner 0acd4d9262 build: create sourcemap files (#4022)
* Creates sourceMap files for all bundles inside of the release.

Fixes #852
2017-04-13 12:56:47 -07:00
Paul Gschwendtner b5f15ad2ed build: dgeni add deprecated marker (#4028)
* build: dgeni add deprecated marker

* Adds a class to property rows in the template that can be used to distinguish between deprecated and stable APIs.

Fixes #3981.

* Address feedback
2017-04-13 09:52:41 -07:00
Paul Gschwendtner 85391ca6c9 chore: remove unused bash scripts (#4080)
* Removes two unused bash scripts (`copy-docs.sh`, `enact-release.sh`).
* `enact-release.sh` is now part of the release gulp task.
* `copy-docs.sh` is now part of the `docs` gulp task.
2017-04-13 09:18:58 -07:00
Paul Gschwendtner 8b411ad78c build: copy readme to releases (#4079)
* Due to a typo the `README.md` file is not copied properly to the releases.
2017-04-13 09:12:12 -07:00
Mac fe9204ed08 chore: fix typos in coding standards (#4043) 2017-04-12 17:58:38 -07:00
Paul Gschwendtner 205690f359 build: publish material-examples package to docs content (#4064) 2017-04-12 17:40:31 -07:00
Paul Gschwendtner 60ea218c67 build: use version placeholder in packages (#4065)
* Introduces a version placeholder (as in angular/angular) that will be replaced with the version string form the root `package.json` file.

* This ensures that the different packages are always having the correct version and it also ensures that there is no version-mismatch.
2017-04-12 17:19:18 -07:00
Paul Gschwendtner abd2ac6489 build: create material-examples package (#4046) 2017-04-12 16:37:08 -07:00
Paul Gschwendtner 3545df7c4f build: fix karma pattern warnings (#4057)
* Fixes the karma pattern warnings. Those showed up because there was a pattern that included all files (and watched them).
2017-04-12 14:19:14 -07:00
Jeremy Elbourn 9d719c544e fix(grid-list): export MdGridTile. Fixes #2408 (#4000) 2017-04-11 09:41:10 -07:00
Kristiyan Kostadinov 2d500445d4 fix(compatibility): throw better error when wrong prefix is used (#3871)
Throws a slightly better error when the wrong prefix is used. The error now includes the node name of the offending element, which should make it easier to pinpoint the issue.
2017-04-11 08:58:56 -07:00
Kristiyan Kostadinov a65d2f4c0f fix(compatibility): error in theme check with angular universal (#3872)
Fixes a reference error being thrown by the theme check when using server-side rendering.

Fixes #3870.
2017-04-11 08:58:24 -07:00
Paul Gschwendtner 857c2171ce perf(dialog): switch dialog animations to translate3d (#3905)
* Switches the `translate` to `translate3d` for hardware accelerated animations.
2017-04-11 08:54:57 -07:00
Kristiyan Kostadinov f412499a8a fix(list): icon size in dense mode (#3913)
Fixes the size of icons inside dense lists.

Fixes #3886.
2017-04-11 08:54:32 -07:00
mmalerba 21cbf346e4 fix(input): make start and end hints interact well when their text needs to wrap (#3979) 2017-04-11 08:48:02 -07:00
Kristiyan Kostadinov eaf16c8c66 fix(select): wrong panel width if element is hidden initially (#3647)
Fixes the select not having a proper width if it became visible after it was initialized.

Fixes #3639.
Fixes #3244.
2017-04-11 08:47:39 -07:00
Paul Gschwendtner e22b55e811 fix(checkbox, radio): ripple error on focus event (#3869)
* The checkbox and radio disable the ripples using a `*ngFor` check. This causes the `ViewChildren` instance to turn null. The reference is required for the focus indicators.

* If ripples are disabled there will be still ripples on click. This is due to the fact that label elements redirect focus to the underlying input element. The `focusOrigin` is therefore `program` and a focus ripple will show up.

* Tests had to be adjusted because the `[md-ripple]` element won't be removed anymore. Therefore the tests now confirm that no ripples are showing up.

Fixes #3856.
2017-04-11 08:47:22 -07:00
Paul Gschwendtner 7f65f31ef8 fix(button): ripple color for raised buttons (#3829)
* fix(button): ripple color for raised buttons

* Fixes the incorrect ripple color for raised buttons. Currently the ripple color is always based on black. This is incorrect on palettes like Indigo.

Fixes #2901

* Address feedback

* Distinguish between buttons with focus overlay

* Fix comment
2017-04-11 08:42:26 -07:00
Thomas Shafer da33c03c70 fix(overlay): Render the templates before placing them in the overlay. (#2989)
This fixes positioning issues when rendering templates which contain embedded templates.
The templates need to be rendered in order to properly determine width which can then determine placement.
2017-04-11 08:40:27 -07:00
Kristiyan Kostadinov eef57f601c fix(snack-bar): allow multi-line text (#3626)
* Wraps multi-line text, instead of truncating it, inside of snack bars. **Note:** While the spec only mentions multi-line text on mobile, this seems to be a better approach than cutting it off at ~500px. We can revisit this if we start using media queries.
* Aligns the snack bar button margin to the spec.
* Simplifies some of the CSS to remove the need for a hardcoded height and negative margins.

Fixes #1951.
2017-04-11 08:37:13 -07:00
Kristiyan Kostadinov edf01c025e fix(tooltip): wrong position when using OnPush change detection (#3671)
* fix(tooltip): wrong position when using OnPush change detection

Fixes the tooltip having a wrong position if it is inside a component with `OnPush` change detection. The issue was due to the fact that when `OnPush` is used, the tooltip text isn't rendered at the moment when the element is positioned.

Fixes #3497.
2017-04-11 08:26:27 -07:00
Kristiyan Kostadinov 3796f69f9d fix(dialog): unable to press escape to close in lazy-loaded module (#3788)
Fixes not being able to use the escape key to close a dialog that was opened from a lazy-loaded module.

Fixes #3737.
2017-04-11 08:25:53 -07:00
Alex Weber 033fe8db75 docs(sidenav): add "push" mode to api docs (#3803) 2017-04-11 08:22:00 -07:00
Kristiyan Kostadinov cc8f871e8d fix(slider,slide-toggle): use the grab cursor (#3821)
Uses the `grab` cursor when hovering over an active slider's thumb and thumb labels, as well as on active slide toggles.

Fixes #3778.
2017-04-11 08:20:57 -07:00
Jeremy Elbourn 9490c905fd docs: clarify points to address common issues (#4021)
* Repeated reminders to only include mat-core once.
* Note about including a theme file via styleUrls
* Add section for theming only certain components
* Move section on overlay theming after section for multiple themes
2017-04-11 08:15:36 -07:00
Jeremy Elbourn b1e31bda29 chore: add more naming and inheritence guidance to coding standards (#3933) 2017-04-10 14:27:39 -07:00
Jeremy Elbourn 3b2f66d010 chore: add api design section to coding standards (#4017) 2017-04-10 12:22:50 -06:00
Jeremy Elbourn e0124bba38 chore: publish examples assets for plunker with docs content (#3987) 2017-04-10 09:52:19 -06:00
Jeremy Elbourn c38c9c333a chore: update getting-started guide for beta.3 (#3986)
No longer mentions `MaterialModule` and instead offers some guidance on building your own NgModule for Angular Material components.
2017-04-08 18:10:02 -06:00