Skip to content

Commit bc9f71c

Browse files
committed
chore: linting errors
1 parent 0ae498b commit bc9f71c

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

src/cdk/a11y/tsconfig-build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../tsconfig-build",
33
"files": [
4-
"public-api.ts"
4+
"public-api.ts",
5+
"../typings.d.ts"
56
],
67
"angularCompilerOptions": {
78
"annotateForClosureCompiler": true,

src/cdk/overlay/backdrop.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright Google Inc. All Rights Reserved.
3+
* Copyright Google LLC All Rights Reserved.
44
*
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
@@ -22,6 +22,7 @@ import {Subject} from 'rxjs/Subject';
2222
* @docs-private
2323
*/
2424
@Component({
25+
moduleId: module.id,
2526
template: '',
2627
host: {
2728
'class': 'cdk-overlay-backdrop',
@@ -38,8 +39,9 @@ import {Subject} from 'rxjs/Subject';
3839
],
3940
changeDetection: ChangeDetectionStrategy.OnPush,
4041
encapsulation: ViewEncapsulation.None,
42+
preserveWhitespaces: false,
4143
})
42-
export class MatBackdrop implements OnDestroy {
44+
export class CdkOverlayBackdrop implements OnDestroy {
4345
_animationState = 'visible';
4446
_clickStream = new Subject<void>();
4547
_animationStream = new Subject<AnimationEvent>();

src/cdk/overlay/overlay-module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
import {OverlayPositionBuilder} from './position/overlay-position-builder';
2121
import {OVERLAY_KEYBOARD_DISPATCHER_PROVIDER} from './keyboard/overlay-keyboard-dispatcher';
2222
import {ScrollStrategyOptions} from './scroll/scroll-strategy-options';
23-
import {MatBackdrop} from './backdrop';
23+
import {CdkOverlayBackdrop} from './backdrop';
2424

2525
export const OVERLAY_PROVIDERS: Provider[] = [
2626
Overlay,
@@ -33,9 +33,9 @@ export const OVERLAY_PROVIDERS: Provider[] = [
3333

3434
@NgModule({
3535
imports: [BidiModule, PortalModule, ScrollDispatchModule],
36-
exports: [CdkConnectedOverlay, CdkOverlayOrigin, MatBackdrop, ScrollDispatchModule],
37-
declarations: [CdkConnectedOverlay, CdkOverlayOrigin, MatBackdrop],
36+
exports: [CdkConnectedOverlay, CdkOverlayOrigin, CdkOverlayBackdrop, ScrollDispatchModule],
37+
declarations: [CdkConnectedOverlay, CdkOverlayOrigin, CdkOverlayBackdrop],
3838
providers: [OVERLAY_PROVIDERS, ScrollStrategyOptions],
39-
entryComponents: [MatBackdrop],
39+
entryComponents: [CdkOverlayBackdrop],
4040
})
4141
export class OverlayModule {}

src/cdk/overlay/overlay-ref.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {OverlayConfig} from './overlay-config';
1212
import {OverlayKeyboardDispatcher} from './keyboard/overlay-keyboard-dispatcher';
1313
import {Observable} from 'rxjs/Observable';
1414
import {Subject} from 'rxjs/Subject';
15-
import {MatBackdrop} from './backdrop';
15+
import {CdkOverlayBackdrop} from './backdrop';
1616
import {ComponentPortal} from '@angular/cdk/portal';
1717
import {first} from 'rxjs/operators/first';
1818
import {empty} from 'rxjs/observable/empty';
@@ -22,11 +22,10 @@ import {empty} from 'rxjs/observable/empty';
2222
* Used to manipulate or dispose of said overlay.
2323
*/
2424
export class OverlayRef implements PortalOutlet {
25-
private _backdropElement: HTMLElement | null = null;
2625
private _backdropClick: Subject<any> = new Subject();
2726
private _attachments = new Subject<void>();
2827
private _detachments = new Subject<void>();
29-
private _backdropInstance: MatBackdrop | null;
28+
private _backdropInstance: CdkOverlayBackdrop | null;
3029

3130
/** Stream of keydown events dispatched to this overlay. */
3231
_keydownEvents = new Subject<KeyboardEvent>();
@@ -81,7 +80,8 @@ export class OverlayRef implements PortalOutlet {
8180
this._togglePointerEvents(true);
8281

8382
if (this._backdropHost) {
84-
this._backdropInstance = this._backdropHost.attach(new ComponentPortal(MatBackdrop)).instance;
83+
this._backdropInstance =
84+
this._backdropHost.attach(new ComponentPortal(CdkOverlayBackdrop)).instance;
8585
this._backdropInstance!._setClass(this._config.backdropClass!);
8686
}
8787

src/cdk/overlay/tsconfig-build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../tsconfig-build",
33
"files": [
4-
"public-api.ts"
4+
"public-api.ts",
5+
"../typings.d.ts"
56
],
67
"angularCompilerOptions": {
78
"annotateForClosureCompiler": true,

0 commit comments

Comments
 (0)