Skip to content

Commit aa5d0c0

Browse files
committed
feat(cdk/tree): fix lint errors
1 parent 40f23cb commit aa5d0c0

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

src/cdk/tree/control/base-tree-control.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {TreeControl} from './tree-control';
1313
* Base tree control. It has basic toggle/expand/collapse operations on a single data node.
1414
*
1515
* @deprecated Use one of levelAccessor or childrenAccessor
16+
* @breaking-change 14.0.0
1617
*/
1718
export abstract class BaseTreeControl<T, K = T> implements TreeControl<T, K> {
1819
/** Gets a list of descendent data nodes of a subtree rooted at given data node recursively. */

src/cdk/tree/control/flat-tree-control.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface FlatTreeControlOptions<T, K> {
1717
* Flat tree control. Able to expand/collapse a subtree recursively for flattened tree.
1818
*
1919
* @deprecated Use one of levelAccessor or childrenAccessor
20+
* @breaking-change 14.0.0
2021
*/
2122
export class FlatTreeControl<T, K = T> extends BaseTreeControl<T, K> {
2223
/** Construct with flat tree data node functions getLevel and isExpandable. */

src/cdk/tree/control/nested-tree-control.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export interface NestedTreeControlOptions<T, K> {
1818
* Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type.
1919
*
2020
* @deprecated Use one of levelAccessor or childrenAccessor
21+
* @breaking-change 14.0.0
2122
*/
2223
export class NestedTreeControl<T, K = T> extends BaseTreeControl<T, K> {
2324
/** Construct with nested tree function getChildren. */

src/cdk/tree/control/tree-control.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {Observable} from 'rxjs';
1414
* User can also use it outside the `<cdk-tree>` to control the expansion status of the tree.
1515
*
1616
* @deprecated Use one of levelAccessor or childrenAccessor
17+
* @breaking-change 14.0.0
1718
*/
1819
export interface TreeControl<T, K = T> {
1920
/** The saved tree nodes data for `expandAll` action. */

src/cdk/tree/tree.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -864,19 +864,19 @@ export class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit
864864
}
865865

866866
/**
867-
* Determines the size of this node's parent's child set.
868-
*
869-
* This is intended to be used for `aria-setsize`.
870-
*/
867+
* Determines the size of this node's parent's child set.
868+
*
869+
* This is intended to be used for `aria-setsize`.
870+
*/
871871
_getSetSize(): number {
872872
return this._tree._getSetSize(this._data);
873873
}
874874

875875
/**
876-
* Determines the index (starting from 1) of this node in its parent's child set.
877-
*
878-
* This is intended to be used for `aria-posinset`.
879-
*/
876+
* Determines the index (starting from 1) of this node in its parent's child set.
877+
*
878+
* This is intended to be used for `aria-posinset`.
879+
*/
880880
_getPositionInSet(): number {
881881
return this._tree._getPositionInSet(this._data);
882882
}

0 commit comments

Comments
 (0)