Skip to content

Commit 3b0f7fc

Browse files
authored
chore: create separate modules for each demo page (#15498)
1 parent 876727d commit 3b0f7fc

File tree

54 files changed

+1483
-348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1483
-348
lines changed

.github/CODEOWNERS

+3-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@
111111
/src/dev-app/connected-overlay/** @jelbourn @crisbeto
112112
/src/dev-app/dataset/** @andrewseguin
113113
/src/dev-app/datepicker/** @mmalerba
114+
/src/dev-app/dev-app-layout/** @mmalerba
114115
/src/dev-app/dialog/** @jelbourn @crisbeto
115-
/src/dev-app/drawer/** @mmalerba
116116
/src/dev-app/drag-drop/** @crisbeto
117+
/src/dev-app/drawer/** @mmalerba
117118
/src/dev-app/example/** @andrewseguin
118119
/src/dev-app/examples-page/** @andrewseguin
119120
/src/dev-app/expansion/** @josephperrott
@@ -123,8 +124,8 @@
123124
/src/dev-app/icon/** @jelbourn
124125
/src/dev-app/input/** @mmalerba
125126
/src/dev-app/list/** @jelbourn @crisbeto @devversion
126-
/src/dev-app/menu/** @crisbeto
127127
/src/dev-app/live-announcer/** @jelbourn
128+
/src/dev-app/menu/** @crisbeto
128129
/src/dev-app/overlay/** @jelbourn @crisbeto
129130
/src/dev-app/paginator/** @andrewseguin
130131
/src/dev-app/platform/** @jelbourn @devversion
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
12+
import {
13+
MatAutocompleteModule,
14+
MatButtonModule,
15+
MatCardModule,
16+
MatFormFieldModule,
17+
MatInputModule
18+
} from '@angular/material';
19+
import {AutocompleteDemo} from './autocomplete-demo';
20+
21+
@NgModule({
22+
imports: [
23+
CommonModule,
24+
FormsModule,
25+
MatAutocompleteModule,
26+
MatButtonModule,
27+
MatCardModule,
28+
MatFormFieldModule,
29+
MatInputModule,
30+
ReactiveFormsModule,
31+
],
32+
declarations: [AutocompleteDemo],
33+
})
34+
export class AutocompleteDemoModule {
35+
}
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule} from '@angular/forms';
12+
import {MatBadgeModule, MatButtonModule, MatIconModule} from '@angular/material';
13+
import {BadgeDemo} from './badge-demo';
14+
15+
@NgModule({
16+
imports: [
17+
CommonModule,
18+
FormsModule,
19+
MatBadgeModule,
20+
MatButtonModule,
21+
MatIconModule,
22+
],
23+
declarations: [BadgeDemo],
24+
})
25+
export class BadgeDemoModule {
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {
12+
MatCardModule,
13+
MatCheckboxModule,
14+
MatFormFieldModule,
15+
MatInputModule,
16+
MatRadioModule,
17+
MatSelectModule,
18+
MatToolbarModule
19+
} from '@angular/material';
20+
import {BaselineDemo} from './baseline-demo';
21+
22+
@NgModule({
23+
imports: [
24+
CommonModule,
25+
MatCardModule,
26+
MatCheckboxModule,
27+
MatFormFieldModule,
28+
MatInputModule,
29+
MatRadioModule,
30+
MatSelectModule,
31+
MatToolbarModule,
32+
],
33+
declarations: [BaselineDemo],
34+
})
35+
export class BaselineDemoModule {
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule} from '@angular/forms';
12+
import {
13+
MatBottomSheetModule,
14+
MatButtonModule,
15+
MatCardModule,
16+
MatCheckboxModule,
17+
MatFormFieldModule,
18+
MatIconModule,
19+
MatInputModule,
20+
MatListModule,
21+
MatSelectModule
22+
} from '@angular/material';
23+
import {BottomSheetDemo, ExampleBottomSheet} from './bottom-sheet-demo';
24+
25+
@NgModule({
26+
imports: [
27+
CommonModule,
28+
FormsModule,
29+
MatBottomSheetModule,
30+
MatButtonModule,
31+
MatCardModule,
32+
MatCheckboxModule,
33+
MatFormFieldModule,
34+
MatIconModule,
35+
MatInputModule,
36+
MatListModule,
37+
MatSelectModule,
38+
],
39+
declarations: [BottomSheetDemo, ExampleBottomSheet],
40+
entryComponents: [ExampleBottomSheet],
41+
})
42+
export class BottomSheetDemoModule {
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule} from '@angular/forms';
12+
import {MatButtonToggleModule, MatCheckboxModule, MatIconModule} from '@angular/material';
13+
import {ButtonToggleDemo} from './button-toggle-demo';
14+
15+
@NgModule({
16+
imports: [
17+
CommonModule,
18+
FormsModule,
19+
MatButtonToggleModule,
20+
MatCheckboxModule,
21+
MatIconModule,
22+
],
23+
declarations: [ButtonToggleDemo],
24+
})
25+
export class ButtonToggleDemoModule {
26+
}
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 {MatButtonModule, MatIconModule} from '@angular/material';
11+
import {ButtonDemo} from './button-demo';
12+
13+
@NgModule({
14+
imports: [
15+
MatButtonModule,
16+
MatIconModule,
17+
],
18+
declarations: [ButtonDemo],
19+
})
20+
export class ButtonDemoModule {
21+
}

src/dev-app/card/card-demo-module.ts

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 {
11+
MatButtonModule,
12+
MatCardModule,
13+
MatDividerModule,
14+
MatProgressBarModule
15+
} from '@angular/material';
16+
import {CardDemo} from './card-demo';
17+
18+
@NgModule({
19+
imports: [
20+
MatButtonModule,
21+
MatCardModule,
22+
MatDividerModule,
23+
MatProgressBarModule,
24+
],
25+
declarations: [CardDemo],
26+
})
27+
export class CardDemoModule {
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule} from '@angular/forms';
12+
import {MatCheckboxModule, MatPseudoCheckboxModule} from '@angular/material';
13+
import {CheckboxDemo, MatCheckboxDemoNestedChecklist} from './checkbox-demo';
14+
15+
@NgModule({
16+
imports: [
17+
CommonModule,
18+
FormsModule,
19+
MatCheckboxModule,
20+
MatPseudoCheckboxModule,
21+
],
22+
declarations: [CheckboxDemo, MatCheckboxDemoNestedChecklist],
23+
})
24+
export class CheckboxDemoModule {
25+
}
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule} from '@angular/forms';
12+
import {
13+
MatButtonModule,
14+
MatCardModule,
15+
MatCheckboxModule,
16+
MatChipsModule,
17+
MatFormFieldModule,
18+
MatIconModule,
19+
MatToolbarModule
20+
} from '@angular/material';
21+
import {ChipsDemo} from './chips-demo';
22+
23+
@NgModule({
24+
imports: [
25+
CommonModule,
26+
FormsModule,
27+
MatButtonModule,
28+
MatCardModule,
29+
MatCheckboxModule,
30+
MatChipsModule,
31+
MatFormFieldModule,
32+
MatIconModule,
33+
MatToolbarModule,
34+
],
35+
declarations: [ChipsDemo],
36+
})
37+
export class ChipsDemoModule {
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 {OverlayModule} from '@angular/cdk/overlay';
10+
import {CommonModule} from '@angular/common';
11+
import {NgModule} from '@angular/core';
12+
import {FormsModule} from '@angular/forms';
13+
import {MatButtonModule, MatCheckboxModule, MatRadioModule} from '@angular/material';
14+
import {ConnectedOverlayDemo} from './connected-overlay-demo';
15+
16+
@NgModule({
17+
imports: [
18+
CommonModule,
19+
FormsModule,
20+
MatButtonModule,
21+
MatCheckboxModule,
22+
MatRadioModule,
23+
OverlayModule,
24+
],
25+
declarations: [ConnectedOverlayDemo],
26+
})
27+
export class ConnectedOverlayDemoModule {
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 {CommonModule} from '@angular/common';
10+
import {NgModule} from '@angular/core';
11+
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
12+
import {
13+
MatButtonModule,
14+
MatCheckboxModule,
15+
MatDatepickerModule,
16+
MatFormFieldModule,
17+
MatIconModule,
18+
MatInputModule,
19+
MatSelectModule
20+
} from '@angular/material';
21+
import {CustomHeader, CustomHeaderNgContent, DatepickerDemo} from './datepicker-demo';
22+
23+
@NgModule({
24+
imports: [
25+
CommonModule,
26+
FormsModule,
27+
MatButtonModule,
28+
MatCheckboxModule,
29+
MatDatepickerModule,
30+
MatFormFieldModule,
31+
MatIconModule,
32+
MatInputModule,
33+
MatSelectModule,
34+
ReactiveFormsModule,
35+
],
36+
declarations: [CustomHeader, CustomHeaderNgContent, DatepickerDemo],
37+
entryComponents: [CustomHeader, CustomHeaderNgContent],
38+
})
39+
export class DatepickerDemoModule {
40+
}

0 commit comments

Comments
 (0)