-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(autocomplete): add autocomplete scaffold (#2092)
- Loading branch information
Showing
17 changed files
with
94 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="demo-autocomplete"> | ||
<md-autocomplete></md-autocomplete> | ||
</div> |
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 @@ | ||
.demo-autocomplete {} |
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,9 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'autocomplete-demo', | ||
templateUrl: 'autocomplete-demo.html', | ||
styleUrls: ['autocomplete-demo.css'], | ||
}) | ||
export class AutocompleteDemo {} |
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,5 @@ | ||
|
||
## Not yet implemented! | ||
|
||
The autocomplete is not yet implemented. This is only a scaffold to make | ||
subsequent PRs easier to read. Please do not try to use yet :) |
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,5 @@ | ||
@import '../core/theming/theming'; | ||
|
||
@mixin md-autocomplete-theme($theme) { | ||
|
||
} |
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 @@ | ||
I'm an autocomplete! |
Empty file.
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,29 @@ | ||
import {TestBed, async} from '@angular/core/testing'; | ||
import {Component} from '@angular/core'; | ||
import {MdAutocompleteModule} from './index'; | ||
|
||
describe('MdAutocomplete', () => { | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [MdAutocompleteModule.forRoot()], | ||
declarations: [SimpleAutocomplete], | ||
providers: [] | ||
}); | ||
|
||
TestBed.compileComponents(); | ||
})); | ||
|
||
it('should have a test', () => { | ||
expect(true).toBe(true); | ||
}); | ||
|
||
}); | ||
|
||
@Component({ | ||
template: ` | ||
<md-autocomplete></md-autocomplete> | ||
` | ||
}) | ||
class SimpleAutocomplete {} | ||
|
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,11 @@ | ||
import {Component, ViewEncapsulation} from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'md-autocomplete, mat-autocomplete', | ||
templateUrl: 'autocomplete.html', | ||
styleUrls: ['autocomplete.css'], | ||
encapsulation: ViewEncapsulation.None, | ||
}) | ||
export class MdAutocomplete {} | ||
|
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,18 @@ | ||
import {ModuleWithProviders, NgModule} from '@angular/core'; | ||
import {DefaultStyleCompatibilityModeModule} from '../core'; | ||
import {MdAutocomplete} from './autocomplete'; | ||
export * from './autocomplete'; | ||
|
||
@NgModule({ | ||
imports: [DefaultStyleCompatibilityModeModule], | ||
exports: [MdAutocomplete, DefaultStyleCompatibilityModeModule], | ||
declarations: [MdAutocomplete], | ||
}) | ||
export class MdAutocompleteModule { | ||
static forRoot(): ModuleWithProviders { | ||
return { | ||
ngModule: MdAutocompleteModule, | ||
providers: [] | ||
}; | ||
} | ||
} |
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