Skip to content

Commit 99f3c2d

Browse files
vanessanschmittjelbourn
authored andcommitted
chore: add skeleton files for MDC-based implementation of chips (#16002)
1 parent fb15e89 commit 99f3c2d

35 files changed

+272
-0
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
/src/material-experimental/mdc-button/** @andrewseguin
8888
/src/material-experimental/mdc-card/** @mmalerba
8989
/src/material-experimental/mdc-checkbox/** @mmalerba
90+
/src/material-experimental/mdc-chips/** @mmalerba
9091
/src/material-experimental/mdc-helpers/** @mmalerba
9192
/src/material-experimental/mdc-menu/** @crisbeto
9293
# Note to implementer: please repossess
@@ -139,6 +140,7 @@
139140
# Note to implementer: please repossess
140141
/src/dev-app/mdc-card/** @mmalerba
141142
/src/dev-app/mdc-checkbox/** @mmalerba
143+
/src/dev-app/mdc-chips/** @mmalerba
142144
/src/dev-app/mdc-menu/** @crisbeto
143145
# Note to implementer: please repossess
144146
/src/dev-app/mdc-radio/** @mmalerba
@@ -185,6 +187,7 @@
185187
# Note to implementer: please repossess
186188
/e2e/components/mdc-card-e2e.spec.ts @mmalerba
187189
/e2e/components/mdc-checkbox-e2e.spec.ts @mmalerba
190+
/e2e/components/mdc-chips-e2e.spec.ts @mmalerba
188191
/e2e/components/mdc-menu-e2e.spec.ts @crisbeto
189192
# Note to implementer: please repossess
190193
/e2e/components/mdc-radio-e2e.spec.ts @mmalerba
@@ -218,6 +221,7 @@
218221
# Note to implementer: please repossess
219222
/src/e2e-app/mdc-card/** @mmalerba
220223
/src/e2e-app/mdc-checkbox/** @mmalerba
224+
/src/e2e-app/mdc-chips/** @mmalerba
221225
/src/e2e-app/mdc-menu/** @crisbeto
222226
# Note to implementer: please repossess
223227
/src/e2e-app/mdc-radio/** @mmalerba

e2e/components/mdc-chips-e2e.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// TODO: copy tests from existing mat-chip-list, update as necessary to fix.

src/dev-app/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ng_module(
2828
"//src/material-experimental/mdc-button",
2929
"//src/material-experimental/mdc-card",
3030
"//src/material-experimental/mdc-checkbox",
31+
"//src/material-experimental/mdc-chips",
3132
"//src/material-experimental/mdc-menu",
3233
"//src/material-experimental/mdc-radio",
3334
"//src/material-experimental/mdc-slide-toggle",
@@ -47,6 +48,7 @@ sass_binary(
4748
"//src/material-experimental/mdc-button:button_scss_lib",
4849
"//src/material-experimental/mdc-card:card_scss_lib",
4950
"//src/material-experimental/mdc-checkbox:checkbox_scss_lib",
51+
"//src/material-experimental/mdc-chips:chips_scss_lib",
5052
"//src/material-experimental/mdc-menu:menu_scss_lib",
5153
"//src/material-experimental/mdc-radio:radio_scss_lib",
5254
"//src/material-experimental/mdc-slide-toggle:slide_toggle_scss_lib",

src/dev-app/dev-app/dev-app-layout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class DevAppLayout {
7272
{name: 'MDC Button', route: '/mdc-button'},
7373
{name: 'MDC Card', route: '/mdc-card'},
7474
{name: 'MDC Checkbox', route: '/mdc-checkbox'},
75+
{name: 'MDC Chips', route: '/mdc-chips'},
7576
{name: 'MDC Menu', route: '/mdc-menu'},
7677
{name: 'MDC Radio', route: '/mdc-radio'},
7778
{name: 'MDC Slide Toggle', route: '/mdc-slide-toggle'},

src/dev-app/dev-app/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const DEV_APP_ROUTES: Routes = [
5454
path: 'mdc-checkbox',
5555
loadChildren: 'mdc-checkbox/mdc-checkbox-demo-module#MdcCheckboxDemoModule'
5656
},
57+
{path: 'mdc-chips', loadChildren: 'mdc-chips/mdc-chips-demo-module#MdcChipsDemoModule'},
5758
{path: 'mdc-menu', loadChildren: 'mdc-menu/mdc-menu-demo-module#MdcMenuDemoModule'},
5859
{path: 'mdc-radio', loadChildren: 'mdc-radio/mdc-radio-demo-module#MdcRadioDemoModule'},
5960
{
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 {MatChipsModule} from '@angular/material-experimental/mdc-chips';
11+
import {RouterModule} from '@angular/router';
12+
import {MdcChipsDemo} from './mdc-chips-demo';
13+
14+
@NgModule({
15+
imports: [
16+
MatChipsModule,
17+
RouterModule.forChild([{path: '', component: MdcChipsDemo}]),
18+
],
19+
declarations: [MdcChipsDemo],
20+
})
21+
export class MdcChipsDemoModule {
22+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- TODO: copy in demo template from existing mat-chip demo. -->
2+
Not yet implemented.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// TODO: copy in demo styles from existing mat-chips demo.
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 {Component} from '@angular/core';
10+
11+
@Component({
12+
moduleId: module.id,
13+
selector: 'mdc-chips-demo',
14+
templateUrl: 'mdc-chips-demo.html',
15+
styleUrls: ['mdc-chips-demo.css'],
16+
})
17+
export class MdcChipsDemo {
18+
}

src/dev-app/system-config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ System.config({
140140
'dist/packages/material-experimental/mdc-card/index.js',
141141
'@angular/material-experimental/mdc-checkbox':
142142
'dist/packages/material-experimental/mdc-checkbox/index.js',
143+
'@angular/material-experimental/mdc-chips':
144+
'dist/packages/material-experimental/mdc-chips/index.js',
143145
'@angular/material-experimental/mdc-menu':
144146
'dist/packages/material-experimental/mdc-menu/index.js',
145147
'@angular/material-experimental/mdc-radio':

0 commit comments

Comments
 (0)