|
5 | 5 | * Use of this source code is governed by an MIT-style license that can be |
6 | 6 | * found in the LICENSE file at https://angular.io/license |
7 | 7 | */ |
| 8 | +import {NgModule, Provider} from '@angular/core'; |
| 9 | +import {Overlay} from './overlay'; |
| 10 | +import {ScrollDispatchModule} from './scroll/index'; |
| 11 | +import {PortalModule} from '../portal/portal-directives'; |
| 12 | +import {ConnectedOverlayDirective, OverlayOrigin} from './overlay-directives'; |
| 13 | +import {OverlayPositionBuilder} from './position/overlay-position-builder'; |
| 14 | +import {VIEWPORT_RULER_PROVIDER} from './position/viewport-ruler'; |
| 15 | +import {OVERLAY_CONTAINER_PROVIDER} from './overlay-container'; |
8 | 16 |
|
9 | | -export {Overlay, OVERLAY_PROVIDERS} from './overlay'; |
| 17 | + |
| 18 | +export const OVERLAY_PROVIDERS: Provider[] = [ |
| 19 | + Overlay, |
| 20 | + OverlayPositionBuilder, |
| 21 | + VIEWPORT_RULER_PROVIDER, |
| 22 | + OVERLAY_CONTAINER_PROVIDER, |
| 23 | +]; |
| 24 | + |
| 25 | +@NgModule({ |
| 26 | + imports: [PortalModule, ScrollDispatchModule], |
| 27 | + exports: [ConnectedOverlayDirective, OverlayOrigin, ScrollDispatchModule], |
| 28 | + declarations: [ConnectedOverlayDirective, OverlayOrigin], |
| 29 | + providers: [OVERLAY_PROVIDERS], |
| 30 | +}) |
| 31 | +export class OverlayModule {} |
| 32 | + |
| 33 | + |
| 34 | +export {Overlay} from './overlay'; |
10 | 35 | export {OverlayContainer} from './overlay-container'; |
11 | 36 | export {FullscreenOverlayContainer} from './fullscreen-overlay-container'; |
12 | 37 | export {OverlayRef} from './overlay-ref'; |
13 | 38 | export {OverlayState} from './overlay-state'; |
14 | | -export {ConnectedOverlayDirective, OverlayOrigin, OverlayModule} from './overlay-directives'; |
| 39 | +export {ConnectedOverlayDirective, OverlayOrigin} from './overlay-directives'; |
15 | 40 | export {ViewportRuler} from './position/viewport-ruler'; |
16 | 41 |
|
17 | 42 | export * from './position/connected-position'; |
|
0 commit comments