Skip to content

Commit 07058d1

Browse files
committed
feat(cdk/tree): fix lint errors
1 parent ba0dc38 commit 07058d1

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
@@ -870,19 +870,19 @@ export class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit
870870
}
871871

872872
/**
873-
* Determines the size of this node's parent's child set.
874-
*
875-
* This is intended to be used for `aria-setsize`.
876-
*/
873+
* Determines the size of this node's parent's child set.
874+
*
875+
* This is intended to be used for `aria-setsize`.
876+
*/
877877
_getSetSize(): number {
878878
return this._tree._getSetSize(this._data);
879879
}
880880

881881
/**
882-
* Determines the index (starting from 1) of this node in its parent's child set.
883-
*
884-
* This is intended to be used for `aria-posinset`.
885-
*/
882+
* Determines the index (starting from 1) of this node in its parent's child set.
883+
*
884+
* This is intended to be used for `aria-posinset`.
885+
*/
886886
_getPositionInSet(): number {
887887
return this._tree._getPositionInSet(this._data);
888888
}

0 commit comments

Comments
 (0)