@angular/cdk 22.0.0-next.8 → 22.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 (51) hide show
  1. package/fesm2022/_a11y-module-chunk.mjs +22 -22
  2. package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
  3. package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
  4. package/fesm2022/_directionality-chunk.mjs +3 -3
  5. package/fesm2022/_focus-monitor-chunk.mjs +9 -9
  6. package/fesm2022/_id-generator-chunk.mjs +3 -3
  7. package/fesm2022/_overlay-module-chunk.mjs +35 -37
  8. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  9. package/fesm2022/_platform-chunk.mjs +3 -3
  10. package/fesm2022/_style-loader-chunk.mjs +3 -3
  11. package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
  12. package/fesm2022/a11y.mjs +9 -9
  13. package/fesm2022/accordion.mjs +10 -10
  14. package/fesm2022/accordion.mjs.map +1 -1
  15. package/fesm2022/bidi.mjs +7 -7
  16. package/fesm2022/cdk.mjs +1 -1
  17. package/fesm2022/cdk.mjs.map +1 -1
  18. package/fesm2022/clipboard.mjs +10 -10
  19. package/fesm2022/dialog.mjs +10 -10
  20. package/fesm2022/dialog.mjs.map +1 -1
  21. package/fesm2022/drag-drop.mjs +32 -34
  22. package/fesm2022/drag-drop.mjs.map +1 -1
  23. package/fesm2022/layout.mjs +4 -4
  24. package/fesm2022/listbox.mjs +10 -10
  25. package/fesm2022/listbox.mjs.map +1 -1
  26. package/fesm2022/menu.mjs +49 -49
  27. package/fesm2022/menu.mjs.map +1 -1
  28. package/fesm2022/observers-private.mjs +3 -3
  29. package/fesm2022/observers.mjs +13 -13
  30. package/fesm2022/observers.mjs.map +1 -1
  31. package/fesm2022/overlay.mjs +3 -3
  32. package/fesm2022/platform.mjs +4 -4
  33. package/fesm2022/portal.mjs +10 -10
  34. package/fesm2022/portal.mjs.map +1 -1
  35. package/fesm2022/private.mjs +4 -6
  36. package/fesm2022/private.mjs.map +1 -1
  37. package/fesm2022/scrolling.mjs +50 -52
  38. package/fesm2022/scrolling.mjs.map +1 -1
  39. package/fesm2022/stepper.mjs +24 -26
  40. package/fesm2022/stepper.mjs.map +1 -1
  41. package/fesm2022/table.mjs +73 -73
  42. package/fesm2022/table.mjs.map +1 -1
  43. package/fesm2022/text-field.mjs +17 -19
  44. package/fesm2022/text-field.mjs.map +1 -1
  45. package/fesm2022/tree.mjs +25 -25
  46. package/fesm2022/tree.mjs.map +1 -1
  47. package/package.json +1 -1
  48. package/schematics/ng-add/index.js +1 -1
  49. package/types/_overlay-module-chunk.d.ts +2 -2
  50. package/types/_scrolling-module-chunk.d.ts +24 -17
  51. package/types/scrolling.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"private.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/private/visually-hidden/visually-hidden.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/private/trusted-types.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/private/inner-html.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n/**\n * Component used to load the .cdk-visually-hidden styles.\n * @docs-private\n */\n@Component({\n styleUrl: 'visually-hidden.css',\n exportAs: 'cdkVisuallyHidden',\n encapsulation: ViewEncapsulation.None,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class _VisuallyHiddenLoader {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n// A module to facilitate use of a Trusted Types policy internally within\n// Angular Material. It lazily constructs the Trusted Types policy, providing\n// helper utilities for promoting strings to Trusted Types. When Trusted Types\n// are not available, strings are used as a fallback.\n// All use of this module is security-sensitive and should go through security review.\n\nexport interface TrustedHTML {\n __brand__: 'TrustedHTML';\n}\n\ninterface TrustedTypePolicyFactory {\n createPolicy(\n policyName: string,\n policyOptions: {\n createHTML?: (input: string) => string;\n },\n ): TrustedTypePolicy;\n}\n\ninterface TrustedTypePolicy {\n createHTML(input: string): TrustedHTML;\n}\n\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy: TrustedTypePolicy | null | undefined;\n\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy(): TrustedTypePolicy | null {\n if (policy === undefined) {\n policy = null;\n if (typeof window !== 'undefined') {\n const ttWindow = window as unknown as {trustedTypes?: TrustedTypePolicyFactory};\n if (ttWindow.trustedTypes !== undefined) {\n policy = ttWindow.trustedTypes.createPolicy('angular#components', {\n createHTML: (s: string) => s,\n });\n }\n }\n }\n return policy;\n}\n\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n *\n * Important!!! This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nexport function trustedHTMLFromString(html: string): TrustedHTML {\n return getPolicy()?.createHTML(html) || (html as unknown as TrustedHTML);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {SecurityContext} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\nimport {trustedHTMLFromString} from './trusted-types';\n\n// !!!Note!!! this file isn't synced into g3, but is replaced with a version that uses\n// internal-specific APIs. The internal version may have to be updated if the signature of\n// the function changes.\n\n/** Sanitizes and sets the `innerHTML` of an element. */\nexport function _setInnerHtml(element: HTMLElement, html: SafeHtml, sanitizer: DomSanitizer): void {\n const cleanHtml = sanitizer.sanitize(SecurityContext.HTML, html);\n\n if (cleanHtml === null && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error(`Could not sanitize HTML: ${html}`);\n }\n\n element.innerHTML = trustedHTMLFromString(cleanHtml || '') as unknown as string;\n}\n"],"names":["_VisuallyHiddenLoader","deps","target","i0","ɵɵFactoryTarget","Component","ɵcmp","ɵɵngDeclareComponent","minVersion","version","type","isInline","styles","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","decorators","policy","getPolicy","undefined","window","ttWindow","trustedTypes","createPolicy","createHTML","s","trustedHTMLFromString","html","_setInnerHtml","element","sanitizer","cleanHtml","sanitize","SecurityContext","HTML","ngDevMode","Error","innerHTML"],"mappings":";;;;MAqBaA,qBAAqB,CAAA;;;;;UAArBA,qBAAqB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;AAArB,EAAA,OAAAC,IAAA,GAAAH,EAAA,CAAAI,oBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,gBAAA;AAAAC,IAAAA,IAAA,EAAAV,qBAAqB;;;;;cAHtB,EAAE;AAAAW,IAAAA,QAAA,EAAA,IAAA;IAAAC,MAAA,EAAA,CAAA,yVAAA,CAAA;AAAAC,IAAAA,eAAA,EAAAV,EAAA,CAAAW,uBAAA,CAAAC,MAAA;AAAAC,IAAAA,aAAA,EAAAb,EAAA,CAAAc,iBAAA,CAAAC;AAAA,GAAA,CAAA;;;;;;QAGDlB,qBAAqB;AAAAmB,EAAAA,UAAA,EAAA,CAAA;UAPjCd,SAAS;;gBAEE,mBAAmB;MAAAW,aAAA,EACdC,iBAAiB,CAACC,IAAI;gBAC3B,EAAE;MAAAL,eAAA,EACKC,uBAAuB,CAACC,MAAM;MAAAH,MAAA,EAAA,CAAA,yVAAA;KAAA;;;;ACgBjD,IAAIQ,MAA4C;AAMhD,SAASC,SAASA,GAAA;EAChB,IAAID,MAAM,KAAKE,SAAS,EAAE;AACxBF,IAAAA,MAAM,GAAG,IAAI;AACb,IAAA,IAAI,OAAOG,MAAM,KAAK,WAAW,EAAE;MACjC,MAAMC,QAAQ,GAAGD,MAA8D;AAC/E,MAAA,IAAIC,QAAQ,CAACC,YAAY,KAAKH,SAAS,EAAE;QACvCF,MAAM,GAAGI,QAAQ,CAACC,YAAY,CAACC,YAAY,CAAC,oBAAoB,EAAE;UAChEC,UAAU,EAAGC,CAAS,IAAKA;AAC5B,SAAA,CAAC;AACJ,MAAA;AACF,IAAA;AACF,EAAA;AACA,EAAA,OAAOR,MAAM;AACf;AAYM,SAAUS,qBAAqBA,CAACC,IAAY,EAAA;EAChD,OAAOT,SAAS,EAAE,EAAEM,UAAU,CAACG,IAAI,CAAC,IAAKA,IAA+B;AAC1E;;SCnDgBC,aAAaA,CAACC,OAAoB,EAAEF,IAAc,EAAEG,SAAuB,EAAA;EACzF,MAAMC,SAAS,GAAGD,SAAS,CAACE,QAAQ,CAACC,eAAe,CAACC,IAAI,EAAEP,IAAI,CAAC;EAEhE,IAAII,SAAS,KAAK,IAAI,KAAK,OAAOI,SAAS,KAAK,WAAW,IAAIA,SAAS,CAAC,EAAE;AACzE,IAAA,MAAM,IAAIC,KAAK,CAAC,CAAA,yBAAA,EAA4BT,IAAI,EAAE,CAAC;AACrD,EAAA;EAEAE,OAAO,CAACQ,SAAS,GAAGX,qBAAqB,CAACK,SAAS,IAAI,EAAE,CAAsB;AACjF;;;;"}
1
+ {"version":3,"file":"private.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/private/visually-hidden/visually-hidden.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/private/trusted-types.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/private/inner-html.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Component, ViewEncapsulation} from '@angular/core';\n\n/**\n * Component used to load the .cdk-visually-hidden styles.\n * @docs-private\n */\n@Component({\n styleUrl: 'visually-hidden.css',\n exportAs: 'cdkVisuallyHidden',\n encapsulation: ViewEncapsulation.None,\n template: '',\n})\nexport class _VisuallyHiddenLoader {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n// A module to facilitate use of a Trusted Types policy internally within\n// Angular Material. It lazily constructs the Trusted Types policy, providing\n// helper utilities for promoting strings to Trusted Types. When Trusted Types\n// are not available, strings are used as a fallback.\n// All use of this module is security-sensitive and should go through security review.\n\nexport interface TrustedHTML {\n __brand__: 'TrustedHTML';\n}\n\ninterface TrustedTypePolicyFactory {\n createPolicy(\n policyName: string,\n policyOptions: {\n createHTML?: (input: string) => string;\n },\n ): TrustedTypePolicy;\n}\n\ninterface TrustedTypePolicy {\n createHTML(input: string): TrustedHTML;\n}\n\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy: TrustedTypePolicy | null | undefined;\n\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy(): TrustedTypePolicy | null {\n if (policy === undefined) {\n policy = null;\n if (typeof window !== 'undefined') {\n const ttWindow = window as unknown as {trustedTypes?: TrustedTypePolicyFactory};\n if (ttWindow.trustedTypes !== undefined) {\n policy = ttWindow.trustedTypes.createPolicy('angular#components', {\n createHTML: (s: string) => s,\n });\n }\n }\n }\n return policy;\n}\n\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n *\n * Important!!! This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nexport function trustedHTMLFromString(html: string): TrustedHTML {\n return getPolicy()?.createHTML(html) || (html as unknown as TrustedHTML);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {SecurityContext} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\nimport {trustedHTMLFromString} from './trusted-types';\n\n// !!!Note!!! this file isn't synced into g3, but is replaced with a version that uses\n// internal-specific APIs. The internal version may have to be updated if the signature of\n// the function changes.\n\n/** Sanitizes and sets the `innerHTML` of an element. */\nexport function _setInnerHtml(element: HTMLElement, html: SafeHtml, sanitizer: DomSanitizer): void {\n const cleanHtml = sanitizer.sanitize(SecurityContext.HTML, html);\n\n if (cleanHtml === null && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error(`Could not sanitize HTML: ${html}`);\n }\n\n element.innerHTML = trustedHTMLFromString(cleanHtml || '') as unknown as string;\n}\n"],"names":["_VisuallyHiddenLoader","deps","target","i0","ɵɵFactoryTarget","Component","ɵcmp","ɵɵngDeclareComponent","minVersion","version","type","isInline","styles","encapsulation","ViewEncapsulation","None","decorators","args","exportAs","policy","getPolicy","undefined","window","ttWindow","trustedTypes","createPolicy","createHTML","s","trustedHTMLFromString","html","_setInnerHtml","element","sanitizer","cleanHtml","sanitize","SecurityContext","HTML","ngDevMode","Error","innerHTML"],"mappings":";;;;MAoBaA,qBAAqB,CAAA;;;;;UAArBA,qBAAqB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;AAArB,EAAA,OAAAC,IAAA,GAAAH,EAAA,CAAAI,oBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,aAAA;AAAAC,IAAAA,IAAA,EAAAV,qBAAqB;;;;;cAFtB,EAAE;AAAAW,IAAAA,QAAA,EAAA,IAAA;IAAAC,MAAA,EAAA,CAAA,yVAAA,CAAA;AAAAC,IAAAA,aAAA,EAAAV,EAAA,CAAAW,iBAAA,CAAAC;AAAA,GAAA,CAAA;;;;;;QAEDf,qBAAqB;AAAAgB,EAAAA,UAAA,EAAA,CAAA;UANjCX,SAAS;AAEEY,IAAAA,IAAA,EAAA,CAAA;AAAAC,MAAAA,QAAA,EAAA,mBAAmB;MAAAL,aAAA,EACdC,iBAAiB,CAACC,IAAI;gBAC3B,EAAE;MAAAH,MAAA,EAAA,CAAA,yVAAA;KAAA;;;;ACiBd,IAAIO,MAA4C;AAMhD,SAASC,SAASA,GAAA;EAChB,IAAID,MAAM,KAAKE,SAAS,EAAE;AACxBF,IAAAA,MAAM,GAAG,IAAI;AACb,IAAA,IAAI,OAAOG,MAAM,KAAK,WAAW,EAAE;MACjC,MAAMC,QAAQ,GAAGD,MAA8D;AAC/E,MAAA,IAAIC,QAAQ,CAACC,YAAY,KAAKH,SAAS,EAAE;QACvCF,MAAM,GAAGI,QAAQ,CAACC,YAAY,CAACC,YAAY,CAAC,oBAAoB,EAAE;UAChEC,UAAU,EAAGC,CAAS,IAAKA;AAC5B,SAAA,CAAC;AACJ,MAAA;AACF,IAAA;AACF,EAAA;AACA,EAAA,OAAOR,MAAM;AACf;AAYM,SAAUS,qBAAqBA,CAACC,IAAY,EAAA;EAChD,OAAOT,SAAS,EAAE,EAAEM,UAAU,CAACG,IAAI,CAAC,IAAKA,IAA+B;AAC1E;;SCnDgBC,aAAaA,CAACC,OAAoB,EAAEF,IAAc,EAAEG,SAAuB,EAAA;EACzF,MAAMC,SAAS,GAAGD,SAAS,CAACE,QAAQ,CAACC,eAAe,CAACC,IAAI,EAAEP,IAAI,CAAC;EAEhE,IAAII,SAAS,KAAK,IAAI,KAAK,OAAOI,SAAS,KAAK,WAAW,IAAIA,SAAS,CAAC,EAAE;AACzE,IAAA,MAAM,IAAIC,KAAK,CAAC,CAAA,yBAAA,EAA4BT,IAAI,EAAE,CAAC;AACrD,EAAA;EAEAE,OAAO,CAACQ,SAAS,GAAGX,qBAAqB,CAACK,SAAS,IAAI,EAAE,CAAsB;AACjF;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, forwardRef, Input, Directive, inject, NgZone, RendererFactory2, Service, ElementRef, Renderer2, DOCUMENT, ChangeDetectorRef, signal, Injector, effect, ApplicationRef, DestroyRef, untracked, afterNextRender, booleanAttribute, ViewChild, Output, ChangeDetectionStrategy, ViewEncapsulation, Component, ViewContainerRef, TemplateRef, IterableDiffers, NgModule } from '@angular/core';
2
+ import { InjectionToken, forwardRef, Input, Directive, inject, NgZone, RendererFactory2, Service, ElementRef, Renderer2, DOCUMENT, ChangeDetectorRef, signal, Injector, effect, ApplicationRef, DestroyRef, untracked, afterNextRender, booleanAttribute, ViewChild, Output, ViewEncapsulation, Component, 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 { Platform } from './_platform-chunk.mjs';
@@ -139,7 +139,7 @@ class CdkFixedSizeVirtualScroll {
139
139
  }
140
140
  static ɵfac = i0.ɵɵngDeclareFactory({
141
141
  minVersion: "12.0.0",
142
- version: "22.0.0-next.10",
142
+ version: "22.0.0-rc.0",
143
143
  ngImport: i0,
144
144
  type: CdkFixedSizeVirtualScroll,
145
145
  deps: [],
@@ -147,7 +147,7 @@ class CdkFixedSizeVirtualScroll {
147
147
  });
148
148
  static ɵdir = i0.ɵɵngDeclareDirective({
149
149
  minVersion: "14.0.0",
150
- version: "22.0.0-next.10",
150
+ version: "22.0.0-rc.0",
151
151
  type: CdkFixedSizeVirtualScroll,
152
152
  isStandalone: true,
153
153
  selector: "cdk-virtual-scroll-viewport[itemSize]",
@@ -167,7 +167,7 @@ class CdkFixedSizeVirtualScroll {
167
167
  }
168
168
  i0.ɵɵngDeclareClassMetadata({
169
169
  minVersion: "12.0.0",
170
- version: "22.0.0-next.10",
170
+ version: "22.0.0-rc.0",
171
171
  ngImport: i0,
172
172
  type: CdkFixedSizeVirtualScroll,
173
173
  decorators: [{
@@ -203,16 +203,16 @@ class ScrollDispatcher {
203
203
  _scrolled = new Subject();
204
204
  _scrolledCount = 0;
205
205
  scrollContainers = new Map();
206
- register(scrollable) {
207
- if (!this.scrollContainers.has(scrollable)) {
208
- this.scrollContainers.set(scrollable, scrollable.elementScrolled().subscribe(() => this._scrolled.next(scrollable)));
206
+ register(target) {
207
+ if (!this.scrollContainers.has(target)) {
208
+ this.scrollContainers.set(target, target.elementScrolled().subscribe(() => this._scrolled.next(target)));
209
209
  }
210
210
  }
211
- deregister(scrollable) {
212
- const scrollableReference = this.scrollContainers.get(scrollable);
213
- if (scrollableReference) {
214
- scrollableReference.unsubscribe();
215
- this.scrollContainers.delete(scrollable);
211
+ deregister(target) {
212
+ const ref = this.scrollContainers.get(target);
213
+ if (ref) {
214
+ ref.unsubscribe();
215
+ this.scrollContainers.delete(target);
216
216
  }
217
217
  }
218
218
  scrolled(auditTimeInMs = DEFAULT_SCROLL_TIME) {
@@ -247,18 +247,18 @@ class ScrollDispatcher {
247
247
  }
248
248
  getAncestorScrollContainers(elementOrElementRef) {
249
249
  const scrollingContainers = [];
250
- this.scrollContainers.forEach((_subscription, scrollable) => {
251
- if (this._scrollableContainsElement(scrollable, elementOrElementRef)) {
252
- scrollingContainers.push(scrollable);
250
+ this.scrollContainers.forEach((_, target) => {
251
+ if (this._targetContainsElement(target, elementOrElementRef)) {
252
+ scrollingContainers.push(target);
253
253
  }
254
254
  });
255
255
  return scrollingContainers;
256
256
  }
257
- _scrollableContainsElement(scrollable, elementOrElementRef) {
257
+ _targetContainsElement(scrollable, elementOrElementRef) {
258
258
  let element = coerceElement(elementOrElementRef);
259
- let scrollableElement = scrollable.getElementRef().nativeElement;
259
+ let targetElement = scrollable.getElementRef().nativeElement;
260
260
  do {
261
- if (element == scrollableElement) {
261
+ if (element == targetElement) {
262
262
  return true;
263
263
  }
264
264
  } while (element = element.parentElement);
@@ -266,7 +266,7 @@ class ScrollDispatcher {
266
266
  }
267
267
  static ɵfac = i0.ɵɵngDeclareFactory({
268
268
  minVersion: "12.0.0",
269
- version: "22.0.0-next.10",
269
+ version: "22.0.0-rc.0",
270
270
  ngImport: i0,
271
271
  type: ScrollDispatcher,
272
272
  deps: [],
@@ -274,14 +274,14 @@ class ScrollDispatcher {
274
274
  });
275
275
  static ɵprov = i0.ɵɵngDeclareService({
276
276
  minVersion: "22.0.0",
277
- version: "22.0.0-next.10",
277
+ version: "22.0.0-rc.0",
278
278
  ngImport: i0,
279
279
  type: ScrollDispatcher
280
280
  });
281
281
  }
282
282
  i0.ɵɵngDeclareClassMetadata({
283
283
  minVersion: "12.0.0",
284
- version: "22.0.0-next.10",
284
+ version: "22.0.0-rc.0",
285
285
  ngImport: i0,
286
286
  type: ScrollDispatcher,
287
287
  decorators: [{
@@ -397,7 +397,7 @@ class CdkScrollable {
397
397
  }
398
398
  static ɵfac = i0.ɵɵngDeclareFactory({
399
399
  minVersion: "12.0.0",
400
- version: "22.0.0-next.10",
400
+ version: "22.0.0-rc.0",
401
401
  ngImport: i0,
402
402
  type: CdkScrollable,
403
403
  deps: [],
@@ -405,7 +405,7 @@ class CdkScrollable {
405
405
  });
406
406
  static ɵdir = i0.ɵɵngDeclareDirective({
407
407
  minVersion: "14.0.0",
408
- version: "22.0.0-next.10",
408
+ version: "22.0.0-rc.0",
409
409
  type: CdkScrollable,
410
410
  isStandalone: true,
411
411
  selector: "[cdk-scrollable], [cdkScrollable]",
@@ -414,7 +414,7 @@ class CdkScrollable {
414
414
  }
415
415
  i0.ɵɵngDeclareClassMetadata({
416
416
  minVersion: "12.0.0",
417
- version: "22.0.0-next.10",
417
+ version: "22.0.0-rc.0",
418
418
  ngImport: i0,
419
419
  type: CdkScrollable,
420
420
  decorators: [{
@@ -511,7 +511,7 @@ class ViewportRuler {
511
511
  }
512
512
  static ɵfac = i0.ɵɵngDeclareFactory({
513
513
  minVersion: "12.0.0",
514
- version: "22.0.0-next.10",
514
+ version: "22.0.0-rc.0",
515
515
  ngImport: i0,
516
516
  type: ViewportRuler,
517
517
  deps: [],
@@ -519,14 +519,14 @@ class ViewportRuler {
519
519
  });
520
520
  static ɵprov = i0.ɵɵngDeclareService({
521
521
  minVersion: "22.0.0",
522
- version: "22.0.0-next.10",
522
+ version: "22.0.0-rc.0",
523
523
  ngImport: i0,
524
524
  type: ViewportRuler
525
525
  });
526
526
  }
527
527
  i0.ɵɵngDeclareClassMetadata({
528
528
  minVersion: "12.0.0",
529
- version: "22.0.0-next.10",
529
+ version: "22.0.0-rc.0",
530
530
  ngImport: i0,
531
531
  type: ViewportRuler,
532
532
  decorators: [{
@@ -543,7 +543,7 @@ class CdkVirtualScrollable extends CdkScrollable {
543
543
  }
544
544
  static ɵfac = i0.ɵɵngDeclareFactory({
545
545
  minVersion: "12.0.0",
546
- version: "22.0.0-next.10",
546
+ version: "22.0.0-rc.0",
547
547
  ngImport: i0,
548
548
  type: CdkVirtualScrollable,
549
549
  deps: null,
@@ -551,7 +551,7 @@ class CdkVirtualScrollable extends CdkScrollable {
551
551
  });
552
552
  static ɵdir = i0.ɵɵngDeclareDirective({
553
553
  minVersion: "14.0.0",
554
- version: "22.0.0-next.10",
554
+ version: "22.0.0-rc.0",
555
555
  type: CdkVirtualScrollable,
556
556
  isStandalone: true,
557
557
  usesInheritance: true,
@@ -560,7 +560,7 @@ class CdkVirtualScrollable extends CdkScrollable {
560
560
  }
561
561
  i0.ɵɵngDeclareClassMetadata({
562
562
  minVersion: "12.0.0",
563
- version: "22.0.0-next.10",
563
+ version: "22.0.0-rc.0",
564
564
  ngImport: i0,
565
565
  type: CdkVirtualScrollable,
566
566
  decorators: [{
@@ -851,7 +851,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
851
851
  }
852
852
  static ɵfac = i0.ɵɵngDeclareFactory({
853
853
  minVersion: "12.0.0",
854
- version: "22.0.0-next.10",
854
+ version: "22.0.0-rc.0",
855
855
  ngImport: i0,
856
856
  type: CdkVirtualScrollViewport,
857
857
  deps: [],
@@ -859,7 +859,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
859
859
  });
860
860
  static ɵcmp = i0.ɵɵngDeclareComponent({
861
861
  minVersion: "16.1.0",
862
- version: "22.0.0-next.10",
862
+ version: "22.0.0-rc.0",
863
863
  type: CdkVirtualScrollViewport,
864
864
  isStandalone: true,
865
865
  selector: "cdk-virtual-scroll-viewport",
@@ -897,13 +897,12 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
897
897
  ngImport: i0,
898
898
  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",
899
899
  styles: ["cdk-virtual-scroll-viewport {\n display: block;\n position: relative;\n transform: translateZ(0);\n}\n\n.cdk-virtual-scrollable {\n overflow: auto;\n will-change: scroll-position;\n contain: strict;\n}\n\n.cdk-virtual-scroll-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n}\n[dir=rtl] .cdk-virtual-scroll-content-wrapper {\n right: 0;\n left: auto;\n}\n\n.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper {\n min-height: 100%;\n}\n.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]) {\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n border-left-width: 0;\n border-right-width: 0;\n outline: none;\n}\n\n.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {\n min-width: 100%;\n}\n.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]) {\n padding-top: 0;\n padding-bottom: 0;\n margin-top: 0;\n margin-bottom: 0;\n border-top-width: 0;\n border-bottom-width: 0;\n outline: none;\n}\n\n.cdk-virtual-scroll-spacer {\n height: 1px;\n transform-origin: 0 0;\n flex: 0 0 auto;\n}\n[dir=rtl] .cdk-virtual-scroll-spacer {\n transform-origin: 100% 0;\n}\n"],
900
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
901
900
  encapsulation: i0.ViewEncapsulation.None
902
901
  });
903
902
  }
904
903
  i0.ɵɵngDeclareClassMetadata({
905
904
  minVersion: "12.0.0",
906
- version: "22.0.0-next.10",
905
+ version: "22.0.0-rc.0",
907
906
  ngImport: i0,
908
907
  type: CdkVirtualScrollViewport,
909
908
  decorators: [{
@@ -916,7 +915,6 @@ i0.ɵɵngDeclareClassMetadata({
916
915
  '[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== "horizontal"'
917
916
  },
918
917
  encapsulation: ViewEncapsulation.None,
919
- changeDetection: ChangeDetectionStrategy.OnPush,
920
918
  providers: [{
921
919
  provide: CdkScrollable,
922
920
  useFactory: () => inject(VIRTUAL_SCROLLABLE, {
@@ -1150,7 +1148,7 @@ class CdkVirtualForOf {
1150
1148
  }
1151
1149
  static ɵfac = i0.ɵɵngDeclareFactory({
1152
1150
  minVersion: "12.0.0",
1153
- version: "22.0.0-next.10",
1151
+ version: "22.0.0-rc.0",
1154
1152
  ngImport: i0,
1155
1153
  type: CdkVirtualForOf,
1156
1154
  deps: [],
@@ -1158,7 +1156,7 @@ class CdkVirtualForOf {
1158
1156
  });
1159
1157
  static ɵdir = i0.ɵɵngDeclareDirective({
1160
1158
  minVersion: "14.0.0",
1161
- version: "22.0.0-next.10",
1159
+ version: "22.0.0-rc.0",
1162
1160
  type: CdkVirtualForOf,
1163
1161
  isStandalone: true,
1164
1162
  selector: "[cdkVirtualFor][cdkVirtualForOf]",
@@ -1173,7 +1171,7 @@ class CdkVirtualForOf {
1173
1171
  }
1174
1172
  i0.ɵɵngDeclareClassMetadata({
1175
1173
  minVersion: "12.0.0",
1176
- version: "22.0.0-next.10",
1174
+ version: "22.0.0-rc.0",
1177
1175
  ngImport: i0,
1178
1176
  type: CdkVirtualForOf,
1179
1177
  decorators: [{
@@ -1205,7 +1203,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
1205
1203
  }
1206
1204
  static ɵfac = i0.ɵɵngDeclareFactory({
1207
1205
  minVersion: "12.0.0",
1208
- version: "22.0.0-next.10",
1206
+ version: "22.0.0-rc.0",
1209
1207
  ngImport: i0,
1210
1208
  type: CdkVirtualScrollableElement,
1211
1209
  deps: null,
@@ -1213,7 +1211,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
1213
1211
  });
1214
1212
  static ɵdir = i0.ɵɵngDeclareDirective({
1215
1213
  minVersion: "14.0.0",
1216
- version: "22.0.0-next.10",
1214
+ version: "22.0.0-rc.0",
1217
1215
  type: CdkVirtualScrollableElement,
1218
1216
  isStandalone: true,
1219
1217
  selector: "[cdkVirtualScrollingElement]",
@@ -1230,7 +1228,7 @@ class CdkVirtualScrollableElement extends CdkVirtualScrollable {
1230
1228
  }
1231
1229
  i0.ɵɵngDeclareClassMetadata({
1232
1230
  minVersion: "12.0.0",
1233
- version: "22.0.0-next.10",
1231
+ version: "22.0.0-rc.0",
1234
1232
  ngImport: i0,
1235
1233
  type: CdkVirtualScrollableElement,
1236
1234
  decorators: [{
@@ -1260,7 +1258,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
1260
1258
  }
1261
1259
  static ɵfac = i0.ɵɵngDeclareFactory({
1262
1260
  minVersion: "12.0.0",
1263
- version: "22.0.0-next.10",
1261
+ version: "22.0.0-rc.0",
1264
1262
  ngImport: i0,
1265
1263
  type: CdkVirtualScrollableWindow,
1266
1264
  deps: [],
@@ -1268,7 +1266,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
1268
1266
  });
1269
1267
  static ɵdir = i0.ɵɵngDeclareDirective({
1270
1268
  minVersion: "14.0.0",
1271
- version: "22.0.0-next.10",
1269
+ version: "22.0.0-rc.0",
1272
1270
  type: CdkVirtualScrollableWindow,
1273
1271
  isStandalone: true,
1274
1272
  selector: "cdk-virtual-scroll-viewport[scrollWindow]",
@@ -1282,7 +1280,7 @@ class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
1282
1280
  }
1283
1281
  i0.ɵɵngDeclareClassMetadata({
1284
1282
  minVersion: "12.0.0",
1285
- version: "22.0.0-next.10",
1283
+ version: "22.0.0-rc.0",
1286
1284
  ngImport: i0,
1287
1285
  type: CdkVirtualScrollableWindow,
1288
1286
  decorators: [{
@@ -1301,7 +1299,7 @@ i0.ɵɵngDeclareClassMetadata({
1301
1299
  class CdkScrollableModule {
1302
1300
  static ɵfac = i0.ɵɵngDeclareFactory({
1303
1301
  minVersion: "12.0.0",
1304
- version: "22.0.0-next.10",
1302
+ version: "22.0.0-rc.0",
1305
1303
  ngImport: i0,
1306
1304
  type: CdkScrollableModule,
1307
1305
  deps: [],
@@ -1309,7 +1307,7 @@ class CdkScrollableModule {
1309
1307
  });
1310
1308
  static ɵmod = i0.ɵɵngDeclareNgModule({
1311
1309
  minVersion: "14.0.0",
1312
- version: "22.0.0-next.10",
1310
+ version: "22.0.0-rc.0",
1313
1311
  ngImport: i0,
1314
1312
  type: CdkScrollableModule,
1315
1313
  imports: [CdkScrollable],
@@ -1317,14 +1315,14 @@ class CdkScrollableModule {
1317
1315
  });
1318
1316
  static ɵinj = i0.ɵɵngDeclareInjector({
1319
1317
  minVersion: "12.0.0",
1320
- version: "22.0.0-next.10",
1318
+ version: "22.0.0-rc.0",
1321
1319
  ngImport: i0,
1322
1320
  type: CdkScrollableModule
1323
1321
  });
1324
1322
  }
1325
1323
  i0.ɵɵngDeclareClassMetadata({
1326
1324
  minVersion: "12.0.0",
1327
- version: "22.0.0-next.10",
1325
+ version: "22.0.0-rc.0",
1328
1326
  ngImport: i0,
1329
1327
  type: CdkScrollableModule,
1330
1328
  decorators: [{
@@ -1338,7 +1336,7 @@ i0.ɵɵngDeclareClassMetadata({
1338
1336
  class ScrollingModule {
1339
1337
  static ɵfac = i0.ɵɵngDeclareFactory({
1340
1338
  minVersion: "12.0.0",
1341
- version: "22.0.0-next.10",
1339
+ version: "22.0.0-rc.0",
1342
1340
  ngImport: i0,
1343
1341
  type: ScrollingModule,
1344
1342
  deps: [],
@@ -1346,7 +1344,7 @@ class ScrollingModule {
1346
1344
  });
1347
1345
  static ɵmod = i0.ɵɵngDeclareNgModule({
1348
1346
  minVersion: "14.0.0",
1349
- version: "22.0.0-next.10",
1347
+ version: "22.0.0-rc.0",
1350
1348
  ngImport: i0,
1351
1349
  type: ScrollingModule,
1352
1350
  imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollableWindow, CdkVirtualScrollableElement],
@@ -1354,7 +1352,7 @@ class ScrollingModule {
1354
1352
  });
1355
1353
  static ɵinj = i0.ɵɵngDeclareInjector({
1356
1354
  minVersion: "12.0.0",
1357
- version: "22.0.0-next.10",
1355
+ version: "22.0.0-rc.0",
1358
1356
  ngImport: i0,
1359
1357
  type: ScrollingModule,
1360
1358
  imports: [BidiModule, CdkScrollableModule, BidiModule, CdkScrollableModule]
@@ -1362,7 +1360,7 @@ class ScrollingModule {
1362
1360
  }
1363
1361
  i0.ɵɵngDeclareClassMetadata({
1364
1362
  minVersion: "12.0.0",
1365
- version: "22.0.0-next.10",
1363
+ version: "22.0.0-rc.0",
1366
1364
  ngImport: i0,
1367
1365
  type: ScrollingModule,
1368
1366
  decorators: [{