Skip to content

Commit fbfe4cb

Browse files
authored
feat(cdk-experimental/combobox): created combobox file skeleton.
(#20185)
1 parent 4cc2943 commit fbfe4cb

File tree

8 files changed

+89
-0
lines changed

8 files changed

+89
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
# CDK experimental package
127127
/src/cdk-experimental/* @jelbourn
128128
/src/cdk-experimental/column-resize/** @kseamon @andrewseguin
129+
/src/cdk-experimental/combobox/** @nielsr98 @jelbourn
129130
/src/cdk-experimental/dialog/** @jelbourn @crisbeto
130131
/src/cdk-experimental/menu/** @jelbourn @andy9775
131132
/src/cdk-experimental/popover-edit/** @kseamon @andrewseguin
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("//tools:defaults.bzl", "ng_module")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
ng_module(
6+
name = "combobox",
7+
srcs = glob(
8+
["**/*.ts"],
9+
exclude = ["**/*.spec.ts"],
10+
),
11+
module_name = "@angular/cdk-experimental/combobox",
12+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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.io/license
7+
*/
8+
9+
import {NgModule} from '@angular/core';
10+
import {CdkCombobox} from './combobox';
11+
import {CdkComboboxPanel} from './combobox-panel';
12+
13+
const EXPORTED_DECLARATIONS = [CdkCombobox, CdkComboboxPanel];
14+
@NgModule({
15+
exports: EXPORTED_DECLARATIONS,
16+
declarations: EXPORTED_DECLARATIONS,
17+
})
18+
export class CdkComboboxModule {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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.io/license
7+
*/
8+
9+
import {Directive} from '@angular/core';
10+
11+
@Directive({
12+
selector: 'ng-template[cdkComboboxPanel]',
13+
exportAs: 'cdkComboboxPanel',
14+
})
15+
export class CdkComboboxPanel<T = unknown> {
16+
17+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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.io/license
7+
*/
8+
9+
import {Directive} from '@angular/core';
10+
11+
@Directive({
12+
selector: '[cdkCombobox]',
13+
exportAs: 'cdkCombobox',
14+
host: {
15+
'role': 'combobox'
16+
}
17+
})
18+
export class CdkCombobox<T = unknown> {
19+
20+
}
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.io/license
7+
*/
8+
9+
export * from './public-api';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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.io/license
7+
*/
8+
9+
export * from './combobox';
10+
export * from './combobox-panel';
11+
export * from './combobox-module';

src/cdk-experimental/config.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# List of all entry-points of the Angular cdk-experimental package.
22
CDK_EXPERIMENTAL_ENTRYPOINTS = [
33
"column-resize",
4+
"combobox",
45
"dialog",
56
"menu",
67
"listbox",

0 commit comments

Comments
 (0)