Skip to content

Commit cb76b8c

Browse files
committed
feat(cdk/tree): fix lint errors
1 parent 4d73a1f commit cb76b8c

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
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
@@ -512,20 +512,20 @@ export class CdkTree<T, K = T> implements AfterContentChecked, CollectionViewer,
512512
}
513513

514514
/**
515-
* For the given node, determine the size of the parent's child set.
516-
*
517-
* This is intended to be used for `aria-setsize`.
518-
*/
515+
* For the given node, determine the size of the parent's child set.
516+
*
517+
* This is intended to be used for `aria-setsize`.
518+
*/
519519
_getSetSize(dataNode: T) {
520520
const group = this._getNodeGroup(dataNode);
521521
return group.length;
522522
}
523523

524524
/**
525-
* For the given node, determine the index (starting from 1) of the node in its parent's child set.
526-
*
527-
* This is intended to be used for `aria-posinset`.
528-
*/
525+
* For the given node, determine the index (starting from 1) of the node in its parent's child set.
526+
*
527+
* This is intended to be used for `aria-posinset`.
528+
*/
529529
_getPositionInSet(dataNode: T) {
530530
const group = this._getNodeGroup(dataNode);
531531
return group.indexOf(dataNode) + 1;
@@ -704,19 +704,19 @@ export class CdkTreeNode<T, K = T> implements FocusableOption, OnDestroy, OnInit
704704
}
705705

706706
/**
707-
* Determines the size of this node's parent's child set.
708-
*
709-
* This is intended to be used for `aria-setsize`.
710-
*/
707+
* Determines the size of this node's parent's child set.
708+
*
709+
* This is intended to be used for `aria-setsize`.
710+
*/
711711
_getSetSize(): number {
712712
return this._tree._getSetSize(this._data);
713713
}
714714

715715
/**
716-
* Determines the index (starting from 1) of this node in its parent's child set.
717-
*
718-
* This is intended to be used for `aria-posinset`.
719-
*/
716+
* Determines the index (starting from 1) of this node in its parent's child set.
717+
*
718+
* This is intended to be used for `aria-posinset`.
719+
*/
720720
_getPositionInSet(): number {
721721
return this._tree._getPositionInSet(this._data);
722722
}

src/components-examples/cdk/tree/cdk-tree-flat-level-accessor/cdk-tree-flat-level-accessor-example.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {ArrayDataSource} from '@angular/cdk/collections';
2-
import {FlatTreeControl} from '@angular/cdk/tree';
32
import {Component} from '@angular/core';
43

54
const TREE_DATA: ExampleFlatNode[] = [

0 commit comments

Comments
 (0)