@angular/cdk 16.0.0-next.3 → 16.0.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/cdk.mjs CHANGED
@@ -8,7 +8,7 @@ import { Version } from '@angular/core';
8
8
  * found in the LICENSE file at https://angular.io/license
9
9
  */
10
10
  /** Current version of the Angular Component Development Kit. */
11
- const VERSION = new Version('16.0.0-next.3');
11
+ const VERSION = new Version('16.0.0-next.4');
12
12
 
13
13
  /**
14
14
  * @license
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.mjs","sources":["../../../../../../src/cdk/version.ts","../../../../../../src/cdk/public-api.ts","../../../../../../src/cdk/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('16.0.0-next.3');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './version';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;AAMG;AAIH;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;;;AAMG;;ACNH;;;;;;AAMG;;;;"}
1
+ {"version":3,"file":"cdk.mjs","sources":["../../../../../../src/cdk/version.ts","../../../../../../src/cdk/public-api.ts","../../../../../../src/cdk/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('16.0.0-next.4');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './version';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;AAMG;AAIH;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;;;AAMG;;ACNH;;;;;;AAMG;;;;"}
@@ -8,11 +8,11 @@ import { Injectable, Inject, Optional, ElementRef, ApplicationRef, ANIMATION_MOD
8
8
  import { coerceCssPixelValue, coerceArray, coerceBooleanProperty } from '@angular/cdk/coercion';
9
9
  import * as i1$1 from '@angular/cdk/platform';
10
10
  import { supportsScrollBehavior, _getEventTarget, _isTestEnvironment } from '@angular/cdk/platform';
11
+ import { filter, take, takeUntil, takeWhile } from 'rxjs/operators';
11
12
  import * as i5 from '@angular/cdk/bidi';
12
13
  import { BidiModule } from '@angular/cdk/bidi';
13
14
  import { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';
14
15
  import { Subject, Subscription, merge } from 'rxjs';
15
- import { take, takeUntil, takeWhile } from 'rxjs/operators';
16
16
  import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
17
17
 
18
18
  /**
@@ -137,7 +137,10 @@ class CloseScrollStrategy {
137
137
  if (this._scrollSubscription) {
138
138
  return;
139
139
  }
140
- const stream = this._scrollDispatcher.scrolled(0);
140
+ const stream = this._scrollDispatcher.scrolled(0).pipe(filter(scrollable => {
141
+ return (!scrollable ||
142
+ !this._overlayRef.overlayElement.contains(scrollable.getElementRef().nativeElement));
143
+ }));
141
144
  if (this._config && this._config.threshold && this._config.threshold > 1) {
142
145
  this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;
143
146
  this._scrollSubscription = stream.subscribe(() => {