18.2.0-next.1
版本发布时间: 2024-07-17 21:01:42
angular/components最新发布版本:19.0.0-rc.0(2024-10-31 22:21:49)
18.2.0-next.1 "osmium-opal" (2024-07-17)
cdk
Commit | Description |
---|---|
drag-drop: remove preview after animate to placeholder animation completes (#29439) |
material
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