Skip to content

Commit

Permalink
feat(cdk-experimental/combobox): created combobox file skeleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsr98 committed Aug 5, 2020
1 parent 4cc2943 commit fbfe4cb
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -126,6 +126,7 @@
# CDK experimental package
/src/cdk-experimental/* @jelbourn
/src/cdk-experimental/column-resize/** @kseamon @andrewseguin
/src/cdk-experimental/combobox/** @nielsr98 @jelbourn
/src/cdk-experimental/dialog/** @jelbourn @crisbeto
/src/cdk-experimental/menu/** @jelbourn @andy9775
/src/cdk-experimental/popover-edit/** @kseamon @andrewseguin
Expand Down
12 changes: 12 additions & 0 deletions src/cdk-experimental/combobox/BUILD.bazel
@@ -0,0 +1,12 @@
load("//tools:defaults.bzl", "ng_module")

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

ng_module(
name = "combobox",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
module_name = "@angular/cdk-experimental/combobox",
)
18 changes: 18 additions & 0 deletions src/cdk-experimental/combobox/combobox-module.ts
@@ -0,0 +1,18 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

import {NgModule} from '@angular/core';
import {CdkCombobox} from './combobox';
import {CdkComboboxPanel} from './combobox-panel';

const EXPORTED_DECLARATIONS = [CdkCombobox, CdkComboboxPanel];
@NgModule({
exports: EXPORTED_DECLARATIONS,
declarations: EXPORTED_DECLARATIONS,
})
export class CdkComboboxModule {}
17 changes: 17 additions & 0 deletions src/cdk-experimental/combobox/combobox-panel.ts
@@ -0,0 +1,17 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

import {Directive} from '@angular/core';

@Directive({
selector: 'ng-template[cdkComboboxPanel]',
exportAs: 'cdkComboboxPanel',
})
export class CdkComboboxPanel<T = unknown> {

}
20 changes: 20 additions & 0 deletions src/cdk-experimental/combobox/combobox.ts
@@ -0,0 +1,20 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

import {Directive} from '@angular/core';

@Directive({
selector: '[cdkCombobox]',
exportAs: 'cdkCombobox',
host: {
'role': 'combobox'
}
})
export class CdkCombobox<T = unknown> {

}
9 changes: 9 additions & 0 deletions src/cdk-experimental/combobox/index.ts
@@ -0,0 +1,9 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

export * from './public-api';
11 changes: 11 additions & 0 deletions src/cdk-experimental/combobox/public-api.ts
@@ -0,0 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/

export * from './combobox';
export * from './combobox-panel';
export * from './combobox-module';
1 change: 1 addition & 0 deletions src/cdk-experimental/config.bzl
@@ -1,6 +1,7 @@
# List of all entry-points of the Angular cdk-experimental package.
CDK_EXPERIMENTAL_ENTRYPOINTS = [
"column-resize",
"combobox",
"dialog",
"menu",
"listbox",
Expand Down

0 comments on commit fbfe4cb

Please sign in to comment.