@angular/cdk 21.0.0-next.6 → 21.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.
Files changed (60) hide show
  1. package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
  2. package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
  3. package/fesm2022/_array-chunk.mjs.map +1 -1
  4. package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
  5. package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
  6. package/fesm2022/_data-source-chunk.mjs.map +1 -1
  7. package/fesm2022/_directionality-chunk.mjs.map +1 -1
  8. package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
  9. package/fesm2022/_element-chunk.mjs.map +1 -1
  10. package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
  11. package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
  12. package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
  13. package/fesm2022/_id-generator-chunk.mjs.map +1 -1
  14. package/fesm2022/_keycodes-chunk.mjs.map +1 -1
  15. package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
  16. package/fesm2022/_overlay-module-chunk.mjs +60 -17
  17. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  18. package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
  19. package/fesm2022/_platform-chunk.mjs.map +1 -1
  20. package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
  21. package/fesm2022/_scrolling-chunk.mjs.map +1 -1
  22. package/fesm2022/_selection-model-chunk.mjs.map +1 -1
  23. package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
  24. package/fesm2022/_style-loader-chunk.mjs.map +1 -1
  25. package/fesm2022/_test-environment-chunk.mjs.map +1 -1
  26. package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
  27. package/fesm2022/_typeahead-chunk.mjs.map +1 -1
  28. package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
  29. package/fesm2022/a11y.mjs.map +1 -1
  30. package/fesm2022/accordion.mjs.map +1 -1
  31. package/fesm2022/bidi.mjs.map +1 -1
  32. package/fesm2022/cdk.mjs +1 -1
  33. package/fesm2022/cdk.mjs.map +1 -1
  34. package/fesm2022/clipboard.mjs.map +1 -1
  35. package/fesm2022/coercion-private.mjs.map +1 -1
  36. package/fesm2022/coercion.mjs.map +1 -1
  37. package/fesm2022/dialog.mjs.map +1 -1
  38. package/fesm2022/drag-drop.mjs.map +1 -1
  39. package/fesm2022/keycodes.mjs.map +1 -1
  40. package/fesm2022/layout.mjs.map +1 -1
  41. package/fesm2022/listbox.mjs.map +1 -1
  42. package/fesm2022/menu.mjs.map +1 -1
  43. package/fesm2022/observers-private.mjs.map +1 -1
  44. package/fesm2022/observers.mjs.map +1 -1
  45. package/fesm2022/overlay.mjs.map +1 -1
  46. package/fesm2022/platform.mjs.map +1 -1
  47. package/fesm2022/portal.mjs.map +1 -1
  48. package/fesm2022/private.mjs.map +1 -1
  49. package/fesm2022/scrolling.mjs.map +1 -1
  50. package/fesm2022/stepper.mjs.map +1 -1
  51. package/fesm2022/table.mjs.map +1 -1
  52. package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
  53. package/fesm2022/testing-testbed.mjs.map +1 -1
  54. package/fesm2022/testing.mjs.map +1 -1
  55. package/fesm2022/text-field.mjs.map +1 -1
  56. package/fesm2022/tree.mjs.map +1 -1
  57. package/package.json +2 -1
  58. package/schematics/ng-add/index.js +1 -1
  59. package/types/_overlay-module-chunk.d.ts +34 -6
  60. package/types/overlay.d.ts +1 -1
@@ -26,6 +26,6 @@ function default_1() {
26
26
  // In order to align the CDK version with other Angular dependencies that are setup by
27
27
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
28
28
  // dependencies in new CLI projects.
29
- return (0, utility_1.addDependency)('@angular/cdk', `~21.0.0-next.6`, { existing: utility_1.ExistingBehavior.Skip });
29
+ return (0, utility_1.addDependency)('@angular/cdk', `~21.0.0-next.8`, { existing: utility_1.ExistingBehavior.Skip });
30
30
  }
31
31
  //# sourceMappingURL=index.js.map
@@ -276,6 +276,13 @@ declare class OverlayConfig {
276
276
  type HorizontalConnectionPos = 'start' | 'center' | 'end';
277
277
  /** Vertical dimension of a connection point on the perimeter of the origin or overlay element. */
278
278
  type VerticalConnectionPos = 'top' | 'center' | 'bottom';
279
+ /** The distance between the overlay element and the viewport. */
280
+ type ViewportMargin = number | {
281
+ top?: number;
282
+ bottom?: number;
283
+ start?: number;
284
+ end?: number;
285
+ };
279
286
  /** A connection point on the origin element. */
280
287
  interface OriginConnectionPosition {
281
288
  originX: HorizontalConnectionPos;
@@ -441,7 +448,7 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
441
448
  private _viewportRect;
442
449
  /** Cached container dimensions */
443
450
  private _containerRect;
444
- /** Amount of space that must be maintained between the overlay and the edge of the viewport. */
451
+ /** Amount of space that must be maintained between the overlay and the right edge of the viewport. */
445
452
  private _viewportMargin;
446
453
  /** The Scrollable containers used to check scrollable view properties on position change. */
447
454
  private _scrollables;
@@ -519,10 +526,11 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
519
526
  */
520
527
  withPositions(positions: ConnectedPosition[]): this;
521
528
  /**
522
- * Sets a minimum distance the overlay may be positioned to the edge of the viewport.
523
- * @param margin Required margin between the overlay and the viewport edge in pixels.
529
+ * Sets a minimum distance the overlay may be positioned from the bottom edge of the viewport.
530
+ * @param margin Required margin between the overlay and the viewport.
531
+ * It can be a number to be applied to all directions, or an object to supply different values for each direction.
524
532
  */
525
- withViewportMargin(margin: number): this;
533
+ withViewportMargin(margin: ViewportMargin): this;
526
534
  /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */
527
535
  withFlexibleDimensions(flexibleDimensions?: boolean): this;
528
536
  /** Sets whether the overlay can grow after the initial open via flexible width/height. */
@@ -647,6 +655,26 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
647
655
  private _addPanelClasses;
648
656
  /** Clears the classes that the position strategy has applied from the overlay panel. */
649
657
  private _clearPanelClasses;
658
+ /**
659
+ * Returns either the _viewportMargin directly (if it is a number) or its 'start' value.
660
+ * @private
661
+ */
662
+ private _getViewportMarginStart;
663
+ /**
664
+ * Returns either the _viewportMargin directly (if it is a number) or its 'end' value.
665
+ * @private
666
+ */
667
+ private _getViewportMarginEnd;
668
+ /**
669
+ * Returns either the _viewportMargin directly (if it is a number) or its 'top' value.
670
+ * @private
671
+ */
672
+ private _getViewportMarginTop;
673
+ /**
674
+ * Returns either the _viewportMargin directly (if it is a number) or its 'bottom' value.
675
+ * @private
676
+ */
677
+ private _getViewportMarginBottom;
650
678
  /** Returns the DOMRect of the current origin. */
651
679
  private _getOriginRect;
652
680
  }
@@ -726,7 +754,7 @@ declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
726
754
  /** The custom class to add to the overlay pane element. */
727
755
  panelClass: string | string[];
728
756
  /** Margin between the overlay and the viewport edges. */
729
- viewportMargin: number;
757
+ viewportMargin: ViewportMargin;
730
758
  /** Strategy to be used when handling scroll events while the overlay is open. */
731
759
  scrollStrategy: ScrollStrategy;
732
760
  /** Whether the overlay is open. */
@@ -798,4 +826,4 @@ declare class OverlayModule {
798
826
  }
799
827
 
800
828
  export { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayRef, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition };
801
- export type { ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos };
829
+ export type { ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos, ViewportMargin };
@@ -1,5 +1,5 @@
1
1
  import { ScrollStrategy, OverlayRef, PositionStrategy, FlexibleConnectedPositionStrategyOrigin, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer } from './_overlay-module-chunk.js';
2
- export { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlaySizeConfig, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, VerticalConnectionPos, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.js';
2
+ export { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlaySizeConfig, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, VerticalConnectionPos, ViewportMargin, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition } from './_overlay-module-chunk.js';
3
3
  import { ScrollDispatcher } from './_scrolling-module-chunk.js';
4
4
  export { CdkScrollable, CdkFixedSizeVirtualScroll as ɵɵCdkFixedSizeVirtualScroll, CdkScrollableModule as ɵɵCdkScrollableModule, CdkVirtualForOf as ɵɵCdkVirtualForOf, CdkVirtualScrollViewport as ɵɵCdkVirtualScrollViewport, CdkVirtualScrollableElement as ɵɵCdkVirtualScrollableElement, CdkVirtualScrollableWindow as ɵɵCdkVirtualScrollableWindow } from './_scrolling-module-chunk.js';
5
5
  import { ViewportRuler } from './scrolling.js';