Skip to content

Commit 38cf157

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

File tree

7 files changed

+41
-18
lines changed

7 files changed

+41
-18
lines changed

src/cdk-experimental/listbox/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ng_module(
99
exclude = ["**/*.spec.ts"],
1010
),
1111
deps = [
12-
"//src/cdk-experimental/ui-patterns:listbox",
12+
"//src/cdk-experimental/ui-patterns",
1313
"//src/cdk/bidi",
1414
],
1515
)

src/cdk-experimental/listbox/listbox.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import {
1616
input,
1717
model,
1818
} from '@angular/core';
19-
import {OptionPattern} from '@angular/cdk-experimental/ui-patterns/listbox/option';
20-
import {ListboxPattern} from '@angular/cdk-experimental/ui-patterns/listbox/listbox';
19+
import {ListboxPattern, OptionPattern} from '@angular/cdk-experimental/ui-patterns';
2120
import {Directionality} from '@angular/cdk/bidi';
2221
import {toSignal} from '@angular/core/rxjs-interop';
2322

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

+2-15
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,11 @@ load("//tools:defaults.bzl", "ts_library")
22

33
package(default_visibility = ["//visibility:public"])
44

5-
# TODO(wagnermaciel): Check if tree shaking handles this or if we need to split out.
65
ts_library(
7-
name = "behaviors",
6+
name = "ui-patterns",
87
srcs = glob(
9-
["behaviors/**/*.ts"],
8+
["**/*.ts"],
109
exclude = ["**/*.spec.ts"],
1110
),
1211
deps = ["@npm//@angular/core"],
1312
)
14-
15-
ts_library(
16-
name = "listbox",
17-
srcs = glob(
18-
["listbox/**/*.ts"],
19-
exclude = ["**/*.spec.ts"],
20-
),
21-
deps = [
22-
":behaviors",
23-
"@npm//@angular/core",
24-
],
25-
)
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';
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';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 {ListboxPattern} from './listbox';
10+
export {OptionPattern} from './option';
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 './listbox';

0 commit comments

Comments
 (0)