Skip to content

Commit a491792

Browse files
committed
fixup! feat(cdk-experimental/ui-patterns): listbox ui pattern
1 parent 38cf157 commit a491792

File tree

10 files changed

+147
-21
lines changed

10 files changed

+147
-21
lines changed

src/cdk-experimental/ui-patterns/BUILD.bazel

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ ts_library(
88
["**/*.ts"],
99
exclude = ["**/*.spec.ts"],
1010
),
11-
deps = ["@npm//@angular/core"],
11+
deps = [
12+
"//src/cdk-experimental/ui-patterns/listbox",
13+
"@npm//@angular/core",
14+
],
1215
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("//tools:defaults.bzl", "ts_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ts_library(
6+
name = "event-manager",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
deps = ["@npm//@angular/core"],
12+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ts_library(
6+
name = "list-focus",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
deps = [
12+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
13+
"@npm//@angular/core",
14+
],
15+
)
16+
17+
ng_test_library(
18+
name = "unit_test_sources",
19+
srcs = glob(["**/*.spec.ts"]),
20+
deps = [
21+
":list-focus",
22+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
23+
],
24+
)
25+
26+
ng_web_test_suite(
27+
name = "unit_tests",
28+
deps = [":unit_test_sources"],
29+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ts_library(
6+
name = "list-navigation",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
deps = ["@npm//@angular/core"],
12+
)
13+
14+
ng_test_library(
15+
name = "unit_test_sources",
16+
srcs = glob(["**/*.spec.ts"]),
17+
deps = [":list-navigation"],
18+
)
19+
20+
ng_web_test_suite(
21+
name = "unit_tests",
22+
deps = [":unit_test_sources"],
23+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ts_library(
6+
name = "list-selection",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
deps = [
12+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
13+
"@npm//@angular/core",
14+
],
15+
)
16+
17+
ng_test_library(
18+
name = "unit_test_sources",
19+
srcs = glob(["**/*.spec.ts"]),
20+
deps = [
21+
":list-selection",
22+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
23+
],
24+
)
25+
26+
ng_web_test_suite(
27+
name = "unit_tests",
28+
deps = [":unit_test_sources"],
29+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ts_library(
6+
name = "list-typeahead",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
deps = [
12+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
13+
"@npm//@angular/core",
14+
],
15+
)
16+
17+
ng_test_library(
18+
name = "unit_test_sources",
19+
srcs = glob(["**/*.spec.ts"]),
20+
deps = [
21+
":list-typeahead",
22+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
23+
],
24+
)
25+
26+
ng_web_test_suite(
27+
name = "unit_tests",
28+
deps = [":unit_test_sources"],
29+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
load("//tools:defaults.bzl", "ts_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ts_library(
6+
name = "listbox",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
deps = [
12+
"//src/cdk-experimental/ui-patterns/behaviors/event-manager",
13+
"//src/cdk-experimental/ui-patterns/behaviors/list-focus",
14+
"//src/cdk-experimental/ui-patterns/behaviors/list-navigation",
15+
"//src/cdk-experimental/ui-patterns/behaviors/list-selection",
16+
"//src/cdk-experimental/ui-patterns/behaviors/list-typeahead",
17+
"@npm//@angular/core",
18+
],
19+
)

src/cdk-experimental/ui-patterns/listbox/index.ts

-9
This file was deleted.

src/cdk-experimental/ui-patterns/listbox/public-api.ts

-10
This file was deleted.

src/cdk-experimental/ui-patterns/public-api.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
export * from './listbox';
9+
export * from './listbox/listbox';
10+
export * from './listbox/option';

0 commit comments

Comments
 (0)