@angular/cdk 21.0.5 → 21.0.6
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/LICENSE +1 -1
- package/fesm2022/_overlay-module-chunk.mjs +15 -4
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +244 -241
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_overlay-module-chunk.d.ts +2 -0
- package/types/drag-drop.d.ts +23 -7
package/LICENSE
CHANGED
|
@@ -1143,7 +1143,7 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1143
1143
|
this._viewportRect = this._getNarrowedViewportRect();
|
|
1144
1144
|
this._originRect = this._getOriginRect();
|
|
1145
1145
|
this._overlayRect = this._pane.getBoundingClientRect();
|
|
1146
|
-
this._containerRect = this.
|
|
1146
|
+
this._containerRect = this._getContainerRect();
|
|
1147
1147
|
const originRect = this._originRect;
|
|
1148
1148
|
const overlayRect = this._overlayRect;
|
|
1149
1149
|
const viewportRect = this._viewportRect;
|
|
@@ -1241,9 +1241,8 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1241
1241
|
this._originRect = this._getOriginRect();
|
|
1242
1242
|
this._overlayRect = this._pane.getBoundingClientRect();
|
|
1243
1243
|
this._viewportRect = this._getNarrowedViewportRect();
|
|
1244
|
-
this._containerRect = this.
|
|
1245
|
-
|
|
1246
|
-
this._applyPosition(lastPosition, originPoint);
|
|
1244
|
+
this._containerRect = this._getContainerRect();
|
|
1245
|
+
this._applyPosition(lastPosition, this._getOriginPoint(this._originRect, this._containerRect, lastPosition));
|
|
1247
1246
|
} else {
|
|
1248
1247
|
this.apply();
|
|
1249
1248
|
}
|
|
@@ -1766,6 +1765,18 @@ class FlexibleConnectedPositionStrategy {
|
|
|
1766
1765
|
width
|
|
1767
1766
|
};
|
|
1768
1767
|
}
|
|
1768
|
+
_getContainerRect() {
|
|
1769
|
+
const isInlinePopover = this._overlayRef.getConfig().usePopover && this._popoverLocation !== 'global';
|
|
1770
|
+
const element = this._overlayContainer.getContainerElement();
|
|
1771
|
+
if (isInlinePopover) {
|
|
1772
|
+
element.style.display = 'block';
|
|
1773
|
+
}
|
|
1774
|
+
const dimensions = element.getBoundingClientRect();
|
|
1775
|
+
if (isInlinePopover) {
|
|
1776
|
+
element.style.display = '';
|
|
1777
|
+
}
|
|
1778
|
+
return dimensions;
|
|
1779
|
+
}
|
|
1769
1780
|
}
|
|
1770
1781
|
function extendStyles(destination, source) {
|
|
1771
1782
|
for (let key in source) {
|