@angular/cdk 9.2.3 → 9.2.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.
Files changed (55) hide show
  1. package/_text-field.scss +19 -4
  2. package/a11y/index.metadata.json +1 -1
  3. package/bundles/cdk-a11y.umd.js +8 -3
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +1 -1
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-overlay.umd.js +2 -12
  8. package/bundles/cdk-overlay.umd.js.map +1 -1
  9. package/bundles/cdk-overlay.umd.min.js +2 -2
  10. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  11. package/bundles/cdk-text-field.umd.js +7 -4
  12. package/bundles/cdk-text-field.umd.js.map +1 -1
  13. package/bundles/cdk-text-field.umd.min.js +2 -2
  14. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  15. package/bundles/cdk.umd.js +1 -1
  16. package/bundles/cdk.umd.js.map +1 -1
  17. package/bundles/cdk.umd.min.js +1 -1
  18. package/bundles/cdk.umd.min.js.map +1 -1
  19. package/esm2015/a11y/focus-monitor/focus-monitor.js +10 -5
  20. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  21. package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
  22. package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
  23. package/esm2015/overlay/keyboard/overlay-keyboard-dispatcher.js +2 -2
  24. package/esm2015/overlay/overlay-ref.js +3 -33
  25. package/esm2015/text-field/autosize.js +14 -5
  26. package/esm2015/version.js +1 -1
  27. package/esm5/a11y/focus-monitor/focus-monitor.js +9 -4
  28. package/esm5/overlay/keyboard/overlay-keyboard-dispatcher.js +2 -2
  29. package/esm5/overlay/overlay-ref.js +3 -13
  30. package/esm5/text-field/autosize.js +8 -5
  31. package/esm5/version.js +1 -1
  32. package/fesm2015/a11y.js +9 -4
  33. package/fesm2015/a11y.js.map +1 -1
  34. package/fesm2015/cdk.js +1 -1
  35. package/fesm2015/cdk.js.map +1 -1
  36. package/fesm2015/overlay.js +3 -33
  37. package/fesm2015/overlay.js.map +1 -1
  38. package/fesm2015/text-field.js +13 -4
  39. package/fesm2015/text-field.js.map +1 -1
  40. package/fesm5/a11y.js +8 -3
  41. package/fesm5/a11y.js.map +1 -1
  42. package/fesm5/cdk.js +1 -1
  43. package/fesm5/cdk.js.map +1 -1
  44. package/fesm5/overlay.js +3 -13
  45. package/fesm5/overlay.js.map +1 -1
  46. package/fesm5/text-field.js +7 -4
  47. package/fesm5/text-field.js.map +1 -1
  48. package/overlay/index.metadata.json +1 -1
  49. package/overlay/overlay-ref.d.ts +0 -3
  50. package/package.json +1 -1
  51. package/schematics/ng-add/index.js +1 -1
  52. package/text-field/_text-field.scss +19 -4
  53. package/text-field/autosize.d.ts +2 -0
  54. package/text-field/index.metadata.json +1 -1
  55. package/text-field-prebuilt.css +1 -1
package/fesm2015/cdk.js 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('9.2.3');
11
+ const VERSION = new Version('9.2.4');
12
12
 
13
13
  /**
14
14
  * @license
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.js","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('9.2.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;;;;;;;AAQA,AAEA;AACA,MAAa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,CAAC;;ACXvD;;;;;;GAMG;;ACNH;;;;;;GAMG;;;;"}
1
+ {"version":3,"file":"cdk.js","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('9.2.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;;;;;;;AAQA,AAEA;AACA,MAAa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,CAAC;;ACXvD;;;;;;GAMG;;ACNH;;;;;;GAMG;;;;"}
@@ -6,7 +6,7 @@ import { coerceCssPixelValue, coerceArray, coerceBooleanProperty } from '@angula
6
6
  import { Directionality, BidiModule } from '@angular/cdk/bidi';
7
7
  import { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';
8
8
  import { Platform } from '@angular/cdk/platform';
9
- import { Subject, Subscription, Observable, merge } from 'rxjs';
9
+ import { Subject, Subscription, merge } from 'rxjs';
10
10
  import { take, takeUntil } from 'rxjs/operators';
11
11
  import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
12
12
 
@@ -1023,7 +1023,7 @@ class OverlayKeyboardDispatcher {
1023
1023
  // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,
1024
1024
  // because we don't want overlays that don't handle keyboard events to block the ones below
1025
1025
  // them that do.
1026
- if (overlays[i]._keydownEventSubscriptions > 0) {
1026
+ if (overlays[i]._keydownEvents.observers.length > 0) {
1027
1027
  overlays[i]._keydownEvents.next(event);
1028
1028
  break;
1029
1029
  }
@@ -1318,30 +1318,10 @@ class OverlayRef {
1318
1318
  * @return {?}
1319
1319
  */
1320
1320
  (event) => this._backdropClick.next(event));
1321
- this._keydownEventsObservable = new Observable((/**
1322
- * @param {?} observer
1323
- * @return {?}
1324
- */
1325
- (observer) => {
1326
- /** @type {?} */
1327
- const subscription = this._keydownEvents.subscribe(observer);
1328
- this._keydownEventSubscriptions++;
1329
- return (/**
1330
- * @return {?}
1331
- */
1332
- () => {
1333
- subscription.unsubscribe();
1334
- this._keydownEventSubscriptions--;
1335
- });
1336
- }));
1337
1321
  /**
1338
1322
  * Stream of keydown events dispatched to this overlay.
1339
1323
  */
1340
1324
  this._keydownEvents = new Subject();
1341
- /**
1342
- * Amount of subscriptions to the keydown events.
1343
- */
1344
- this._keydownEventSubscriptions = 0;
1345
1325
  if (_config.scrollStrategy) {
1346
1326
  this._scrollStrategy = _config.scrollStrategy;
1347
1327
  this._scrollStrategy.attach(this);
@@ -1524,7 +1504,7 @@ class OverlayRef {
1524
1504
  * @return {?}
1525
1505
  */
1526
1506
  keydownEvents() {
1527
- return this._keydownEventsObservable;
1507
+ return this._keydownEvents.asObservable();
1528
1508
  }
1529
1509
  /**
1530
1510
  * Gets the current overlay configuration, which is immutable.
@@ -1894,21 +1874,11 @@ if (false) {
1894
1874
  * @private
1895
1875
  */
1896
1876
  OverlayRef.prototype._previousHostParent;
1897
- /**
1898
- * @type {?}
1899
- * @private
1900
- */
1901
- OverlayRef.prototype._keydownEventsObservable;
1902
1877
  /**
1903
1878
  * Stream of keydown events dispatched to this overlay.
1904
1879
  * @type {?}
1905
1880
  */
1906
1881
  OverlayRef.prototype._keydownEvents;
1907
- /**
1908
- * Amount of subscriptions to the keydown events.
1909
- * @type {?}
1910
- */
1911
- OverlayRef.prototype._keydownEventSubscriptions;
1912
1882
  /**
1913
1883
  * @type {?}
1914
1884
  * @private