@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.
- package/_text-field.scss +19 -4
- package/a11y/index.metadata.json +1 -1
- package/bundles/cdk-a11y.umd.js +8 -3
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +1 -1
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +2 -12
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +2 -2
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-text-field.umd.js +7 -4
- package/bundles/cdk-text-field.umd.js.map +1 -1
- package/bundles/cdk-text-field.umd.min.js +2 -2
- package/bundles/cdk-text-field.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/esm2015/a11y/focus-monitor/focus-monitor.js +10 -5
- package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
- package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
- package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
- package/esm2015/overlay/keyboard/overlay-keyboard-dispatcher.js +2 -2
- package/esm2015/overlay/overlay-ref.js +3 -33
- package/esm2015/text-field/autosize.js +14 -5
- package/esm2015/version.js +1 -1
- package/esm5/a11y/focus-monitor/focus-monitor.js +9 -4
- package/esm5/overlay/keyboard/overlay-keyboard-dispatcher.js +2 -2
- package/esm5/overlay/overlay-ref.js +3 -13
- package/esm5/text-field/autosize.js +8 -5
- package/esm5/version.js +1 -1
- package/fesm2015/a11y.js +9 -4
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/overlay.js +3 -33
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/text-field.js +13 -4
- package/fesm2015/text-field.js.map +1 -1
- package/fesm5/a11y.js +8 -3
- package/fesm5/a11y.js.map +1 -1
- package/fesm5/cdk.js +1 -1
- package/fesm5/cdk.js.map +1 -1
- package/fesm5/overlay.js +3 -13
- package/fesm5/overlay.js.map +1 -1
- package/fesm5/text-field.js +7 -4
- package/fesm5/text-field.js.map +1 -1
- package/overlay/index.metadata.json +1 -1
- package/overlay/overlay-ref.d.ts +0 -3
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/text-field/_text-field.scss +19 -4
- package/text-field/autosize.d.ts +2 -0
- package/text-field/index.metadata.json +1 -1
- 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].
|
|
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.
|
|
1080
|
+
return this._keydownEvents.asObservable();
|
|
1091
1081
|
};
|
|
1092
1082
|
/** Gets the current overlay configuration, which is immutable. */
|
|
1093
1083
|
OverlayRef.prototype.getConfig = function () {
|