File tree Expand file tree Collapse file tree 4 files changed +9
-11
lines changed
tools/public_api_guard/cdk Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 24
24
" src/cdk/drag-drop/drag-ref.ts" ,
25
25
" src/cdk/drag-drop/drop-list-ref.ts"
26
26
],
27
- [
28
- " src/cdk/overlay/keyboard/overlay-keyboard-dispatcher.ts" ,
29
- " src/cdk/overlay/overlay-ref.ts"
30
- ],
31
27
[
32
28
" src/cdk/schematics/testing/index.ts" ,
33
29
" src/cdk/schematics/testing/test-case-setup.ts"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
15
15
Optional ,
16
16
SkipSelf ,
17
17
} from '@angular/core' ;
18
- import { OverlayRef } from '../overlay-ref ' ;
18
+ import { OverlayReference } from '../overlay-reference ' ;
19
19
20
20
21
21
/**
@@ -27,7 +27,7 @@ import {OverlayRef} from '../overlay-ref';
27
27
export class OverlayKeyboardDispatcher implements OnDestroy {
28
28
29
29
/** Currently attached overlays in the order they were attached. */
30
- _attachedOverlays : OverlayRef [ ] = [ ] ;
30
+ _attachedOverlays : OverlayReference [ ] = [ ] ;
31
31
32
32
private _document : Document ;
33
33
private _isAttached : boolean ;
@@ -41,7 +41,7 @@ export class OverlayKeyboardDispatcher implements OnDestroy {
41
41
}
42
42
43
43
/** Add a new overlay to the list of attached overlay refs. */
44
- add ( overlayRef : OverlayRef ) : void {
44
+ add ( overlayRef : OverlayReference ) : void {
45
45
// Ensure that we don't get the same overlay multiple times.
46
46
this . remove ( overlayRef ) ;
47
47
@@ -55,7 +55,7 @@ export class OverlayKeyboardDispatcher implements OnDestroy {
55
55
}
56
56
57
57
/** Remove an overlay from the list of attached overlay refs. */
58
- remove ( overlayRef : OverlayRef ) : void {
58
+ remove ( overlayRef : OverlayReference ) : void {
59
59
const index = this . _attachedOverlays . indexOf ( overlayRef ) ;
60
60
61
61
if ( index > - 1 ) {
Original file line number Diff line number Diff line change 8
8
9
9
import { Portal } from '@angular/cdk/portal' ;
10
10
import { Direction , Directionality } from '@angular/cdk/bidi' ;
11
+ import { Subject } from 'rxjs' ;
11
12
12
13
/**
13
14
* Basic interface for an overlay. Used to avoid circular type references between
@@ -26,4 +27,5 @@ export interface OverlayReference {
26
27
updatePosition : ( ) => void ;
27
28
getDirection : ( ) => Direction ;
28
29
setDirection : ( dir : Direction | Directionality ) => void ;
30
+ _keydownEvents : Subject < KeyboardEvent > ;
29
31
}
Original file line number Diff line number Diff line change @@ -236,11 +236,11 @@ export declare class OverlayContainer implements OnDestroy {
236
236
}
237
237
238
238
export declare class OverlayKeyboardDispatcher implements OnDestroy {
239
- _attachedOverlays : OverlayRef [ ] ;
239
+ _attachedOverlays : OverlayReference [ ] ;
240
240
constructor ( document : any ) ;
241
- add ( overlayRef : OverlayRef ) : void ;
241
+ add ( overlayRef : OverlayReference ) : void ;
242
242
ngOnDestroy ( ) : void ;
243
- remove ( overlayRef : OverlayRef ) : void ;
243
+ remove ( overlayRef : OverlayReference ) : void ;
244
244
static ɵfac : i0 . ɵɵFactoryDef < OverlayKeyboardDispatcher , never > ;
245
245
static ɵprov : i0 . ɵɵInjectableDef < OverlayKeyboardDispatcher > ;
246
246
}
You can’t perform that action at this time.
0 commit comments