@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
@@ -711,7 +711,7 @@
711
711
  // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,
712
712
  // because we don't want overlays that don't handle keyboard events to block the ones below
713
713
  // them that do.
714
- if (overlays[i]._keydownEventSubscriptions > 0) {
714
+ if (overlays[i]._keydownEvents.observers.length > 0) {
715
715
  overlays[i]._keydownEvents.next(event);
716
716
  break;
717
717
  }
@@ -914,18 +914,8 @@
914
914
  this._detachments = new rxjs.Subject();
915
915
  this._locationChanges = rxjs.Subscription.EMPTY;
916
916
  this._backdropClickHandler = function (event) { return _this._backdropClick.next(event); };
917
- this._keydownEventsObservable = new rxjs.Observable(function (observer) {
918
- var subscription = _this._keydownEvents.subscribe(observer);
919
- _this._keydownEventSubscriptions++;
920
- return function () {
921
- subscription.unsubscribe();
922
- _this._keydownEventSubscriptions--;
923
- };
924
- });
925
917
  /** Stream of keydown events dispatched to this overlay. */
926
918
  this._keydownEvents = new rxjs.Subject();
927
- /** Amount of subscriptions to the keydown events. */
928
- this._keydownEventSubscriptions = 0;
929
919
  if (_config.scrollStrategy) {
930
920
  this._scrollStrategy = _config.scrollStrategy;
931
921
  this._scrollStrategy.attach(this);
@@ -1087,7 +1077,7 @@
1087
1077
  };
1088
1078
  /** Gets an observable of keydown events targeted to this overlay. */
1089
1079
  OverlayRef.prototype.keydownEvents = function () {
1090
- return this._keydownEventsObservable;
1080
+ return this._keydownEvents.asObservable();
1091
1081
  };
1092
1082
  /** Gets the current overlay configuration, which is immutable. */
1093
1083
  OverlayRef.prototype.getConfig = function () {