Skip to content

Commit 97d60c5

Browse files
authored
feat(cdk-experimental/tree): add tree directives, example, and tests (#31350)
1 parent cdc0dab commit 97d60c5

File tree

20 files changed

+2261
-1
lines changed

20 files changed

+2261
-1
lines changed

.ng-dev/commit-message.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const commitMessage: CommitMessageConfig = {
1919
'cdk-experimental/selection',
2020
'cdk-experimental/table-scroll-container',
2121
'cdk-experimental/tabs',
22+
'cdk-experimental/tree',
2223
'cdk-experimental/ui-patterns',
2324
'cdk/a11y',
2425
'cdk/accordion',

src/cdk-experimental/config.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CDK_EXPERIMENTAL_ENTRYPOINTS = [
1010
"scrolling",
1111
"selection",
1212
"tabs",
13+
"tree",
1314
"table-scroll-container",
1415
"ui-patterns",
1516
]

src/cdk-experimental/tree/BUILD.bazel

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
load("//tools:defaults.bzl", "ng_project", "ng_web_test_suite", "ts_project")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ng_project(
6+
name = "tree",
7+
srcs = [
8+
"index.ts",
9+
"public-api.ts",
10+
"tree.ts",
11+
],
12+
deps = [
13+
"//src/cdk-experimental/deferred-content",
14+
"//src/cdk-experimental/ui-patterns",
15+
"//src/cdk/a11y",
16+
"//src/cdk/bidi",
17+
],
18+
)
19+
20+
ts_project(
21+
name = "unit_test_sources",
22+
testonly = True,
23+
srcs = [
24+
"tree.spec.ts",
25+
],
26+
deps = [
27+
":tree",
28+
"//:node_modules/@angular/core",
29+
"//:node_modules/@angular/platform-browser",
30+
"//src/cdk/testing/private",
31+
],
32+
)
33+
34+
ng_web_test_suite(
35+
name = "unit_tests",
36+
deps = [":unit_test_sources"],
37+
)

src/cdk-experimental/tree/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.dev/license
7+
*/
8+
9+
export * from './public-api';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.dev/license
7+
*/
8+
9+
export {CdkTreeItemGroup, CdkTreeItemGroupContent, CdkTree, CdkTreeItem} from './tree';

0 commit comments

Comments
 (0)