@angular/cdk 19.0.0-next.3 → 19.0.0-next.5

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 (293) hide show
  1. package/a11y/index.d.ts +19 -37
  2. package/accordion/index.d.ts +5 -4
  3. package/bidi/index.d.ts +2 -2
  4. package/clipboard/index.d.ts +3 -4
  5. package/dialog/index.d.ts +6 -9
  6. package/drag-drop/index.d.ts +16 -33
  7. package/fesm2022/a11y.mjs +109 -167
  8. package/fesm2022/a11y.mjs.map +1 -1
  9. package/fesm2022/accordion.mjs +20 -25
  10. package/fesm2022/accordion.mjs.map +1 -1
  11. package/fesm2022/bidi.mjs +14 -18
  12. package/fesm2022/bidi.mjs.map +1 -1
  13. package/fesm2022/cdk.mjs +1 -1
  14. package/fesm2022/cdk.mjs.map +1 -1
  15. package/fesm2022/clipboard.mjs +19 -26
  16. package/fesm2022/clipboard.mjs.map +1 -1
  17. package/fesm2022/coercion/private.mjs.map +1 -1
  18. package/fesm2022/coercion.mjs.map +1 -1
  19. package/fesm2022/collections.mjs +3 -3
  20. package/fesm2022/collections.mjs.map +1 -1
  21. package/fesm2022/dialog.mjs +33 -53
  22. package/fesm2022/dialog.mjs.map +1 -1
  23. package/fesm2022/drag-drop.mjs +90 -149
  24. package/fesm2022/drag-drop.mjs.map +1 -1
  25. package/fesm2022/keycodes.mjs.map +1 -1
  26. package/fesm2022/layout.mjs +21 -26
  27. package/fesm2022/layout.mjs.map +1 -1
  28. package/fesm2022/listbox.mjs +17 -11
  29. package/fesm2022/listbox.mjs.map +1 -1
  30. package/fesm2022/menu.mjs +49 -49
  31. package/fesm2022/menu.mjs.map +1 -1
  32. package/fesm2022/observers/private.mjs +3 -3
  33. package/fesm2022/observers/private.mjs.map +1 -1
  34. package/fesm2022/observers.mjs +21 -21
  35. package/fesm2022/observers.mjs.map +1 -1
  36. package/fesm2022/overlay.mjs +105 -148
  37. package/fesm2022/overlay.mjs.map +1 -1
  38. package/fesm2022/platform.mjs +7 -7
  39. package/fesm2022/platform.mjs.map +1 -1
  40. package/fesm2022/portal.mjs +59 -58
  41. package/fesm2022/portal.mjs.map +1 -1
  42. package/fesm2022/private.mjs +3 -3
  43. package/fesm2022/private.mjs.map +1 -1
  44. package/fesm2022/scrolling.mjs +86 -126
  45. package/fesm2022/scrolling.mjs.map +1 -1
  46. package/fesm2022/stepper.mjs +47 -56
  47. package/fesm2022/stepper.mjs.map +1 -1
  48. package/fesm2022/table.mjs +170 -228
  49. package/fesm2022/table.mjs.map +1 -1
  50. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  51. package/fesm2022/testing/testbed.mjs.map +1 -1
  52. package/fesm2022/testing.mjs.map +1 -1
  53. package/fesm2022/text-field.mjs +33 -40
  54. package/fesm2022/text-field.mjs.map +1 -1
  55. package/fesm2022/tree.mjs +68 -71
  56. package/fesm2022/tree.mjs.map +1 -1
  57. package/layout/index.d.ts +5 -7
  58. package/observers/index.d.ts +2 -2
  59. package/overlay/_index.scss +44 -11
  60. package/overlay/index.d.ts +18 -34
  61. package/overlay-prebuilt.css +1 -1
  62. package/package.json +1 -1
  63. package/portal/index.d.ts +21 -18
  64. package/schematics/index.d.ts +1 -1
  65. package/schematics/index.js +2 -2
  66. package/schematics/index.mjs +2 -2
  67. package/schematics/ng-add/index.d.ts +1 -1
  68. package/schematics/ng-add/index.js +3 -3
  69. package/schematics/ng-add/index.mjs +3 -3
  70. package/schematics/ng-add/package-config.d.ts +1 -1
  71. package/schematics/ng-add/package-config.js +2 -2
  72. package/schematics/ng-add/package-config.mjs +2 -2
  73. package/schematics/ng-add/schema.d.ts +1 -1
  74. package/schematics/ng-add/schema.js +2 -2
  75. package/schematics/ng-add/schema.mjs +2 -2
  76. package/schematics/ng-generate/drag-drop/index.d.ts +1 -1
  77. package/schematics/ng-generate/drag-drop/index.js +2 -2
  78. package/schematics/ng-generate/drag-drop/index.mjs +2 -2
  79. package/schematics/ng-generate/drag-drop/schema.d.ts +1 -1
  80. package/schematics/ng-generate/drag-drop/schema.js +2 -2
  81. package/schematics/ng-generate/drag-drop/schema.mjs +2 -2
  82. package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
  83. package/schematics/ng-update/data/attribute-selectors.js +2 -2
  84. package/schematics/ng-update/data/attribute-selectors.mjs +2 -2
  85. package/schematics/ng-update/data/class-names.d.ts +1 -1
  86. package/schematics/ng-update/data/class-names.js +2 -2
  87. package/schematics/ng-update/data/class-names.mjs +2 -2
  88. package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
  89. package/schematics/ng-update/data/constructor-checks.js +2 -2
  90. package/schematics/ng-update/data/constructor-checks.mjs +2 -2
  91. package/schematics/ng-update/data/css-selectors.d.ts +1 -1
  92. package/schematics/ng-update/data/css-selectors.js +2 -2
  93. package/schematics/ng-update/data/css-selectors.mjs +2 -2
  94. package/schematics/ng-update/data/css-tokens.d.ts +1 -1
  95. package/schematics/ng-update/data/css-tokens.js +2 -2
  96. package/schematics/ng-update/data/css-tokens.mjs +2 -2
  97. package/schematics/ng-update/data/element-selectors.d.ts +1 -1
  98. package/schematics/ng-update/data/element-selectors.js +2 -2
  99. package/schematics/ng-update/data/element-selectors.mjs +2 -2
  100. package/schematics/ng-update/data/index.d.ts +1 -1
  101. package/schematics/ng-update/data/index.js +2 -2
  102. package/schematics/ng-update/data/index.mjs +2 -2
  103. package/schematics/ng-update/data/input-names.d.ts +1 -1
  104. package/schematics/ng-update/data/input-names.js +2 -2
  105. package/schematics/ng-update/data/input-names.mjs +2 -2
  106. package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
  107. package/schematics/ng-update/data/method-call-checks.js +2 -2
  108. package/schematics/ng-update/data/method-call-checks.mjs +2 -2
  109. package/schematics/ng-update/data/output-names.d.ts +1 -1
  110. package/schematics/ng-update/data/output-names.js +2 -2
  111. package/schematics/ng-update/data/output-names.mjs +2 -2
  112. package/schematics/ng-update/data/property-names.d.ts +1 -1
  113. package/schematics/ng-update/data/property-names.js +2 -2
  114. package/schematics/ng-update/data/property-names.mjs +2 -2
  115. package/schematics/ng-update/data/symbol-removal.d.ts +1 -1
  116. package/schematics/ng-update/data/symbol-removal.js +2 -2
  117. package/schematics/ng-update/data/symbol-removal.mjs +2 -2
  118. package/schematics/ng-update/devkit-file-system.d.ts +1 -1
  119. package/schematics/ng-update/devkit-file-system.js +2 -2
  120. package/schematics/ng-update/devkit-file-system.mjs +2 -2
  121. package/schematics/ng-update/devkit-migration-rule.d.ts +1 -1
  122. package/schematics/ng-update/devkit-migration-rule.js +2 -2
  123. package/schematics/ng-update/devkit-migration-rule.mjs +2 -2
  124. package/schematics/ng-update/devkit-migration.d.ts +1 -1
  125. package/schematics/ng-update/devkit-migration.js +2 -2
  126. package/schematics/ng-update/devkit-migration.mjs +2 -2
  127. package/schematics/ng-update/find-stylesheets.d.ts +1 -1
  128. package/schematics/ng-update/find-stylesheets.js +2 -2
  129. package/schematics/ng-update/find-stylesheets.mjs +2 -2
  130. package/schematics/ng-update/html-parsing/angular.d.ts +1 -1
  131. package/schematics/ng-update/html-parsing/angular.js +2 -2
  132. package/schematics/ng-update/html-parsing/angular.mjs +2 -2
  133. package/schematics/ng-update/html-parsing/elements.d.ts +1 -1
  134. package/schematics/ng-update/html-parsing/elements.js +2 -2
  135. package/schematics/ng-update/html-parsing/elements.mjs +2 -2
  136. package/schematics/ng-update/index.d.ts +1 -1
  137. package/schematics/ng-update/index.js +2 -2
  138. package/schematics/ng-update/index.mjs +2 -2
  139. package/schematics/ng-update/migrations/attribute-selectors.d.ts +1 -1
  140. package/schematics/ng-update/migrations/attribute-selectors.js +2 -2
  141. package/schematics/ng-update/migrations/attribute-selectors.mjs +2 -2
  142. package/schematics/ng-update/migrations/class-inheritance.d.ts +1 -1
  143. package/schematics/ng-update/migrations/class-inheritance.js +2 -2
  144. package/schematics/ng-update/migrations/class-inheritance.mjs +2 -2
  145. package/schematics/ng-update/migrations/class-names.d.ts +1 -1
  146. package/schematics/ng-update/migrations/class-names.js +2 -2
  147. package/schematics/ng-update/migrations/class-names.mjs +2 -2
  148. package/schematics/ng-update/migrations/constructor-signature.d.ts +1 -1
  149. package/schematics/ng-update/migrations/constructor-signature.js +2 -2
  150. package/schematics/ng-update/migrations/constructor-signature.mjs +2 -2
  151. package/schematics/ng-update/migrations/css-selectors.d.ts +1 -1
  152. package/schematics/ng-update/migrations/css-selectors.js +2 -2
  153. package/schematics/ng-update/migrations/css-selectors.mjs +2 -2
  154. package/schematics/ng-update/migrations/css-tokens.d.ts +1 -1
  155. package/schematics/ng-update/migrations/css-tokens.js +2 -2
  156. package/schematics/ng-update/migrations/css-tokens.mjs +2 -2
  157. package/schematics/ng-update/migrations/element-selectors.d.ts +1 -1
  158. package/schematics/ng-update/migrations/element-selectors.js +2 -2
  159. package/schematics/ng-update/migrations/element-selectors.mjs +2 -2
  160. package/schematics/ng-update/migrations/input-names.d.ts +1 -1
  161. package/schematics/ng-update/migrations/input-names.js +2 -2
  162. package/schematics/ng-update/migrations/input-names.mjs +2 -2
  163. package/schematics/ng-update/migrations/method-call-arguments.d.ts +1 -1
  164. package/schematics/ng-update/migrations/method-call-arguments.js +2 -2
  165. package/schematics/ng-update/migrations/method-call-arguments.mjs +2 -2
  166. package/schematics/ng-update/migrations/misc-template.d.ts +1 -1
  167. package/schematics/ng-update/migrations/misc-template.js +2 -2
  168. package/schematics/ng-update/migrations/misc-template.mjs +2 -2
  169. package/schematics/ng-update/migrations/output-names.d.ts +1 -1
  170. package/schematics/ng-update/migrations/output-names.js +2 -2
  171. package/schematics/ng-update/migrations/output-names.mjs +2 -2
  172. package/schematics/ng-update/migrations/property-names.d.ts +1 -1
  173. package/schematics/ng-update/migrations/property-names.js +2 -2
  174. package/schematics/ng-update/migrations/property-names.mjs +2 -2
  175. package/schematics/ng-update/migrations/symbol-removal.d.ts +1 -1
  176. package/schematics/ng-update/migrations/symbol-removal.js +2 -2
  177. package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
  178. package/schematics/ng-update/public-api.d.ts +1 -1
  179. package/schematics/ng-update/public-api.js +2 -2
  180. package/schematics/ng-update/public-api.mjs +2 -2
  181. package/schematics/ng-update/typescript/base-types.d.ts +1 -1
  182. package/schematics/ng-update/typescript/base-types.js +2 -2
  183. package/schematics/ng-update/typescript/base-types.mjs +2 -2
  184. package/schematics/ng-update/typescript/imports.d.ts +1 -1
  185. package/schematics/ng-update/typescript/imports.js +2 -2
  186. package/schematics/ng-update/typescript/imports.mjs +2 -2
  187. package/schematics/ng-update/typescript/literal.d.ts +1 -1
  188. package/schematics/ng-update/typescript/literal.js +2 -2
  189. package/schematics/ng-update/typescript/literal.mjs +2 -2
  190. package/schematics/ng-update/typescript/module-specifiers.d.ts +1 -1
  191. package/schematics/ng-update/typescript/module-specifiers.js +2 -2
  192. package/schematics/ng-update/typescript/module-specifiers.mjs +2 -2
  193. package/schematics/ng-update/upgrade-data.d.ts +1 -1
  194. package/schematics/ng-update/upgrade-data.js +2 -2
  195. package/schematics/ng-update/upgrade-data.mjs +2 -2
  196. package/schematics/paths.d.ts +1 -1
  197. package/schematics/paths.js +2 -2
  198. package/schematics/paths.mjs +2 -2
  199. package/schematics/update-tool/component-resource-collector.d.ts +1 -1
  200. package/schematics/update-tool/component-resource-collector.js +2 -2
  201. package/schematics/update-tool/component-resource-collector.mjs +2 -2
  202. package/schematics/update-tool/file-system.d.ts +1 -1
  203. package/schematics/update-tool/file-system.js +2 -2
  204. package/schematics/update-tool/file-system.mjs +2 -2
  205. package/schematics/update-tool/index.d.ts +1 -1
  206. package/schematics/update-tool/index.js +2 -2
  207. package/schematics/update-tool/index.mjs +2 -2
  208. package/schematics/update-tool/logger.d.ts +1 -1
  209. package/schematics/update-tool/logger.js +2 -2
  210. package/schematics/update-tool/logger.mjs +2 -2
  211. package/schematics/update-tool/migration.d.ts +1 -1
  212. package/schematics/update-tool/migration.js +2 -2
  213. package/schematics/update-tool/migration.mjs +2 -2
  214. package/schematics/update-tool/public-api.d.ts +1 -1
  215. package/schematics/update-tool/public-api.js +2 -2
  216. package/schematics/update-tool/public-api.mjs +2 -2
  217. package/schematics/update-tool/target-version.d.ts +1 -1
  218. package/schematics/update-tool/target-version.js +2 -2
  219. package/schematics/update-tool/target-version.mjs +2 -2
  220. package/schematics/update-tool/update-recorder.d.ts +1 -1
  221. package/schematics/update-tool/update-recorder.js +2 -2
  222. package/schematics/update-tool/update-recorder.mjs +2 -2
  223. package/schematics/update-tool/utils/decorators.d.ts +1 -1
  224. package/schematics/update-tool/utils/decorators.js +2 -2
  225. package/schematics/update-tool/utils/decorators.mjs +2 -2
  226. package/schematics/update-tool/utils/diagnostics.d.ts +1 -1
  227. package/schematics/update-tool/utils/diagnostics.js +2 -2
  228. package/schematics/update-tool/utils/diagnostics.mjs +2 -2
  229. package/schematics/update-tool/utils/functions.d.ts +1 -1
  230. package/schematics/update-tool/utils/functions.js +2 -2
  231. package/schematics/update-tool/utils/functions.mjs +2 -2
  232. package/schematics/update-tool/utils/imports.d.ts +1 -1
  233. package/schematics/update-tool/utils/imports.js +2 -2
  234. package/schematics/update-tool/utils/imports.mjs +2 -2
  235. package/schematics/update-tool/utils/line-mappings.d.ts +1 -1
  236. package/schematics/update-tool/utils/line-mappings.js +2 -2
  237. package/schematics/update-tool/utils/line-mappings.mjs +2 -2
  238. package/schematics/update-tool/utils/parse-tsconfig.d.ts +1 -1
  239. package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
  240. package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
  241. package/schematics/update-tool/utils/property-name.d.ts +1 -1
  242. package/schematics/update-tool/utils/property-name.js +2 -2
  243. package/schematics/update-tool/utils/property-name.mjs +2 -2
  244. package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
  245. package/schematics/update-tool/utils/virtual-host.js +2 -2
  246. package/schematics/update-tool/utils/virtual-host.mjs +2 -2
  247. package/schematics/update-tool/version-changes.d.ts +1 -1
  248. package/schematics/update-tool/version-changes.js +2 -2
  249. package/schematics/update-tool/version-changes.mjs +2 -2
  250. package/schematics/utils/ast/ng-module-imports.d.ts +1 -1
  251. package/schematics/utils/ast/ng-module-imports.js +2 -2
  252. package/schematics/utils/ast/ng-module-imports.mjs +2 -2
  253. package/schematics/utils/ast.d.ts +1 -1
  254. package/schematics/utils/ast.js +2 -2
  255. package/schematics/utils/ast.mjs +2 -2
  256. package/schematics/utils/build-component.d.ts +1 -1
  257. package/schematics/utils/build-component.js +2 -2
  258. package/schematics/utils/build-component.mjs +2 -2
  259. package/schematics/utils/get-project.d.ts +1 -1
  260. package/schematics/utils/get-project.js +2 -2
  261. package/schematics/utils/get-project.mjs +2 -2
  262. package/schematics/utils/html-manipulation.d.ts +1 -1
  263. package/schematics/utils/html-manipulation.js +2 -2
  264. package/schematics/utils/html-manipulation.mjs +2 -2
  265. package/schematics/utils/index.d.ts +1 -1
  266. package/schematics/utils/index.js +2 -2
  267. package/schematics/utils/index.mjs +2 -2
  268. package/schematics/utils/parse5-element.d.ts +1 -1
  269. package/schematics/utils/parse5-element.js +2 -2
  270. package/schematics/utils/parse5-element.mjs +2 -2
  271. package/schematics/utils/project-index-file.d.ts +1 -1
  272. package/schematics/utils/project-index-file.js +2 -2
  273. package/schematics/utils/project-index-file.mjs +2 -2
  274. package/schematics/utils/project-main-file.d.ts +1 -1
  275. package/schematics/utils/project-main-file.js +2 -2
  276. package/schematics/utils/project-main-file.mjs +2 -2
  277. package/schematics/utils/project-style-file.d.ts +1 -1
  278. package/schematics/utils/project-style-file.js +2 -2
  279. package/schematics/utils/project-style-file.mjs +2 -2
  280. package/schematics/utils/project-targets.d.ts +1 -1
  281. package/schematics/utils/project-targets.js +2 -2
  282. package/schematics/utils/project-targets.mjs +2 -2
  283. package/schematics/utils/project-tsconfig-paths.d.ts +1 -1
  284. package/schematics/utils/project-tsconfig-paths.js +2 -2
  285. package/schematics/utils/project-tsconfig-paths.mjs +2 -2
  286. package/schematics/utils/schematic-options.d.ts +1 -1
  287. package/schematics/utils/schematic-options.js +2 -2
  288. package/schematics/utils/schematic-options.mjs +2 -2
  289. package/scrolling/index.d.ts +17 -37
  290. package/stepper/index.d.ts +9 -11
  291. package/table/index.d.ts +36 -51
  292. package/text-field/index.d.ts +5 -9
  293. package/tree/index.d.ts +11 -13
@@ -1,14 +1,11 @@
1
1
  import { coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, forwardRef, Directive, Input, Injectable, Optional, Inject, inject, Injector, afterNextRender, booleanAttribute, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, SkipSelf, ElementRef, NgModule } from '@angular/core';
3
+ import { InjectionToken, forwardRef, Directive, Input, inject, NgZone, Injectable, ElementRef, ChangeDetectorRef, Injector, afterNextRender, booleanAttribute, Optional, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, ViewContainerRef, TemplateRef, IterableDiffers, NgModule } from '@angular/core';
4
4
  import { Subject, of, Observable, fromEvent, animationFrameScheduler, asapScheduler, Subscription, isObservable } from 'rxjs';
5
5
  import { distinctUntilChanged, auditTime, filter, takeUntil, startWith, pairwise, switchMap, shareReplay } from 'rxjs/operators';
6
- import * as i1 from '@angular/cdk/platform';
7
- import { getRtlScrollAxisType, RtlScrollAxisType, supportsScrollBehavior, Platform } from '@angular/cdk/platform';
6
+ import { Platform, getRtlScrollAxisType, RtlScrollAxisType, supportsScrollBehavior } from '@angular/cdk/platform';
8
7
  import { DOCUMENT } from '@angular/common';
9
- import * as i2 from '@angular/cdk/bidi';
10
- import { BidiModule } from '@angular/cdk/bidi';
11
- import * as i2$1 from '@angular/cdk/collections';
8
+ import { Directionality, BidiModule } from '@angular/cdk/bidi';
12
9
  import { isDataSource, ArrayDataSource, _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy } from '@angular/cdk/collections';
13
10
 
14
11
  /** The injection token used to specify the virtual scrolling strategy. */
@@ -189,8 +186,8 @@ class CdkFixedSizeVirtualScroll {
189
186
  ngOnChanges() {
190
187
  this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
191
188
  }
192
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
193
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkFixedSizeVirtualScroll, isStandalone: true, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, providers: [
189
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
190
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkFixedSizeVirtualScroll, isStandalone: true, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, providers: [
194
191
  {
195
192
  provide: VIRTUAL_SCROLL_STRATEGY,
196
193
  useFactory: _fixedSizeVirtualScrollStrategyFactory,
@@ -198,7 +195,7 @@ class CdkFixedSizeVirtualScroll {
198
195
  },
199
196
  ], usesOnChanges: true, ngImport: i0 }); }
200
197
  }
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{
202
199
  type: Directive,
203
200
  args: [{
204
201
  selector: 'cdk-virtual-scroll-viewport[itemSize]',
@@ -226,9 +223,11 @@ const DEFAULT_SCROLL_TIME = 20;
226
223
  * Scrollable references emit a scrolled event.
227
224
  */
228
225
  class ScrollDispatcher {
229
- constructor(_ngZone, _platform, document) {
230
- this._ngZone = _ngZone;
231
- this._platform = _platform;
226
+ constructor() {
227
+ this._ngZone = inject(NgZone);
228
+ this._platform = inject(Platform);
229
+ /** Used to reference correct document/window */
230
+ this._document = inject(DOCUMENT, { optional: true });
232
231
  /** Subject for notifying that a registered scrollable reference element has been scrolled. */
233
232
  this._scrolled = new Subject();
234
233
  /** Keeps track of the global `scroll` and `resize` subscriptions. */
@@ -240,7 +239,6 @@ class ScrollDispatcher {
240
239
  * scroll event subscriptions.
241
240
  */
242
241
  this.scrollContainers = new Map();
243
- this._document = document;
244
242
  }
245
243
  /**
246
244
  * Registers a scrollable instance with the service and listens for its scrolled events. When the
@@ -354,18 +352,13 @@ class ScrollDispatcher {
354
352
  this._globalSubscription = null;
355
353
  }
356
354
  }
357
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollDispatcher, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
358
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' }); }
355
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollDispatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
356
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' }); }
359
357
  }
360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollDispatcher, decorators: [{
358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollDispatcher, decorators: [{
361
359
  type: Injectable,
362
360
  args: [{ providedIn: 'root' }]
363
- }], ctorParameters: () => [{ type: i0.NgZone }, { type: i1.Platform }, { type: undefined, decorators: [{
364
- type: Optional
365
- }, {
366
- type: Inject,
367
- args: [DOCUMENT]
368
- }] }] });
361
+ }], ctorParameters: () => [] });
369
362
 
370
363
  /**
371
364
  * Sends an event when the directive's element is scrolled. Registers itself with the
@@ -373,11 +366,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
373
366
  * can be listened to through the service.
374
367
  */
375
368
  class CdkScrollable {
376
- constructor(elementRef, scrollDispatcher, ngZone, dir) {
377
- this.elementRef = elementRef;
378
- this.scrollDispatcher = scrollDispatcher;
379
- this.ngZone = ngZone;
380
- this.dir = dir;
369
+ constructor() {
370
+ this.elementRef = inject(ElementRef);
371
+ this.scrollDispatcher = inject(ScrollDispatcher);
372
+ this.ngZone = inject(NgZone);
373
+ this.dir = inject(Directionality, { optional: true });
381
374
  this._destroyed = new Subject();
382
375
  this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(this.elementRef.nativeElement, 'scroll')
383
376
  .pipe(takeUntil(this._destroyed))
@@ -515,18 +508,16 @@ class CdkScrollable {
515
508
  }
516
509
  }
517
510
  }
518
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkScrollable, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
519
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkScrollable, isStandalone: true, selector: "[cdk-scrollable], [cdkScrollable]", ngImport: i0 }); }
511
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
512
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkScrollable, isStandalone: true, selector: "[cdk-scrollable], [cdkScrollable]", ngImport: i0 }); }
520
513
  }
521
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkScrollable, decorators: [{
514
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollable, decorators: [{
522
515
  type: Directive,
523
516
  args: [{
524
517
  selector: '[cdk-scrollable], [cdkScrollable]',
525
518
  standalone: true,
526
519
  }]
527
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{
528
- type: Optional
529
- }] }] });
520
+ }], ctorParameters: () => [] });
530
521
 
531
522
  /** Time in ms to throttle the resize events by default. */
532
523
  const DEFAULT_RESIZE_TIME = 20;
@@ -535,17 +526,19 @@ const DEFAULT_RESIZE_TIME = 20;
535
526
  * @docs-private
536
527
  */
537
528
  class ViewportRuler {
538
- constructor(_platform, ngZone, document) {
539
- this._platform = _platform;
529
+ constructor() {
530
+ this._platform = inject(Platform);
540
531
  /** Stream of viewport change events. */
541
532
  this._change = new Subject();
542
533
  /** Event listener that will be used to handle the viewport change events. */
543
534
  this._changeListener = (event) => {
544
535
  this._change.next(event);
545
536
  };
546
- this._document = document;
537
+ /** Used to reference correct document/window */
538
+ this._document = inject(DOCUMENT, { optional: true });
539
+ const ngZone = inject(NgZone);
547
540
  ngZone.runOutsideAngular(() => {
548
- if (_platform.isBrowser) {
541
+ if (this._platform.isBrowser) {
549
542
  const window = this._getWindow();
550
543
  // Note that bind the events ourselves, rather than going through something like RxJS's
551
544
  // `fromEvent` so that we can ensure that they're bound outside of the NgZone.
@@ -647,26 +640,21 @@ class ViewportRuler {
647
640
  ? { width: window.innerWidth, height: window.innerHeight }
648
641
  : { width: 0, height: 0 };
649
642
  }
650
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ViewportRuler, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
651
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ViewportRuler, providedIn: 'root' }); }
643
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ViewportRuler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
644
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ViewportRuler, providedIn: 'root' }); }
652
645
  }
653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ViewportRuler, decorators: [{
646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ViewportRuler, decorators: [{
654
647
  type: Injectable,
655
648
  args: [{ providedIn: 'root' }]
656
- }], ctorParameters: () => [{ type: i1.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{
657
- type: Optional
658
- }, {
659
- type: Inject,
660
- args: [DOCUMENT]
661
- }] }] });
649
+ }], ctorParameters: () => [] });
662
650
 
663
651
  const VIRTUAL_SCROLLABLE = new InjectionToken('VIRTUAL_SCROLLABLE');
664
652
  /**
665
653
  * Extending the {@link CdkScrollable} to be used as scrolling container for virtual scrolling.
666
654
  */
667
655
  class CdkVirtualScrollable extends CdkScrollable {
668
- constructor(elementRef, scrollDispatcher, ngZone, dir) {
669
- super(elementRef, scrollDispatcher, ngZone, dir);
656
+ constructor() {
657
+ super();
670
658
  }
671
659
  /**
672
660
  * Measure the viewport size for the provided orientation.
@@ -677,14 +665,12 @@ class CdkVirtualScrollable extends CdkScrollable {
677
665
  const viewportEl = this.elementRef.nativeElement;
678
666
  return orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
679
667
  }
680
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollable, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
681
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkVirtualScrollable, usesInheritance: true, ngImport: i0 }); }
668
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
669
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualScrollable, usesInheritance: true, ngImport: i0 }); }
682
670
  }
683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollable, decorators: [{
671
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollable, decorators: [{
684
672
  type: Directive
685
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{
686
- type: Optional
687
- }] }] });
673
+ }], ctorParameters: () => [] });
688
674
 
689
675
  /** Checks if the given ranges are equal. */
690
676
  function rangesEqual(r1, r2) {
@@ -708,12 +694,14 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
708
694
  this._calculateSpacerSize();
709
695
  }
710
696
  }
711
- constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler, scrollable) {
712
- super(elementRef, scrollDispatcher, ngZone, dir);
713
- this.elementRef = elementRef;
714
- this._changeDetectorRef = _changeDetectorRef;
715
- this._scrollStrategy = _scrollStrategy;
716
- this.scrollable = scrollable;
697
+ constructor() {
698
+ super();
699
+ this.elementRef = inject(ElementRef);
700
+ this._changeDetectorRef = inject(ChangeDetectorRef);
701
+ this._scrollStrategy = inject(VIRTUAL_SCROLL_STRATEGY, {
702
+ optional: true,
703
+ });
704
+ this.scrollable = inject(VIRTUAL_SCROLLABLE, { optional: true });
717
705
  this._platform = inject(Platform);
718
706
  /** Emits when the viewport is detached from a CdkVirtualForOf. */
719
707
  this._detachedSubject = new Subject();
@@ -762,7 +750,8 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
762
750
  this._viewportChanges = Subscription.EMPTY;
763
751
  this._injector = inject(Injector);
764
752
  this._isDestroyed = false;
765
- if (!_scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {
753
+ const viewportRuler = inject(ViewportRuler);
754
+ if (!this._scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {
766
755
  throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
767
756
  }
768
757
  this._viewportChanges = viewportRuler.change().subscribe(() => {
@@ -1063,8 +1052,8 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
1063
1052
  this._totalContentWidth =
1064
1053
  this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';
1065
1054
  }
1066
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollViewport, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i2.Directionality, optional: true }, { token: ScrollDispatcher }, { token: ViewportRuler }, { token: VIRTUAL_SCROLLABLE, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1067
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.2", 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: [
1055
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollViewport, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1056
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.0-next.3", 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: [
1068
1057
  {
1069
1058
  provide: CdkScrollable,
1070
1059
  useFactory: (virtualScrollable, viewport) => virtualScrollable || viewport,
@@ -1072,7 +1061,7 @@ class CdkVirtualScrollViewport extends CdkVirtualScrollable {
1072
1061
  },
1073
1062
  ], 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;-webkit-overflow-scrolling:touch}.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}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1074
1063
  }
1075
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{
1064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{
1076
1065
  type: Component,
1077
1066
  args: [{ selector: 'cdk-virtual-scroll-viewport', host: {
1078
1067
  'class': 'cdk-virtual-scroll-viewport',
@@ -1085,19 +1074,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
1085
1074
  deps: [[new Optional(), new Inject(VIRTUAL_SCROLLABLE)], CdkVirtualScrollViewport],
1086
1075
  },
1087
1076
  ], 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;-webkit-overflow-scrolling:touch}.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}"] }]
1088
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
1089
- type: Optional
1090
- }, {
1091
- type: Inject,
1092
- args: [VIRTUAL_SCROLL_STRATEGY]
1093
- }] }, { type: i2.Directionality, decorators: [{
1094
- type: Optional
1095
- }] }, { type: ScrollDispatcher }, { type: ViewportRuler }, { type: CdkVirtualScrollable, decorators: [{
1096
- type: Optional
1097
- }, {
1098
- type: Inject,
1099
- args: [VIRTUAL_SCROLLABLE]
1100
- }] }], propDecorators: { orientation: [{
1077
+ }], ctorParameters: () => [], propDecorators: { orientation: [{
1101
1078
  type: Input
1102
1079
  }], appendOnly: [{
1103
1080
  type: Input,
@@ -1170,22 +1147,12 @@ class CdkVirtualForOf {
1170
1147
  set cdkVirtualForTemplateCacheSize(size) {
1171
1148
  this._viewRepeater.viewCacheSize = coerceNumberProperty(size);
1172
1149
  }
1173
- constructor(
1174
- /** The view container to add items to. */
1175
- _viewContainerRef,
1176
- /** The template to use when stamping out new items. */
1177
- _template,
1178
- /** The set of available differs. */
1179
- _differs,
1180
- /** The strategy used to render items in the virtual scroll viewport. */
1181
- _viewRepeater,
1182
- /** The virtual scrolling viewport that these items are being rendered in. */
1183
- _viewport, ngZone) {
1184
- this._viewContainerRef = _viewContainerRef;
1185
- this._template = _template;
1186
- this._differs = _differs;
1187
- this._viewRepeater = _viewRepeater;
1188
- this._viewport = _viewport;
1150
+ constructor() {
1151
+ this._viewContainerRef = inject(ViewContainerRef);
1152
+ this._template = inject(TemplateRef);
1153
+ this._differs = inject(IterableDiffers);
1154
+ this._viewRepeater = inject(_VIEW_REPEATER_STRATEGY);
1155
+ this._viewport = inject(CdkVirtualScrollViewport, { skipSelf: true });
1189
1156
  /** Emits when the rendered view of the data changes. */
1190
1157
  this.viewChange = new Subject();
1191
1158
  /** Subject that emits when a new DataSource instance is given. */
@@ -1207,6 +1174,7 @@ class CdkVirtualForOf {
1207
1174
  /** Whether the rendered data should be updated during the next ngDoCheck cycle. */
1208
1175
  this._needsUpdate = false;
1209
1176
  this._destroyed = new Subject();
1177
+ const ngZone = inject(NgZone);
1210
1178
  this.dataStream.subscribe(data => {
1211
1179
  this._data = data;
1212
1180
  this._onRenderedDataChange();
@@ -1370,22 +1338,17 @@ class CdkVirtualForOf {
1370
1338
  static ngTemplateContextGuard(directive, context) {
1371
1339
  return true;
1372
1340
  }
1373
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: _VIEW_REPEATER_STRATEGY }, { token: CdkVirtualScrollViewport, skipSelf: true }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
1374
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", 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 }); }
1341
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualForOf, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1342
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", 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 }); }
1375
1343
  }
1376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualForOf, decorators: [{
1344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualForOf, decorators: [{
1377
1345
  type: Directive,
1378
1346
  args: [{
1379
1347
  selector: '[cdkVirtualFor][cdkVirtualForOf]',
1380
1348
  providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],
1381
1349
  standalone: true,
1382
1350
  }]
1383
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: i2$1._RecycleViewRepeaterStrategy, decorators: [{
1384
- type: Inject,
1385
- args: [_VIEW_REPEATER_STRATEGY]
1386
- }] }, { type: CdkVirtualScrollViewport, decorators: [{
1387
- type: SkipSelf
1388
- }] }, { type: i0.NgZone }], propDecorators: { cdkVirtualForOf: [{
1351
+ }], ctorParameters: () => [], propDecorators: { cdkVirtualForOf: [{
1389
1352
  type: Input
1390
1353
  }], cdkVirtualForTrackBy: [{
1391
1354
  type: Input
@@ -1399,17 +1362,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
1399
1362
  * Provides a virtual scrollable for the element it is attached to.
1400
1363
  */
1401
1364
  class CdkVirtualScrollableElement extends CdkVirtualScrollable {
1402
- constructor(elementRef, scrollDispatcher, ngZone, dir) {
1403
- super(elementRef, scrollDispatcher, ngZone, dir);
1365
+ constructor() {
1366
+ super();
1404
1367
  }
1405
1368
  measureBoundingClientRectWithScrollOffset(from) {
1406
1369
  return (this.getElementRef().nativeElement.getBoundingClientRect()[from] -
1407
1370
  this.measureScrollOffset(from));
1408
1371
  }
1409
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollableElement, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1410
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkVirtualScrollableElement, isStandalone: true, selector: "[cdkVirtualScrollingElement]", host: { classAttribute: "cdk-virtual-scrollable" }, providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }], usesInheritance: true, ngImport: i0 }); }
1372
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableElement, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1373
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualScrollableElement, isStandalone: true, selector: "[cdkVirtualScrollingElement]", host: { classAttribute: "cdk-virtual-scrollable" }, providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableElement }], usesInheritance: true, ngImport: i0 }); }
1411
1374
  }
1412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollableElement, decorators: [{
1375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableElement, decorators: [{
1413
1376
  type: Directive,
1414
1377
  args: [{
1415
1378
  selector: '[cdkVirtualScrollingElement]',
@@ -1419,41 +1382,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
1419
1382
  'class': 'cdk-virtual-scrollable',
1420
1383
  },
1421
1384
  }]
1422
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{
1423
- type: Optional
1424
- }] }] });
1385
+ }], ctorParameters: () => [] });
1425
1386
 
1426
1387
  /**
1427
1388
  * Provides as virtual scrollable for the global / window scrollbar.
1428
1389
  */
1429
1390
  class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
1430
- constructor(scrollDispatcher, ngZone, dir) {
1431
- super(new ElementRef(document.documentElement), scrollDispatcher, ngZone, dir);
1391
+ constructor() {
1392
+ super();
1432
1393
  this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(document, 'scroll').pipe(takeUntil(this._destroyed)).subscribe(observer)));
1394
+ this.elementRef = new ElementRef(document.documentElement);
1433
1395
  }
1434
1396
  measureBoundingClientRectWithScrollOffset(from) {
1435
1397
  return this.getElementRef().nativeElement.getBoundingClientRect()[from];
1436
1398
  }
1437
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollableWindow, deps: [{ token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
1438
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkVirtualScrollableWindow, isStandalone: true, selector: "cdk-virtual-scroll-viewport[scrollWindow]", providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }], usesInheritance: true, ngImport: i0 }); }
1399
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableWindow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1400
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkVirtualScrollableWindow, isStandalone: true, selector: "cdk-virtual-scroll-viewport[scrollWindow]", providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }], usesInheritance: true, ngImport: i0 }); }
1439
1401
  }
1440
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkVirtualScrollableWindow, decorators: [{
1402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkVirtualScrollableWindow, decorators: [{
1441
1403
  type: Directive,
1442
1404
  args: [{
1443
1405
  selector: 'cdk-virtual-scroll-viewport[scrollWindow]',
1444
1406
  providers: [{ provide: VIRTUAL_SCROLLABLE, useExisting: CdkVirtualScrollableWindow }],
1445
1407
  standalone: true,
1446
1408
  }]
1447
- }], ctorParameters: () => [{ type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{
1448
- type: Optional
1449
- }] }] });
1409
+ }], ctorParameters: () => [] });
1450
1410
 
1451
1411
  class CdkScrollableModule {
1452
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1453
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkScrollableModule, imports: [CdkScrollable], exports: [CdkScrollable] }); }
1454
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkScrollableModule }); }
1412
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1413
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule, imports: [CdkScrollable], exports: [CdkScrollable] }); }
1414
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule }); }
1455
1415
  }
1456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkScrollableModule, decorators: [{
1416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkScrollableModule, decorators: [{
1457
1417
  type: NgModule,
1458
1418
  args: [{
1459
1419
  exports: [CdkScrollable],
@@ -1464,8 +1424,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
1464
1424
  * @docs-primary-export
1465
1425
  */
1466
1426
  class ScrollingModule {
1467
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1468
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollingModule, imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport,
1427
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1428
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, imports: [BidiModule, CdkScrollableModule, CdkVirtualScrollViewport,
1469
1429
  CdkFixedSizeVirtualScroll,
1470
1430
  CdkVirtualForOf,
1471
1431
  CdkVirtualScrollableWindow,
@@ -1474,10 +1434,10 @@ class ScrollingModule {
1474
1434
  CdkVirtualScrollViewport,
1475
1435
  CdkVirtualScrollableWindow,
1476
1436
  CdkVirtualScrollableElement] }); }
1477
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollingModule, imports: [BidiModule,
1437
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, imports: [BidiModule,
1478
1438
  CdkScrollableModule, BidiModule, CdkScrollableModule] }); }
1479
1439
  }
1480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ScrollingModule, decorators: [{
1440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ScrollingModule, decorators: [{
1481
1441
  type: NgModule,
1482
1442
  args: [{
1483
1443
  imports: [