@angular/cdk 21.0.0-rc.0 → 21.0.0-rc.1

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 (65) 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 +3 -2
  14. package/fesm2022/_id-generator-chunk.mjs.map +1 -1
  15. package/fesm2022/_keycodes-chunk.mjs.map +1 -1
  16. package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
  17. package/fesm2022/_overlay-module-chunk.mjs +24 -22
  18. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  19. package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
  20. package/fesm2022/_platform-chunk.mjs.map +1 -1
  21. package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
  22. package/fesm2022/_scrolling-chunk.mjs.map +1 -1
  23. package/fesm2022/_selection-model-chunk.mjs.map +1 -1
  24. package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
  25. package/fesm2022/_style-loader-chunk.mjs.map +1 -1
  26. package/fesm2022/_test-environment-chunk.mjs.map +1 -1
  27. package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
  28. package/fesm2022/_typeahead-chunk.mjs.map +1 -1
  29. package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
  30. package/fesm2022/a11y.mjs.map +1 -1
  31. package/fesm2022/accordion.mjs.map +1 -1
  32. package/fesm2022/bidi.mjs.map +1 -1
  33. package/fesm2022/cdk.mjs +1 -1
  34. package/fesm2022/cdk.mjs.map +1 -1
  35. package/fesm2022/clipboard.mjs.map +1 -1
  36. package/fesm2022/coercion-private.mjs.map +1 -1
  37. package/fesm2022/coercion.mjs.map +1 -1
  38. package/fesm2022/dialog.mjs +1 -1
  39. package/fesm2022/dialog.mjs.map +1 -1
  40. package/fesm2022/drag-drop.mjs.map +1 -1
  41. package/fesm2022/keycodes.mjs.map +1 -1
  42. package/fesm2022/layout.mjs.map +1 -1
  43. package/fesm2022/listbox.mjs.map +1 -1
  44. package/fesm2022/menu.mjs.map +1 -1
  45. package/fesm2022/observers-private.mjs.map +1 -1
  46. package/fesm2022/observers.mjs.map +1 -1
  47. package/fesm2022/overlay.mjs.map +1 -1
  48. package/fesm2022/platform.mjs.map +1 -1
  49. package/fesm2022/portal.mjs.map +1 -1
  50. package/fesm2022/private.mjs.map +1 -1
  51. package/fesm2022/scrolling.mjs.map +1 -1
  52. package/fesm2022/stepper.mjs.map +1 -1
  53. package/fesm2022/table.mjs.map +1 -1
  54. package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
  55. package/fesm2022/testing-testbed.mjs.map +1 -1
  56. package/fesm2022/testing.mjs.map +1 -1
  57. package/fesm2022/text-field.mjs.map +1 -1
  58. package/fesm2022/tree.mjs.map +1 -1
  59. package/overlay/_index.scss +3 -1
  60. package/overlay-prebuilt.css +1 -1
  61. package/package.json +1 -1
  62. package/schematics/ng-add/index.js +1 -1
  63. package/types/_overlay-module-chunk.d.ts +16 -6
  64. package/types/a11y.d.ts +3 -1
  65. package/types/overlay.d.ts +2 -6
@@ -1 +1 @@
1
- .cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;color:inherit;outline:0;overflow:visible;position:fixed;pointer-events:none;width:100%;height:100%;inset:auto}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed}
1
+ .cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;line-height:normal;text-decoration:none;width:100%;height:100%;inset:auto}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "21.0.0-rc.0",
3
+ "version": "21.0.0-rc.1",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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-rc.0`, { existing: utility_1.ExistingBehavior.Skip });
29
+ return (0, utility_1.addDependency)('@angular/cdk', `~21.0.0-rc.1`, { existing: utility_1.ExistingBehavior.Skip });
30
30
  }
31
31
  //# sourceMappingURL=index.js.map
@@ -235,7 +235,7 @@ interface PositionStrategy {
235
235
  * Gets the element in the DOM after which to insert
236
236
  * the overlay when it is rendered out as a popover.
237
237
  */
238
- getPopoverInsertionPoint?(): Element;
238
+ getPopoverInsertionPoint?(): Element | null;
239
239
  }
240
240
 
241
241
  /** Initial configuration used when creating an overlay. */
@@ -423,6 +423,8 @@ type FlexibleConnectedPositionStrategyOrigin = ElementRef | Element | (Point & {
423
423
  * @param origin Origin relative to which to position the overlay.
424
424
  */
425
425
  declare function createFlexibleConnectedPositionStrategy(injector: Injector, origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
426
+ /** Supported locations in the DOM for connected overlays. */
427
+ type FlexibleOverlayPopoverLocation = 'global' | 'inline';
426
428
  /**
427
429
  * A strategy for positioning overlays. Using this strategy, an overlay is given an
428
430
  * implicit position relative some origin element. The relative position is defined in terms of
@@ -494,6 +496,8 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
494
496
  private _appliedPanelClasses;
495
497
  /** Amount by which the overlay was pushed in each axis during the last time it was positioned. */
496
498
  private _previousPushAmount;
499
+ /** Configures where in the DOM to insert the overlay when popovers are enabled. */
500
+ private _popoverLocation;
497
501
  /** Observable sequence of position changes. */
498
502
  positionChanges: Observable<ConnectedOverlayPositionChange>;
499
503
  /** Ordered list of preferred positions, from most to least desirable. */
@@ -582,8 +586,15 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
582
586
  * elements onto which to set the transform origin.
583
587
  */
584
588
  withTransformOriginOn(selector: string): this;
589
+ /**
590
+ * Determines where in the DOM the overlay will be rendered when popover mode is enabled.
591
+ * @param location Configures the location in the DOM. Supports the following values:
592
+ * - `global` - The default which inserts the overlay inside the overlay container.
593
+ * - `inline` - Inserts the overlay next to the trigger.
594
+ */
595
+ withPopoverLocation(location: FlexibleOverlayPopoverLocation): this;
585
596
  /** @docs-private */
586
- getPopoverInsertionPoint(): Element;
597
+ getPopoverInsertionPoint(): Element | null;
587
598
  /**
588
599
  * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.
589
600
  */
@@ -748,7 +759,7 @@ interface CdkConnectedOverlayConfig {
748
759
  growAfterOpen?: boolean;
749
760
  push?: boolean;
750
761
  disposeOnNavigation?: boolean;
751
- usePopover?: boolean;
762
+ usePopover?: FlexibleOverlayPopoverLocation | null;
752
763
  matchWidth?: boolean;
753
764
  }
754
765
  /**
@@ -819,7 +830,7 @@ declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
819
830
  /** Whether the overlay should be disposed of when the user goes backwards/forwards in history. */
820
831
  disposeOnNavigation: boolean;
821
832
  /** Whether the connected overlay should be rendered inside a popover element or the overlay container. */
822
- usePopover: boolean;
833
+ usePopover: FlexibleOverlayPopoverLocation | null;
823
834
  /** Whether the overlay should match the trigger's width. */
824
835
  matchWidth: boolean;
825
836
  /** Shorthand for setting multiple overlay options at once. */
@@ -867,7 +878,6 @@ declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
867
878
  static ngAcceptInputType_growAfterOpen: unknown;
868
879
  static ngAcceptInputType_push: unknown;
869
880
  static ngAcceptInputType_disposeOnNavigation: unknown;
870
- static ngAcceptInputType_usePopover: unknown;
871
881
  static ngAcceptInputType_matchWidth: unknown;
872
882
  }
873
883
 
@@ -878,4 +888,4 @@ declare class OverlayModule {
878
888
  }
879
889
 
880
890
  export { CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayRef, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition };
881
- export type { CdkConnectedOverlayConfig, ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos, ViewportMargin };
891
+ export type { CdkConnectedOverlayConfig, ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, FlexibleOverlayPopoverLocation, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos, ViewportMargin };
package/types/a11y.d.ts CHANGED
@@ -506,11 +506,13 @@ declare class HighContrastModeDetector implements OnDestroy {
506
506
  /** Service that generates unique IDs for DOM nodes. */
507
507
  declare class _IdGenerator {
508
508
  private _appId;
509
+ private static _infix;
509
510
  /**
510
511
  * Generates a unique ID with a specific prefix.
511
512
  * @param prefix Prefix to add to the ID.
513
+ * @param randomize Add a randomized infix string.
512
514
  */
513
- getId(prefix: string): string;
515
+ getId(prefix: string, randomize?: boolean): string;
514
516
  static ɵfac: i0.ɵɵFactoryDeclaration<_IdGenerator, never>;
515
517
  static ɵprov: i0.ɵɵInjectableDeclaration<_IdGenerator>;
516
518
  }
@@ -1,5 +1,5 @@
1
1
  import { ScrollStrategy, OverlayRef, PositionStrategy, FlexibleConnectedPositionStrategyOrigin, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer } from './_overlay-module-chunk.js';
2
- export { CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkConnectedOverlayConfig, 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';
2
+ export { CDK_CONNECTED_OVERLAY_DEFAULT_CONFIG, CdkConnectedOverlay, CdkConnectedOverlayConfig, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, FlexibleOverlayPopoverLocation, 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';
@@ -154,7 +154,7 @@ declare class ScrollStrategyOptions {
154
154
  * Creates a global position strategy.
155
155
  * @param injector Injector used to resolve dependencies for the strategy.
156
156
  */
157
- declare function createGlobalPositionStrategy(injector: Injector): GlobalPositionStrategy;
157
+ declare function createGlobalPositionStrategy(_injector: Injector): GlobalPositionStrategy;
158
158
  /**
159
159
  * A strategy for positioning overlays. Using this strategy, an overlay is given an
160
160
  * explicit position relative to the browser's viewport. We use flexbox, instead of
@@ -173,8 +173,6 @@ declare class GlobalPositionStrategy implements PositionStrategy {
173
173
  private _width;
174
174
  private _height;
175
175
  private _isDisposed;
176
- private _document;
177
- constructor(injector?: Injector);
178
176
  attach(overlayRef: OverlayRef): void;
179
177
  /**
180
178
  * Sets the top position of the overlay. Clears any previously set vertical position.
@@ -246,8 +244,6 @@ declare class GlobalPositionStrategy implements PositionStrategy {
246
244
  * @docs-private
247
245
  */
248
246
  dispose(): void;
249
- /** @docs-private */
250
- getPopoverInsertionPoint(): Element;
251
247
  }
252
248
 
253
249
  /** Builder for overlay position strategy. */