@angular/cdk 19.0.0-next.4 → 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 (288) 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 +81 -139
  8. package/fesm2022/a11y.mjs.map +1 -1
  9. package/fesm2022/accordion.mjs +11 -16
  10. package/fesm2022/accordion.mjs.map +1 -1
  11. package/fesm2022/bidi.mjs +5 -9
  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 +11 -18
  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.map +1 -1
  20. package/fesm2022/dialog.mjs +25 -45
  21. package/fesm2022/dialog.mjs.map +1 -1
  22. package/fesm2022/drag-drop.mjs +66 -125
  23. package/fesm2022/drag-drop.mjs.map +1 -1
  24. package/fesm2022/keycodes.mjs.map +1 -1
  25. package/fesm2022/layout.mjs +13 -18
  26. package/fesm2022/layout.mjs.map +1 -1
  27. package/fesm2022/listbox.mjs +7 -1
  28. package/fesm2022/listbox.mjs.map +1 -1
  29. package/fesm2022/menu.mjs.map +1 -1
  30. package/fesm2022/observers/private.mjs.map +1 -1
  31. package/fesm2022/observers.mjs +10 -10
  32. package/fesm2022/observers.mjs.map +1 -1
  33. package/fesm2022/overlay.mjs +73 -121
  34. package/fesm2022/overlay.mjs.map +1 -1
  35. package/fesm2022/platform.mjs.map +1 -1
  36. package/fesm2022/portal.mjs +45 -44
  37. package/fesm2022/portal.mjs.map +1 -1
  38. package/fesm2022/private.mjs.map +1 -1
  39. package/fesm2022/scrolling.mjs +59 -99
  40. package/fesm2022/scrolling.mjs.map +1 -1
  41. package/fesm2022/stepper.mjs +31 -40
  42. package/fesm2022/stepper.mjs.map +1 -1
  43. package/fesm2022/table.mjs +113 -171
  44. package/fesm2022/table.mjs.map +1 -1
  45. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  46. package/fesm2022/testing/testbed.mjs.map +1 -1
  47. package/fesm2022/testing.mjs.map +1 -1
  48. package/fesm2022/text-field.mjs +20 -27
  49. package/fesm2022/text-field.mjs.map +1 -1
  50. package/fesm2022/tree.mjs +50 -53
  51. package/fesm2022/tree.mjs.map +1 -1
  52. package/layout/index.d.ts +5 -7
  53. package/observers/index.d.ts +2 -2
  54. package/overlay/_index.scss +44 -11
  55. package/overlay/index.d.ts +16 -34
  56. package/overlay-prebuilt.css +1 -1
  57. package/package.json +1 -1
  58. package/portal/index.d.ts +21 -18
  59. package/schematics/index.d.ts +1 -1
  60. package/schematics/index.js +2 -2
  61. package/schematics/index.mjs +2 -2
  62. package/schematics/ng-add/index.d.ts +1 -1
  63. package/schematics/ng-add/index.js +3 -3
  64. package/schematics/ng-add/index.mjs +3 -3
  65. package/schematics/ng-add/package-config.d.ts +1 -1
  66. package/schematics/ng-add/package-config.js +2 -2
  67. package/schematics/ng-add/package-config.mjs +2 -2
  68. package/schematics/ng-add/schema.d.ts +1 -1
  69. package/schematics/ng-add/schema.js +2 -2
  70. package/schematics/ng-add/schema.mjs +2 -2
  71. package/schematics/ng-generate/drag-drop/index.d.ts +1 -1
  72. package/schematics/ng-generate/drag-drop/index.js +2 -2
  73. package/schematics/ng-generate/drag-drop/index.mjs +2 -2
  74. package/schematics/ng-generate/drag-drop/schema.d.ts +1 -1
  75. package/schematics/ng-generate/drag-drop/schema.js +2 -2
  76. package/schematics/ng-generate/drag-drop/schema.mjs +2 -2
  77. package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
  78. package/schematics/ng-update/data/attribute-selectors.js +2 -2
  79. package/schematics/ng-update/data/attribute-selectors.mjs +2 -2
  80. package/schematics/ng-update/data/class-names.d.ts +1 -1
  81. package/schematics/ng-update/data/class-names.js +2 -2
  82. package/schematics/ng-update/data/class-names.mjs +2 -2
  83. package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
  84. package/schematics/ng-update/data/constructor-checks.js +2 -2
  85. package/schematics/ng-update/data/constructor-checks.mjs +2 -2
  86. package/schematics/ng-update/data/css-selectors.d.ts +1 -1
  87. package/schematics/ng-update/data/css-selectors.js +2 -2
  88. package/schematics/ng-update/data/css-selectors.mjs +2 -2
  89. package/schematics/ng-update/data/css-tokens.d.ts +1 -1
  90. package/schematics/ng-update/data/css-tokens.js +2 -2
  91. package/schematics/ng-update/data/css-tokens.mjs +2 -2
  92. package/schematics/ng-update/data/element-selectors.d.ts +1 -1
  93. package/schematics/ng-update/data/element-selectors.js +2 -2
  94. package/schematics/ng-update/data/element-selectors.mjs +2 -2
  95. package/schematics/ng-update/data/index.d.ts +1 -1
  96. package/schematics/ng-update/data/index.js +2 -2
  97. package/schematics/ng-update/data/index.mjs +2 -2
  98. package/schematics/ng-update/data/input-names.d.ts +1 -1
  99. package/schematics/ng-update/data/input-names.js +2 -2
  100. package/schematics/ng-update/data/input-names.mjs +2 -2
  101. package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
  102. package/schematics/ng-update/data/method-call-checks.js +2 -2
  103. package/schematics/ng-update/data/method-call-checks.mjs +2 -2
  104. package/schematics/ng-update/data/output-names.d.ts +1 -1
  105. package/schematics/ng-update/data/output-names.js +2 -2
  106. package/schematics/ng-update/data/output-names.mjs +2 -2
  107. package/schematics/ng-update/data/property-names.d.ts +1 -1
  108. package/schematics/ng-update/data/property-names.js +2 -2
  109. package/schematics/ng-update/data/property-names.mjs +2 -2
  110. package/schematics/ng-update/data/symbol-removal.d.ts +1 -1
  111. package/schematics/ng-update/data/symbol-removal.js +2 -2
  112. package/schematics/ng-update/data/symbol-removal.mjs +2 -2
  113. package/schematics/ng-update/devkit-file-system.d.ts +1 -1
  114. package/schematics/ng-update/devkit-file-system.js +2 -2
  115. package/schematics/ng-update/devkit-file-system.mjs +2 -2
  116. package/schematics/ng-update/devkit-migration-rule.d.ts +1 -1
  117. package/schematics/ng-update/devkit-migration-rule.js +2 -2
  118. package/schematics/ng-update/devkit-migration-rule.mjs +2 -2
  119. package/schematics/ng-update/devkit-migration.d.ts +1 -1
  120. package/schematics/ng-update/devkit-migration.js +2 -2
  121. package/schematics/ng-update/devkit-migration.mjs +2 -2
  122. package/schematics/ng-update/find-stylesheets.d.ts +1 -1
  123. package/schematics/ng-update/find-stylesheets.js +2 -2
  124. package/schematics/ng-update/find-stylesheets.mjs +2 -2
  125. package/schematics/ng-update/html-parsing/angular.d.ts +1 -1
  126. package/schematics/ng-update/html-parsing/angular.js +2 -2
  127. package/schematics/ng-update/html-parsing/angular.mjs +2 -2
  128. package/schematics/ng-update/html-parsing/elements.d.ts +1 -1
  129. package/schematics/ng-update/html-parsing/elements.js +2 -2
  130. package/schematics/ng-update/html-parsing/elements.mjs +2 -2
  131. package/schematics/ng-update/index.d.ts +1 -1
  132. package/schematics/ng-update/index.js +2 -2
  133. package/schematics/ng-update/index.mjs +2 -2
  134. package/schematics/ng-update/migrations/attribute-selectors.d.ts +1 -1
  135. package/schematics/ng-update/migrations/attribute-selectors.js +2 -2
  136. package/schematics/ng-update/migrations/attribute-selectors.mjs +2 -2
  137. package/schematics/ng-update/migrations/class-inheritance.d.ts +1 -1
  138. package/schematics/ng-update/migrations/class-inheritance.js +2 -2
  139. package/schematics/ng-update/migrations/class-inheritance.mjs +2 -2
  140. package/schematics/ng-update/migrations/class-names.d.ts +1 -1
  141. package/schematics/ng-update/migrations/class-names.js +2 -2
  142. package/schematics/ng-update/migrations/class-names.mjs +2 -2
  143. package/schematics/ng-update/migrations/constructor-signature.d.ts +1 -1
  144. package/schematics/ng-update/migrations/constructor-signature.js +2 -2
  145. package/schematics/ng-update/migrations/constructor-signature.mjs +2 -2
  146. package/schematics/ng-update/migrations/css-selectors.d.ts +1 -1
  147. package/schematics/ng-update/migrations/css-selectors.js +2 -2
  148. package/schematics/ng-update/migrations/css-selectors.mjs +2 -2
  149. package/schematics/ng-update/migrations/css-tokens.d.ts +1 -1
  150. package/schematics/ng-update/migrations/css-tokens.js +2 -2
  151. package/schematics/ng-update/migrations/css-tokens.mjs +2 -2
  152. package/schematics/ng-update/migrations/element-selectors.d.ts +1 -1
  153. package/schematics/ng-update/migrations/element-selectors.js +2 -2
  154. package/schematics/ng-update/migrations/element-selectors.mjs +2 -2
  155. package/schematics/ng-update/migrations/input-names.d.ts +1 -1
  156. package/schematics/ng-update/migrations/input-names.js +2 -2
  157. package/schematics/ng-update/migrations/input-names.mjs +2 -2
  158. package/schematics/ng-update/migrations/method-call-arguments.d.ts +1 -1
  159. package/schematics/ng-update/migrations/method-call-arguments.js +2 -2
  160. package/schematics/ng-update/migrations/method-call-arguments.mjs +2 -2
  161. package/schematics/ng-update/migrations/misc-template.d.ts +1 -1
  162. package/schematics/ng-update/migrations/misc-template.js +2 -2
  163. package/schematics/ng-update/migrations/misc-template.mjs +2 -2
  164. package/schematics/ng-update/migrations/output-names.d.ts +1 -1
  165. package/schematics/ng-update/migrations/output-names.js +2 -2
  166. package/schematics/ng-update/migrations/output-names.mjs +2 -2
  167. package/schematics/ng-update/migrations/property-names.d.ts +1 -1
  168. package/schematics/ng-update/migrations/property-names.js +2 -2
  169. package/schematics/ng-update/migrations/property-names.mjs +2 -2
  170. package/schematics/ng-update/migrations/symbol-removal.d.ts +1 -1
  171. package/schematics/ng-update/migrations/symbol-removal.js +2 -2
  172. package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
  173. package/schematics/ng-update/public-api.d.ts +1 -1
  174. package/schematics/ng-update/public-api.js +2 -2
  175. package/schematics/ng-update/public-api.mjs +2 -2
  176. package/schematics/ng-update/typescript/base-types.d.ts +1 -1
  177. package/schematics/ng-update/typescript/base-types.js +2 -2
  178. package/schematics/ng-update/typescript/base-types.mjs +2 -2
  179. package/schematics/ng-update/typescript/imports.d.ts +1 -1
  180. package/schematics/ng-update/typescript/imports.js +2 -2
  181. package/schematics/ng-update/typescript/imports.mjs +2 -2
  182. package/schematics/ng-update/typescript/literal.d.ts +1 -1
  183. package/schematics/ng-update/typescript/literal.js +2 -2
  184. package/schematics/ng-update/typescript/literal.mjs +2 -2
  185. package/schematics/ng-update/typescript/module-specifiers.d.ts +1 -1
  186. package/schematics/ng-update/typescript/module-specifiers.js +2 -2
  187. package/schematics/ng-update/typescript/module-specifiers.mjs +2 -2
  188. package/schematics/ng-update/upgrade-data.d.ts +1 -1
  189. package/schematics/ng-update/upgrade-data.js +2 -2
  190. package/schematics/ng-update/upgrade-data.mjs +2 -2
  191. package/schematics/paths.d.ts +1 -1
  192. package/schematics/paths.js +2 -2
  193. package/schematics/paths.mjs +2 -2
  194. package/schematics/update-tool/component-resource-collector.d.ts +1 -1
  195. package/schematics/update-tool/component-resource-collector.js +2 -2
  196. package/schematics/update-tool/component-resource-collector.mjs +2 -2
  197. package/schematics/update-tool/file-system.d.ts +1 -1
  198. package/schematics/update-tool/file-system.js +2 -2
  199. package/schematics/update-tool/file-system.mjs +2 -2
  200. package/schematics/update-tool/index.d.ts +1 -1
  201. package/schematics/update-tool/index.js +2 -2
  202. package/schematics/update-tool/index.mjs +2 -2
  203. package/schematics/update-tool/logger.d.ts +1 -1
  204. package/schematics/update-tool/logger.js +2 -2
  205. package/schematics/update-tool/logger.mjs +2 -2
  206. package/schematics/update-tool/migration.d.ts +1 -1
  207. package/schematics/update-tool/migration.js +2 -2
  208. package/schematics/update-tool/migration.mjs +2 -2
  209. package/schematics/update-tool/public-api.d.ts +1 -1
  210. package/schematics/update-tool/public-api.js +2 -2
  211. package/schematics/update-tool/public-api.mjs +2 -2
  212. package/schematics/update-tool/target-version.d.ts +1 -1
  213. package/schematics/update-tool/target-version.js +2 -2
  214. package/schematics/update-tool/target-version.mjs +2 -2
  215. package/schematics/update-tool/update-recorder.d.ts +1 -1
  216. package/schematics/update-tool/update-recorder.js +2 -2
  217. package/schematics/update-tool/update-recorder.mjs +2 -2
  218. package/schematics/update-tool/utils/decorators.d.ts +1 -1
  219. package/schematics/update-tool/utils/decorators.js +2 -2
  220. package/schematics/update-tool/utils/decorators.mjs +2 -2
  221. package/schematics/update-tool/utils/diagnostics.d.ts +1 -1
  222. package/schematics/update-tool/utils/diagnostics.js +2 -2
  223. package/schematics/update-tool/utils/diagnostics.mjs +2 -2
  224. package/schematics/update-tool/utils/functions.d.ts +1 -1
  225. package/schematics/update-tool/utils/functions.js +2 -2
  226. package/schematics/update-tool/utils/functions.mjs +2 -2
  227. package/schematics/update-tool/utils/imports.d.ts +1 -1
  228. package/schematics/update-tool/utils/imports.js +2 -2
  229. package/schematics/update-tool/utils/imports.mjs +2 -2
  230. package/schematics/update-tool/utils/line-mappings.d.ts +1 -1
  231. package/schematics/update-tool/utils/line-mappings.js +2 -2
  232. package/schematics/update-tool/utils/line-mappings.mjs +2 -2
  233. package/schematics/update-tool/utils/parse-tsconfig.d.ts +1 -1
  234. package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
  235. package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
  236. package/schematics/update-tool/utils/property-name.d.ts +1 -1
  237. package/schematics/update-tool/utils/property-name.js +2 -2
  238. package/schematics/update-tool/utils/property-name.mjs +2 -2
  239. package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
  240. package/schematics/update-tool/utils/virtual-host.js +2 -2
  241. package/schematics/update-tool/utils/virtual-host.mjs +2 -2
  242. package/schematics/update-tool/version-changes.d.ts +1 -1
  243. package/schematics/update-tool/version-changes.js +2 -2
  244. package/schematics/update-tool/version-changes.mjs +2 -2
  245. package/schematics/utils/ast/ng-module-imports.d.ts +1 -1
  246. package/schematics/utils/ast/ng-module-imports.js +2 -2
  247. package/schematics/utils/ast/ng-module-imports.mjs +2 -2
  248. package/schematics/utils/ast.d.ts +1 -1
  249. package/schematics/utils/ast.js +2 -2
  250. package/schematics/utils/ast.mjs +2 -2
  251. package/schematics/utils/build-component.d.ts +1 -1
  252. package/schematics/utils/build-component.js +2 -2
  253. package/schematics/utils/build-component.mjs +2 -2
  254. package/schematics/utils/get-project.d.ts +1 -1
  255. package/schematics/utils/get-project.js +2 -2
  256. package/schematics/utils/get-project.mjs +2 -2
  257. package/schematics/utils/html-manipulation.d.ts +1 -1
  258. package/schematics/utils/html-manipulation.js +2 -2
  259. package/schematics/utils/html-manipulation.mjs +2 -2
  260. package/schematics/utils/index.d.ts +1 -1
  261. package/schematics/utils/index.js +2 -2
  262. package/schematics/utils/index.mjs +2 -2
  263. package/schematics/utils/parse5-element.d.ts +1 -1
  264. package/schematics/utils/parse5-element.js +2 -2
  265. package/schematics/utils/parse5-element.mjs +2 -2
  266. package/schematics/utils/project-index-file.d.ts +1 -1
  267. package/schematics/utils/project-index-file.js +2 -2
  268. package/schematics/utils/project-index-file.mjs +2 -2
  269. package/schematics/utils/project-main-file.d.ts +1 -1
  270. package/schematics/utils/project-main-file.js +2 -2
  271. package/schematics/utils/project-main-file.mjs +2 -2
  272. package/schematics/utils/project-style-file.d.ts +1 -1
  273. package/schematics/utils/project-style-file.js +2 -2
  274. package/schematics/utils/project-style-file.mjs +2 -2
  275. package/schematics/utils/project-targets.d.ts +1 -1
  276. package/schematics/utils/project-targets.js +2 -2
  277. package/schematics/utils/project-targets.mjs +2 -2
  278. package/schematics/utils/project-tsconfig-paths.d.ts +1 -1
  279. package/schematics/utils/project-tsconfig-paths.js +2 -2
  280. package/schematics/utils/project-tsconfig-paths.mjs +2 -2
  281. package/schematics/utils/schematic-options.d.ts +1 -1
  282. package/schematics/utils/schematic-options.js +2 -2
  283. package/schematics/utils/schematic-options.mjs +2 -2
  284. package/scrolling/index.d.ts +17 -37
  285. package/stepper/index.d.ts +9 -11
  286. package/table/index.d.ts +36 -51
  287. package/text-field/index.d.ts +5 -9
  288. package/tree/index.d.ts +11 -13
@@ -1,12 +1,11 @@
1
- import * as i1 from '@angular/cdk/bidi';
1
+ import { Directionality } from '@angular/cdk/bidi';
2
2
  import { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, isDataSource, _ViewRepeaterOperation, _DisposeViewRepeaterStrategy } from '@angular/cdk/collections';
3
3
  export { DataSource } from '@angular/cdk/collections';
4
- import * as i2 from '@angular/cdk/platform';
5
- import * as i3 from '@angular/cdk/scrolling';
6
- import { ScrollingModule } from '@angular/cdk/scrolling';
4
+ import { Platform } from '@angular/cdk/platform';
5
+ import { ViewportRuler, ScrollingModule } from '@angular/cdk/scrolling';
7
6
  import { DOCUMENT } from '@angular/common';
8
7
  import * as i0 from '@angular/core';
9
- import { InjectionToken, Directive, booleanAttribute, Inject, Optional, Input, ContentChild, inject, NgZone, Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, EmbeddedViewRef, EventEmitter, Injector, afterNextRender, Attribute, SkipSelf, Output, ContentChildren, ViewChild, NgModule } from '@angular/core';
8
+ import { InjectionToken, inject, TemplateRef, Directive, booleanAttribute, Input, ContentChild, ElementRef, NgZone, Injectable, IterableDiffers, ViewContainerRef, Component, ChangeDetectionStrategy, ViewEncapsulation, EmbeddedViewRef, ChangeDetectorRef, EventEmitter, Injector, HostAttributeToken, afterNextRender, Output, ContentChildren, ViewChild, NgModule } from '@angular/core';
10
9
  import { Subject, BehaviorSubject, isObservable, of } from 'rxjs';
11
10
  import { takeUntil } from 'rxjs/operators';
12
11
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
@@ -24,10 +23,11 @@ const TEXT_COLUMN_OPTIONS = new InjectionToken('text-column-options');
24
23
  * Captures the template of a column's data row cell as well as cell-specific properties.
25
24
  */
26
25
  class CdkCellDef {
27
- constructor(/** @docs-private */ template) {
28
- this.template = template;
26
+ constructor() {
27
+ /** @docs-private */
28
+ this.template = inject(TemplateRef);
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCellDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
31
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkCellDef, isStandalone: true, selector: "[cdkCellDef]", ngImport: i0 }); }
32
32
  }
33
33
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCellDef, decorators: [{
@@ -36,16 +36,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
36
36
  selector: '[cdkCellDef]',
37
37
  standalone: true,
38
38
  }]
39
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
39
+ }], ctorParameters: () => [] });
40
40
  /**
41
41
  * Header cell definition for a CDK table.
42
42
  * Captures the template of a column's header cell and as well as cell-specific properties.
43
43
  */
44
44
  class CdkHeaderCellDef {
45
- constructor(/** @docs-private */ template) {
46
- this.template = template;
45
+ constructor() {
46
+ /** @docs-private */
47
+ this.template = inject(TemplateRef);
47
48
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderCellDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
49
50
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkHeaderCellDef, isStandalone: true, selector: "[cdkHeaderCellDef]", ngImport: i0 }); }
50
51
  }
51
52
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderCellDef, decorators: [{
@@ -54,16 +55,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
54
55
  selector: '[cdkHeaderCellDef]',
55
56
  standalone: true,
56
57
  }]
57
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
58
+ }], ctorParameters: () => [] });
58
59
  /**
59
60
  * Footer cell definition for a CDK table.
60
61
  * Captures the template of a column's footer cell and as well as cell-specific properties.
61
62
  */
62
63
  class CdkFooterCellDef {
63
- constructor(/** @docs-private */ template) {
64
- this.template = template;
64
+ constructor() {
65
+ /** @docs-private */
66
+ this.template = inject(TemplateRef);
65
67
  }
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
68
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterCellDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
67
69
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkFooterCellDef, isStandalone: true, selector: "[cdkFooterCellDef]", ngImport: i0 }); }
68
70
  }
69
71
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterCellDef, decorators: [{
@@ -72,7 +74,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
72
74
  selector: '[cdkFooterCellDef]',
73
75
  standalone: true,
74
76
  }]
75
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
77
+ }], ctorParameters: () => [] });
76
78
  /**
77
79
  * Column definition for the CDK table.
78
80
  * Defines a set of cells available for a table column.
@@ -109,8 +111,8 @@ class CdkColumnDef {
109
111
  this._hasStickyChanged = true;
110
112
  }
111
113
  }
112
- constructor(_table) {
113
- this._table = _table;
114
+ constructor() {
115
+ this._table = inject(CDK_TABLE, { optional: true });
114
116
  this._hasStickyChanged = false;
115
117
  this._sticky = false;
116
118
  this._stickyEnd = false;
@@ -150,7 +152,7 @@ class CdkColumnDef {
150
152
  this._updateColumnCssClassName();
151
153
  }
152
154
  }
153
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkColumnDef, deps: [{ token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
155
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkColumnDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
154
156
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkColumnDef, isStandalone: true, selector: "[cdkColumnDef]", inputs: { name: ["cdkColumnDef", "name"], sticky: ["sticky", "sticky", booleanAttribute], stickyEnd: ["stickyEnd", "stickyEnd", booleanAttribute] }, providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }], queries: [{ propertyName: "cell", first: true, predicate: CdkCellDef, descendants: true }, { propertyName: "headerCell", first: true, predicate: CdkHeaderCellDef, descendants: true }, { propertyName: "footerCell", first: true, predicate: CdkFooterCellDef, descendants: true }], ngImport: i0 }); }
155
157
  }
156
158
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkColumnDef, decorators: [{
@@ -160,12 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
160
162
  providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],
161
163
  standalone: true,
162
164
  }]
163
- }], ctorParameters: () => [{ type: undefined, decorators: [{
164
- type: Inject,
165
- args: [CDK_TABLE]
166
- }, {
167
- type: Optional
168
- }] }], propDecorators: { name: [{
165
+ }], ctorParameters: () => [], propDecorators: { name: [{
169
166
  type: Input,
170
167
  args: ['cdkColumnDef']
171
168
  }], sticky: [{
@@ -192,10 +189,10 @@ class BaseCdkCell {
192
189
  }
193
190
  /** Header cell template container that adds the right classes and role. */
194
191
  class CdkHeaderCell extends BaseCdkCell {
195
- constructor(columnDef, elementRef) {
196
- super(columnDef, elementRef);
192
+ constructor() {
193
+ super(inject(CdkColumnDef), inject(ElementRef));
197
194
  }
198
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
195
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderCell, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
199
196
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkHeaderCell, isStandalone: true, selector: "cdk-header-cell, th[cdk-header-cell]", host: { attributes: { "role": "columnheader" }, classAttribute: "cdk-header-cell" }, usesInheritance: true, ngImport: i0 }); }
200
197
  }
201
198
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderCell, decorators: [{
@@ -208,17 +205,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
208
205
  },
209
206
  standalone: true,
210
207
  }]
211
- }], ctorParameters: () => [{ type: CdkColumnDef }, { type: i0.ElementRef }] });
208
+ }], ctorParameters: () => [] });
212
209
  /** Footer cell template container that adds the right classes and role. */
213
210
  class CdkFooterCell extends BaseCdkCell {
214
- constructor(columnDef, elementRef) {
211
+ constructor() {
212
+ const columnDef = inject(CdkColumnDef);
213
+ const elementRef = inject(ElementRef);
215
214
  super(columnDef, elementRef);
216
215
  const role = columnDef._table?._getCellRole();
217
216
  if (role) {
218
217
  elementRef.nativeElement.setAttribute('role', role);
219
218
  }
220
219
  }
221
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
220
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterCell, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
222
221
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkFooterCell, isStandalone: true, selector: "cdk-footer-cell, td[cdk-footer-cell]", host: { classAttribute: "cdk-footer-cell" }, usesInheritance: true, ngImport: i0 }); }
223
222
  }
224
223
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterCell, decorators: [{
@@ -230,17 +229,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
230
229
  },
231
230
  standalone: true,
232
231
  }]
233
- }], ctorParameters: () => [{ type: CdkColumnDef }, { type: i0.ElementRef }] });
232
+ }], ctorParameters: () => [] });
234
233
  /** Cell template container that adds the right classes and role. */
235
234
  class CdkCell extends BaseCdkCell {
236
- constructor(columnDef, elementRef) {
235
+ constructor() {
236
+ const columnDef = inject(CdkColumnDef);
237
+ const elementRef = inject(ElementRef);
237
238
  super(columnDef, elementRef);
238
239
  const role = columnDef._table?._getCellRole();
239
240
  if (role) {
240
241
  elementRef.nativeElement.setAttribute('role', role);
241
242
  }
242
243
  }
243
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCell, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
244
245
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkCell, isStandalone: true, selector: "cdk-cell, td[cdk-cell]", host: { classAttribute: "cdk-cell" }, usesInheritance: true, ngImport: i0 }); }
245
246
  }
246
247
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCell, decorators: [{
@@ -252,7 +253,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
252
253
  },
253
254
  standalone: true,
254
255
  }]
255
- }], ctorParameters: () => [{ type: CdkColumnDef }, { type: i0.ElementRef }] });
256
+ }], ctorParameters: () => [] });
256
257
 
257
258
  /**
258
259
  * @docs-private
@@ -273,7 +274,7 @@ const _COALESCED_STYLE_SCHEDULER = new InjectionToken('_COALESCED_STYLE_SCHEDULE
273
274
  * @docs-private
274
275
  */
275
276
  class _CoalescedStyleScheduler {
276
- constructor(_unusedNgZone) {
277
+ constructor() {
277
278
  this._currentSchedule = null;
278
279
  this._ngZone = inject(NgZone);
279
280
  }
@@ -317,12 +318,12 @@ class _CoalescedStyleScheduler {
317
318
  this._currentSchedule = null;
318
319
  }));
319
320
  }
320
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: _CoalescedStyleScheduler, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
321
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: _CoalescedStyleScheduler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
321
322
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: _CoalescedStyleScheduler }); }
322
323
  }
323
324
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: _CoalescedStyleScheduler, decorators: [{
324
325
  type: Injectable
325
- }], ctorParameters: () => [{ type: i0.NgZone }] });
326
+ }], ctorParameters: () => [] });
326
327
 
327
328
  /**
328
329
  * The row template that can be used by the mat-table. Should not be used outside of the
@@ -334,10 +335,9 @@ const CDK_ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;
334
335
  * for changes and notifying the table.
335
336
  */
336
337
  class BaseRowDef {
337
- constructor(
338
- /** @docs-private */ template, _differs) {
339
- this.template = template;
340
- this._differs = _differs;
338
+ constructor() {
339
+ this.template = inject(TemplateRef);
340
+ this._differs = inject(IterableDiffers);
341
341
  }
342
342
  ngOnChanges(changes) {
343
343
  // Create a new columns differ if one does not yet exist. Initialize it based on initial value
@@ -367,12 +367,12 @@ class BaseRowDef {
367
367
  return column.cell.template;
368
368
  }
369
369
  }
370
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: BaseRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
370
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: BaseRowDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
371
371
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: BaseRowDef, usesOnChanges: true, ngImport: i0 }); }
372
372
  }
373
373
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: BaseRowDef, decorators: [{
374
374
  type: Directive
375
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }] });
375
+ }], ctorParameters: () => [] });
376
376
  /**
377
377
  * Header row definition for the CDK table.
378
378
  * Captures the header row's template and other header properties such as the columns to display.
@@ -388,9 +388,9 @@ class CdkHeaderRowDef extends BaseRowDef {
388
388
  this._hasStickyChanged = true;
389
389
  }
390
390
  }
391
- constructor(template, _differs, _table) {
392
- super(template, _differs);
393
- this._table = _table;
391
+ constructor() {
392
+ super(inject(TemplateRef), inject(IterableDiffers));
393
+ this._table = inject(CDK_TABLE, { optional: true });
394
394
  this._hasStickyChanged = false;
395
395
  this._sticky = false;
396
396
  }
@@ -409,7 +409,7 @@ class CdkHeaderRowDef extends BaseRowDef {
409
409
  resetStickyChanged() {
410
410
  this._hasStickyChanged = false;
411
411
  }
412
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
412
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderRowDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
413
413
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkHeaderRowDef, isStandalone: true, selector: "[cdkHeaderRowDef]", inputs: { columns: ["cdkHeaderRowDef", "columns"], sticky: ["cdkHeaderRowDefSticky", "sticky", booleanAttribute] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
414
414
  }
415
415
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderRowDef, decorators: [{
@@ -419,12 +419,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
419
419
  inputs: [{ name: 'columns', alias: 'cdkHeaderRowDef' }],
420
420
  standalone: true,
421
421
  }]
422
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{
423
- type: Inject,
424
- args: [CDK_TABLE]
425
- }, {
426
- type: Optional
427
- }] }], propDecorators: { sticky: [{
422
+ }], ctorParameters: () => [], propDecorators: { sticky: [{
428
423
  type: Input,
429
424
  args: [{ alias: 'cdkHeaderRowDefSticky', transform: booleanAttribute }]
430
425
  }] } });
@@ -443,9 +438,9 @@ class CdkFooterRowDef extends BaseRowDef {
443
438
  this._hasStickyChanged = true;
444
439
  }
445
440
  }
446
- constructor(template, _differs, _table) {
447
- super(template, _differs);
448
- this._table = _table;
441
+ constructor() {
442
+ super(inject(TemplateRef), inject(IterableDiffers));
443
+ this._table = inject(CDK_TABLE, { optional: true });
449
444
  this._hasStickyChanged = false;
450
445
  this._sticky = false;
451
446
  }
@@ -464,7 +459,7 @@ class CdkFooterRowDef extends BaseRowDef {
464
459
  resetStickyChanged() {
465
460
  this._hasStickyChanged = false;
466
461
  }
467
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
462
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterRowDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
468
463
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkFooterRowDef, isStandalone: true, selector: "[cdkFooterRowDef]", inputs: { columns: ["cdkFooterRowDef", "columns"], sticky: ["cdkFooterRowDefSticky", "sticky", booleanAttribute] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
469
464
  }
470
465
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkFooterRowDef, decorators: [{
@@ -474,12 +469,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
474
469
  inputs: [{ name: 'columns', alias: 'cdkFooterRowDef' }],
475
470
  standalone: true,
476
471
  }]
477
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{
478
- type: Inject,
479
- args: [CDK_TABLE]
480
- }, {
481
- type: Optional
482
- }] }], propDecorators: { sticky: [{
472
+ }], ctorParameters: () => [], propDecorators: { sticky: [{
483
473
  type: Input,
484
474
  args: [{ alias: 'cdkFooterRowDefSticky', transform: booleanAttribute }]
485
475
  }] } });
@@ -489,13 +479,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
489
479
  * a when predicate that describes when this row should be used.
490
480
  */
491
481
  class CdkRowDef extends BaseRowDef {
492
- // TODO(andrewseguin): Add an input for providing a switch function to determine
493
- // if this template should be used.
494
- constructor(template, _differs, _table) {
495
- super(template, _differs);
496
- this._table = _table;
482
+ constructor() {
483
+ // TODO(andrewseguin): Add an input for providing a switch function to determine
484
+ // if this template should be used.
485
+ super(inject(TemplateRef), inject(IterableDiffers));
486
+ this._table = inject(CDK_TABLE, { optional: true });
497
487
  }
498
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
488
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkRowDef, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
499
489
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkRowDef, isStandalone: true, selector: "[cdkRowDef]", inputs: { columns: ["cdkRowDefColumns", "columns"], when: ["cdkRowDefWhen", "when"] }, usesInheritance: true, ngImport: i0 }); }
500
490
  }
501
491
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkRowDef, decorators: [{
@@ -508,12 +498,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
508
498
  ],
509
499
  standalone: true,
510
500
  }]
511
- }], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{
512
- type: Inject,
513
- args: [CDK_TABLE]
514
- }, {
515
- type: Optional
516
- }] }] });
501
+ }], ctorParameters: () => [] });
517
502
  /**
518
503
  * Outlet for rendering cells inside of a row or header row.
519
504
  * @docs-private
@@ -527,8 +512,8 @@ class CdkCellOutlet {
527
512
  * construct the cells with the provided context.
528
513
  */
529
514
  static { this.mostRecentCellOutlet = null; }
530
- constructor(_viewContainer) {
531
- this._viewContainer = _viewContainer;
515
+ constructor() {
516
+ this._viewContainer = inject(ViewContainerRef);
532
517
  CdkCellOutlet.mostRecentCellOutlet = this;
533
518
  }
534
519
  ngOnDestroy() {
@@ -538,7 +523,7 @@ class CdkCellOutlet {
538
523
  CdkCellOutlet.mostRecentCellOutlet = null;
539
524
  }
540
525
  }
541
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCellOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
526
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCellOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
542
527
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkCellOutlet, isStandalone: true, selector: "[cdkCellOutlet]", ngImport: i0 }); }
543
528
  }
544
529
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkCellOutlet, decorators: [{
@@ -547,7 +532,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
547
532
  selector: '[cdkCellOutlet]',
548
533
  standalone: true,
549
534
  }]
550
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }] });
535
+ }], ctorParameters: () => [] });
551
536
  /** Header template container that contains the cell outlet. Adds the right class and role. */
552
537
  class CdkHeaderRow {
553
538
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkHeaderRow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -616,11 +601,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
616
601
  }] });
617
602
  /** Row that can be used to display a message when no data is shown in the table. */
618
603
  class CdkNoDataRow {
619
- constructor(templateRef) {
620
- this.templateRef = templateRef;
604
+ constructor() {
605
+ this.templateRef = inject(TemplateRef);
621
606
  this._contentClassName = 'cdk-no-data-row';
622
607
  }
623
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkNoDataRow, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
608
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkNoDataRow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
624
609
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkNoDataRow, isStandalone: true, selector: "ng-template[cdkNoDataRow]", ngImport: i0 }); }
625
610
  }
626
611
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkNoDataRow, decorators: [{
@@ -629,7 +614,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
629
614
  selector: 'ng-template[cdkNoDataRow]',
630
615
  standalone: true,
631
616
  }]
632
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
617
+ }], ctorParameters: () => [] });
633
618
 
634
619
  /**
635
620
  * List of all possible directions that can be used for sticky positioning.
@@ -1055,14 +1040,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
1055
1040
  * @docs-private
1056
1041
  */
1057
1042
  class DataRowOutlet {
1058
- constructor(viewContainer, elementRef) {
1059
- this.viewContainer = viewContainer;
1060
- this.elementRef = elementRef;
1043
+ constructor() {
1044
+ this.viewContainer = inject(ViewContainerRef);
1045
+ this.elementRef = inject(ElementRef);
1061
1046
  const table = inject(CDK_TABLE);
1062
1047
  table._rowOutlet = this;
1063
1048
  table._outletAssigned();
1064
1049
  }
1065
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1050
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DataRowOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1066
1051
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: DataRowOutlet, isStandalone: true, selector: "[rowOutlet]", ngImport: i0 }); }
1067
1052
  }
1068
1053
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DataRowOutlet, decorators: [{
@@ -1071,20 +1056,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
1071
1056
  selector: '[rowOutlet]',
1072
1057
  standalone: true,
1073
1058
  }]
1074
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }] });
1059
+ }], ctorParameters: () => [] });
1075
1060
  /**
1076
1061
  * Provides a handle for the table to grab the view container's ng-container to insert the header.
1077
1062
  * @docs-private
1078
1063
  */
1079
1064
  class HeaderRowOutlet {
1080
- constructor(viewContainer, elementRef) {
1081
- this.viewContainer = viewContainer;
1082
- this.elementRef = elementRef;
1065
+ constructor() {
1066
+ this.viewContainer = inject(ViewContainerRef);
1067
+ this.elementRef = inject(ElementRef);
1083
1068
  const table = inject(CDK_TABLE);
1084
1069
  table._headerRowOutlet = this;
1085
1070
  table._outletAssigned();
1086
1071
  }
1087
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HeaderRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1072
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HeaderRowOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1088
1073
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: HeaderRowOutlet, isStandalone: true, selector: "[headerRowOutlet]", ngImport: i0 }); }
1089
1074
  }
1090
1075
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HeaderRowOutlet, decorators: [{
@@ -1093,20 +1078,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
1093
1078
  selector: '[headerRowOutlet]',
1094
1079
  standalone: true,
1095
1080
  }]
1096
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }] });
1081
+ }], ctorParameters: () => [] });
1097
1082
  /**
1098
1083
  * Provides a handle for the table to grab the view container's ng-container to insert the footer.
1099
1084
  * @docs-private
1100
1085
  */
1101
1086
  class FooterRowOutlet {
1102
- constructor(viewContainer, elementRef) {
1103
- this.viewContainer = viewContainer;
1104
- this.elementRef = elementRef;
1087
+ constructor() {
1088
+ this.viewContainer = inject(ViewContainerRef);
1089
+ this.elementRef = inject(ElementRef);
1105
1090
  const table = inject(CDK_TABLE);
1106
1091
  table._footerRowOutlet = this;
1107
1092
  table._outletAssigned();
1108
1093
  }
1109
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FooterRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1094
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FooterRowOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1110
1095
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: FooterRowOutlet, isStandalone: true, selector: "[footerRowOutlet]", ngImport: i0 }); }
1111
1096
  }
1112
1097
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FooterRowOutlet, decorators: [{
@@ -1115,21 +1100,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
1115
1100
  selector: '[footerRowOutlet]',
1116
1101
  standalone: true,
1117
1102
  }]
1118
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }] });
1103
+ }], ctorParameters: () => [] });
1119
1104
  /**
1120
1105
  * Provides a handle for the table to grab the view
1121
1106
  * container's ng-container to insert the no data row.
1122
1107
  * @docs-private
1123
1108
  */
1124
1109
  class NoDataRowOutlet {
1125
- constructor(viewContainer, elementRef) {
1126
- this.viewContainer = viewContainer;
1127
- this.elementRef = elementRef;
1110
+ constructor() {
1111
+ this.viewContainer = inject(ViewContainerRef);
1112
+ this.elementRef = inject(ElementRef);
1128
1113
  const table = inject(CDK_TABLE);
1129
1114
  table._noDataRowOutlet = this;
1130
1115
  table._outletAssigned();
1131
1116
  }
1132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: NoDataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: NoDataRowOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1133
1118
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: NoDataRowOutlet, isStandalone: true, selector: "[noDataRowOutlet]", ngImport: i0 }); }
1134
1119
  }
1135
1120
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: NoDataRowOutlet, decorators: [{
@@ -1138,7 +1123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
1138
1123
  selector: '[noDataRowOutlet]',
1139
1124
  standalone: true,
1140
1125
  }]
1141
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }] });
1126
+ }], ctorParameters: () => [] });
1142
1127
  /**
1143
1128
  * The table template that can be used by the mat-table. Should not be used outside of the
1144
1129
  * material library.
@@ -1274,26 +1259,17 @@ class CdkTable {
1274
1259
  this._forceRecalculateCellWidths = true;
1275
1260
  this._stickyColumnStylesNeedReset = true;
1276
1261
  }
1277
- constructor(_differs, _changeDetectorRef, _elementRef, role, _dir, _document, _platform, _viewRepeater, _coalescedStyleScheduler, _viewportRuler,
1278
- /**
1279
- * @deprecated `_stickyPositioningListener` parameter to become required.
1280
- * @breaking-change 13.0.0
1281
- */
1282
- _stickyPositioningListener,
1283
- /**
1284
- * @deprecated `_unusedNgZone` parameter to be removed.
1285
- * @breaking-change 19.0.0
1286
- */
1287
- _unusedNgZone) {
1288
- this._differs = _differs;
1289
- this._changeDetectorRef = _changeDetectorRef;
1290
- this._elementRef = _elementRef;
1291
- this._dir = _dir;
1292
- this._platform = _platform;
1293
- this._viewRepeater = _viewRepeater;
1294
- this._coalescedStyleScheduler = _coalescedStyleScheduler;
1295
- this._viewportRuler = _viewportRuler;
1296
- this._stickyPositioningListener = _stickyPositioningListener;
1262
+ constructor() {
1263
+ this._differs = inject(IterableDiffers);
1264
+ this._changeDetectorRef = inject(ChangeDetectorRef);
1265
+ this._elementRef = inject(ElementRef);
1266
+ this._dir = inject(Directionality, { optional: true });
1267
+ this._platform = inject(Platform);
1268
+ this._viewRepeater = inject(_VIEW_REPEATER_STRATEGY);
1269
+ this._coalescedStyleScheduler = inject(_COALESCED_STYLE_SCHEDULER);
1270
+ this._viewportRuler = inject(ViewportRuler);
1271
+ this._stickyPositioningListener = inject(STICKY_POSITIONING_LISTENER, { optional: true, skipSelf: true });
1272
+ this._document = inject(DOCUMENT);
1297
1273
  /** Subject that emits when the component has been destroyed. */
1298
1274
  this._onDestroy = new Subject();
1299
1275
  /**
@@ -1399,12 +1375,12 @@ class CdkTable {
1399
1375
  end: Number.MAX_VALUE,
1400
1376
  });
1401
1377
  this._injector = inject(Injector);
1378
+ const role = inject(new HostAttributeToken('role'), { optional: true });
1402
1379
  if (!role) {
1403
- _elementRef.nativeElement.setAttribute('role', 'table');
1380
+ this._elementRef.nativeElement.setAttribute('role', 'table');
1404
1381
  }
1405
- this._document = _document;
1406
- this._isServer = !_platform.isBrowser;
1407
- this._isNativeHtmlTable = _elementRef.nativeElement.nodeName === 'TABLE';
1382
+ this._isServer = !this._platform.isBrowser;
1383
+ this._isNativeHtmlTable = this._elementRef.nativeElement.nodeName === 'TABLE';
1408
1384
  }
1409
1385
  ngOnInit() {
1410
1386
  this._setupStickyStyler();
@@ -2053,7 +2029,7 @@ class CdkTable {
2053
2029
  this._isShowingNoDataRow = shouldShow;
2054
2030
  this._changeDetectorRef.markForCheck();
2055
2031
  }
2056
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTable, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: 'role', attribute: true }, { token: i1.Directionality, optional: true }, { token: DOCUMENT }, { token: i2.Platform }, { token: _VIEW_REPEATER_STRATEGY }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i3.ViewportRuler }, { token: STICKY_POSITIONING_LISTENER, optional: true, skipSelf: true }, { token: i0.NgZone, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
2032
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTable, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2057
2033
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.0-next.3", type: CdkTable, isStandalone: true, selector: "cdk-table, table[cdk-table]", inputs: { trackBy: "trackBy", dataSource: "dataSource", multiTemplateDataRows: ["multiTemplateDataRows", "multiTemplateDataRows", booleanAttribute], fixedLayout: ["fixedLayout", "fixedLayout", booleanAttribute] }, outputs: { contentChanged: "contentChanged" }, host: { properties: { "class.cdk-table-fixed-layout": "fixedLayout" }, classAttribute: "cdk-table" }, providers: [
2058
2034
  { provide: CDK_TABLE, useExisting: CdkTable },
2059
2035
  { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },
@@ -2074,30 +2050,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
2074
2050
  // Prevent nested tables from seeing this table's StickyPositioningListener.
2075
2051
  { provide: STICKY_POSITIONING_LISTENER, useValue: null },
2076
2052
  ], standalone: true, imports: [HeaderRowOutlet, DataRowOutlet, NoDataRowOutlet, FooterRowOutlet], styles: [".cdk-table-fixed-layout{table-layout:fixed}"] }]
2077
- }], ctorParameters: () => [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
2078
- type: Attribute,
2079
- args: ['role']
2080
- }] }, { type: i1.Directionality, decorators: [{
2081
- type: Optional
2082
- }] }, { type: undefined, decorators: [{
2083
- type: Inject,
2084
- args: [DOCUMENT]
2085
- }] }, { type: i2.Platform }, { type: undefined, decorators: [{
2086
- type: Inject,
2087
- args: [_VIEW_REPEATER_STRATEGY]
2088
- }] }, { type: _CoalescedStyleScheduler, decorators: [{
2089
- type: Inject,
2090
- args: [_COALESCED_STYLE_SCHEDULER]
2091
- }] }, { type: i3.ViewportRuler }, { type: undefined, decorators: [{
2092
- type: Optional
2093
- }, {
2094
- type: SkipSelf
2095
- }, {
2096
- type: Inject,
2097
- args: [STICKY_POSITIONING_LISTENER]
2098
- }] }, { type: i0.NgZone, decorators: [{
2099
- type: Optional
2100
- }] }], propDecorators: { trackBy: [{
2053
+ }], ctorParameters: () => [], propDecorators: { trackBy: [{
2101
2054
  type: Input
2102
2055
  }], dataSource: [{
2103
2056
  type: Input
@@ -2175,16 +2128,12 @@ class CdkTextColumn {
2175
2128
  // available. In that case, we defer the synchronization until "ngOnInit" fires.
2176
2129
  this._syncColumnDefName();
2177
2130
  }
2178
- constructor(
2179
- // `CdkTextColumn` is always requiring a table, but we just assert it manually
2180
- // for better error reporting.
2181
- // tslint:disable-next-line: lightweight-tokens
2182
- _table, _options) {
2183
- this._table = _table;
2184
- this._options = _options;
2131
+ constructor() {
2132
+ this._table = inject(CdkTable, { optional: true });
2133
+ this._options = inject(TEXT_COLUMN_OPTIONS, { optional: true });
2185
2134
  /** Alignment of the cell values. */
2186
2135
  this.justify = 'start';
2187
- this._options = _options || {};
2136
+ this._options = this._options || {};
2188
2137
  }
2189
2138
  ngOnInit() {
2190
2139
  this._syncColumnDefName();
@@ -2232,7 +2181,7 @@ class CdkTextColumn {
2232
2181
  this.columnDef.name = this.name;
2233
2182
  }
2234
2183
  }
2235
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTextColumn, deps: [{ token: CdkTable, optional: true }, { token: TEXT_COLUMN_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
2184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTextColumn, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2236
2185
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkTextColumn, isStandalone: true, selector: "cdk-text-column", inputs: { name: "name", headerText: "headerText", dataAccessor: "dataAccessor", justify: "justify" }, viewQueries: [{ propertyName: "columnDef", first: true, predicate: CdkColumnDef, descendants: true, static: true }, { propertyName: "cell", first: true, predicate: CdkCellDef, descendants: true, static: true }, { propertyName: "headerCell", first: true, predicate: CdkHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `
2237
2186
  <ng-container cdkColumnDef>
2238
2187
  <th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">
@@ -2269,14 +2218,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3",
2269
2218
  standalone: true,
2270
2219
  imports: [CdkColumnDef, CdkHeaderCellDef, CdkHeaderCell, CdkCellDef, CdkCell],
2271
2220
  }]
2272
- }], ctorParameters: () => [{ type: CdkTable, decorators: [{
2273
- type: Optional
2274
- }] }, { type: undefined, decorators: [{
2275
- type: Optional
2276
- }, {
2277
- type: Inject,
2278
- args: [TEXT_COLUMN_OPTIONS]
2279
- }] }], propDecorators: { name: [{
2221
+ }], ctorParameters: () => [], propDecorators: { name: [{
2280
2222
  type: Input
2281
2223
  }], headerText: [{
2282
2224
  type: Input