Skip to content

Commit a70e3e5

Browse files
committed
optimize imports
1 parent 710890e commit a70e3e5

File tree

8 files changed

+14
-36
lines changed

8 files changed

+14
-36
lines changed

src/lib/button-toggle/button-toggle.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,9 @@ import {
1515
forwardRef,
1616
AfterViewInit
1717
} from '@angular/core';
18-
import {
19-
NG_VALUE_ACCESSOR,
20-
ControlValueAccessor,
21-
FormsModule,
22-
} from '@angular/forms';
18+
import {NG_VALUE_ACCESSOR, ControlValueAccessor, FormsModule} from '@angular/forms';
2319
import {Observable} from 'rxjs/Observable';
24-
import {MdUniqueSelectionDispatcher} from '../core';
25-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
20+
import {MdUniqueSelectionDispatcher, coerceBooleanProperty} from '../core';
2621

2722
export type ToggleType = 'checkbox' | 'radio';
2823

src/lib/button/button.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import {
1010
ModuleWithProviders,
1111
} from '@angular/core';
1212
import {CommonModule} from '@angular/common';
13-
import {MdRippleModule} from '../core';
14-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
13+
import {MdRippleModule, coerceBooleanProperty} from '../core';
1514

1615
// TODO(jelbourn): Make the `isMouseDown` stuff done with one global listener.
1716
// TODO(kara): Convert attribute selectors to classes when attr maps become available

src/lib/core/core.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ export {ComponentType} from './overlay/generic-component-type';
6969
// Keybindings
7070
export * from './keyboard/keycodes';
7171

72+
// Coersion
73+
export {coerceBooleanProperty} from './coersion/boolean-property';
74+
7275

7376
@NgModule({
7477
imports: [MdLineModule, RtlModule, MdRippleModule, PortalModule, OverlayModule],

src/lib/input/input.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ import {
1818
ModuleWithProviders,
1919
ViewEncapsulation,
2020
} from '@angular/core';
21-
import {
22-
NG_VALUE_ACCESSOR,
23-
ControlValueAccessor,
24-
FormsModule,
25-
} from '@angular/forms';
21+
import {NG_VALUE_ACCESSOR, ControlValueAccessor, FormsModule} from '@angular/forms';
2622
import {CommonModule} from '@angular/common';
27-
import {MdError} from '../core';
23+
import {MdError, coerceBooleanProperty} from '../core';
2824
import {Observable} from 'rxjs/Observable';
29-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
3025

3126

3227
const noop = () => {};

src/lib/sidenav/sidenav.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import {
1616
ViewEncapsulation,
1717
} from '@angular/core';
1818
import {CommonModule} from '@angular/common';
19-
import {Dir, MdError} from '../core';
20-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
19+
import {Dir, MdError, coerceBooleanProperty} from '../core';
2120

2221

2322
/** Exception thrown when two MdSidenav are matching the same side. */

src/lib/slide-toggle/slide-toggle.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@ import {
1212
ModuleWithProviders,
1313
} from '@angular/core';
1414
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
15-
import {
16-
FormsModule,
17-
ControlValueAccessor,
18-
NG_VALUE_ACCESSOR
19-
} from '@angular/forms';
20-
import {applyCssTransform} from '../core';
15+
import {FormsModule, ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
16+
import {applyCssTransform, coerceBooleanProperty, MdGestureConfig} from '../core';
2117
import {Observable} from 'rxjs/Observable';
22-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
23-
import {MdGestureConfig} from '../core';
2418

2519

2620
export const MD_SLIDE_TOGGLE_VALUE_ACCESSOR: any = {

src/lib/slider/slider.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@ import {
99
AfterContentInit,
1010
forwardRef,
1111
} from '@angular/core';
12-
import {
13-
NG_VALUE_ACCESSOR,
14-
ControlValueAccessor,
15-
FormsModule,
16-
} from '@angular/forms';
12+
import {NG_VALUE_ACCESSOR, ControlValueAccessor, FormsModule} from '@angular/forms';
1713
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
18-
import {MdGestureConfig, applyCssTransform} from '../core';
14+
import {MdGestureConfig, applyCssTransform, coerceBooleanProperty} from '../core';
1915
import {Input as HammerInput} from 'hammerjs';
20-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
2116

2217
/**
2318
* Visually, a 30px separation between tick marks looks best. This is very subjective but it is

src/lib/tabs/tabs.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ import {
1313
ContentChildren
1414
} from '@angular/core';
1515
import {CommonModule} from '@angular/common';
16-
import {PortalModule} from '../core';
16+
import {PortalModule, RIGHT_ARROW, LEFT_ARROW, ENTER, coerceBooleanProperty} from '../core';
1717
import {MdTabLabel} from './tab-label';
1818
import {MdTabContent} from './tab-content';
1919
import {MdTabLabelWrapper} from './tab-label-wrapper';
2020
import {MdInkBar} from './ink-bar';
2121
import {Observable} from 'rxjs/Observable';
2222
import 'rxjs/add/operator/map';
23-
import {RIGHT_ARROW, LEFT_ARROW, ENTER} from '../core';
24-
import {coerceBooleanProperty} from '../core/coersion/boolean-property';
2523

2624

2725
/** Used to generate unique ID's for each tab component */

0 commit comments

Comments
 (0)