@angular/material-date-fns-adapter
Advanced tools
Changelog
13.0.0 "fir-valise" (2021-11-03)
If your application imports styles from ~@angular/cdk
, the @import
/@use
statements need to
be updated to omit the tilde. The tilde syntax is deprecated within the webpack sass-loader
and
does not work with APF v13.
// before
@use '~@angular/cdk' as cdk;
// after
@use '@angular/cdk' as cdk;
The Angular CLI will automatically migrate your application with: ng update @angular/cdk
.
Additional breaking changes:
CKD_COPY_TO_CLIPBOARD_CONFIG
has been removed. Use CDK_COPY_TO_CLIPBOARD_CONFIG
instead.ConnectedPositionStrategy
has been removed. Use FlexibleConnectedPositionStrategy
instead.OverlayPositionBuilder.connectedTo
has been removed. Use OverlayPositionBuilder.flexibleConnectedTo
instead.If your application imports styles from ~@angular/material
, the @import
/@use
statements need to
be updated to omit the tilde. The tilde syntax is deprecated within the webpack sass-loader
and
does not work with APF v13.
// before
@use '~@angular/material' as mat;
// after
@use '@angular/material' as mat;
The Angular CLI will automatically migrate your application with: ng update @angular/material
.
Additionally, the following breaking changes have been made:
1.34.0
. Version 1.38.0
is recommended.CanColorCtor
is no longer necessary and has been removed.CanDisableRippleCtor
is no longer necessary and has been removed.CanDisableCtor
is no longer necessary and has been removed.CanUpdateErrorStateCtor
is no longer necessary and has been removed.HasInitializedCtor
is no longer necessary and has been removed.HasTabIndexCtor
is no longer necessary and has been removed._document
and _dialog
parameters have been removed from the MatDatepicker
and MatDateRangePicker
constructors.MatFormFieldHarness.getHarnessLoaderForPrefix
has been removed. Use MatFormFieldHarness.getPrefixText
instead.MatFormFieldHarness.getHarnessLoaderForSuffix
has been removed. Use MatFormFieldHarness.getSuffixText
instead._labelOptions
parameter of the MatFormField
constructor has been removed.MatFormField.underlineRef
has been removed.matTextareaAutosize
has been removed. Use cdkTextareaAutosize
from the @angular/cdk/text-field
module instead.MatTabHarness.getHarnessLoaderForContent
has been removed. Use MatTabHarness.getRootHarnessLoader
instead.YouTubePlayer.createEventsBoundInZone
has been removed.| Commit | Type | Description | | -- | -- | -- | | e8dd070bbd | feat | add date adapter for date-fns (#23262) | | 2a358120f4 | fix | locale not passed into parse function (#23653) |
| Commit | Type | Description | | -- | -- | -- | | 2789d8eb5f | feat | mdc-card: add DI token for configuring appearance (#23302) | | a4ae3b88c0 | feat | mdc-slide-toggle: switch to non-deprecated styles (#23143) | | e7a77edf1e | fix | mdc-tabs: update theming api (#23855) |
| Commit | Type | Description | | -- | -- | -- | | 7539cf2837 | refactor | remove deprecated APIs for v13 (#23520) |
| Commit | Type | Description | | -- | -- | -- | | 7c16258cfb | feat | switch to non-deprecated typings (#23350) |
| Commit | Type | Description | | -- | -- | -- | | 3dc5af4bfd | feat | dialog: add support for content sections in harness (#23357) | | e4b54aa2b7 | feat | progress-bar: add default options injection token (#23363) | | 6c724c18a7 | fix | chips: show required asterisk when using required validator (#23379) | | 728cf1c8eb | fix | dialog: improve screen reader support when opened (#23085) | | 881edec3e6 | fix | icon: make icon-registry compatible with Trusted Types (#23140) | | 1568b35972 | fix | input: show required asterisk when using required validator (#23362) | | 64ba72f1fd | fix | select: show required asterisk when using required validator (#23500) | | 01734b35af | fix | sidenav: restore focus with correct origin when closing via the backdrop (#23492) | | 7bc9bfb9dc | refactor | core: remove deprecated APIs for v13 (#23529) | | 40f0674e39 | refactor | core: update minimum required sass version and clean up workarounds (#23414) | | f8dc1770d1 | refactor | datepicker: remove deprecated APIs for v13 (#23574) | | 700c0601c0 | refactor | form-field: remove deprecated APIs for version 13 (#23389) | | 760b4564fa | refactor | input: remove deprecated autosize directive (#23408) | | 3ad08940f1 | refactor | tabs: remove deprecated APIs for v13 (#23426) |
| Commit | Type | Description |
| -- | -- | -- |
| 51796e1601 | feat | overlay: Extend cdkConnectedOverlayOrigin
to support more types. (#23253) |
| 04b5a08190 | feat | schematics: add migration for removed symbols (#23530) |
| b25283cda9 | fix | a11y: error on firefox (#23395) |
| 219e1f558a | fix | drag-drop: add conditional to scroll update (#23337) |
| 6e1f522d6a | fix | drag-drop: allow using cdkDragRootElement w/ comment tag (#23596) |
| d70faa0018 | fix | drag-drop: sorted event emitted multiple times for single-item list (#23589) |
| f2ff9e3142 | fix | schematics: drop tilde imports when updating to v13 (#23732) |
| 692ebafe7b | fix | testing: fake touch event does not set proper touch identifier |
| 5833597a7a | refactor | clipboard: clean up deprecated APIs for v13 (#23401) |
| 8d39384770 | refactor | overlay: remove deprecated connected position strategy |
| Commit | Type | Description | | -- | -- | -- | | 769996ed3f | feat | add options to autoFocus field for dialogs (#22780) | | db18b4093f | feat | add support for TypeScript 4.4 (#23646) |
| Commit | Type | Description | | -- | -- | -- | | 5c22a1dbf0 | fix | syntax error due to ES2020 being used for ng-add with NodeJS 12.x (#23744) |
Amy Sorto, Andrew Seguin, Charles, Jeremy Elbourn, Joey Perrott, Kristiyan Kostadinov, Md. Enzam Hossain, Michael Prentice, Miles Malerba, Paul Gschwendtner, Ruslan Lekhman, Suguru Inatomi, Wagner Maciel, Zach Arend, bjarkler and mmalerba
<!-- CHANGELOG SPLIT MARKER --><a name="13.0.0-rc.3"></a>
Changelog
13.0.0-rc.3 "fir-valise" (2021-11-02)
| Commit | Type | Description | | -- | -- | -- | | e7a77edf1e | fix | mdc-tabs: update theming api (#23855) |
Andrew Seguin, Joey Perrott, Kristiyan Kostadinov, Paul Gschwendtner and Suguru Inatomi
<!-- CHANGELOG SPLIT MARKER --><a name="13.0.0-rc.2"></a>
Changelog
13.0.0-rc.2 "tweed-thimble" (2021-10-27)
| Commit | Type | Description | | -- | -- | -- | | c4cb63be2 | fix | portal: write generic type for TemplateRef in the Template Portal code example (#23818) |
| Commit | Type | Description | | -- | -- | -- | | 114041f43 | fix | icon: disable text selection (#23730) |
Kristiyan Kostadinov, Paul Gschwendtner and Sergey Vakhramov
<a name="12.2.12"></a>
Changelog
13.0.0-rc.1 "acrylic-finger" (2021-10-20)
| Commit | Type | Description | | -- | -- | -- | | 25ba7583ea | fix | overlay: OverlayRef.outsidePointerEvents() should only emit due to pointerdown outside overlay (#23679) | | 11e591b502 | fix | testing: simulate focusin/focusout events (#23768) |
| Commit | Type | Description | | -- | -- | -- | | a4302fd537 | fix | tabs: incorrect ripple color when CSS variables are used for theme (#23686) | | 05006522f4 | fix | input: incorrect color for select using the size attribute (#23734) |
| Commit | Type | Description | | -- | -- | -- | | 38e26e971e | fix | mdc-select: add list class to option (#23738) | | 2e747ac3cf | fix | mdc-card: action alignment not working (#23742) |
| Commit | Type | Description | | -- | -- | -- | | ba75867b2a | fix | use ripple theme color for color mixins (#23739) |
Andrew Seguin, Kristiyan Kostadinov, Lukas Spirig and Paul Gschwendtner
<a name="12.2.11"></a>
Changelog
13.0.0-rc.0 "aluminum-aardvark" (2021-10-13)
| Commit | Type | Description | | -- | -- | -- | | f2ff9e314 | fix | schematics: drop tilde imports when updating to v13 (#23732) |
| Commit | Type | Description | | -- | -- | -- | | 1568b3597 | fix | input: show required asterisk when using required validator (#23362) | | ce683542f | fix | sort: add description input for sort-header (#23633) |
| Commit | Type | Description | | -- | -- | -- | | 1937c3edd | fix | mdc-radio: switch to new theming API (#23725) | | 08d1acdfa | fix | mdc-tabs: switch to new theming API (#23726) |
| Commit | Type | Description | | -- | -- | -- | | 2a358120f | fix | locale not passed into parse function (#23653) |
| Commit | Type | Description | | -- | -- | -- | | 5c22a1dbf | fix | syntax error due to ES2020 being used for ng-add with NodeJS 12.x (#23744) |
Charles, Jeremy Elbourn, Joey Perrott, Kristiyan Kostadinov, Marco Marche, Paul Gschwendtner and Zach Arend
<!-- CHANGELOG SPLIT MARKER --><a name="13.0.0-next.8"></a>
Changelog
13.0.0-next.8 "gravel-chicken" (2021-10-08)
| Commit | Type | Description | | -- | -- | -- | | 39138836c | fix | drag-drop: error when preview is destroyed before animation completes (#23662) |
| Commit | Type | Description | | -- | -- | -- | | 4f6b9fd50 | fix | core: sanity checks not disabled for node-based test environments (#23636) | | 64ba72f1f | fix | select: show required asterisk when using required validator (#23500) | | 2602d2e8a | fix | stepper: add text for screen readers to indicate when step is complete or editable (#23519) |
| Commit | Type | Description | | -- | -- | -- | | 7c16258cf | feat | switch to non-deprecated typings (#23350) |
| Commit | Type | Description | | -- | -- | -- | | 318178020 | fix | mdc-menu: Use body1 typography for menu content (#23657) |
| Commit | Type | Description | | -- | -- | -- | | db18b4093 | feat | add support for TypeScript 4.4 (#23646) |
Amy Sorto, Kristiyan Kostadinov, Miles Malerba, Paul Gschwendtner and Вася
<!-- CHANGELOG SPLIT MARKER --><a name="13.0.0-next.8"></a>
Changelog
13.0.0-next.7 "linen-lemon" (2021-09-29)
| Commit | Type | Description | | -- | -- | -- | | 6e1f522d6a | fix | drag-drop: allow using cdkDragRootElement w/ comment tag (#23596) |
| Commit | Type | Description | | -- | -- | -- | | f5883db598 | fix | badge: correctly apply badge description (#23562) | | d13b8ea010 | fix | expansion: fix header border in high contrast mode (#23613) | | 980f6b2b22 | fix | stepper: add styling to stepper for high contrast mode (#23526) |
| Commit | Type | Description | | -- | -- | -- | | c649f7dfca | fix | mdc-typography: better mappings for 2014 to 2018 typography (#23618) |
Amy Sorto, Jeremy Elbourn, Marco Marche, Miles Malerba, Ruslan Lekhman and Zach Arend
<!-- CHANGELOG SPLIT MARKER --><a name="12.2.8"></a>
Changelog
13.0.0-next.6 "wax-window" (2021-09-23)
_document
and _dialog
parameters have been removed from the MatDatepicker
and MatDateRangePicker
constructors.YouTubePlayer.createEventsBoundInZone
has been removed.| Commit | Type | Description | | -- | -- | -- | | f282bd6b0 | fix | mdc-menu: use primary text color for menu icons (#23608) | | 4e3b72c22 | fix | mdc-snack-bar: add harness support for getting label and actions (#23585) | | 4160f11cd | fix | mdc-slider: append class to indicate short value indicator text (#23566) |
| Commit | Type | Description | | -- | -- | -- | | 7539cf283 | refactor | remove deprecated APIs for v13 (#23520) |
| Commit | Type | Description | | -- | -- | -- | | ca67623e5 | fix | core: avoid running sanity checks on some test environments (#23374) | | a41ac2bad | fix | select: error if selected value is accessed too early (#23378) | | 505c0d188 | fix | tabs: picking up mat-tab-label from child tabs (#23560) | | ef4fc568e | fix | list: fix action-list focus state for high contrast firefox (#23584) | | f8dc1770d | refactor | datepicker: remove deprecated APIs for v13 (#23574) |
| Commit | Type | Description | | -- | -- | -- | | 2f655c9a1 | fix | overlay: avoid unnecessary timeouts when disposing of overlay (#23474) | | d70faa001 | fix | drag-drop: sorted event emitted multiple times for single-item list (#23589) | | cfe79b8f4 | fix | layout: breakpoint observer not firing callback on chrome in specific cases (#23571) |
Benjamin Kindle, Jeremy Elbourn, Kristiyan Kostadinov, Marco Marche, Miles Malerba, Paul Gschwendtner, Wagner Maciel and Zach Arend
<!-- CHANGELOG SPLIT MARKER --><a name="12.2.7"></a>
Changelog
13.0.0-next.5 "fuzzy-puppy" (2021-09-15)
matTextareaAutosize
has been removed. Use cdkTextareaAutosize
from the @angular/cdk/text-field
module instead.CanColorCtor
is no longer necessary and has been removed.CanDisableRippleCtor
is no longer necessary and has been removed.CanDisableCtor
is no longer necessary and has been removed.CanUpdateErrorStateCtor
is no longer necessary and has been removed.HasInitializedCtor
is no longer necessary and has been removed.HasTabIndexCtor
is no longer necessary and has been removed.| Commit | Type | Description | | -- | -- | -- | | 771afd9e00 | fix | mdc-menu: ensure mat-mdc- prefix on all classes (#23559) | | 04d2aaaf6d | fix | mdc-form-field: fix outline notch width (#23005) | | 81b6b6be90 | fix | mdc-slider: remove deep imports (#23451) | | c608df8cec | fix | mdc-button: avoid shrinking FAB and icon button (#23532) |
| Commit | Type | Description | | -- | -- | -- | | 1762da875d | fix | datepicker: improve color contrast in calendar header (#23517) | | 053689f1d1 | fix | input: preserve password autofill icon (#23534) | | bb9c36bc89 | fix | chips: handle matChipRemove set on a button (#23538) | | 741a57ecf0 | fix | stepper: incorrect navigation order when steps are added later on (#23541) | | 760b4564fa | refactor | input: remove deprecated autosize directive (#23408) | | 7bc9bfb9dc | refactor | core: remove deprecated APIs for v13 (#23529) |
| Commit | Type | Description | | -- | -- | -- | | a9886a1191 | fix | a11y: complete input modality streams on destroy (#23522) |
Andrew Seguin, Jeremy Elbourn, Kristiyan Kostadinov, Miles Malerba, Naveed Baloch and Paul Gschwendtner
<!-- CHANGELOG SPLIT MARKER --><a name="12.2.6"></a>
Changelog
13.0.0-next.4 "copper-duckling" (2021-09-08)
| Commit | Type | Description | | -- | -- | -- | | 04b5a0819 | feat | schematics: add migration for removed symbols (#23530) |
| Commit | Type | Description | | -- | -- | -- | | 01734b35a | fix | sidenav: restore focus with correct origin when closing via the backdrop (#23492) | | 875f00d7b | fix | chips: error if selected value is accessed too early (#23419) | | 9a4a4cf20 | fix | autocomplete: don't emit optionActivated event when option is reset (#23437) | | 4414b0460 | fix | tabs: fix contentTabIndex input type (#23413) | | 6c724c18a | fix | chips: show required asterisk when using required validator (#23379) | | 881edec3e | fix | icon: make icon-registry compatible with Trusted Types (#23140) |
Brandon Yanofsky, Daniil Rabizo, Kristiyan Kostadinov, Paul Gschwendtner, Zach Arend and bjarkler
<!-- CHANGELOG SPLIT MARKER --><a name="12.2.5"></a>