@angular/cdk 17.0.4 → 17.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.
Files changed (39) hide show
  1. package/LICENSE +1 -1
  2. package/dialog/index.d.ts +1 -0
  3. package/drag-drop/index.d.ts +5 -5
  4. package/esm2022/a11y/aria-describer/aria-reference.mjs +8 -5
  5. package/esm2022/a11y/focus-trap/focus-trap.mjs +16 -11
  6. package/esm2022/collections/selection-model.mjs +5 -4
  7. package/esm2022/dialog/dialog-container.mjs +14 -9
  8. package/esm2022/drag-drop/directives/drag.mjs +1 -1
  9. package/esm2022/drag-drop/dom/dom-rect.mjs +64 -0
  10. package/esm2022/drag-drop/dom/parent-position-tracker.mjs +3 -3
  11. package/esm2022/drag-drop/drag-ref.mjs +13 -13
  12. package/esm2022/drag-drop/drop-list-ref.mjs +34 -20
  13. package/esm2022/drag-drop/sorting/single-axis-sort-strategy.mjs +5 -5
  14. package/esm2022/overlay/position/flexible-connected-position-strategy.mjs +5 -5
  15. package/esm2022/overlay/position/scroll-clip.mjs +1 -1
  16. package/esm2022/scrolling/viewport-ruler.mjs +2 -2
  17. package/esm2022/scrolling/virtual-scrollable.mjs +1 -1
  18. package/esm2022/version.mjs +1 -1
  19. package/fesm2022/a11y.mjs +21 -13
  20. package/fesm2022/a11y.mjs.map +1 -1
  21. package/fesm2022/cdk.mjs +1 -1
  22. package/fesm2022/cdk.mjs.map +1 -1
  23. package/fesm2022/collections.mjs +4 -3
  24. package/fesm2022/collections.mjs.map +1 -1
  25. package/fesm2022/dialog.mjs +13 -8
  26. package/fesm2022/dialog.mjs.map +1 -1
  27. package/fesm2022/drag-drop.mjs +71 -57
  28. package/fesm2022/drag-drop.mjs.map +1 -1
  29. package/fesm2022/overlay.mjs +4 -4
  30. package/fesm2022/overlay.mjs.map +1 -1
  31. package/fesm2022/scrolling.mjs +1 -1
  32. package/fesm2022/scrolling.mjs.map +1 -1
  33. package/overlay/index.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/schematics/ng-add/index.js +1 -1
  36. package/schematics/ng-add/index.mjs +1 -1
  37. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +3 -3
  38. package/scrolling/index.d.ts +2 -2
  39. package/esm2022/drag-drop/dom/client-rect.mjs +0 -64
@@ -1706,7 +1706,7 @@ class FlexibleConnectedPositionStrategy {
1706
1706
  else if (position.overlayY === 'bottom') {
1707
1707
  // Overlay is opening "upward" and thus is bound by the top viewport edge. We need to add
1708
1708
  // the viewport margin back in, because the viewport rect is narrowed down to remove the
1709
- // margin, whereas the `origin` position is calculated based on its `ClientRect`.
1709
+ // margin, whereas the `origin` position is calculated based on its `DOMRect`.
1710
1710
  bottom = viewport.height - origin.y + this._viewportMargin * 2;
1711
1711
  height = viewport.height - bottom + this._viewportMargin;
1712
1712
  }
@@ -2032,7 +2032,7 @@ class FlexibleConnectedPositionStrategy {
2032
2032
  this._appliedPanelClasses = [];
2033
2033
  }
2034
2034
  }
2035
- /** Returns the ClientRect of the current origin. */
2035
+ /** Returns the DOMRect of the current origin. */
2036
2036
  _getOriginRect() {
2037
2037
  const origin = this._origin;
2038
2038
  if (origin instanceof ElementRef) {
@@ -2076,9 +2076,9 @@ function getPixelValue(input) {
2076
2076
  return input || null;
2077
2077
  }
2078
2078
  /**
2079
- * Gets a version of an element's bounding `ClientRect` where all the values are rounded down to
2079
+ * Gets a version of an element's bounding `DOMRect` where all the values are rounded down to
2080
2080
  * the nearest pixel. This allows us to account for the cases where there may be sub-pixel
2081
- * deviations in the `ClientRect` returned by the browser (e.g. when zoomed in with a percentage
2081
+ * deviations in the `DOMRect` returned by the browser (e.g. when zoomed in with a percentage
2082
2082
  * size, see #21350).
2083
2083
  */
2084
2084
  function getRoundedBoundingClientRect(clientRect) {