|
| 1 | +/** |
| 2 | + * @license |
| 3 | + * Copyright Google Inc. All Rights Reserved. |
| 4 | + * |
| 5 | + * Use of this source code is governed by an MIT-style license that can be |
| 6 | + * found in the LICENSE file at https://angular.io/license |
| 7 | + */ |
| 8 | + |
| 9 | +import {NgModule} from '@angular/core'; |
| 10 | +import {A11yModule} from '@angular/cdk/a11y'; |
| 11 | +import {BidiModule} from '@angular/cdk/bidi'; |
| 12 | +import {ObserversModule} from '@angular/cdk/observers'; |
| 13 | +import {OverlayModule} from '@angular/cdk/overlay'; |
| 14 | +import {PortalModule} from '@angular/cdk/portal'; |
| 15 | +import {MdLineModule} from './line/line'; |
| 16 | +import {MdOptionModule} from './option/index'; |
| 17 | +import {MdPseudoCheckboxModule} from './selection/index'; |
| 18 | +import {MdRippleModule} from './ripple/index'; |
| 19 | + |
| 20 | +// Re-exports of the CDK to avoid breaking changes. |
| 21 | +export { |
| 22 | + coerceBooleanProperty, |
| 23 | + coerceNumberProperty, |
| 24 | +} from '@angular/cdk/coercion'; |
| 25 | + |
| 26 | +export { |
| 27 | + ObserversModule, |
| 28 | + ObserveContent, |
| 29 | +} from '@angular/cdk/observers'; |
| 30 | + |
| 31 | +export { |
| 32 | + SelectionModel |
| 33 | +} from '@angular/cdk/collections'; |
| 34 | + |
| 35 | +// RTL |
| 36 | +export {Dir, Direction, Directionality, BidiModule} from './bidi/index'; |
| 37 | + |
| 38 | +export * from './option/index'; |
| 39 | + |
| 40 | +// Portals |
| 41 | +export { |
| 42 | + Portal, |
| 43 | + PortalHost, |
| 44 | + BasePortalHost, |
| 45 | + ComponentPortal, |
| 46 | + TemplatePortal |
| 47 | +} from './portal/portal'; |
| 48 | +export { |
| 49 | + PortalHostDirective, |
| 50 | + TemplatePortalDirective, |
| 51 | + PortalModule, |
| 52 | +} from './portal/portal-directives'; |
| 53 | +export {DomPortalHost} from './portal/dom-portal-host'; |
| 54 | + |
| 55 | +// Platform |
| 56 | +export * from '@angular/cdk/platform'; |
| 57 | + |
| 58 | +// Overlay |
| 59 | +export * from '@angular/cdk/overlay'; |
| 60 | + |
| 61 | +// Gestures |
| 62 | +export {GestureConfig} from './gestures/gesture-config'; |
| 63 | +// Explicitly specify the interfaces which should be re-exported, because if everything |
| 64 | +// is re-exported, module bundlers may run into issues with treeshaking. |
| 65 | +export {HammerInput, HammerManager} from './gestures/gesture-annotations'; |
| 66 | + |
| 67 | +// Ripple |
| 68 | +export * from './ripple/index'; |
| 69 | + |
| 70 | +// a11y |
| 71 | +export { |
| 72 | + AriaLivePoliteness, |
| 73 | + LiveAnnouncer, |
| 74 | + LIVE_ANNOUNCER_ELEMENT_TOKEN, |
| 75 | + LIVE_ANNOUNCER_PROVIDER, |
| 76 | + InteractivityChecker, |
| 77 | + FocusTrap, |
| 78 | + FocusTrapFactory, |
| 79 | + FocusTrapDeprecatedDirective, |
| 80 | + FocusTrapDirective, |
| 81 | + isFakeMousedownFromScreenReader, |
| 82 | + A11yModule, |
| 83 | +} from '@angular/cdk/a11y'; |
| 84 | + |
| 85 | +export {MdLineModule, MdLine, MdLineSetter} from './line/line'; |
| 86 | + |
| 87 | +// Style |
| 88 | +export * from './style/index'; |
| 89 | + |
| 90 | +// Keybindings |
| 91 | +export * from './keyboard/keycodes'; |
| 92 | + |
| 93 | +export * from './compatibility/compatibility'; |
| 94 | + |
| 95 | +// Animation |
| 96 | +export * from './animation/animation'; |
| 97 | + |
| 98 | +// Selection |
| 99 | +export * from './selection/index'; |
| 100 | + |
| 101 | +// Compatibility |
| 102 | +export {CompatibilityModule, NoConflictStyleCompatibilityMode} from './compatibility/compatibility'; |
| 103 | + |
| 104 | +// Common material module |
| 105 | +export {MdCommonModule, MATERIAL_SANITY_CHECKS} from './common-behaviors/common-module'; |
| 106 | + |
| 107 | +// Datetime |
| 108 | +export * from './datetime/index'; |
| 109 | + |
| 110 | +// Placeholder |
| 111 | +export { |
| 112 | + FloatPlaceholderType, |
| 113 | + PlaceholderOptions, |
| 114 | + MD_PLACEHOLDER_GLOBAL_OPTIONS |
| 115 | +} from './placeholder/placeholder-options'; |
| 116 | + |
| 117 | +// Error |
| 118 | +export { |
| 119 | + ErrorStateMatcher, |
| 120 | + ErrorOptions, |
| 121 | + MD_ERROR_GLOBAL_OPTIONS, |
| 122 | + defaultErrorStateMatcher, |
| 123 | + showOnDirtyErrorStateMatcher |
| 124 | +} from './error/error-options'; |
| 125 | + |
| 126 | +/** @deprecated */ |
| 127 | +@NgModule({ |
| 128 | + imports: [ |
| 129 | + MdLineModule, |
| 130 | + BidiModule, |
| 131 | + MdRippleModule, |
| 132 | + ObserversModule, |
| 133 | + PortalModule, |
| 134 | + OverlayModule, |
| 135 | + A11yModule, |
| 136 | + MdOptionModule, |
| 137 | + MdPseudoCheckboxModule, |
| 138 | + ], |
| 139 | + exports: [ |
| 140 | + MdLineModule, |
| 141 | + BidiModule, |
| 142 | + MdRippleModule, |
| 143 | + ObserversModule, |
| 144 | + PortalModule, |
| 145 | + OverlayModule, |
| 146 | + A11yModule, |
| 147 | + MdOptionModule, |
| 148 | + MdPseudoCheckboxModule, |
| 149 | + ], |
| 150 | +}) |
| 151 | +export class MdCoreModule {} |
0 commit comments