-
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.
feat(material-experimental): initial prototype of mdc-form-fie… (#17903)
* feat(material-experimental): initial prototype of mdc-form-field Initial prototype of form-field based on MDC text-field. * fixup! feat(material-experimental): initial prototype of mdc-form-field Address feedback * Use MDC text-field variables as much as possible. * fixup! fixup! feat(material-experimental): initial prototype of mdc-form-field Address feedback 2 * fixup! feat(material-experimental): initial prototype of mdc-form-field Address feedback
- Loading branch information
1 parent
935bb39
commit 697c3a0
Showing
54 changed files
with
4,004 additions
and
11 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
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
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,34 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
load("//tools:defaults.bzl", "ng_module", "sass_binary") | ||
|
||
ng_module( | ||
name = "mdc-input", | ||
srcs = glob(["**/*.ts"]), | ||
assets = [ | ||
":mdc_input_demo_scss", | ||
"mdc-input-demo.html", | ||
], | ||
deps = [ | ||
"//src/material-experimental/mdc-form-field", | ||
"//src/material-experimental/mdc-input", | ||
"//src/material/autocomplete", | ||
"//src/material/button", | ||
"//src/material/button-toggle", | ||
"//src/material/card", | ||
"//src/material/checkbox", | ||
"//src/material/icon", | ||
"//src/material/tabs", | ||
"//src/material/toolbar", | ||
"@npm//@angular/forms", | ||
"@npm//@angular/router", | ||
], | ||
) | ||
|
||
sass_binary( | ||
name = "mdc_input_demo_scss", | ||
src = "mdc-input-demo.scss", | ||
deps = [ | ||
"//src/cdk/text-field:text_field_scss_lib", | ||
], | ||
) |
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,44 @@ | ||
/** | ||
* @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 {MatFormFieldModule} from '@angular/material-experimental/mdc-form-field'; | ||
import {MatInputModule} from '@angular/material-experimental/mdc-input'; | ||
import {MatAutocompleteModule} from '@angular/material/autocomplete'; | ||
import {MatButtonModule} from '@angular/material/button'; | ||
import {MatButtonToggleModule} from '@angular/material/button-toggle'; | ||
import {MatCardModule} from '@angular/material/card'; | ||
import {MatCheckboxModule} from '@angular/material/checkbox'; | ||
import {MatIconModule} from '@angular/material/icon'; | ||
import {MatTabsModule} from '@angular/material/tabs'; | ||
import {MatToolbarModule} from '@angular/material/toolbar'; | ||
import {RouterModule} from '@angular/router'; | ||
import {MdcInputDemo} from './mdc-input-demo'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
MatAutocompleteModule, | ||
MatButtonModule, | ||
MatButtonToggleModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatFormFieldModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatTabsModule, | ||
MatToolbarModule, | ||
ReactiveFormsModule, | ||
RouterModule.forChild([{path: '', component: MdcInputDemo}]), | ||
], | ||
declarations: [MdcInputDemo], | ||
}) | ||
export class MdcInputDemoModule {} |
Oops, something went wrong.