Skip to content

Commit 9422793

Browse files
authored
chore(select): finish scaffolding (#1601)
1 parent c6b4c22 commit 9422793

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

src/lib/core/theming/_all-theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@import '../../progress-bar/progress-bar-theme';
1414
@import '../../progress-circle/progress-circle-theme';
1515
@import '../../radio/radio-theme';
16+
@import '../../select/select-theme';
1617
@import '../../sidenav/sidenav-theme';
1718
@import '../../slide-toggle/slide-toggle-theme';
1819
@import '../../slider/slider-theme';
@@ -37,6 +38,7 @@
3738
@include md-progress-bar-theme($theme);
3839
@include md-progress-circle-theme($theme);
3940
@include md-radio-theme($theme);
41+
@include md-select-theme($theme);
4042
@include md-sidenav-theme($theme);
4143
@include md-slide-toggle-theme($theme);
4244
@include md-slider-theme($theme);

src/lib/select/_select-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import '../core/theming/palette';
2+
@import '../core/theming/theming';
3+
4+
@mixin md-select-theme($theme) {
5+
6+
}

src/lib/select/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import {NgModule, ModuleWithProviders} from '@angular/core';
22
import {MdSelect} from './select';
3+
import {MdOption} from './option';
34
export * from './select';
45

56
@NgModule({
67
imports: [],
7-
exports: [MdSelect],
8-
declarations: [MdSelect],
8+
exports: [MdSelect, MdOption],
9+
declarations: [MdSelect, MdOption],
910
})
1011
export class MdSelectModule {
1112
static forRoot(): ModuleWithProviders {

src/lib/select/option.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import {Component, ViewEncapsulation} from '@angular/core';
2+
3+
@Component({
4+
moduleId: module.id,
5+
selector: 'md-option',
6+
template: ``,
7+
styleUrls: ['select.css'],
8+
encapsulation: ViewEncapsulation.None
9+
})
10+
export class MdOption {}

src/lib/select/select.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {Component, ViewEncapsulation} from '@angular/core';
22

33
@Component({
4-
moduleId: module.id,
5-
selector: 'md-select',
6-
templateUrl: 'select.html',
7-
styleUrls: ['select.css'],
8-
encapsulation: ViewEncapsulation.None
4+
moduleId: module.id,
5+
selector: 'md-select',
6+
templateUrl: 'select.html',
7+
styleUrls: ['select.css'],
8+
encapsulation: ViewEncapsulation.None
99
})
1010
export class MdSelect {}

0 commit comments

Comments
 (0)