Skip to content

Commit 9fa4a41

Browse files
committed
feat(cdk/tree): fix lint errors
1 parent cc80532 commit 9fa4a41

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
@@ -636,20 +636,20 @@ export class CdkTree<T, K = T> implements AfterContentChecked, CollectionViewer,
636636
}
637637

638638
/**
639-
* For the given node, determine the size of the parent's child set.
640-
*
641-
* This is intended to be used for `aria-setsize`.
642-
*/
639+
* For the given node, determine the size of the parent's child set.
640+
*
641+
* This is intended to be used for `aria-setsize`.
642+
*/
643643
_getSetSize(dataNode: T) {
644644
const group = this._getNodeGroup(dataNode);
645645
return group.length;
646646
}
647647

648648
/**
649-
* For the given node, determine the index (starting from 1) of the node in its parent's child set.
650-
*
651-
* This is intended to be used for `aria-posinset`.
652-
*/
649+
* For the given node, determine the index (starting from 1) of the node in its parent's child set.
650+
*
651+
* This is intended to be used for `aria-posinset`.
652+
*/
653653
_getPositionInSet(dataNode: T) {
654654
const group = this._getNodeGroup(dataNode);
655655
return group.indexOf(dataNode) + 1;
@@ -905,19 +905,19 @@ export class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit
905905
}
906906

907907
/**
908-
* Determines the size of this node's parent's child set.
909-
*
910-
* This is intended to be used for `aria-setsize`.
911-
*/
908+
* Determines the size of this node's parent's child set.
909+
*
910+
* This is intended to be used for `aria-setsize`.
911+
*/
912912
_getSetSize(): number {
913913
return this._tree._getSetSize(this._data);
914914
}
915915

916916
/**
917-
* Determines the index (starting from 1) of this node in its parent's child set.
918-
*
919-
* This is intended to be used for `aria-posinset`.
920-
*/
917+
* Determines the index (starting from 1) of this node in its parent's child set.
918+
*
919+
* This is intended to be used for `aria-posinset`.
920+
*/
921921
_getPositionInSet(): number {
922922
return this._tree._getPositionInSet(this._data);
923923
}

0 commit comments

Comments
 (0)