@angular/cdk 20.2.0-next.0 → 20.2.0-next.2

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 (105) hide show
  1. package/dialog/index.d.ts +2 -2
  2. package/drag-drop/index.d.ts +2 -2
  3. package/fesm2022/{a11y-module-f8PpT4Ay.mjs → a11y-module-i3TQk2dk.mjs} +27 -27
  4. package/fesm2022/a11y-module-i3TQk2dk.mjs.map +1 -0
  5. package/fesm2022/a11y.mjs +16 -16
  6. package/fesm2022/a11y.mjs.map +1 -1
  7. package/fesm2022/accordion.mjs +12 -12
  8. package/fesm2022/accordion.mjs.map +1 -1
  9. package/fesm2022/activedescendant-key-manager-Uaf4ZFAJ.mjs.map +1 -1
  10. package/fesm2022/array-I1yfCXUO.mjs.map +1 -1
  11. package/fesm2022/bidi.mjs +9 -9
  12. package/fesm2022/bidi.mjs.map +1 -1
  13. package/fesm2022/{breakpoints-observer-e0Y61Ni6.mjs → breakpoints-observer-B9oGujtp.mjs} +8 -8
  14. package/fesm2022/breakpoints-observer-B9oGujtp.mjs.map +1 -0
  15. package/fesm2022/cdk.mjs +1 -1
  16. package/fesm2022/cdk.mjs.map +1 -1
  17. package/fesm2022/clipboard.mjs +10 -10
  18. package/fesm2022/clipboard.mjs.map +1 -1
  19. package/fesm2022/coercion/private.mjs.map +1 -1
  20. package/fesm2022/coercion.mjs.map +1 -1
  21. package/fesm2022/collections.mjs +1 -1
  22. package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +1 -1
  23. package/fesm2022/data-source-D34wiQZj.mjs.map +1 -1
  24. package/fesm2022/dialog.mjs +18 -18
  25. package/fesm2022/dialog.mjs.map +1 -1
  26. package/fesm2022/{directionality-DG6W2foq.mjs → directionality-Cbl-1nFG.mjs} +4 -4
  27. package/fesm2022/directionality-Cbl-1nFG.mjs.map +1 -0
  28. package/fesm2022/dispose-view-repeater-strategy-Cvpav0PR.mjs.map +1 -1
  29. package/fesm2022/drag-drop.mjs +41 -39
  30. package/fesm2022/drag-drop.mjs.map +1 -1
  31. package/fesm2022/element-x4z00URv.mjs.map +1 -1
  32. package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +1 -1
  33. package/fesm2022/focus-key-manager-C8nuVjSq.mjs.map +1 -1
  34. package/fesm2022/{focus-monitor-BAWF9yyo.mjs → focus-monitor-CprcLT6A.mjs} +11 -11
  35. package/fesm2022/focus-monitor-CprcLT6A.mjs.map +1 -0
  36. package/fesm2022/{id-generator-BDR_Hgqn.mjs → id-generator-CeVEEGXw.mjs} +4 -4
  37. package/fesm2022/id-generator-CeVEEGXw.mjs.map +1 -0
  38. package/fesm2022/keycodes-CpHkExLC.mjs.map +1 -1
  39. package/fesm2022/keycodes.mjs.map +1 -1
  40. package/fesm2022/layout.mjs +6 -6
  41. package/fesm2022/layout.mjs.map +1 -1
  42. package/fesm2022/list-key-manager-BPo6sXWX.mjs.map +1 -1
  43. package/fesm2022/listbox.mjs +18 -15
  44. package/fesm2022/listbox.mjs.map +1 -1
  45. package/fesm2022/menu.mjs +56 -56
  46. package/fesm2022/menu.mjs.map +1 -1
  47. package/fesm2022/observers/private.mjs +3 -3
  48. package/fesm2022/observers/private.mjs.map +1 -1
  49. package/fesm2022/observers.mjs +13 -13
  50. package/fesm2022/observers.mjs.map +1 -1
  51. package/fesm2022/{overlay-module-BT-MSlx2.mjs → overlay-module-CMC8dXNw.mjs} +39 -39
  52. package/fesm2022/overlay-module-CMC8dXNw.mjs.map +1 -0
  53. package/fesm2022/overlay.mjs +9 -9
  54. package/fesm2022/overlay.mjs.map +1 -1
  55. package/fesm2022/passive-listeners-esHZRgIN.mjs.map +1 -1
  56. package/fesm2022/{platform-CU1HnUf4.mjs → platform-BWwIqQ_X.mjs} +4 -4
  57. package/fesm2022/platform-BWwIqQ_X.mjs.map +1 -0
  58. package/fesm2022/platform.mjs +5 -5
  59. package/fesm2022/platform.mjs.map +1 -1
  60. package/fesm2022/portal.mjs +16 -16
  61. package/fesm2022/portal.mjs.map +1 -1
  62. package/fesm2022/private.mjs +4 -4
  63. package/fesm2022/private.mjs.map +1 -1
  64. package/fesm2022/recycle-view-repeater-strategy-SfuyU210.mjs.map +1 -1
  65. package/fesm2022/scrolling-BkvA05C8.mjs.map +1 -1
  66. package/fesm2022/scrolling.mjs +58 -48
  67. package/fesm2022/scrolling.mjs.map +1 -1
  68. package/fesm2022/selection-model-BCgC8uEN.mjs.map +1 -1
  69. package/fesm2022/shadow-dom-B0oHn41l.mjs.map +1 -1
  70. package/fesm2022/stepper.mjs +24 -24
  71. package/fesm2022/stepper.mjs.map +1 -1
  72. package/fesm2022/{style-loader-Bz9nkPbm.mjs → style-loader-BTuU6vCe.mjs} +4 -4
  73. package/fesm2022/style-loader-BTuU6vCe.mjs.map +1 -0
  74. package/fesm2022/table.mjs +78 -77
  75. package/fesm2022/table.mjs.map +1 -1
  76. package/fesm2022/test-environment-CT0XxPyp.mjs.map +1 -1
  77. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  78. package/fesm2022/testing/testbed.mjs.map +1 -1
  79. package/fesm2022/testing.mjs.map +1 -1
  80. package/fesm2022/text-field.mjs +18 -18
  81. package/fesm2022/text-field.mjs.map +1 -1
  82. package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +1 -1
  83. package/fesm2022/tree.mjs +26 -26
  84. package/fesm2022/tree.mjs.map +1 -1
  85. package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +1 -1
  86. package/fesm2022/{unique-selection-dispatcher-BqepGmCK.mjs → unique-selection-dispatcher-CSFLc-6k.mjs} +4 -4
  87. package/fesm2022/unique-selection-dispatcher-CSFLc-6k.mjs.map +1 -0
  88. package/listbox/index.d.ts +1 -0
  89. package/menu/index.d.ts +2 -2
  90. package/overlay/index.d.ts +4 -4
  91. package/{overlay-module.d-C2CxnwqT.d.ts → overlay-module.d-BvvR6Y05.d.ts} +1 -1
  92. package/package.json +1 -1
  93. package/schematics/ng-add/index.js +1 -1
  94. package/scrolling/index.d.ts +1 -1
  95. package/{scrolling-module.d-C_w4tIrZ.d.ts → scrolling-module.d-3Rw5UxLk.d.ts} +1 -2
  96. package/table/index.d.ts +1 -1
  97. package/fesm2022/a11y-module-f8PpT4Ay.mjs.map +0 -1
  98. package/fesm2022/breakpoints-observer-e0Y61Ni6.mjs.map +0 -1
  99. package/fesm2022/directionality-DG6W2foq.mjs.map +0 -1
  100. package/fesm2022/focus-monitor-BAWF9yyo.mjs.map +0 -1
  101. package/fesm2022/id-generator-BDR_Hgqn.mjs.map +0 -1
  102. package/fesm2022/overlay-module-BT-MSlx2.mjs.map +0 -1
  103. package/fesm2022/platform-CU1HnUf4.mjs.map +0 -1
  104. package/fesm2022/style-loader-Bz9nkPbm.mjs.map +0 -1
  105. package/fesm2022/unique-selection-dispatcher-BqepGmCK.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, forwardRef, Directive, Input, inject, NgZone, RendererFactory2, Injectable, ElementRef, Renderer2, DOCUMENT, ChangeDetectorRef, signal, Injector, afterNextRender, booleanAttribute, Optional, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, ViewContainerRef, TemplateRef, IterableDiffers, NgModule } from '@angular/core';
2
+ import { InjectionToken, forwardRef, Directive, Input, inject, NgZone, RendererFactory2, Injectable, ElementRef, Renderer2, DOCUMENT, ChangeDetectorRef, signal, Injector, effect, ApplicationRef, DestroyRef, untracked, afterNextRender, booleanAttribute, Optional, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, ViewContainerRef, TemplateRef, IterableDiffers, NgModule } from '@angular/core';
3
3
  import { Subject, of, Observable, Subscription, animationFrameScheduler, asapScheduler, isObservable } from 'rxjs';
4
4
  import { distinctUntilChanged, auditTime, filter, startWith, takeUntil, pairwise, switchMap, shareReplay } from 'rxjs/operators';
5
5
  import { c as coerceNumberProperty, a as coerceElement } from './element-x4z00URv.mjs';
6
- import { P as Platform } from './platform-CU1HnUf4.mjs';
7
- import { D as Directionality } from './directionality-DG6W2foq.mjs';
6
+ import { P as Platform } from './platform-BWwIqQ_X.mjs';
7
+ import { D as Directionality } from './directionality-Cbl-1nFG.mjs';
8
8
  import { g as getRtlScrollAxisType, R as RtlScrollAxisType, s as supportsScrollBehavior } from './scrolling-BkvA05C8.mjs';
9
9
  import { BidiModule } from './bidi.mjs';
10
10
  export { Dir as ɵɵDir } from './bidi.mjs';
@@ -194,8 +194,8 @@ class CdkFixedSizeVirtualScroll {
194
194
  ngOnChanges() {
195
195
  this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
196
196
  }
197
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive });
198
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkFixedSizeVirtualScroll, isStandalone: true, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, providers: [
197
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive });
198
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkFixedSizeVirtualScroll, isStandalone: true, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, providers: [
199
199
  {
200
200
  provide: VIRTUAL_SCROLL_STRATEGY,
201
201
  useFactory: _fixedSizeVirtualScrollStrategyFactory,
@@ -203,7 +203,7 @@ class CdkFixedSizeVirtualScroll {
203
203
  },
204
204
  ], usesOnChanges: true, ngImport: i0 });
205
205
  }
206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{
207
207
  type: Directive,
208
208
  args: [{
209
209
  selector: 'cdk-virtual-scroll-viewport[itemSize]',
@@ -338,10 +338,10 @@ class ScrollDispatcher {
338
338
  } while ((element = element.parentElement));
339
339
  return false;
340
340
  }
341
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollDispatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
342
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' });
341
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollDispatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
342
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' });
343
343
  }
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollDispatcher, decorators: [{
344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollDispatcher, decorators: [{
345
345
  type: Injectable,
346
346
  args: [{ providedIn: 'root' }]
347
347
  }], ctorParameters: () => [] });
@@ -497,10 +497,10 @@ class CdkScrollable {
497
497
  }
498
498
  }
499
499
  }
500
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
501
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkScrollable, isStandalone: true, selector: "[cdk-scrollable], [cdkScrollable]", ngImport: i0 });
500
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
501
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkScrollable, isStandalone: true, selector: "[cdk-scrollable], [cdkScrollable]", ngImport: i0 });
502
502
  }
503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkScrollable, decorators: [{
503
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkScrollable, decorators: [{
504
504
  type: Directive,
505
505
  args: [{
506
506
  selector: '[cdk-scrollable], [cdkScrollable]',
@@ -624,10 +624,10 @@ class ViewportRuler {
624
624
  ? { width: window.innerWidth, height: window.innerHeight }
625
625
  : { width: 0, height: 0 };
626
626
  }
627
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ViewportRuler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
628
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ViewportRuler, providedIn: 'root' });
627
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ViewportRuler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
628
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ViewportRuler, providedIn: 'root' });
629
629
  }
630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ViewportRuler, decorators: [{
630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ViewportRuler, decorators: [{
631
631
  type: Injectable,
632
632
  args: [{ providedIn: 'root' }]
633
633
  }], ctorParameters: () => [] });
@@ -649,10 +649,10 @@ class CdkVirtualScrollable extends CdkScrollable {
649
649
  const viewportEl = this.elementRef.nativeElement;
650
650
  return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
651
651
  }
652
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
653
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkVirtualScrollable, isStandalone: true, usesInheritance: true, ngImport: i0 });
652
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
653
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkVirtualScrollable, isStandalone: true, usesInheritance: true, ngImport: i0 });
654
654
  }
655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollable, decorators: [{
655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollable, decorators: [{
656
656
  type: Directive
657
657
  }], ctorParameters: () => [] });
658
658
 
@@ -733,8 +733,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
733
733
  * be rewritten as an offset to the start of the content).
734
734
  */
735
735
  _renderedContentOffsetNeedsRewrite = false;
736
- /** Whether there is a pending change detection cycle. */
737
- _isChangeDetectionPending = false;
736
+ _changeDetectionNeeded = signal(false, ...(ngDevMode ? [{ debugName: "_changeDetectionNeeded" }] : []));
738
737
  /** A list of functions to run after the next change detection cycle. */
739
738
  _runAfterChangeDetection = [];
740
739
  /** Subscription to changes in the viewport size. */
@@ -755,6 +754,15 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
755
754
  this.elementRef.nativeElement.classList.add('cdk-virtual-scrollable');
756
755
  this.scrollable = this;
757
756
  }
757
+ const ref = effect(() => {
758
+ if (this._changeDetectionNeeded()) {
759
+ this._doChangeDetection();
760
+ }
761
+ }, ...(ngDevMode ? [{ debugName: "ref", injector: inject(ApplicationRef).injector }] : [
762
+ // Using ApplicationRef injector is important here because we want this to be a root
763
+ // effect that runs before change detection of any application views (since we're depending on markForCheck marking parents dirty)
764
+ { injector: inject(ApplicationRef).injector }]));
765
+ inject(DestroyRef).onDestroy(() => void ref.destroy());
758
766
  }
759
767
  ngOnInit() {
760
768
  // Scrolling depends on the element dimensions which we can't get during SSR.
@@ -1004,14 +1012,16 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
1004
1012
  if (runAfter) {
1005
1013
  this._runAfterChangeDetection.push(runAfter);
1006
1014
  }
1007
- // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
1008
- // properties sequentially we only have to run `_doChangeDetection` once at the end.
1009
- if (!this._isChangeDetectionPending) {
1010
- this._isChangeDetectionPending = true;
1011
- this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
1012
- this._doChangeDetection();
1013
- }));
1015
+ if (untracked(this._changeDetectionNeeded)) {
1016
+ return;
1014
1017
  }
1018
+ this.ngZone.runOutsideAngular(() => {
1019
+ Promise.resolve().then(() => {
1020
+ this.ngZone.run(() => {
1021
+ this._changeDetectionNeeded.set(true);
1022
+ });
1023
+ });
1024
+ });
1015
1025
  }
1016
1026
  /** Run change detection. */
1017
1027
  _doChangeDetection() {
@@ -1029,7 +1039,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
1029
1039
  // the `Number` function first to coerce it to a numeric value.
1030
1040
  this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform;
1031
1041
  afterNextRender(() => {
1032
- this._isChangeDetectionPending = false;
1042
+ this._changeDetectionNeeded.set(false);
1033
1043
  const runAfterChangeDetection = this._runAfterChangeDetection;
1034
1044
  this._runAfterChangeDetection = [];
1035
1045
  for (const fn of runAfterChangeDetection) {
@@ -1043,8 +1053,8 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
1043
1053
  this._totalContentHeight.set(this.orientation === 'horizontal' ? '' : `${this._totalContentSize}px`);
1044
1054
  this._totalContentWidth.set(this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '');
1045
1055
  }
1046
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollViewport, deps: [], target: i0.ɵɵFactoryTarget.Component });
1047
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.0-next.0", type: CdkVirtualScrollViewport, isStandalone: true, selector: "cdk-virtual-scroll-viewport", inputs: { orientation: "orientation", appendOnly: ["appendOnly", "appendOnly", booleanAttribute] }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.cdk-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.cdk-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "cdk-virtual-scroll-viewport" }, providers: [
1056
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollViewport, deps: [], target: i0.ɵɵFactoryTarget.Component });
1057
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.2.0-next.1", type: CdkVirtualScrollViewport, isStandalone: true, selector: "cdk-virtual-scroll-viewport", inputs: { orientation: "orientation", appendOnly: ["appendOnly", "appendOnly", booleanAttribute] }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.cdk-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.cdk-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "cdk-virtual-scroll-viewport" }, providers: [
1048
1058
  {
1049
1059
  provide: CdkScrollable,
1050
1060
  useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,
@@ -1052,7 +1062,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
1052
1062
  },
1053
1063
  ], viewQueries: [{ propertyName: "_contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\n Wrap the rendered content in an element that will be used to offset it based on the scroll\n position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<!--\n Spacer used to force the scrolling container to the correct size for the *total* number of items\n so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n [style.width]=\"_totalContentWidth()\" [style.height]=\"_totalContentHeight()\"></div>\n", styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1054
1064
  }
1055
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{
1065
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{
1056
1066
  type: Component,
1057
1067
  args: [{ selector: 'cdk-virtual-scroll-viewport', host: {
1058
1068
  'class': 'cdk-virtual-scroll-viewport',
@@ -1337,10 +1347,10 @@ class CdkVirtualForOf {
1337
1347
  static ngTemplateContextGuard(directive, context) {
1338
1348
  return true;
1339
1349
  }
1340
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualForOf, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1341
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkVirtualForOf, isStandalone: true, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: { cdkVirtualForOf: "cdkVirtualForOf", cdkVirtualForTrackBy: "cdkVirtualForTrackBy", cdkVirtualForTemplate: "cdkVirtualForTemplate", cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize" }, providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });
1350
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualForOf, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1351
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkVirtualForOf, isStandalone: true, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: { cdkVirtualForOf: "cdkVirtualForOf", cdkVirtualForTrackBy: "cdkVirtualForTrackBy", cdkVirtualForTemplate: "cdkVirtualForTemplate", cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize" }, providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });
1342
1352
  }
1343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualForOf, decorators: [{
1353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualForOf, decorators: [{
1344
1354
  type: Directive,
1345
1355
  args: [{
1346
1356
  selector: '[cdkVirtualFor][cdkVirtualForOf]',
@@ -1367,10 +1377,10 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
1367
1377
  return (this.getElementRef().nativeElement.getBoundingClientRect()[from] -
1368
1378
  this.measureScrollOffset(from));
1369
1379
  }
1370
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollableElement, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1371
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkVirtualScrollableElement, isStandalone: true, selector: "[cdkVirtualScrollingElement]", host: { classAttribute: "cdk-virtual-scrollable" }, providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }], usesInheritance: true, ngImport: i0 });
1380
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollableElement, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1381
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkVirtualScrollableElement, isStandalone: true, selector: "[cdkVirtualScrollingElement]", host: { classAttribute: "cdk-virtual-scrollable" }, providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }], usesInheritance: true, ngImport: i0 });
1372
1382
  }
1373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollableElement, decorators: [{
1383
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollableElement, decorators: [{
1374
1384
  type: Directive,
1375
1385
  args: [{
1376
1386
  selector: '[cdkVirtualScrollingElement]',
@@ -1394,10 +1404,10 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
1394
1404
  measureBoundingClientRectWithScrollOffset(from) {
1395
1405
  return this.getElementRef().nativeElement.getBoundingClientRect()[from];
1396
1406
  }
1397
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollableWindow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1398
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.0", type: CdkVirtualScrollableWindow, isStandalone: true, selector: "cdk-virtual-scroll-viewport[scrollWindow]", providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }], usesInheritance: true, ngImport: i0 });
1407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollableWindow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1408
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.1", type: CdkVirtualScrollableWindow, isStandalone: true, selector: "cdk-virtual-scroll-viewport[scrollWindow]", providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }], usesInheritance: true, ngImport: i0 });
1399
1409
  }
1400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkVirtualScrollableWindow, decorators: [{
1410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkVirtualScrollableWindow, decorators: [{
1401
1411
  type: Directive,
1402
1412
  args: [{
1403
1413
  selector: 'cdk-virtual-scroll-viewport[scrollWindow]',
@@ -1406,11 +1416,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0",
1406
1416
  }], ctorParameters: () => [] });
1407
1417
 
1408
1418
  class CdkScrollableModule {
1409
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1410
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkScrollableModule, imports: [CdkScrollable], exports: [CdkScrollable] });
1411
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkScrollableModule });
1419
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1420
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkScrollableModule, imports: [CdkScrollable], exports: [CdkScrollable] });
1421
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkScrollableModule });
1412
1422
  }
1413
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: CdkScrollableModule, decorators: [{
1423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: CdkScrollableModule, decorators: [{
1414
1424
  type: NgModule,
1415
1425
  args: [{
1416
1426
  exports: [CdkScrollable],
@@ -1421,8 +1431,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0",
1421
1431
  * @docs-primary-export
1422
1432
  */
1423
1433
  class ScrollingModule {
1424
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1425
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollingModule, imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport,
1434
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1435
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollingModule, imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport,
1426
1436
  CdkFixedSizeVirtualScroll,
1427
1437
  CdkVirtualForOf,
1428
1438
  CdkVirtualScrollableWindow,
@@ -1431,10 +1441,10 @@ class ScrollingModule {
1431
1441
  CdkVirtualScrollViewport,
1432
1442
  CdkVirtualScrollableWindow,
1433
1443
  CdkVirtualScrollableElement] });
1434
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollingModule, imports: [BidiModule,
1444
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollingModule, imports: [BidiModule,
1435
1445
  CdkScrollableModule, BidiModule, CdkScrollableModule] });
1436
1446
  }
1437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: ScrollingModule, decorators: [{
1447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1", ngImport: i0, type: ScrollingModule, decorators: [{
1438
1448
  type: NgModule,
1439
1449
  args: [{
1440
1450
  imports: [