@angular/cdk 22.2.0-next.4 → 22.2.0-rc.0

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 (108) hide show
  1. package/fesm2022/_a11y-module-chunk.mjs +22 -22
  2. package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
  3. package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
  4. package/fesm2022/_array-chunk.mjs.map +1 -1
  5. package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
  6. package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
  7. package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
  8. package/fesm2022/_data-source-chunk.mjs.map +1 -1
  9. package/fesm2022/_directionality-chunk.mjs +3 -3
  10. package/fesm2022/_directionality-chunk.mjs.map +1 -1
  11. package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
  12. package/fesm2022/_element-chunk.mjs.map +1 -1
  13. package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
  14. package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
  15. package/fesm2022/_focus-monitor-chunk.mjs +9 -9
  16. package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
  17. package/fesm2022/_id-generator-chunk.mjs +3 -3
  18. package/fesm2022/_id-generator-chunk.mjs.map +1 -1
  19. package/fesm2022/_keycodes-chunk.mjs.map +1 -1
  20. package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
  21. package/fesm2022/_overlay-module-chunk.mjs +42 -35
  22. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  23. package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
  24. package/fesm2022/_platform-chunk.mjs +3 -3
  25. package/fesm2022/_platform-chunk.mjs.map +1 -1
  26. package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
  27. package/fesm2022/_scrolling-chunk.mjs.map +1 -1
  28. package/fesm2022/_selection-model-chunk.mjs.map +1 -1
  29. package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
  30. package/fesm2022/_style-loader-chunk.mjs +3 -3
  31. package/fesm2022/_style-loader-chunk.mjs.map +1 -1
  32. package/fesm2022/_test-environment-chunk.mjs.map +1 -1
  33. package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
  34. package/fesm2022/_typeahead-chunk.mjs.map +1 -1
  35. package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
  36. package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
  37. package/fesm2022/a11y.mjs +9 -9
  38. package/fesm2022/a11y.mjs.map +1 -1
  39. package/fesm2022/accordion.mjs +10 -10
  40. package/fesm2022/accordion.mjs.map +1 -1
  41. package/fesm2022/bidi.mjs +7 -7
  42. package/fesm2022/bidi.mjs.map +1 -1
  43. package/fesm2022/cdk.mjs +1 -1
  44. package/fesm2022/cdk.mjs.map +1 -1
  45. package/fesm2022/clipboard.mjs +10 -10
  46. package/fesm2022/clipboard.mjs.map +1 -1
  47. package/fesm2022/coercion-private.mjs.map +1 -1
  48. package/fesm2022/coercion.mjs.map +1 -1
  49. package/fesm2022/dialog.mjs +10 -10
  50. package/fesm2022/dialog.mjs.map +1 -1
  51. package/fesm2022/drag-drop.mjs +31 -31
  52. package/fesm2022/drag-drop.mjs.map +1 -1
  53. package/fesm2022/keycodes.mjs.map +1 -1
  54. package/fesm2022/layout.mjs +4 -4
  55. package/fesm2022/layout.mjs.map +1 -1
  56. package/fesm2022/listbox.mjs +10 -10
  57. package/fesm2022/listbox.mjs.map +1 -1
  58. package/fesm2022/menu.mjs +49 -49
  59. package/fesm2022/menu.mjs.map +1 -1
  60. package/fesm2022/observers-private.mjs +3 -3
  61. package/fesm2022/observers-private.mjs.map +1 -1
  62. package/fesm2022/observers.mjs +13 -13
  63. package/fesm2022/observers.mjs.map +1 -1
  64. package/fesm2022/overlay.mjs +4 -4
  65. package/fesm2022/overlay.mjs.map +1 -1
  66. package/fesm2022/platform.mjs +4 -4
  67. package/fesm2022/platform.mjs.map +1 -1
  68. package/fesm2022/portal.mjs +10 -10
  69. package/fesm2022/portal.mjs.map +1 -1
  70. package/fesm2022/private.mjs +3 -3
  71. package/fesm2022/private.mjs.map +1 -1
  72. package/fesm2022/scrolling.mjs +35 -35
  73. package/fesm2022/scrolling.mjs.map +1 -1
  74. package/fesm2022/stepper.mjs +22 -22
  75. package/fesm2022/stepper.mjs.map +1 -1
  76. package/fesm2022/table.mjs +88 -76
  77. package/fesm2022/table.mjs.map +1 -1
  78. package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
  79. package/fesm2022/testing-testbed.mjs +8 -3
  80. package/fesm2022/testing-testbed.mjs.map +1 -1
  81. package/fesm2022/testing.mjs.map +1 -1
  82. package/fesm2022/text-field.mjs +16 -16
  83. package/fesm2022/text-field.mjs.map +1 -1
  84. package/fesm2022/tree.mjs +25 -25
  85. package/fesm2022/tree.mjs.map +1 -1
  86. package/package.json +1 -1
  87. package/schematics/ng-add/index.js +1 -1
  88. package/types/_a11y-module-chunk.d.ts +3 -3
  89. package/types/_bidi-module-chunk.d.ts +1 -1
  90. package/types/_focus-monitor-chunk.d.ts +1 -1
  91. package/types/_overlay-module-chunk.d.ts +7 -5
  92. package/types/_platform-chunk.d.ts +1 -1
  93. package/types/_scrolling-module-chunk.d.ts +1 -1
  94. package/types/_style-loader-chunk.d.ts +1 -1
  95. package/types/_unique-selection-dispatcher-chunk.d.ts +1 -1
  96. package/types/a11y.d.ts +6 -6
  97. package/types/clipboard.d.ts +1 -1
  98. package/types/dialog.d.ts +1 -1
  99. package/types/drag-drop.d.ts +2 -2
  100. package/types/layout.d.ts +2 -2
  101. package/types/menu.d.ts +3 -3
  102. package/types/observers-private.d.ts +1 -1
  103. package/types/observers.d.ts +2 -2
  104. package/types/overlay.d.ts +5 -5
  105. package/types/scrolling.d.ts +1 -1
  106. package/types/table.d.ts +5 -0
  107. package/types/testing-testbed.d.ts +8 -6
  108. package/types/text-field.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', `~22.2.0-next.4`, { existing: utility_1.ExistingBehavior.Skip });
29
+ return (0, utility_1.addDependency)('@angular/cdk', `~22.2.0-rc.0`, { existing: utility_1.ExistingBehavior.Skip });
30
30
  }
31
31
  //# sourceMappingURL=index.js.map
@@ -52,7 +52,7 @@ declare class InteractivityChecker {
52
52
  */
53
53
  isFocusable(element: HTMLElement, config?: IsFocusableConfig): boolean;
54
54
  static ɵfac: i0.ɵɵFactoryDeclaration<InteractivityChecker, never>;
55
- static ɵprov: i0.ɵɵInjectableDeclaration<InteractivityChecker>;
55
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
56
56
  }
57
57
 
58
58
  /**
@@ -170,7 +170,7 @@ declare class FocusTrapFactory {
170
170
  */
171
171
  create(element: HTMLElement, deferCaptureElements?: boolean): FocusTrap;
172
172
  static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapFactory, never>;
173
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusTrapFactory>;
173
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
174
174
  }
175
175
  /** Directive for trapping focus within a region. */
176
176
  declare class CdkTrapFocus implements OnDestroy, AfterContentInit, OnChanges, DoCheck {
@@ -272,7 +272,7 @@ declare class LiveAnnouncer implements OnDestroy {
272
272
  */
273
273
  private _exposeAnnouncerToModals;
274
274
  static ɵfac: i0.ɵɵFactoryDeclaration<LiveAnnouncer, never>;
275
- static ɵprov: i0.ɵɵInjectableDeclaration<LiveAnnouncer>;
275
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
276
276
  }
277
277
  /**
278
278
  * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
@@ -18,7 +18,7 @@ declare class Directionality implements OnDestroy {
18
18
  constructor();
19
19
  ngOnDestroy(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<Directionality, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<Directionality>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
22
22
  }
23
23
 
24
24
  /**
@@ -179,7 +179,7 @@ declare class FocusMonitor implements OnDestroy {
179
179
  */
180
180
  private _isLastInteractionFromInputLabel;
181
181
  static ɵfac: i0.ɵɵFactoryDeclaration<FocusMonitor, never>;
182
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusMonitor>;
182
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
183
183
  }
184
184
  /**
185
185
  * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
@@ -29,7 +29,7 @@ declare abstract class BaseOverlayDispatcher implements OnDestroy {
29
29
  /** Determines whether an overlay is allowed to receive an event. */
30
30
  protected canReceiveEvent<T>(overlayRef: OverlayRef, event: Event, stream: Subject<T>): boolean;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseOverlayDispatcher, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseOverlayDispatcher>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
33
33
  }
34
34
 
35
35
  /**
@@ -48,7 +48,7 @@ declare class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
48
48
  /** Keyboard event listener that will be attached to the body. */
49
49
  private _keydownListener;
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayKeyboardDispatcher, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayKeyboardDispatcher>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
52
52
  }
53
53
 
54
54
  /**
@@ -73,7 +73,7 @@ declare class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
73
73
  /** Click event listener that will be attached to the body propagate phase. */
74
74
  private _clickListener;
75
75
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayOutsideClickDispatcher, never>;
76
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayOutsideClickDispatcher>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
77
77
  }
78
78
 
79
79
  /**
@@ -94,6 +94,8 @@ interface ScrollStrategy {
94
94
  type ImmutableObject<T> = {
95
95
  readonly [P in keyof T]: T[P];
96
96
  };
97
+ /** Gets all overlays that are currently attached. */
98
+ declare function getAttachedOverlays(): OverlayRef[];
97
99
  /**
98
100
  * Reference to an overlay that has been created with the Overlay service.
99
101
  * Used to manipulate or dispose of said overlay.
@@ -422,7 +424,7 @@ declare class OverlayContainer implements OnDestroy {
422
424
  /** Loads the structural styles necessary for the overlay to work. */
423
425
  protected _loadStyles(): void;
424
426
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContainer, never>;
425
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayContainer>;
427
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
426
428
  }
427
429
 
428
430
  /** Possible values that can be set as the origin of a FlexibleConnectedPositionStrategy. */
@@ -909,5 +911,5 @@ declare class OverlayModule {
909
911
  static ɵinj: i0.ɵɵInjectorDeclaration<OverlayModule>;
910
912
  }
911
913
 
912
- 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 };
914
+ 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, getAttachedOverlays, validateHorizontalPosition, validateVerticalPosition };
913
915
  export type { CdkConnectedOverlayConfig, ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, FlexibleOverlayPopoverLocation, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos, ViewportMargin };
@@ -25,7 +25,7 @@ declare class Platform {
25
25
  /** Whether the current browser is Safari. */
26
26
  SAFARI: boolean;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
29
29
  }
30
30
 
31
31
  export { Platform };
@@ -75,7 +75,7 @@ declare class ScrollDispatcher implements OnDestroy {
75
75
  /** Returns true if the element is contained within the provided Scrollable. */
76
76
  private _targetContainsElement;
77
77
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollDispatcher, never>;
78
- static ɵprov: i0.ɵɵInjectableDeclaration<ScrollDispatcher>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
79
79
  }
80
80
 
81
81
  type _Without<T> = {
@@ -15,7 +15,7 @@ declare class _CdkPrivateStyleLoader {
15
15
  */
16
16
  load(loader: Type<unknown>): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<_CdkPrivateStyleLoader, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<_CdkPrivateStyleLoader>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
19
19
  }
20
20
 
21
21
  export { _CdkPrivateStyleLoader };
@@ -26,7 +26,7 @@ declare class UniqueSelectionDispatcher implements OnDestroy {
26
26
  listen(listener: UniqueSelectionDispatcherListener): () => void;
27
27
  ngOnDestroy(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
30
30
  }
31
31
 
32
32
  export { UniqueSelectionDispatcher };
package/types/a11y.d.ts CHANGED
@@ -81,7 +81,7 @@ declare class AriaDescriber implements OnDestroy {
81
81
  /** Checks whether a node is an Element node. */
82
82
  private _isElementNode;
83
83
  static ɵfac: i0.ɵɵFactoryDeclaration<AriaDescriber, never>;
84
- static ɵprov: i0.ɵɵInjectableDeclaration<AriaDescriber>;
84
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
85
85
  }
86
86
 
87
87
  /**
@@ -288,7 +288,7 @@ declare class FocusTrapManager {
288
288
  */
289
289
  deregister(focusTrap: ManagedFocusTrap): void;
290
290
  static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapManager, never>;
291
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusTrapManager>;
291
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
292
292
  }
293
293
 
294
294
  /**
@@ -329,7 +329,7 @@ declare class ConfigurableFocusTrapFactory {
329
329
  */
330
330
  create(element: HTMLElement, config?: ConfigurableFocusTrapConfig): ConfigurableFocusTrap;
331
331
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurableFocusTrapFactory, never>;
332
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurableFocusTrapFactory>;
332
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
333
333
  }
334
334
 
335
335
  /**
@@ -439,7 +439,7 @@ declare class InputModalityDetector implements OnDestroy {
439
439
  constructor();
440
440
  ngOnDestroy(): void;
441
441
  static ɵfac: i0.ɵɵFactoryDeclaration<InputModalityDetector, never>;
442
- static ɵprov: i0.ɵɵInjectableDeclaration<InputModalityDetector>;
442
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
443
443
  }
444
444
 
445
445
  /** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */
@@ -480,7 +480,7 @@ declare class HighContrastModeDetector implements OnDestroy {
480
480
  /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
481
481
  _applyBodyHighContrastModeCssClasses(): void;
482
482
  static ɵfac: i0.ɵɵFactoryDeclaration<HighContrastModeDetector, never>;
483
- static ɵprov: i0.ɵɵInjectableDeclaration<HighContrastModeDetector>;
483
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
484
484
  }
485
485
 
486
486
  /** Service that generates unique IDs for DOM nodes. */
@@ -494,7 +494,7 @@ declare class _IdGenerator {
494
494
  */
495
495
  getId(prefix: string, randomize?: boolean): string;
496
496
  static ɵfac: i0.ɵɵFactoryDeclaration<_IdGenerator, never>;
497
- static ɵprov: i0.ɵɵInjectableDeclaration<_IdGenerator>;
497
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
498
498
  }
499
499
 
500
500
  export { AriaDescriber, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_TRAP_INERT_STRATEGY, FocusTrap, HighContrastMode, HighContrastModeDetector, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector, InteractivityChecker, NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER, NoopTreeKeyManager, TREE_KEY_MANAGER, TreeKeyManager, TreeKeyManagerFactory, TreeKeyManagerItem, TreeKeyManagerOptions, TreeKeyManagerStrategy, _IdGenerator, addAriaReferencedId, getAriaReferenceIds, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader, removeAriaReferencedId };
@@ -47,7 +47,7 @@ declare class Clipboard {
47
47
  */
48
48
  beginCopy(text: string): PendingCopy;
49
49
  static ɵfac: i0.ɵɵFactoryDeclaration<Clipboard, never>;
50
- static ɵprov: i0.ɵɵInjectableDeclaration<Clipboard>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
51
51
  }
52
52
 
53
53
  /** Object that can be used to configure the default options for `CdkCopyToClipboard`. */
package/types/dialog.d.ts CHANGED
@@ -401,7 +401,7 @@ declare class Dialog implements OnDestroy {
401
401
  private _hideNonDialogContentFromAssistiveTechnology;
402
402
  private _getAfterAllClosed;
403
403
  static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
404
- static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
404
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
405
405
  }
406
406
 
407
407
  declare class DialogModule {
@@ -873,7 +873,7 @@ declare class DragDropRegistry implements OnDestroy {
873
873
  /** Clears out the global event listeners from the `document`. */
874
874
  private _clearGlobalListeners;
875
875
  static ɵfac: i0.ɵɵFactoryDeclaration<DragDropRegistry, never>;
876
- static ɵprov: i0.ɵɵInjectableDeclaration<DragDropRegistry>;
876
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
877
877
  }
878
878
 
879
879
  /** Template that can be used to create a drag preview element. */
@@ -1352,7 +1352,7 @@ declare class DragDrop {
1352
1352
  */
1353
1353
  createDropList<T = any>(element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
1354
1354
  static ɵfac: i0.ɵɵFactoryDeclaration<DragDrop, never>;
1355
- static ɵprov: i0.ɵɵInjectableDeclaration<DragDrop>;
1355
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1356
1356
  }
1357
1357
 
1358
1358
  /**
package/types/layout.d.ts CHANGED
@@ -46,7 +46,7 @@ declare class BreakpointObserver implements OnDestroy {
46
46
  /** Registers a specific query to be listened for. */
47
47
  private _registerQuery;
48
48
  static ɵfac: i0.ɵɵFactoryDeclaration<BreakpointObserver, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<BreakpointObserver>;
49
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
50
50
  }
51
51
 
52
52
  declare const Breakpoints: {
@@ -81,7 +81,7 @@ declare class MediaMatcher {
81
81
  */
82
82
  matchMedia(query: string): MediaQueryList;
83
83
  static ɵfac: i0.ɵɵFactoryDeclaration<MediaMatcher, never>;
84
- static ɵprov: i0.ɵɵInjectableDeclaration<MediaMatcher>;
84
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
85
85
  }
86
86
 
87
87
  export { BreakpointObserver, Breakpoints, LayoutModule, MediaMatcher };
package/types/menu.d.ts CHANGED
@@ -155,7 +155,7 @@ declare class MenuStack {
155
155
  /** Sets whether the menu stack contains the focused element. */
156
156
  setHasFocus(hasFocus: boolean): void;
157
157
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuStack, never>;
158
- static ɵprov: i0.ɵɵInjectableDeclaration<MenuStack>;
158
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
159
159
  }
160
160
 
161
161
  /** Injection token used to return classes implementing the Menu interface */
@@ -258,7 +258,7 @@ declare class TargetMenuAim implements MenuAim, OnDestroy {
258
258
  /** Subscribe to the root menus mouse move events and update the tracked mouse points. */
259
259
  private _subscribeToMouseMoves;
260
260
  static ɵfac: i0.ɵɵFactoryDeclaration<TargetMenuAim, never>;
261
- static ɵprov: i0.ɵɵInjectableDeclaration<TargetMenuAim>;
261
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
262
262
  }
263
263
  /**
264
264
  * CdkTargetMenuAim is a provider for the TargetMenuAim service. It can be added to an
@@ -291,7 +291,7 @@ declare class MenuTracker {
291
291
  */
292
292
  update(trigger: CdkMenuTriggerBase): void;
293
293
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuTracker, never>;
294
- static ɵprov: i0.ɵɵInjectableDeclaration<MenuTracker>;
294
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
295
295
  }
296
296
  /**
297
297
  * Abstract directive that implements shared logic common to all menu triggers.
@@ -28,7 +28,7 @@ declare class SharedResizeObserver implements OnDestroy {
28
28
  */
29
29
  observe(target: Element, options?: ResizeObserverOptions): Observable<ResizeObserverEntry[]>;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedResizeObserver, never>;
31
- static ɵprov: i0.ɵɵInjectableDeclaration<SharedResizeObserver>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
32
32
  }
33
33
 
34
34
  export { SharedResizeObserver };
@@ -10,7 +10,7 @@ import { Observable } from 'rxjs';
10
10
  declare class MutationObserverFactory {
11
11
  create(callback: MutationCallback): MutationObserver | null;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserverFactory, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<MutationObserverFactory>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
14
14
  }
15
15
  /** An injectable service that allows watching elements for changes to their content. */
16
16
  declare class ContentObserver implements OnDestroy {
@@ -42,7 +42,7 @@ declare class ContentObserver implements OnDestroy {
42
42
  /** Clean up the underlying MutationObserver for the specified element. */
43
43
  private _cleanupObserver;
44
44
  static ɵfac: i0.ɵɵFactoryDeclaration<ContentObserver, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentObserver>;
45
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
46
46
  }
47
47
  /**
48
48
  * Directive that triggers a callback whenever the content of
@@ -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, 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';
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, getAttachedOverlays, 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';
@@ -146,7 +146,7 @@ declare class ScrollStrategyOptions {
146
146
  */
147
147
  reposition: (config?: RepositionScrollStrategyConfig) => RepositionScrollStrategy;
148
148
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollStrategyOptions, never>;
149
- static ɵprov: i0.ɵɵInjectableDeclaration<ScrollStrategyOptions>;
149
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
150
150
  }
151
151
 
152
152
  /**
@@ -258,7 +258,7 @@ declare class OverlayPositionBuilder {
258
258
  */
259
259
  flexibleConnectedTo(origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
260
260
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayPositionBuilder, never>;
261
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayPositionBuilder>;
261
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
262
262
  }
263
263
 
264
264
  /** Object used to configure the default options for overlays. */
@@ -300,7 +300,7 @@ declare class Overlay {
300
300
  */
301
301
  position(): OverlayPositionBuilder;
302
302
  static ɵfac: i0.ɵɵFactoryDeclaration<Overlay, never>;
303
- static ɵprov: i0.ɵɵInjectableDeclaration<Overlay>;
303
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
304
304
  }
305
305
 
306
306
  /**
@@ -324,7 +324,7 @@ declare class FullscreenOverlayContainer extends OverlayContainer implements OnD
324
324
  */
325
325
  getFullscreenElement(): Element;
326
326
  static ɵfac: i0.ɵɵFactoryDeclaration<FullscreenOverlayContainer, never>;
327
- static ɵprov: i0.ɵɵInjectableDeclaration<FullscreenOverlayContainer>;
327
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
328
328
  }
329
329
 
330
330
  export { BlockScrollStrategy, CloseScrollStrategy, FlexibleConnectedPositionStrategy, FlexibleConnectedPositionStrategyOrigin, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, OVERLAY_DEFAULT_CONFIG, Overlay, OverlayConfig, OverlayContainer, OverlayPositionBuilder, OverlayRef, PositionStrategy, RepositionScrollStrategy, ScrollDispatcher, ScrollStrategy, ScrollStrategyOptions, ViewportRuler, createBlockScrollStrategy, createCloseScrollStrategy, createGlobalPositionStrategy, createNoopScrollStrategy, createOverlayRef, createRepositionScrollStrategy };
@@ -55,7 +55,7 @@ declare class ViewportRuler implements OnDestroy {
55
55
  /** Updates the cached viewport size. */
56
56
  private _updateViewportSize;
57
57
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewportRuler, never>;
58
- static ɵprov: i0.ɵɵInjectableDeclaration<ViewportRuler>;
58
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
59
59
  }
60
60
 
61
61
  export { DEFAULT_RESIZE_TIME, ViewportRuler };
package/types/table.d.ts CHANGED
@@ -542,6 +542,11 @@ declare class CdkTable<T> implements AfterContentInit, AfterContentChecked, Coll
542
542
  * stored.
543
543
  */
544
544
  private _cachedRenderRowsMap;
545
+ /**
546
+ * Row definition used to create each rendered data-row view. Keying by the view keeps the
547
+ * association intact when the differ moves rows.
548
+ */
549
+ private _rowDefsByView;
545
550
  /** Whether the table is applied to a native `<table>`. */
546
551
  protected _isNativeHtmlTable: boolean;
547
552
  /**
@@ -1,11 +1,13 @@
1
1
  import { HarnessEnvironment, HarnessLoader, TestElement, ComponentHarness, ComponentHarnessConstructor, ModifierKeys, TestKey, TextOptions, ElementDimensions, EventData } from './testing.js';
2
- import { ComponentFixture } from '@angular/core/testing';
2
+ import { ComponentFixture, DirectiveFixture } from '@angular/core/testing';
3
3
 
4
4
  /** Options to configure the environment. */
5
5
  interface TestbedHarnessEnvironmentOptions {
6
6
  /** The query function used to find DOM elements. */
7
7
  queryFn: (selector: string, root: Element) => Iterable<Element> | ArrayLike<Element>;
8
8
  }
9
+ /** Covers all fixtures supported by `TestBed`. */
10
+ type Fixture<T = unknown> = ComponentFixture<T> | DirectiveFixture<T>;
9
11
  /** A `HarnessEnvironment` implementation for Angular's Testbed. */
10
12
  declare class TestbedHarnessEnvironment extends HarnessEnvironment<Element> {
11
13
  private _fixture;
@@ -17,14 +19,14 @@ declare class TestbedHarnessEnvironment extends HarnessEnvironment<Element> {
17
19
  private _options;
18
20
  /** Environment stabilization callback passed to the created test elements. */
19
21
  private _stabilizeCallback;
20
- protected constructor(rawRootElement: Element, _fixture: ComponentFixture<unknown>, options?: TestbedHarnessEnvironmentOptions);
22
+ protected constructor(rawRootElement: Element, _fixture: Fixture, options?: TestbedHarnessEnvironmentOptions);
21
23
  /** Creates a `HarnessLoader` rooted at the given fixture's root element. */
22
- static loader(fixture: ComponentFixture<unknown>, options?: TestbedHarnessEnvironmentOptions): HarnessLoader;
24
+ static loader(fixture: Fixture, options?: TestbedHarnessEnvironmentOptions): HarnessLoader;
23
25
  /**
24
26
  * Creates a `HarnessLoader` at the document root. This can be used if harnesses are
25
27
  * located outside of a fixture (e.g. overlays appended to the document body).
26
28
  */
27
- static documentRootLoader(fixture: ComponentFixture<unknown>, options?: TestbedHarnessEnvironmentOptions): HarnessLoader;
29
+ static documentRootLoader(fixture: Fixture, options?: TestbedHarnessEnvironmentOptions): HarnessLoader;
28
30
  /** Gets the native DOM element corresponding to the given TestElement. */
29
31
  static getNativeElement(el: TestElement): Element;
30
32
  /**
@@ -33,7 +35,7 @@ declare class TestbedHarnessEnvironment extends HarnessEnvironment<Element> {
33
35
  * of a fixture, as components do not have the correct selector when they are created as the root
34
36
  * of the fixture.
35
37
  */
36
- static harnessForFixture<T extends ComponentHarness>(fixture: ComponentFixture<unknown>, harnessType: ComponentHarnessConstructor<T>, options?: TestbedHarnessEnvironmentOptions): Promise<T>;
38
+ static harnessForFixture<T extends ComponentHarness>(fixture: Fixture, harnessType: ComponentHarnessConstructor<T>, options?: TestbedHarnessEnvironmentOptions): Promise<T>;
37
39
  /**
38
40
  * Flushes change detection and async tasks captured in the Angular zone.
39
41
  * In most cases it should not be necessary to call this manually. However, there may be some edge
@@ -157,4 +159,4 @@ declare class UnitTestElement implements TestElement {
157
159
  }
158
160
 
159
161
  export { TestbedHarnessEnvironment, UnitTestElement };
160
- export type { TestbedHarnessEnvironmentOptions };
162
+ export type { Fixture, TestbedHarnessEnvironmentOptions };
@@ -45,7 +45,7 @@ declare class AutofillMonitor implements OnDestroy {
45
45
  stopMonitoring(element: ElementRef<Element>): void;
46
46
  ngOnDestroy(): void;
47
47
  static ɵfac: i0.ɵɵFactoryDeclaration<AutofillMonitor, never>;
48
- static ɵprov: i0.ɵɵInjectableDeclaration<AutofillMonitor>;
48
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
49
49
  }
50
50
  /** A directive that can be used to monitor the autofill state of an input. */
51
51
  declare class CdkAutofill implements OnDestroy, OnInit {