npm @angular/cdk 18.2.0
v18.2.0

latest releases: 18.2.4, 19.0.0-next.4, 19.0.0-next.3...
one month ago

18.2.0 "technetium-tapas" (2024-08-14)

cdk

Commit Description
feat - b2c051d2c drag-drop: add input to specify dragged item scale (#29392)

material

Commit Description
feat - ddc307e28 button-toggle: allow disabled buttons to be interactive (#29550)
feat - 841760101 checkbox: add the ability to interact with disabled checkboxes (#29474)
feat - 0af3b6175 radio: add the ability to interact with disabled radio buttons (#29490)
feat - 4292e1b3a slide-toggle: add the ability to interact with disabled toggle (#29502)
feat - a018fb0ee tooltip: replicate tooltipClass to default MatTooltipDefaultOptions (#29467)
fix - aaf0d5156 checkbox: account for disabledInteractive in harness
fix - d22a24d66 list: checkmark not visible in high contrast mode (#29546)
fix - a259b016b radio: account for disabledInteractive in harness
fix - fd47a0e60 radio: avoid error if destroyed quickly (#29507)
fix - 08d2e3e69 slide-toggle: account for disabledInteractive in harness
fix - fd416a30e tooltip: remove aria-describedby when disabled (#29520)
fix - ff36c80f9 tree: add levelAccessor, childrenAccessor, TreeKeyManager; a11y and docs improvements (#29062)
fix - 1f992d06c tree: aria-expanded attribute should not appear in the leaf node (#29273)

multiple

Commit Description
feat - db5b8dc29 fallback to system level variables (#29480)

Deprecations

material

  • Tree controller deprecated. Use one of levelAccessor or childrenAccessor instead. To be removed in a future version.

    • BaseTreeControl, TreeControl, FlatTreeControl, and NestedTreeControl deprecated
    • CdkTree#treeControl deprecated. Provide one of CdkTree#levelAccessor or CdkTree#childrenAccessor instead.
    • MatTreeFlattener deprecated. Use MatTree#childrenAccessor and MatTreeNode#isExpandable instead.
    • MatTreeFlatDataSource deprecated. Use one of levelAccessor or childrenAccessor instead of TreeControl.

    Note when upgrading: isExpandable works differently on Trees using treeControl than trees using childrenAccessor or levelAccessor. Nodes on trees that have a treeControl are expandable by default. Nodes on trees using childrenAccessor or levelAccessor are not expandable by default. Provide isExpandable to override default behavior.

  • Setting tabindex of tree nodes deprecated. By default, Tree ignores tabindex passed to tree nodes.

    • MatTreeNode#tabIndex deprecated. MatTreeNode ignores Input tabIndex and manages its own focus behavior.
    • MatTreeNode#defaultTabIndex deprecated. MatTreeNode ignores defaultTabIndex and manages its own focus behavior.
    • MatNestedTreeNode#tabIndex deprecated. MatTreeNode ignores Input defaultTabIndex and manages its own focus behavior.
    • LegacyTreeKeyManager and LEGACY_TREE_KEY_MANAGER_FACTORY_PROVIDER deprecated. Inject a TreeKeyManagerFactory to customize keyboard behavior.

    Note when upgrading: an opt-out is available for keyboard functionality changes. Provide LEGACY_TREE_KEY_MANAGER_FACTORY_PROVIDER to opt-out of Tree managing its own focus. When provided, Tree does not manage it’s own focus and respects tabindex passed to TreeNode. When provided, have the same focus behavior as before this commit is applied.

    Add Legacy Keyboard Interface demo, which shows usage of LEGACY_TREE_KEY_MANAGER_FACTORY_PROVIDER. Add Custom Key Manager, which shows usage of injecting a TreeKeyManagerStrategy

  • disabled renamed to isDisabled.

    • CdkTreeNode#disabled deprecated and alias to CdkTreeNode#isDisabled

Don't miss a new cdk release

NewReleases is sending notifications on new releases.