-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create separate modules for each demo page (#15498)
- Loading branch information
Showing
54 changed files
with
1,483 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; | ||
import { | ||
MatAutocompleteModule, | ||
MatButtonModule, | ||
MatCardModule, | ||
MatFormFieldModule, | ||
MatInputModule | ||
} from '@angular/material'; | ||
import {AutocompleteDemo} from './autocomplete-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatAutocompleteModule, | ||
MatButtonModule, | ||
MatCardModule, | ||
MatFormFieldModule, | ||
MatInputModule, | ||
ReactiveFormsModule, | ||
], | ||
declarations: [AutocompleteDemo], | ||
}) | ||
export class AutocompleteDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import {MatBadgeModule, MatButtonModule, MatIconModule} from '@angular/material'; | ||
import {BadgeDemo} from './badge-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatBadgeModule, | ||
MatButtonModule, | ||
MatIconModule, | ||
], | ||
declarations: [BadgeDemo], | ||
}) | ||
export class BadgeDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import { | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatFormFieldModule, | ||
MatInputModule, | ||
MatRadioModule, | ||
MatSelectModule, | ||
MatToolbarModule | ||
} from '@angular/material'; | ||
import {BaselineDemo} from './baseline-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatFormFieldModule, | ||
MatInputModule, | ||
MatRadioModule, | ||
MatSelectModule, | ||
MatToolbarModule, | ||
], | ||
declarations: [BaselineDemo], | ||
}) | ||
export class BaselineDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import { | ||
MatBottomSheetModule, | ||
MatButtonModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatListModule, | ||
MatSelectModule | ||
} from '@angular/material'; | ||
import {BottomSheetDemo, ExampleBottomSheet} from './bottom-sheet-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatBottomSheetModule, | ||
MatButtonModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatListModule, | ||
MatSelectModule, | ||
], | ||
declarations: [BottomSheetDemo, ExampleBottomSheet], | ||
entryComponents: [ExampleBottomSheet], | ||
}) | ||
export class BottomSheetDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import {MatButtonToggleModule, MatCheckboxModule, MatIconModule} from '@angular/material'; | ||
import {ButtonToggleDemo} from './button-toggle-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatButtonToggleModule, | ||
MatCheckboxModule, | ||
MatIconModule, | ||
], | ||
declarations: [ButtonToggleDemo], | ||
}) | ||
export class ButtonToggleDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* @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 {MatButtonModule, MatIconModule} from '@angular/material'; | ||
import {ButtonDemo} from './button-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
MatButtonModule, | ||
MatIconModule, | ||
], | ||
declarations: [ButtonDemo], | ||
}) | ||
export class ButtonDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @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 { | ||
MatButtonModule, | ||
MatCardModule, | ||
MatDividerModule, | ||
MatProgressBarModule | ||
} from '@angular/material'; | ||
import {CardDemo} from './card-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
MatButtonModule, | ||
MatCardModule, | ||
MatDividerModule, | ||
MatProgressBarModule, | ||
], | ||
declarations: [CardDemo], | ||
}) | ||
export class CardDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import {MatCheckboxModule, MatPseudoCheckboxModule} from '@angular/material'; | ||
import {CheckboxDemo, MatCheckboxDemoNestedChecklist} from './checkbox-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatCheckboxModule, | ||
MatPseudoCheckboxModule, | ||
], | ||
declarations: [CheckboxDemo, MatCheckboxDemoNestedChecklist], | ||
}) | ||
export class CheckboxDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import { | ||
MatButtonModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatChipsModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatToolbarModule | ||
} from '@angular/material'; | ||
import {ChipsDemo} from './chips-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatButtonModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatChipsModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatToolbarModule, | ||
], | ||
declarations: [ChipsDemo], | ||
}) | ||
export class ChipsDemoModule { | ||
} |
28 changes: 28 additions & 0 deletions
28
src/dev-app/connected-overlay/connected-overlay-demo-module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @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 {OverlayModule} from '@angular/cdk/overlay'; | ||
import {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule} from '@angular/forms'; | ||
import {MatButtonModule, MatCheckboxModule, MatRadioModule} from '@angular/material'; | ||
import {ConnectedOverlayDemo} from './connected-overlay-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatButtonModule, | ||
MatCheckboxModule, | ||
MatRadioModule, | ||
OverlayModule, | ||
], | ||
declarations: [ConnectedOverlayDemo], | ||
}) | ||
export class ConnectedOverlayDemoModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* @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 {CommonModule} from '@angular/common'; | ||
import {NgModule} from '@angular/core'; | ||
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; | ||
import { | ||
MatButtonModule, | ||
MatCheckboxModule, | ||
MatDatepickerModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatSelectModule | ||
} from '@angular/material'; | ||
import {CustomHeader, CustomHeaderNgContent, DatepickerDemo} from './datepicker-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatButtonModule, | ||
MatCheckboxModule, | ||
MatDatepickerModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatSelectModule, | ||
ReactiveFormsModule, | ||
], | ||
declarations: [CustomHeader, CustomHeaderNgContent, DatepickerDemo], | ||
entryComponents: [CustomHeader, CustomHeaderNgContent], | ||
}) | ||
export class DatepickerDemoModule { | ||
} |
Oops, something went wrong.