github angular/components 14.0.0
v14.0.0

latest releases: 18.2.12, 19.0.0-rc.1, 19.0.0-rc.0...
2 years ago

14.0.0 "cotton-peanut" (2022-06-02)

Breaking Changes

material

  • MatChipInputEvent.chipInput is now a required property.
  • Previously the mixinErrorState mixin function defined
    a class member for stateChanges. This is no longer the case, and consumers
    need to provide the stateChanges class member themselves.
    • mat-list-item-avatar CSS class has been renamed to mat-list-item-with-avatar.
    • MatSelectionListChange.option has been removed. Use MatSelectionListChange.options instead.
    • MatSelectionList.tabIndex input has been removed.
    • tabIndex parameter of the MatSelectionList constructor has been removed.
    • _focusMonitor parameter of the MatSelectionList constructor is now required.
    • getHarnessLoaderForContent has been removed from the various test item harnesses. Use getChildLoader(MatListItemSection.CONTENT) instead.
    • CdkStepper._orientation has been removed. Use CdkStepper.orientation instead.
    • The _document parameter from the CdkStepper constructor has been removed.
    • The _document parameter from the MatStepper constructor has been removed.
    • MatVerticalStepper has been removed. Use MatStepper instead.
    • MatHorizontalStepper has been removed. Use MatStepper instead.

cdk

  • The deprecated angular/cdk/testing/protractor entry-point has been removed.

Deprecations

material

  • mat.define-dark-theme no longer accepts $primary, $accent and $warn.
    Pass a single config map instead.
  • mat.define-light-theme no longer accepts $primary, $accent and $warn.
    Pass a single config map instead.
  • Custom Material themes should no longer access primary, accent, warn,
    is-dark, foreground and background from the theme map, but instead use the actual color
    configuration (mat.get-color-config($theme)).
  • Passing a color configuration directly to a -theme mixin
    is not supported. Pass the theme container object instead or use the dedicated
    -color mixins.

material-experimental

Commit Description
feat - 353a5482e3 mdc-dialog: switch to new theming api (#23620)
feat - 0163ad2697 mdc-dialog: switch to new theming api (#23620) (#24521)
feat - 3e1080931e mdc-list: add support for marking the act… (#24433)
feat - 1b7d47cfed mdc-tabs: default to stretched tabs (#23406)
fix - c3bb3a9e5b mdc-core: avoid style conflicts between MDC list and MDC option
fix - f6310fbcf6 mdc-dialog: expose dialog-legacy-padding mixin
fix - 3a94415b28 mdc-dialog: implement delayFocusTrap option (#24727)
fix - 94ec04156c mdc-dialog: reduce amount of generated CSS
fix - b3c957941a mdc-form-field: incorrect alignment with border-box alignment (#24222)
fix - 766a01e4ef mdc-list: avoid style conflicts with MDC list
fix - 02d6e7d77a mdc-tabs: CSS applied to wrong element when preserveContent is enabled (#24346)

cdk-experimental

Commit Description
feat - c176670ce3 combobox: glue together combobox and listbox with DI instead of a panel directive (#24637)
feat - 4cc6b04a25 menu: allow configuration of typeahead and menu position (#24600)
feat - dc020c7ac2 menu: Use DI instead of CdkMenuPanel to connect menus (#24558)
fix - b8ccf036cb menu: API, code, and docs cleanup pass (#24745)
fix - f384cb52cd menu: close standalone menu when focus leaves
fix - 9531b68a5c menu: don't steal focus on hover
fix - b4b8b202c0 menu: fix issue where left/right on standalone menu closes it (#24696)
fix - 79b2337949 menu: move shared menu logic to base class (#24645)
fix - c8eb797711 menu: refocus trigger after closeAll
fix - 26e6c1fd2e menu: simplify radio and checkbox item APIs (#24720)
fix - 5d1d36c453 menu: stop inline menu triggers capturing focus

google-maps

Commit Description
fix - 9f27303aad error when minified through closure (#24897)

material

Commit Description
feat - 00cf4a2f26 autocomplete: add clear method to test harness (#24752)
feat - b90d9420fa autocomplete: add the ability to auto-select the active option while navigating (#20699)
feat - 60bbd194b3 autocomplete: test harness should throw when options are requested but panel is closed (#24494)
feat - 06e65c6b5d chips: update chip-list describedby to match input (#24292)
feat - 5a8ebb1da1 dialog: add support for explicit injector (#24580)
feat - 8ef3125285 dialog: add the ability to control the animation duration (#13466)
feat - 9946bb34bb form-field: add color to default options (#24438) (#24440)
feat - 426afa07e1 icon: add default options (#23638)
feat - 6c7cc8ae87 icon: allow multiple classes in setDefaultFontSetClass (#10484)
feat - 856c01639f menu: allow for menu to be conditionally removed from trigger (#24437)
feat - a55a8368b3 paginator: Add isNextPageEnabled and isPreviousPageEnabled methods to MatPaginatorHarness (#24784)
feat - 5fc655b4a0 paginator: add input for configuring the underlying select (#13705)
feat - ca1aaae7e2 progress-spinner: add color to default options (#24356)
feat - 38334d6bc8 schematics: add option not to include animations module in ng-add (#22559)
feat - 1aa5a20647 select: allow user-defined aria-describedby (#24644)
feat - 5846195007 slide-toggle: Add disabled predicate to MatSlideToggleHarness (#24761)
feat - 0d162a4132 sort: default arrow position in MatSortDefaultOptions (#23609)
feat - cc6112298d stepper: add input for controlling the animation duration (#17133)
feat - fc5f8b0266 stepper: add the ability to control the position of the header in a horizontal stepper (#15509)
feat - c3188c84ef tabs: add the ability to keep content inside the DOM while off-screen (#20393)
feat - cad0872208 tabs: add the ability to keep content inside the DOM while off-screen (#24299)
feat - f42fee0de7 tabs: Throw error in MDC tabs if [tabPanel] input is not provided (#24517)
fix - cb206be37d autocomplete: always emit closed event (#24642)
fix - 0b52561840 card: use more specific selector for divider override (#23531)
fix - 47517b65e0 card: use more specific selector for divider override (#23531)
fix - f05e65a02b chips: allow for role to be overwritten on chip list and chip (#15794)
fix - d67dad6b1b chips: Make MatChipInputEvent.chipInput required. (#23692)
fix - de63e29be4 core: noop animations not applying to selector lists (#24904)
fix - dbb6dc09b4 core: resolve memory leak by removing event listeners from the ripple element (#24663)
fix - e03a77065d core: ripples not being clipped on safari in shadow dom (#24029)
fix - e86be88125 core: ripples persisting when container is removed from DOM while fading-in (#24482)
fix - 7e67602799 datepicker: expose datepicker-date-range-colors mixin
fix - 5603d9b7f1 datepicker: fix failing unit test in multiyear view (#24418)
fix - 15774a9235 datepicker: update active date on focusing a cell (#24384)
fix - f16548462e dialog: provide defaults for dialog animation (#24591)
fix - 599d1b445f dialog: Use align as @Input() in MatDialogActions (#24328)
fix - 575332c929 dialog: use quoted keys in the animation state object (#24594)
fix - 64c2d311b4 expansion: picking up lazy content from child component (#14477)
fix - 025a534483 icon: clip overflowing icon elements (#12429)
fix - 6b2b51844a input: preserve native placeholder on non-legacy appearances (#20936)
fix - 44293522e9 menu: account for menu padding different from the default (#16169)
fix - 0a465281f6 menu: use narrower value for aria-haspopup on trigger element (#15219)
fix - ff12d09c1d schematics: remove usages of deprecated defaultProject option (#24641)
fix - ee23ac2aa0 schematics: support standalone components in ng-add (#24931)
fix - faed61cc7d schematics: use workingDirectory smart provider in path option
fix - 8dfbbed549 table: accessibility improvements on table examples
fix - e917541cb5 tabs: allow coercing of booleans for all inputs (#24377)
refactor - f30609c925 core: deprecate legacy theming API (#24835)
refactor - bab3b989f9 core: no longer define stateChanges in mixinErrorState (#22875)
refactor - 2fc6b9281d list: remove deprecated APIs for version 13 (#23327)
refactor - db126b5797 stepper: remove deprecated APIs for version 13 (#23328)

cdk

Commit Description
feat - 7d0bca7bd3 a11y: add input to control the duration of the aria live directive (#15275)
feat - feaf50b43a a11y: HighContrastModeDetector need not support IE11 (#24462)
feat - c6a1d1519e dialog: move experimental CDK dialog into stable (#24804)
feat - 49c1921316 drag-drop: adding method to set drag position (#24769)
feat - ca6b9fa209 drag-drop: expose native event objects in custom events (#17077)
feat - 653457eaf4 menu: move experimental CDK menu into stable (#24826)
feat - c296084073 overlay: add start and end positions to GlobalPositionStrategy (#12007)
feat - f91b98fff3 portal: allow specifying injector for template portal (#24554)
feat - 508b7ac460 table: allow text column to be centered (#24133)
feat - 64606fa65b testing: add methods getOptionalHarness and hasHarness (#24355)
fix - 4edfaedcaf a11y: ensure that aria describer ID is unique (#24982)
fix - f342375e29 dialog: add container structural styles (#24905)
fix - 8946ce2b8f menu: allow scrolling while menu is open
fix - 3d4b339961 menu: update docs to reflect current implementation and add (#24884)
fix - f8dadb3246 overlay: disable backdrop animation when noop animations are enabled (#24687)
fix - 3a7ee5ad01 schematics: remove instanceof check since it was always false when checking if a directory exists (#24999)
fix - 84ff8d806a schematics: use workingDirectory smart provider in path option
perf - ee452de497 a11y: avoid triggering change detection if there are no subscribers to stream (#15077)
refactor - 2575b00808 testing: remove deprecated protractor harness environment (#24304)

multiple

Commit Description
feat - ea081feabf Add a harness filter option for checked checkboxes, radios, and slide-toggles (#24625)
fix - 00f68c28e5 enable easy extension of harnesses (#24878)

ripple

Commit Description
fix - 65fb5f4491 not fading out on touch devices (#12488)

Special Thanks

Alan Agius, Amy Sorto, Andrew Seguin, Arthur Ming, Artur Androsovych, Diego Bonura, Jean-Philippe, Jeremy Elbourn, Jeri Peier, Joey Perrott, Kristiyan Kostadinov, Mario Härtwig, Martin Forstner, Miles Malerba, Paul Gschwendtner, Richie Foreman, Robin (Robert) Thomas, Ruslan Lekhman, Victor Vieira, Wagner Maciel, Zach Arend, Zack Elliott, dobrevad, peinearydevelopment, renovate[bot] and tomicarsk6

Don't miss a new components release

NewReleases is sending notifications on new releases.