-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cdk): move overlay into cdk (#6100)
- Loading branch information
Showing
110 changed files
with
554 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
export * from './public_api'; |
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
...b/core/overlay/overlay-directives.spec.ts → src/cdk/overlay/overlay-directives.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import './overlay'; | ||
|
||
@include cdk-overlay(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 10 additions & 6 deletions
16
src/lib/core/overlay/overlay.spec.ts → src/cdk/overlay/overlay.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...e/overlay/position/viewport-ruler.spec.ts → ...k/overlay/position/viewport-ruler.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import {NgModule, Provider} from '@angular/core'; | ||
import {PortalModule} from '@angular/cdk/portal'; | ||
import {Overlay} from './overlay'; | ||
import {ScrollDispatchModule} from './scroll/index'; | ||
import { | ||
ConnectedOverlayDirective, | ||
OverlayOrigin, | ||
MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER, | ||
} from './overlay-directives'; | ||
import {OverlayPositionBuilder} from './position/overlay-position-builder'; | ||
import {VIEWPORT_RULER_PROVIDER} from './position/viewport-ruler'; | ||
import {OVERLAY_CONTAINER_PROVIDER} from './overlay-container'; | ||
|
||
|
||
export const OVERLAY_PROVIDERS: Provider[] = [ | ||
Overlay, | ||
OverlayPositionBuilder, | ||
VIEWPORT_RULER_PROVIDER, | ||
OVERLAY_CONTAINER_PROVIDER, | ||
MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [PortalModule, ScrollDispatchModule], | ||
exports: [ConnectedOverlayDirective, OverlayOrigin, ScrollDispatchModule], | ||
declarations: [ConnectedOverlayDirective, OverlayOrigin], | ||
providers: [OVERLAY_PROVIDERS], | ||
}) | ||
export class OverlayModule {} | ||
|
||
|
||
export {Overlay} from './overlay'; | ||
export {OverlayContainer} from './overlay-container'; | ||
export {FullscreenOverlayContainer} from './fullscreen-overlay-container'; | ||
export {OverlayRef} from './overlay-ref'; | ||
export {OverlayState} from './overlay-state'; | ||
export {ConnectedOverlayDirective, OverlayOrigin} from './overlay-directives'; | ||
export {ViewportRuler} from './position/viewport-ruler'; | ||
export {ComponentType} from '@angular/cdk/portal'; | ||
|
||
export * from './position/connected-position'; | ||
export * from './scroll/index'; | ||
|
||
// Export pre-defined position strategies and interface to build custom ones. | ||
export {PositionStrategy} from './position/position-strategy'; | ||
export {GlobalPositionStrategy} from './position/global-position-strategy'; | ||
export {ConnectedPositionStrategy} from './position/connected-position-strategy'; | ||
export {VIEWPORT_RULER_PROVIDER} from './position/viewport-ruler'; |
7 changes: 3 additions & 4 deletions
7
...rlay/scroll/block-scroll-strategy.spec.ts → ...rlay/scroll/block-scroll-strategy.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
5 changes: 2 additions & 3 deletions
5
...rlay/scroll/close-scroll-strategy.spec.ts → ...rlay/scroll/close-scroll-strategy.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
15 changes: 7 additions & 8 deletions
15
...scroll/reposition-scroll-strategy.spec.ts → ...scroll/reposition-scroll-strategy.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../overlay/scroll/scroll-dispatcher.spec.ts → .../overlay/scroll/scroll-dispatcher.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "../tsconfig-build", | ||
"files": [ | ||
"public_api.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"annotateForClosureCompiler": true, | ||
"strictMetadataEmit": true, | ||
"flatModuleOutFile": "index.js", | ||
"flatModuleId": "@angular/cdk/overlay", | ||
"skipTemplateCodegen": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.