2016-08-25 15:18:27 -07:00
|
|
|
import {NgModule, ModuleWithProviders} from '@angular/core';
|
2016-08-08 11:31:47 -07:00
|
|
|
import {MdLineModule} from './line/line';
|
|
|
|
|
import {RtlModule} from './rtl/dir';
|
2016-12-21 01:45:19 +02:00
|
|
|
import {ObserveContentModule} from './observe-content/observe-content';
|
2017-01-06 16:15:32 -08:00
|
|
|
import {MdOptionModule} from './option/option';
|
2016-08-08 11:31:47 -07:00
|
|
|
import {MdRippleModule} from './ripple/ripple';
|
|
|
|
|
import {PortalModule} from './portal/portal-directives';
|
|
|
|
|
import {OverlayModule} from './overlay/overlay-directives';
|
2016-09-29 23:48:42 +01:00
|
|
|
import {A11yModule, A11Y_PROVIDERS} from './a11y/index';
|
|
|
|
|
import {OVERLAY_PROVIDERS} from './overlay/overlay';
|
2016-09-23 20:13:24 -07:00
|
|
|
|
2016-08-08 11:31:47 -07:00
|
|
|
|
2016-03-14 16:50:45 -07:00
|
|
|
// RTL
|
2016-08-08 11:31:47 -07:00
|
|
|
export {Dir, LayoutDirection, RtlModule} from './rtl/dir';
|
2016-03-14 16:50:45 -07:00
|
|
|
|
2016-12-21 01:45:19 +02:00
|
|
|
// Mutation Observer
|
|
|
|
|
export {ObserveContentModule, ObserveContent} from './observe-content/observe-content';
|
|
|
|
|
|
2017-01-06 16:15:32 -08:00
|
|
|
export {MdOptionModule, MdOption} from './option/option';
|
|
|
|
|
|
2016-03-14 16:50:45 -07:00
|
|
|
// Portals
|
2016-06-02 15:51:17 -07:00
|
|
|
export {
|
|
|
|
|
Portal,
|
|
|
|
|
PortalHost,
|
|
|
|
|
BasePortalHost,
|
|
|
|
|
ComponentPortal,
|
|
|
|
|
TemplatePortal
|
|
|
|
|
} from './portal/portal';
|
|
|
|
|
export {
|
|
|
|
|
PortalHostDirective,
|
|
|
|
|
TemplatePortalDirective,
|
2016-08-08 11:31:47 -07:00
|
|
|
PortalModule,
|
2016-06-02 15:51:17 -07:00
|
|
|
} from './portal/portal-directives';
|
|
|
|
|
export {DomPortalHost} from './portal/dom-portal-host';
|
|
|
|
|
|
2016-11-15 20:14:31 -08:00
|
|
|
// Projection
|
|
|
|
|
export * from './projection/projection';
|
|
|
|
|
|
2016-11-30 20:52:02 +01:00
|
|
|
// Platform
|
2016-12-19 10:43:46 -08:00
|
|
|
export * from './platform/index';
|
2016-11-30 20:52:02 +01:00
|
|
|
|
2016-12-20 04:08:35 +02:00
|
|
|
/** @deprecated */
|
|
|
|
|
export {Platform as MdPlatform} from './platform/platform';
|
|
|
|
|
|
2016-06-02 15:51:17 -07:00
|
|
|
// Overlay
|
2016-07-22 13:26:06 -07:00
|
|
|
export {Overlay, OVERLAY_PROVIDERS} from './overlay/overlay';
|
|
|
|
|
export {OverlayContainer} from './overlay/overlay-container';
|
2017-01-11 03:11:55 +03:00
|
|
|
export {FullscreenOverlayContainer} from './overlay/fullscreen-overlay-container';
|
2016-06-02 15:51:17 -07:00
|
|
|
export {OverlayRef} from './overlay/overlay-ref';
|
|
|
|
|
export {OverlayState} from './overlay/overlay-state';
|
|
|
|
|
export {
|
|
|
|
|
ConnectedOverlayDirective,
|
|
|
|
|
OverlayOrigin,
|
2016-08-08 11:31:47 -07:00
|
|
|
OverlayModule,
|
2016-06-02 15:51:17 -07:00
|
|
|
} from './overlay/overlay-directives';
|
2016-09-01 22:04:14 -07:00
|
|
|
export * from './overlay/position/connected-position-strategy';
|
|
|
|
|
export * from './overlay/position/connected-position';
|
2016-12-20 13:42:52 -08:00
|
|
|
export {ScrollDispatcher} from './overlay/scroll/scroll-dispatcher';
|
2016-05-20 15:16:12 -07:00
|
|
|
|
|
|
|
|
// Gestures
|
2016-12-20 04:08:35 +02:00
|
|
|
export {GestureConfig} from './gestures/gesture-config';
|
2017-01-04 20:05:42 +01:00
|
|
|
// Explicitly specify the interfaces which should be re-exported, because if everything
|
|
|
|
|
// is re-exported, module bundlers may run into issues with treeshaking.
|
|
|
|
|
export {HammerInput, HammerManager} from './gestures/gesture-annotations';
|
2016-06-01 13:56:23 -07:00
|
|
|
|
2016-07-25 16:18:00 -04:00
|
|
|
// Ripple
|
2016-08-25 15:18:27 -07:00
|
|
|
export {MdRipple, MdRippleModule} from './ripple/ripple';
|
2016-07-25 16:18:00 -04:00
|
|
|
|
2016-06-02 15:51:17 -07:00
|
|
|
// a11y
|
|
|
|
|
export {
|
|
|
|
|
AriaLivePoliteness,
|
2016-12-20 04:08:35 +02:00
|
|
|
LiveAnnouncer,
|
2016-08-08 11:31:47 -07:00
|
|
|
LIVE_ANNOUNCER_ELEMENT_TOKEN,
|
2016-06-02 15:51:17 -07:00
|
|
|
} from './a11y/live-announcer';
|
2016-06-30 08:32:53 -07:00
|
|
|
|
2016-12-20 04:08:35 +02:00
|
|
|
/** @deprecated */
|
|
|
|
|
export {LiveAnnouncer as MdLiveAnnouncer} from './a11y/live-announcer';
|
|
|
|
|
|
2016-09-23 15:42:03 -07:00
|
|
|
export {FocusTrap} from './a11y/focus-trap';
|
|
|
|
|
export {InteractivityChecker} from './a11y/interactivity-checker';
|
2016-11-08 13:41:27 -08:00
|
|
|
export {isFakeMousedownFromScreenReader} from './a11y/fake-mousedown';
|
2016-09-23 15:42:03 -07:00
|
|
|
|
2016-09-28 15:23:22 +01:00
|
|
|
export {A11yModule} from './a11y/index';
|
|
|
|
|
|
2016-06-30 08:32:53 -07:00
|
|
|
export {
|
2016-12-20 04:08:35 +02:00
|
|
|
UniqueSelectionDispatcher,
|
|
|
|
|
UniqueSelectionDispatcherListener
|
|
|
|
|
} from './coordination/unique-selection-dispatcher';
|
|
|
|
|
|
|
|
|
|
/** @deprecated */
|
|
|
|
|
export {
|
|
|
|
|
UniqueSelectionDispatcher as MdUniqueSelectionDispatcher
|
2016-06-30 08:32:53 -07:00
|
|
|
} from './coordination/unique-selection-dispatcher';
|
2016-08-08 11:31:47 -07:00
|
|
|
|
|
|
|
|
export {MdLineModule, MdLine, MdLineSetter} from './line/line';
|
|
|
|
|
|
2016-09-01 22:04:14 -07:00
|
|
|
// Style
|
|
|
|
|
export {applyCssTransform} from './style/apply-transform';
|
|
|
|
|
|
|
|
|
|
// Error
|
|
|
|
|
export {MdError} from './errors/error';
|
|
|
|
|
|
|
|
|
|
// Misc
|
|
|
|
|
export {ComponentType} from './overlay/generic-component-type';
|
|
|
|
|
|
|
|
|
|
// Keybindings
|
|
|
|
|
export * from './keyboard/keycodes';
|
|
|
|
|
|
2016-12-02 13:32:59 -08:00
|
|
|
export * from './compatibility/default-mode';
|
2016-10-19 14:01:48 -07:00
|
|
|
|
2016-10-18 13:31:56 -07:00
|
|
|
// Animation
|
|
|
|
|
export * from './animation/animation';
|
|
|
|
|
|
2017-01-04 20:05:42 +01:00
|
|
|
// Coercion
|
2016-12-14 03:55:37 +02:00
|
|
|
export {coerceBooleanProperty} from './coercion/boolean-property';
|
|
|
|
|
export {coerceNumberProperty} from './coercion/number-property';
|
2016-10-26 11:40:43 -07:00
|
|
|
|
2016-12-02 13:32:59 -08:00
|
|
|
// Compatibility
|
|
|
|
|
export {DefaultStyleCompatibilityModeModule} from './compatibility/default-mode';
|
|
|
|
|
export {NoConflictStyleCompatibilityMode} from './compatibility/no-conflict-mode';
|
|
|
|
|
|
2016-08-08 11:31:47 -07:00
|
|
|
|
|
|
|
|
@NgModule({
|
2016-12-20 13:42:52 -08:00
|
|
|
imports: [
|
|
|
|
|
MdLineModule,
|
|
|
|
|
RtlModule,
|
|
|
|
|
MdRippleModule,
|
2016-12-21 01:45:19 +02:00
|
|
|
ObserveContentModule,
|
2016-12-20 13:42:52 -08:00
|
|
|
PortalModule,
|
|
|
|
|
OverlayModule,
|
|
|
|
|
A11yModule,
|
2017-01-06 16:15:32 -08:00
|
|
|
MdOptionModule
|
2016-12-20 13:42:52 -08:00
|
|
|
],
|
|
|
|
|
exports: [
|
|
|
|
|
MdLineModule,
|
|
|
|
|
RtlModule,
|
|
|
|
|
MdRippleModule,
|
2016-12-21 01:45:19 +02:00
|
|
|
ObserveContentModule,
|
2016-12-20 13:42:52 -08:00
|
|
|
PortalModule,
|
|
|
|
|
OverlayModule,
|
|
|
|
|
A11yModule,
|
2017-01-06 16:15:32 -08:00
|
|
|
MdOptionModule
|
2016-12-20 13:42:52 -08:00
|
|
|
],
|
2016-08-08 11:31:47 -07:00
|
|
|
})
|
2016-08-25 15:18:27 -07:00
|
|
|
export class MdCoreModule {
|
|
|
|
|
static forRoot(): ModuleWithProviders {
|
|
|
|
|
return {
|
|
|
|
|
ngModule: MdCoreModule,
|
2016-09-29 23:48:42 +01:00
|
|
|
providers: [A11Y_PROVIDERS, OVERLAY_PROVIDERS],
|
2016-08-25 15:18:27 -07:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|