@angular/cdk 14.0.0-next.7 → 14.0.0-next.8
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/esm2020/a11y/focus-monitor/focus-monitor.mjs +7 -5
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
- package/esm2020/overlay/public-api.mjs +2 -2
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +6 -4
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/overlay.mjs +13 -1
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2020/a11y.mjs +6 -4
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/overlay.mjs +13 -1
- package/fesm2020/overlay.mjs.map +1 -1
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -0
- package/overlay/public-api.d.ts +1 -1
- package/package.json +1 -1
- package/schematics/collection.json +2 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +7 -2
- package/schematics/utils/get-project.mjs +7 -2
package/fesm2020/a11y.mjs
CHANGED
|
@@ -2133,10 +2133,12 @@ class FocusMonitor {
|
|
|
2133
2133
|
return;
|
|
2134
2134
|
}
|
|
2135
2135
|
this._setClasses(element);
|
|
2136
|
-
this._emitOrigin(elementInfo
|
|
2136
|
+
this._emitOrigin(elementInfo, null);
|
|
2137
2137
|
}
|
|
2138
|
-
_emitOrigin(
|
|
2139
|
-
|
|
2138
|
+
_emitOrigin(info, origin) {
|
|
2139
|
+
if (info.subject.observers.length) {
|
|
2140
|
+
this._ngZone.run(() => info.subject.next(origin));
|
|
2141
|
+
}
|
|
2140
2142
|
}
|
|
2141
2143
|
_registerGlobalListeners(elementInfo) {
|
|
2142
2144
|
if (!this._platform.isBrowser) {
|
|
@@ -2194,7 +2196,7 @@ class FocusMonitor {
|
|
|
2194
2196
|
/** Updates all the state on an element once its focus origin has changed. */
|
|
2195
2197
|
_originChanged(element, origin, elementInfo) {
|
|
2196
2198
|
this._setClasses(element, origin);
|
|
2197
|
-
this._emitOrigin(elementInfo
|
|
2199
|
+
this._emitOrigin(elementInfo, origin);
|
|
2198
2200
|
this._lastFocusOrigin = origin;
|
|
2199
2201
|
}
|
|
2200
2202
|
/**
|