File tree Expand file tree Collapse file tree 6 files changed +12
-11
lines changed Expand file tree Collapse file tree 6 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 17
17
"deploy" : " firebase deploy" ,
18
18
"webdriver-manager" : " webdriver-manager"
19
19
},
20
- "version" : " 2.0.0-alpha.9" ,
20
+ "version" : " 2.0.0-alpha.9-2 " ,
21
21
"license" : " MIT" ,
22
22
"engines" : {
23
23
"node" : " >= 4.2.1 < 5"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export {FocusTrap} from './focus-trap';
7
7
export { MdLiveAnnouncer } from './live-announcer' ;
8
8
export { InteractivityChecker } from './interactivity-checker' ;
9
9
10
+ export const A11Y_PROVIDERS = [ MdLiveAnnouncer , InteractivityChecker ] ;
10
11
11
12
@NgModule ( {
12
13
declarations : [ FocusTrap ] ,
@@ -16,7 +17,7 @@ export class A11yModule {
16
17
static forRoot ( ) : ModuleWithProviders {
17
18
return {
18
19
ngModule : A11yModule ,
19
- providers : [ MdLiveAnnouncer , InteractivityChecker ] ,
20
+ providers : A11Y_PROVIDERS ,
20
21
} ;
21
22
}
22
23
}
Original file line number Diff line number Diff line change
1
+ import { Injectable } from '@angular/core' ;
2
+
1
3
/**
2
4
* Utility for checking the interactivity of an element, such as whether is is focusable or
3
5
* tabbable.
11
13
* TODO(jelbourn): explore using ally.js directly for its significantly more robust
12
14
* checks (need to evaluate payload size, performance, and compatibility with tree-shaking).
13
15
*/
16
+ @Injectable ( )
14
17
export class InteractivityChecker {
15
18
16
19
/** Gets whether an element is disabled. */
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import {RtlModule} from './rtl/dir';
4
4
import { MdRippleModule } from './ripple/ripple' ;
5
5
import { PortalModule } from './portal/portal-directives' ;
6
6
import { OverlayModule } from './overlay/overlay-directives' ;
7
- import { A11yModule } from './a11y/index' ;
8
- import { MdLiveAnnouncer } from './a11y/live-announcer' ;
9
- import { InteractivityChecker } from './a11y/interactivity-checker' ;
7
+ import { A11yModule , A11Y_PROVIDERS } from './a11y/index' ;
8
+ import { OVERLAY_PROVIDERS } from './overlay/overlay' ;
10
9
11
10
12
11
// RTL
@@ -89,7 +88,7 @@ export class MdCoreModule {
89
88
static forRoot ( ) : ModuleWithProviders {
90
89
return {
91
90
ngModule : MdCoreModule ,
92
- providers : [ MdLiveAnnouncer , InteractivityChecker ] ,
91
+ providers : [ A11Y_PROVIDERS , OVERLAY_PROVIDERS ] ,
93
92
} ;
94
93
}
95
94
}
Original file line number Diff line number Diff line change 1
1
import { NgModule , ModuleWithProviders } from '@angular/core' ;
2
2
3
3
import {
4
- MdLiveAnnouncer ,
5
4
MdRippleModule ,
6
5
RtlModule ,
7
6
PortalModule ,
8
- OverlayModule
7
+ OverlayModule ,
8
+ A11yModule ,
9
9
} from './core/index' ;
10
10
11
11
import { MdButtonToggleModule } from './button-toggle/index' ;
@@ -29,7 +29,6 @@ import {MdToolbarModule} from './toolbar/index';
29
29
import { MdTooltipModule } from './tooltip/index' ;
30
30
import { MdMenuModule } from './menu/index' ;
31
31
import { MdDialogModule } from './dialog/index' ;
32
- import { A11yModule } from './core/a11y/index' ;
33
32
34
33
35
34
const MATERIAL_MODULES = [
@@ -93,7 +92,6 @@ const MATERIAL_MODULES = [
93
92
OverlayModule . forRoot ( ) ,
94
93
] ,
95
94
exports : MATERIAL_MODULES ,
96
- providers : [ MdLiveAnnouncer ]
97
95
} )
98
96
export class MaterialRootModule { }
99
97
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular/material" ,
3
- "version" : " 2.0.0-alpha.9" ,
3
+ "version" : " 2.0.0-alpha.9-2 " ,
4
4
"description" : " Angular 2 Material" ,
5
5
"main" : " ./material.umd.js" ,
6
6
"module" : " ./index.js" ,
You can’t perform that action at this time.
0 commit comments