Skip to content

Commit 2389c5c

Browse files
committed
feat(cdk/tree): fix lint errors
1 parent 94d79a4 commit 2389c5c

File tree

5 files changed

+20
-16
lines changed

5 files changed

+20
-16
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: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -639,20 +639,20 @@ export class CdkTree<T, K = T> implements AfterContentChecked, CollectionViewer,
639639
}
640640

641641
/**
642-
* For the given node, determine the size of the parent's child set.
643-
*
644-
* This is intended to be used for `aria-setsize`.
645-
*/
642+
* For the given node, determine the size of the parent's child set.
643+
*
644+
* This is intended to be used for `aria-setsize`.
645+
*/
646646
_getSetSize(dataNode: T) {
647647
const group = this._getNodeGroup(dataNode);
648648
return group.length;
649649
}
650650

651651
/**
652-
* For the given node, determine the index (starting from 1) of the node in its parent's child set.
653-
*
654-
* This is intended to be used for `aria-posinset`.
655-
*/
652+
* For the given node, determine the index (starting from 1) of the node in its parent's child set.
653+
*
654+
* This is intended to be used for `aria-posinset`.
655+
*/
656656
_getPositionInSet(dataNode: T) {
657657
const group = this._getNodeGroup(dataNode);
658658
return group.indexOf(dataNode) + 1;
@@ -847,19 +847,19 @@ export class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit
847847
}
848848

849849
/**
850-
* Determines the size of this node's parent's child set.
851-
*
852-
* This is intended to be used for `aria-setsize`.
853-
*/
850+
* Determines the size of this node's parent's child set.
851+
*
852+
* This is intended to be used for `aria-setsize`.
853+
*/
854854
_getSetSize(): number {
855855
return this._tree._getSetSize(this._data);
856856
}
857857

858858
/**
859-
* Determines the index (starting from 1) of this node in its parent's child set.
860-
*
861-
* This is intended to be used for `aria-posinset`.
862-
*/
859+
* Determines the index (starting from 1) of this node in its parent's child set.
860+
*
861+
* This is intended to be used for `aria-posinset`.
862+
*/
863863
_getPositionInSet(): number {
864864
return this._tree._getPositionInSet(this._data);
865865
}

0 commit comments

Comments
 (0)