@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
package/fesm2022/a11y.mjs CHANGED
@@ -1,14 +1,12 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, APP_ID, Injectable, Inject, QueryList, isSignal, effect, InjectionToken, afterNextRender, Injector, booleanAttribute, Directive, Input, Optional, EventEmitter, Output, NgModule } from '@angular/core';
4
- import * as i1 from '@angular/cdk/platform';
3
+ import { inject, APP_ID, Injectable, QueryList, isSignal, effect, InjectionToken, afterNextRender, NgZone, Injector, ElementRef, booleanAttribute, Directive, Input, EventEmitter, Output, NgModule } from '@angular/core';
5
4
  import { Platform, _getFocusedElementPierceShadowDom, normalizePassiveListenerOptions, _getEventTarget, _getShadowRoot } from '@angular/cdk/platform';
6
5
  import { Subject, Subscription, isObservable, of, BehaviorSubject } from 'rxjs';
7
6
  import { A, Z, ZERO, NINE, hasModifierKey, PAGE_DOWN, PAGE_UP, END, HOME, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, TAB, ALT, CONTROL, MAC_META, META, SHIFT } from '@angular/cdk/keycodes';
8
7
  import { tap, debounceTime, filter, map, take, skip, distinctUntilChanged, takeUntil } from 'rxjs/operators';
9
8
  import { coerceObservable } from '@angular/cdk/coercion/private';
10
- import * as i1$1 from '@angular/cdk/observers';
11
- import { ObserversModule } from '@angular/cdk/observers';
9
+ import { ContentObserver, ObserversModule } from '@angular/cdk/observers';
12
10
  import { coerceElement } from '@angular/cdk/coercion';
13
11
  import { BreakpointObserver } from '@angular/cdk/layout';
14
12
 
@@ -78,20 +76,15 @@ let nextId = 0;
78
76
  * content.
79
77
  */
80
78
  class AriaDescriber {
81
- constructor(_document,
82
- /**
83
- * @deprecated To be turned into a required parameter.
84
- * @breaking-change 14.0.0
85
- */
86
- _platform) {
87
- this._platform = _platform;
79
+ constructor() {
80
+ this._platform = inject(Platform);
81
+ this._document = inject(DOCUMENT);
88
82
  /** Map of all registered message elements that have been placed into the document. */
89
83
  this._messageRegistry = new Map();
90
84
  /** Container for all registered messages. */
91
85
  this._messagesContainer = null;
92
86
  /** Unique ID for the service. */
93
87
  this._id = `${nextId++}`;
94
- this._document = _document;
95
88
  this._id = inject(APP_ID) + '-' + nextId++;
96
89
  }
97
90
  describe(hostElement, message, role) {
@@ -187,8 +180,7 @@ class AriaDescriber {
187
180
  // the description element doesn't impact page layout.
188
181
  messagesContainer.classList.add(containerClassName);
189
182
  messagesContainer.classList.add('cdk-visually-hidden');
190
- // @breaking-change 14.0.0 Remove null check for `_platform`.
191
- if (this._platform && !this._platform.isBrowser) {
183
+ if (!this._platform.isBrowser) {
192
184
  messagesContainer.setAttribute('platform', 'server');
193
185
  }
194
186
  this._document.body.appendChild(messagesContainer);
@@ -250,16 +242,13 @@ class AriaDescriber {
250
242
  _isElementNode(element) {
251
243
  return element.nodeType === this._document.ELEMENT_NODE;
252
244
  }
253
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: AriaDescriber, deps: [{ token: DOCUMENT }, { token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
254
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: AriaDescriber, providedIn: 'root' }); }
245
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
246
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, providedIn: 'root' }); }
255
247
  }
256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: AriaDescriber, decorators: [{
248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: AriaDescriber, decorators: [{
257
249
  type: Injectable,
258
250
  args: [{ providedIn: 'root' }]
259
- }], ctorParameters: () => [{ type: undefined, decorators: [{
260
- type: Inject,
261
- args: [DOCUMENT]
262
- }] }, { type: i1.Platform }] });
251
+ }], ctorParameters: () => [] });
263
252
  /** Gets a key that can be used to look messages up in the registry. */
264
253
  function getKey(message, role) {
265
254
  return typeof message === 'string' ? `${role || ''}/${message}` : message;
@@ -1178,8 +1167,8 @@ class IsFocusableConfig {
1178
1167
  * tabbable.
1179
1168
  */
1180
1169
  class InteractivityChecker {
1181
- constructor(_platform) {
1182
- this._platform = _platform;
1170
+ constructor() {
1171
+ this._platform = inject(Platform);
1183
1172
  }
1184
1173
  /**
1185
1174
  * Gets whether an element is disabled.
@@ -1285,13 +1274,13 @@ class InteractivityChecker {
1285
1274
  !this.isDisabled(element) &&
1286
1275
  (config?.ignoreVisibility || this.isVisible(element)));
1287
1276
  }
1288
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: InteractivityChecker, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
1289
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: InteractivityChecker, providedIn: 'root' }); }
1277
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1278
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, providedIn: 'root' }); }
1290
1279
  }
1291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: InteractivityChecker, decorators: [{
1280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InteractivityChecker, decorators: [{
1292
1281
  type: Injectable,
1293
1282
  args: [{ providedIn: 'root' }]
1294
- }], ctorParameters: () => [{ type: i1.Platform }] });
1283
+ }], ctorParameters: () => [] });
1295
1284
  /**
1296
1285
  * Returns the frame element from a window object. Since browsers like MS Edge throw errors if
1297
1286
  * the frameElement property is being accessed from a different host address, this property
@@ -1663,11 +1652,11 @@ class FocusTrap {
1663
1652
  * Factory that allows easy instantiation of focus traps.
1664
1653
  */
1665
1654
  class FocusTrapFactory {
1666
- constructor(_checker, _ngZone, _document) {
1667
- this._checker = _checker;
1668
- this._ngZone = _ngZone;
1655
+ constructor() {
1656
+ this._checker = inject(InteractivityChecker);
1657
+ this._ngZone = inject(NgZone);
1658
+ this._document = inject(DOCUMENT);
1669
1659
  this._injector = inject(Injector);
1670
- this._document = _document;
1671
1660
  }
1672
1661
  /**
1673
1662
  * Creates a focus-trapped region around the given element.
@@ -1679,16 +1668,13 @@ class FocusTrapFactory {
1679
1668
  create(element, deferCaptureElements = false) {
1680
1669
  return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements, this._injector);
1681
1670
  }
1682
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1683
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' }); }
1671
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1672
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' }); }
1684
1673
  }
1685
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusTrapFactory, decorators: [{
1674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapFactory, decorators: [{
1686
1675
  type: Injectable,
1687
1676
  args: [{ providedIn: 'root' }]
1688
- }], ctorParameters: () => [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{
1689
- type: Inject,
1690
- args: [DOCUMENT]
1691
- }] }] });
1677
+ }], ctorParameters: () => [] });
1692
1678
  /** Directive for trapping focus within a region. */
1693
1679
  class CdkTrapFocus {
1694
1680
  /** Whether the focus trap is active. */
@@ -1700,14 +1686,9 @@ class CdkTrapFocus {
1700
1686
  this.focusTrap.enabled = value;
1701
1687
  }
1702
1688
  }
1703
- constructor(_elementRef, _focusTrapFactory,
1704
- /**
1705
- * @deprecated No longer being used. To be removed.
1706
- * @breaking-change 13.0.0
1707
- */
1708
- _document) {
1709
- this._elementRef = _elementRef;
1710
- this._focusTrapFactory = _focusTrapFactory;
1689
+ constructor() {
1690
+ this._elementRef = inject(ElementRef);
1691
+ this._focusTrapFactory = inject(FocusTrapFactory);
1711
1692
  /** Previously focused element to restore focus to upon destroy when using autoCapture. */
1712
1693
  this._previouslyFocusedElement = null;
1713
1694
  const platform = inject(Platform);
@@ -1748,20 +1729,17 @@ class CdkTrapFocus {
1748
1729
  this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();
1749
1730
  this.focusTrap?.focusInitialElementWhenReady();
1750
1731
  }
1751
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkTrapFocus, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
1752
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.2", type: CdkTrapFocus, isStandalone: true, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled", booleanAttribute], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture", booleanAttribute] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 }); }
1732
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTrapFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1733
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkTrapFocus, isStandalone: true, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled", booleanAttribute], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture", booleanAttribute] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 }); }
1753
1734
  }
1754
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkTrapFocus, decorators: [{
1735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkTrapFocus, decorators: [{
1755
1736
  type: Directive,
1756
1737
  args: [{
1757
1738
  selector: '[cdkTrapFocus]',
1758
1739
  exportAs: 'cdkTrapFocus',
1759
1740
  standalone: true,
1760
1741
  }]
1761
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: FocusTrapFactory }, { type: undefined, decorators: [{
1762
- type: Inject,
1763
- args: [DOCUMENT]
1764
- }] }], propDecorators: { enabled: [{
1742
+ }], ctorParameters: () => [], propDecorators: { enabled: [{
1765
1743
  type: Input,
1766
1744
  args: [{ alias: 'cdkTrapFocus', transform: booleanAttribute }]
1767
1745
  }], autoCapture: [{
@@ -1905,24 +1883,25 @@ class FocusTrapManager {
1905
1883
  }
1906
1884
  }
1907
1885
  }
1908
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1909
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusTrapManager, providedIn: 'root' }); }
1886
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1887
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapManager, providedIn: 'root' }); }
1910
1888
  }
1911
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusTrapManager, decorators: [{
1889
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusTrapManager, decorators: [{
1912
1890
  type: Injectable,
1913
1891
  args: [{ providedIn: 'root' }]
1914
1892
  }] });
1915
1893
 
1916
1894
  /** Factory that allows easy instantiation of configurable focus traps. */
1917
1895
  class ConfigurableFocusTrapFactory {
1918
- constructor(_checker, _ngZone, _focusTrapManager, _document, _inertStrategy) {
1919
- this._checker = _checker;
1920
- this._ngZone = _ngZone;
1921
- this._focusTrapManager = _focusTrapManager;
1896
+ constructor() {
1897
+ this._checker = inject(InteractivityChecker);
1898
+ this._ngZone = inject(NgZone);
1899
+ this._focusTrapManager = inject(FocusTrapManager);
1900
+ this._document = inject(DOCUMENT);
1922
1901
  this._injector = inject(Injector);
1923
- this._document = _document;
1902
+ const inertStrategy = inject(FOCUS_TRAP_INERT_STRATEGY, { optional: true });
1924
1903
  // TODO split up the strategies into different modules, similar to DateAdapter.
1925
- this._inertStrategy = _inertStrategy || new EventListenerFocusTrapInertStrategy();
1904
+ this._inertStrategy = inertStrategy || new EventListenerFocusTrapInertStrategy();
1926
1905
  }
1927
1906
  create(element, config = { defer: false }) {
1928
1907
  let configObject;
@@ -1934,21 +1913,13 @@ class ConfigurableFocusTrapFactory {
1934
1913
  }
1935
1914
  return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject, this._injector);
1936
1915
  }
1937
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: FocusTrapManager }, { token: DOCUMENT }, { token: FOCUS_TRAP_INERT_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1938
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' }); }
1916
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1917
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' }); }
1939
1918
  }
1940
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
1919
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
1941
1920
  type: Injectable,
1942
1921
  args: [{ providedIn: 'root' }]
1943
- }], ctorParameters: () => [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: FocusTrapManager }, { type: undefined, decorators: [{
1944
- type: Inject,
1945
- args: [DOCUMENT]
1946
- }] }, { type: undefined, decorators: [{
1947
- type: Optional
1948
- }, {
1949
- type: Inject,
1950
- args: [FOCUS_TRAP_INERT_STRATEGY]
1951
- }] }] });
1922
+ }], ctorParameters: () => [] });
1952
1923
 
1953
1924
  /** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */
1954
1925
  function isFakeMousedownFromScreenReader(event) {
@@ -2031,8 +2002,8 @@ class InputModalityDetector {
2031
2002
  get mostRecentModality() {
2032
2003
  return this._modality.value;
2033
2004
  }
2034
- constructor(_platform, ngZone, document, options) {
2035
- this._platform = _platform;
2005
+ constructor() {
2006
+ this._platform = inject(Platform);
2036
2007
  /**
2037
2008
  * The most recently detected input modality event target. Is null if no input modality has been
2038
2009
  * detected or if the associated event target is null for some unknown reason.
@@ -2091,6 +2062,9 @@ class InputModalityDetector {
2091
2062
  this._modality.next('touch');
2092
2063
  this._mostRecentTarget = _getEventTarget(event);
2093
2064
  };
2065
+ const ngZone = inject(NgZone);
2066
+ const document = inject(DOCUMENT);
2067
+ const options = inject(INPUT_MODALITY_DETECTOR_OPTIONS, { optional: true });
2094
2068
  this._options = {
2095
2069
  ...INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS,
2096
2070
  ...options,
@@ -2100,7 +2074,7 @@ class InputModalityDetector {
2100
2074
  this.modalityChanged = this.modalityDetected.pipe(distinctUntilChanged());
2101
2075
  // If we're not in a browser, this service should do nothing, as there's no relevant input
2102
2076
  // modality to detect.
2103
- if (_platform.isBrowser) {
2077
+ if (this._platform.isBrowser) {
2104
2078
  ngZone.runOutsideAngular(() => {
2105
2079
  document.addEventListener('keydown', this._onKeydown, modalityEventListenerOptions);
2106
2080
  document.addEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);
@@ -2116,21 +2090,13 @@ class InputModalityDetector {
2116
2090
  document.removeEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);
2117
2091
  }
2118
2092
  }
2119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: InputModalityDetector, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT }, { token: INPUT_MODALITY_DETECTOR_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2120
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: InputModalityDetector, providedIn: 'root' }); }
2093
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2094
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, providedIn: 'root' }); }
2121
2095
  }
2122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: InputModalityDetector, decorators: [{
2096
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: InputModalityDetector, decorators: [{
2123
2097
  type: Injectable,
2124
2098
  args: [{ providedIn: 'root' }]
2125
- }], ctorParameters: () => [{ type: i1.Platform }, { type: i0.NgZone }, { type: Document, decorators: [{
2126
- type: Inject,
2127
- args: [DOCUMENT]
2128
- }] }, { type: undefined, decorators: [{
2129
- type: Optional
2130
- }, {
2131
- type: Inject,
2132
- args: [INPUT_MODALITY_DETECTOR_OPTIONS]
2133
- }] }] });
2099
+ }], ctorParameters: () => [] });
2134
2100
 
2135
2101
  const LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken('liveAnnouncerElement', {
2136
2102
  providedIn: 'root',
@@ -2145,13 +2111,13 @@ const LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken('LIVE_ANNOUNCER_DEFAUL
2145
2111
 
2146
2112
  let uniqueIds = 0;
2147
2113
  class LiveAnnouncer {
2148
- constructor(elementToken, _ngZone, _document, _defaultOptions) {
2149
- this._ngZone = _ngZone;
2150
- this._defaultOptions = _defaultOptions;
2151
- // We inject the live element and document as `any` because the constructor signature cannot
2152
- // reference browser globals (HTMLElement, Document) on non-browser environments, since having
2153
- // a class decorator causes TypeScript to preserve the constructor signature types.
2154
- this._document = _document;
2114
+ constructor() {
2115
+ this._ngZone = inject(NgZone);
2116
+ this._defaultOptions = inject(LIVE_ANNOUNCER_DEFAULT_OPTIONS, {
2117
+ optional: true,
2118
+ });
2119
+ this._document = inject(DOCUMENT);
2120
+ const elementToken = inject(LIVE_ANNOUNCER_ELEMENT_TOKEN, { optional: true });
2155
2121
  this._liveElement = elementToken || this._createLiveElement();
2156
2122
  }
2157
2123
  announce(message, ...args) {
@@ -2258,26 +2224,13 @@ class LiveAnnouncer {
2258
2224
  }
2259
2225
  }
2260
2226
  }
2261
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: LiveAnnouncer, deps: [{ token: LIVE_ANNOUNCER_ELEMENT_TOKEN, optional: true }, { token: i0.NgZone }, { token: DOCUMENT }, { token: LIVE_ANNOUNCER_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2262
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' }); }
2227
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2228
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' }); }
2263
2229
  }
2264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: LiveAnnouncer, decorators: [{
2230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: LiveAnnouncer, decorators: [{
2265
2231
  type: Injectable,
2266
2232
  args: [{ providedIn: 'root' }]
2267
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2268
- type: Optional
2269
- }, {
2270
- type: Inject,
2271
- args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]
2272
- }] }, { type: i0.NgZone }, { type: undefined, decorators: [{
2273
- type: Inject,
2274
- args: [DOCUMENT]
2275
- }] }, { type: undefined, decorators: [{
2276
- type: Optional
2277
- }, {
2278
- type: Inject,
2279
- args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]
2280
- }] }] });
2233
+ }], ctorParameters: () => [] });
2281
2234
  /**
2282
2235
  * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
2283
2236
  * with a wider range of browsers and screen readers.
@@ -2310,11 +2263,11 @@ class CdkAriaLive {
2310
2263
  });
2311
2264
  }
2312
2265
  }
2313
- constructor(_elementRef, _liveAnnouncer, _contentObserver, _ngZone) {
2314
- this._elementRef = _elementRef;
2315
- this._liveAnnouncer = _liveAnnouncer;
2316
- this._contentObserver = _contentObserver;
2317
- this._ngZone = _ngZone;
2266
+ constructor() {
2267
+ this._elementRef = inject(ElementRef);
2268
+ this._liveAnnouncer = inject(LiveAnnouncer);
2269
+ this._contentObserver = inject(ContentObserver);
2270
+ this._ngZone = inject(NgZone);
2318
2271
  this._politeness = 'polite';
2319
2272
  }
2320
2273
  ngOnDestroy() {
@@ -2322,17 +2275,17 @@ class CdkAriaLive {
2322
2275
  this._subscription.unsubscribe();
2323
2276
  }
2324
2277
  }
2325
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkAriaLive, deps: [{ token: i0.ElementRef }, { token: LiveAnnouncer }, { token: i1$1.ContentObserver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
2326
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkAriaLive, isStandalone: true, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"], duration: ["cdkAriaLiveDuration", "duration"] }, exportAs: ["cdkAriaLive"], ngImport: i0 }); }
2278
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkAriaLive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2279
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkAriaLive, isStandalone: true, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"], duration: ["cdkAriaLiveDuration", "duration"] }, exportAs: ["cdkAriaLive"], ngImport: i0 }); }
2327
2280
  }
2328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkAriaLive, decorators: [{
2281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkAriaLive, decorators: [{
2329
2282
  type: Directive,
2330
2283
  args: [{
2331
2284
  selector: '[cdkAriaLive]',
2332
2285
  exportAs: 'cdkAriaLive',
2333
2286
  standalone: true,
2334
2287
  }]
2335
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: LiveAnnouncer }, { type: i1$1.ContentObserver }, { type: i0.NgZone }], propDecorators: { politeness: [{
2288
+ }], ctorParameters: () => [], propDecorators: { politeness: [{
2336
2289
  type: Input,
2337
2290
  args: ['cdkAriaLive']
2338
2291
  }], duration: [{
@@ -2367,12 +2320,10 @@ const captureEventListenerOptions = normalizePassiveListenerOptions({
2367
2320
  });
2368
2321
  /** Monitors mouse and keyboard events to determine the cause of focus events. */
2369
2322
  class FocusMonitor {
2370
- constructor(_ngZone, _platform, _inputModalityDetector,
2371
- /** @breaking-change 11.0.0 make document required */
2372
- document, options) {
2373
- this._ngZone = _ngZone;
2374
- this._platform = _platform;
2375
- this._inputModalityDetector = _inputModalityDetector;
2323
+ constructor() {
2324
+ this._ngZone = inject(NgZone);
2325
+ this._platform = inject(Platform);
2326
+ this._inputModalityDetector = inject(InputModalityDetector);
2376
2327
  /** The focus origin that the next focus event is a result of. */
2377
2328
  this._origin = null;
2378
2329
  /** Whether the window has just been focused. */
@@ -2403,6 +2354,8 @@ class FocusMonitor {
2403
2354
  this._windowFocused = true;
2404
2355
  this._windowFocusTimeoutId = window.setTimeout(() => (this._windowFocused = false));
2405
2356
  };
2357
+ /** Used to reference correct document/window */
2358
+ this._document = inject(DOCUMENT, { optional: true });
2406
2359
  /** Subject for stopping our InputModalityDetector subscription. */
2407
2360
  this._stopInputModalityDetector = new Subject();
2408
2361
  /**
@@ -2421,7 +2374,9 @@ class FocusMonitor {
2421
2374
  }
2422
2375
  }
2423
2376
  };
2424
- this._document = document;
2377
+ const options = inject(FOCUS_MONITOR_DEFAULT_OPTIONS, {
2378
+ optional: true,
2379
+ });
2425
2380
  this._detectionMode = options?.detectionMode || FocusMonitorDetectionMode.IMMEDIATE;
2426
2381
  }
2427
2382
  monitor(element, checkChildren = false) {
@@ -2726,23 +2681,13 @@ class FocusMonitor {
2726
2681
  }
2727
2682
  return false;
2728
2683
  }
2729
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusMonitor, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: InputModalityDetector }, { token: DOCUMENT, optional: true }, { token: FOCUS_MONITOR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
2730
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusMonitor, providedIn: 'root' }); }
2684
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2685
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, providedIn: 'root' }); }
2731
2686
  }
2732
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: FocusMonitor, decorators: [{
2687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: FocusMonitor, decorators: [{
2733
2688
  type: Injectable,
2734
2689
  args: [{ providedIn: 'root' }]
2735
- }], ctorParameters: () => [{ type: i0.NgZone }, { type: i1.Platform }, { type: InputModalityDetector }, { type: undefined, decorators: [{
2736
- type: Optional
2737
- }, {
2738
- type: Inject,
2739
- args: [DOCUMENT]
2740
- }] }, { type: undefined, decorators: [{
2741
- type: Optional
2742
- }, {
2743
- type: Inject,
2744
- args: [FOCUS_MONITOR_DEFAULT_OPTIONS]
2745
- }] }] });
2690
+ }], ctorParameters: () => [] });
2746
2691
  /**
2747
2692
  * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
2748
2693
  * programmatically) and adds corresponding classes to the element.
@@ -2753,9 +2698,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
2753
2698
  * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.
2754
2699
  */
2755
2700
  class CdkMonitorFocus {
2756
- constructor(_elementRef, _focusMonitor) {
2757
- this._elementRef = _elementRef;
2758
- this._focusMonitor = _focusMonitor;
2701
+ constructor() {
2702
+ this._elementRef = inject(ElementRef);
2703
+ this._focusMonitor = inject(FocusMonitor);
2759
2704
  this._focusOrigin = null;
2760
2705
  this.cdkFocusChange = new EventEmitter();
2761
2706
  }
@@ -2777,17 +2722,17 @@ class CdkMonitorFocus {
2777
2722
  this._monitorSubscription.unsubscribe();
2778
2723
  }
2779
2724
  }
2780
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkMonitorFocus, deps: [{ token: i0.ElementRef }, { token: FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive }); }
2781
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.2", type: CdkMonitorFocus, isStandalone: true, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, exportAs: ["cdkMonitorFocus"], ngImport: i0 }); }
2725
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkMonitorFocus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2726
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkMonitorFocus, isStandalone: true, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, exportAs: ["cdkMonitorFocus"], ngImport: i0 }); }
2782
2727
  }
2783
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: CdkMonitorFocus, decorators: [{
2728
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkMonitorFocus, decorators: [{
2784
2729
  type: Directive,
2785
2730
  args: [{
2786
2731
  selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
2787
2732
  exportAs: 'cdkMonitorFocus',
2788
2733
  standalone: true,
2789
2734
  }]
2790
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: FocusMonitor }], propDecorators: { cdkFocusChange: [{
2735
+ }], ctorParameters: () => [], propDecorators: { cdkFocusChange: [{
2791
2736
  type: Output
2792
2737
  }] } });
2793
2738
 
@@ -2816,9 +2761,9 @@ const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';
2816
2761
  * browser extension.
2817
2762
  */
2818
2763
  class HighContrastModeDetector {
2819
- constructor(_platform, document) {
2820
- this._platform = _platform;
2821
- this._document = document;
2764
+ constructor() {
2765
+ this._platform = inject(Platform);
2766
+ this._document = inject(DOCUMENT);
2822
2767
  this._breakpointSubscription = inject(BreakpointObserver)
2823
2768
  .observe('(forced-colors: active)')
2824
2769
  .subscribe(() => {
@@ -2883,32 +2828,29 @@ class HighContrastModeDetector {
2883
2828
  }
2884
2829
  }
2885
2830
  }
2886
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: HighContrastModeDetector, deps: [{ token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
2887
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' }); }
2831
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2832
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' }); }
2888
2833
  }
2889
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: HighContrastModeDetector, decorators: [{
2834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: HighContrastModeDetector, decorators: [{
2890
2835
  type: Injectable,
2891
2836
  args: [{ providedIn: 'root' }]
2892
- }], ctorParameters: () => [{ type: i1.Platform }, { type: undefined, decorators: [{
2893
- type: Inject,
2894
- args: [DOCUMENT]
2895
- }] }] });
2837
+ }], ctorParameters: () => [] });
2896
2838
 
2897
2839
  class A11yModule {
2898
- constructor(highContrastModeDetector) {
2899
- highContrastModeDetector._applyBodyHighContrastModeCssClasses();
2840
+ constructor() {
2841
+ inject(HighContrastModeDetector)._applyBodyHighContrastModeCssClasses();
2900
2842
  }
2901
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: A11yModule, deps: [{ token: HighContrastModeDetector }], target: i0.ɵɵFactoryTarget.NgModule }); }
2902
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.2", ngImport: i0, type: A11yModule, imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] }); }
2903
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: A11yModule, imports: [ObserversModule] }); }
2843
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2844
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] }); }
2845
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, imports: [ObserversModule] }); }
2904
2846
  }
2905
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2", ngImport: i0, type: A11yModule, decorators: [{
2847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: A11yModule, decorators: [{
2906
2848
  type: NgModule,
2907
2849
  args: [{
2908
2850
  imports: [ObserversModule, CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
2909
2851
  exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
2910
2852
  }]
2911
- }], ctorParameters: () => [{ type: HighContrastModeDetector }] });
2853
+ }], ctorParameters: () => [] });
2912
2854
 
2913
2855
  /**
2914
2856
  * Generated bundle index. Do not edit.