|
| 1 | +<a name="7.0.0"></a> |
| 2 | +# 7.0.0 amethyst ammonite (2018-10-17) |
| 3 | + |
| 4 | +### Highlights |
| 5 | + |
| 6 | +* Support for [Drag and Drop](https://material.angular.io/cdk/drag-drop/overview) in `@angular/cdk/drag-drop`. |
| 7 | +* Support for [Virtual Scrolling](https://material.angular.io/cdk/scrolling/overview) in `@angular/cdk/scrolling`. |
| 8 | +* Support for native `<select>` element in `<mat-form-field>` . |
| 9 | +* Added `<mat-action-list>`, a list where each item is a `<button>`. |
| 10 | +* Updated component styles throughout the library matching the 2018 Material Design Spec refresh. |
| 11 | +* Added more schematics, with schematics now available for table, drag and drop, tree, address form and more. |
| 12 | +* Added CLI prompts when using `ng add` to assist in setting up HammerJS support, application theming and animations. |
| 13 | +* 250+ bug/performance fixes |
| 14 | + |
| 15 | + |
| 16 | +### Upgrading to 7.0 |
| 17 | + |
| 18 | +Using the Angular CLI, you can use the `ng update` command to automatically migrate to the new APIs in for Material and CDK. |
| 19 | +``` |
| 20 | +ng update @angular/material |
| 21 | +``` |
| 22 | + |
| 23 | +**NOTE:** If you are **using only the CDK** you can automatically migrate using `ng update @angular/cdk` instead. |
| 24 | + |
| 25 | + |
| 26 | +### Breaking Changes |
| 27 | + |
| 28 | +* **ripple:** deprecated `[matRippleSpeedFactor]` and `baseSpeedFactor` for the ripples have been removed. Use the new animation config instead. |
| 29 | +* **overlay:** The `flexibleDiemsions` property on `CdkConnectedOverlay` has been renamed to `flexibleDimensions` |
| 30 | +* **sidenav:** the constructor signature of the `MatDrawerContent` and `MatSidenavContent` has changed. |
| 31 | +* **elevation:** Because `mat-elevation` usages have been moved out of component stylesheets, users who have |
| 32 | +not invoked a theme mixin will not see any elevation shadows on Material components. |
| 33 | +However, users that have created a custom theme which lacks the `elevation` property will |
| 34 | +still see the default black shadows. |
| 35 | + |
| 36 | +Additionally, users who want to use themed elevations in their custom components can create |
| 37 | +their own shorthand mixin: |
| 38 | + |
| 39 | +```sass |
| 40 | +@import '~@angular/material/theming'; |
| 41 | + |
| 42 | +$myTheme: ... |
| 43 | + |
| 44 | +@mixin my-elevation($zValue) { |
| 45 | + @include mat-theme-elevation($zValue, $myTheme); |
| 46 | +} |
| 47 | + |
| 48 | +``` |
| 49 | + |
| 50 | +and then invoke `angular-material-theme` with the `$myTheme` variable. |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +### Marked for Deprecation |
| 55 | +A number of items throughout the library have been deprecated and are expected to be removed in v8. |
| 56 | +#### CDK |
| 57 | +Collections |
| 58 | +- `SelectionModel.onChange` has been deprecated, use `SelectionModel.changed` instead. |
| 59 | + |
| 60 | +Scrolling |
| 61 | +- `ScrollDispatchModule` has been deprecated, use `ScrollingModule` instead. |
| 62 | + |
| 63 | +Table |
| 64 | +- `CdkTable.setFooterRowDef` has been deprecated, use `CdkTable.addFooterRowDef` and `CdkTable.removeFooterRowDef` instead. |
| 65 | +- `CdkTable.setHeaderRowDef` has been deprecated, use `CdkTable.addHeaderRowDef` and `CdkTable.removeHeaderRowDef` instead. |
| 66 | + |
| 67 | +#### Material |
| 68 | +Dialog |
| 69 | +- `matDialogAnimations.slideDialog` has been deprecated, use `matDialogAnimations.dialogContainer` instead. |
| 70 | +- `MatDialogRef.afterOpen` has been deprecated, use `MatDialogRef.afterOpened` instead. |
| 71 | +- `MatDialogRef.afterClose` has been deprecated, use `MatDialogRef.afterClosed` instead. |
| 72 | +- `MatDialog.afterOpen` has been deprecated, use `MatDialog.afterOpened` instead. |
| 73 | + |
| 74 | +Form Field |
| 75 | +- `<mat-placeholder>` has been deprecated, use `<mat-label>` instead. |
| 76 | +- `MatPlaceholder` has been deprecated, use `MatLabel` instead. |
| 77 | + |
| 78 | +Paginator |
| 79 | +- `$mat-paginator-selector-trigger-min-width` has been deprecated, use `$mat-paginator-selector-trigger-width` instead. |
| 80 | + |
| 81 | +Select |
| 82 | +- `matSelectAnimations.fadeInContent` has been deprecated and will be removed without replacement. |
| 83 | +- The setter method for `MatSelect.focused` has been deprecated, `MatSelect.focused` will become readonly. |
| 84 | + |
| 85 | +Toolbar |
| 86 | +- `$mat-toolbar-height-mobile-portrait` has been deprecated and will be removed without replacement. |
| 87 | +- `$mat-toolbar-height-mobile-landscape` has been deprecated and will be removed without replacement. |
| 88 | + |
| 89 | +**NOTE:** In addition to the specific deprecations listed above, many component constructor methods contain |
| 90 | +optional parameters which are expected to become required in v8. |
| 91 | + |
| 92 | + |
| 93 | +### Bug Fixes |
| 94 | + |
| 95 | +* **icon:** not taking current path after initialization ([#13641](https://github.com/angular/material2/issues/13641)) ([df9ec7](https://github.com/angular/material2/commit/df9ec7)) |
| 96 | +* **list:** action list items clickable area not stretching the full width ([#13099](https://github.com/angular/material2/issues/13099)) ([f3057fa](https://github.com/angular/material2/commit/f3057fa)) |
| 97 | + |
| 98 | + |
1 | 99 | <a name="7.0.0-rc.2"></a>
|
2 | 100 | # 7.0.0-rc.2 (2018-10-15)
|
3 | 101 |
|
@@ -179,8 +277,8 @@ still see the default black shadows.
|
179 | 277 | Additionally, users who want to use themed elevations in their custom components can create
|
180 | 278 | their own shorthand mixin:
|
181 | 279 |
|
182 |
| -``` |
183 |
| -@import '~angular/material/theming'; |
| 280 | +```sass |
| 281 | +@import '~@angular/material/theming'; |
184 | 282 |
|
185 | 283 | $myTheme: ...
|
186 | 284 |
|
|
0 commit comments