@angular/cdk 13.0.0-rc.0 → 13.0.0

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 (456) hide show
  1. package/a11y/_index.scss +1 -1
  2. package/a11y/a11y_public_index.d.ts +4 -0
  3. package/a11y/index.d.ts +5 -1
  4. package/a11y/package.json +2 -2
  5. package/accordion/accordion_public_index.d.ts +4 -0
  6. package/accordion/index.d.ts +5 -1
  7. package/accordion/package.json +2 -2
  8. package/bidi/bidi_public_index.d.ts +4 -0
  9. package/bidi/index.d.ts +5 -1
  10. package/bidi/package.json +2 -2
  11. package/clipboard/clipboard_public_index.d.ts +4 -0
  12. package/clipboard/index.d.ts +5 -1
  13. package/clipboard/package.json +2 -2
  14. package/collections/collections_public_index.d.ts +4 -0
  15. package/collections/index.d.ts +5 -1
  16. package/collections/package.json +2 -2
  17. package/drag-drop/drag-drop_public_index.d.ts +4 -0
  18. package/drag-drop/index.d.ts +5 -1
  19. package/drag-drop/package.json +2 -2
  20. package/esm2020/a11y/a11y-module.mjs +5 -5
  21. package/esm2020/a11y/a11y_public_index.mjs +5 -0
  22. package/esm2020/a11y/aria-describer/aria-describer.mjs +6 -7
  23. package/esm2020/a11y/aria-describer/aria-reference.mjs +1 -1
  24. package/esm2020/a11y/fake-event-detection.mjs +6 -5
  25. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +26 -22
  26. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +5 -5
  27. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +4 -2
  28. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +1 -1
  29. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +2 -2
  30. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +5 -5
  31. package/esm2020/a11y/focus-trap/focus-trap.mjs +36 -26
  32. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +12 -9
  33. package/esm2020/a11y/index.mjs +6 -2
  34. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  35. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +18 -16
  36. package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +1 -1
  37. package/esm2020/a11y/key-manager/list-key-manager.mjs +10 -6
  38. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +1 -1
  39. package/esm2020/a11y/live-announcer/live-announcer.mjs +12 -12
  40. package/esm2020/accordion/accordion-item.mjs +21 -14
  41. package/esm2020/accordion/accordion-module.mjs +5 -5
  42. package/esm2020/accordion/accordion.mjs +10 -6
  43. package/esm2020/accordion/accordion_public_index.mjs +5 -0
  44. package/esm2020/accordion/index.mjs +6 -2
  45. package/esm2020/bidi/bidi-module.mjs +5 -5
  46. package/esm2020/bidi/bidi_public_index.mjs +5 -0
  47. package/esm2020/bidi/dir-document-token.mjs +1 -1
  48. package/esm2020/bidi/dir.mjs +12 -8
  49. package/esm2020/bidi/directionality.mjs +5 -5
  50. package/esm2020/bidi/index.mjs +6 -2
  51. package/esm2020/bidi/public-api.mjs +1 -1
  52. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  53. package/esm2020/clipboard/clipboard.mjs +4 -4
  54. package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
  55. package/esm2020/clipboard/copy-to-clipboard.mjs +5 -5
  56. package/esm2020/clipboard/index.mjs +6 -2
  57. package/esm2020/clipboard/pending-copy.mjs +4 -3
  58. package/esm2020/collections/array-data-source.mjs +1 -1
  59. package/esm2020/collections/collection-viewer.mjs +1 -1
  60. package/esm2020/collections/collections_public_index.mjs +5 -0
  61. package/esm2020/collections/dispose-view-repeater-strategy.mjs +2 -3
  62. package/esm2020/collections/index.mjs +6 -2
  63. package/esm2020/collections/recycle-view-repeater-strategy.mjs +7 -4
  64. package/esm2020/collections/selection-model.mjs +2 -2
  65. package/esm2020/collections/tree-adapter.mjs +1 -1
  66. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  67. package/esm2020/collections/view-repeater.mjs +2 -2
  68. package/esm2020/drag-drop/client-rect.mjs +6 -4
  69. package/esm2020/drag-drop/clone-node.mjs +1 -1
  70. package/esm2020/drag-drop/directives/assertions.mjs +2 -3
  71. package/esm2020/drag-drop/directives/config.mjs +1 -1
  72. package/esm2020/drag-drop/directives/drag-handle.mjs +8 -6
  73. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  74. package/esm2020/drag-drop/directives/drag-preview.mjs +10 -6
  75. package/esm2020/drag-drop/directives/drag.mjs +49 -40
  76. package/esm2020/drag-drop/directives/drop-list-group.mjs +7 -5
  77. package/esm2020/drag-drop/directives/drop-list.mjs +15 -14
  78. package/esm2020/drag-drop/drag-drop-module.mjs +6 -10
  79. package/esm2020/drag-drop/drag-drop-registry.mjs +9 -9
  80. package/esm2020/drag-drop/drag-drop.mjs +5 -5
  81. package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
  82. package/esm2020/drag-drop/drag-events.mjs +1 -1
  83. package/esm2020/drag-drop/drag-ref.mjs +56 -41
  84. package/esm2020/drag-drop/drag-styling.mjs +6 -6
  85. package/esm2020/drag-drop/drag-utils.mjs +1 -1
  86. package/esm2020/drag-drop/drop-list-ref.mjs +55 -37
  87. package/esm2020/drag-drop/index.mjs +6 -2
  88. package/esm2020/drag-drop/parent-position-tracker.mjs +2 -2
  89. package/esm2020/drag-drop/transition-duration.mjs +3 -3
  90. package/esm2020/keycodes/index.mjs +6 -2
  91. package/esm2020/keycodes/keycodes.mjs +1 -1
  92. package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
  93. package/esm2020/layout/breakpoints-observer.mjs +6 -5
  94. package/esm2020/layout/breakpoints.mjs +1 -1
  95. package/esm2020/layout/index.mjs +6 -2
  96. package/esm2020/layout/layout-module.mjs +5 -5
  97. package/esm2020/layout/layout_public_index.mjs +5 -0
  98. package/esm2020/layout/media-matcher.mjs +11 -10
  99. package/esm2020/observers/index.mjs +6 -2
  100. package/esm2020/observers/observe-content.mjs +24 -21
  101. package/esm2020/observers/observers_public_index.mjs +5 -0
  102. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  103. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
  104. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +25 -6
  105. package/esm2020/overlay/fullscreen-overlay-container.mjs +6 -6
  106. package/esm2020/overlay/index.mjs +6 -2
  107. package/esm2020/overlay/overlay-config.mjs +1 -1
  108. package/esm2020/overlay/overlay-container.mjs +5 -6
  109. package/esm2020/overlay/overlay-directives.mjs +55 -30
  110. package/esm2020/overlay/overlay-module.mjs +6 -12
  111. package/esm2020/overlay/overlay-ref.mjs +2 -4
  112. package/esm2020/overlay/overlay.mjs +4 -4
  113. package/esm2020/overlay/overlay_public_index.mjs +5 -0
  114. package/esm2020/overlay/position/connected-position.mjs +1 -1
  115. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +26 -27
  116. package/esm2020/overlay/position/global-position-strategy.mjs +9 -3
  117. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  118. package/esm2020/overlay/position/scroll-clip.mjs +1 -1
  119. package/esm2020/overlay/scroll/block-scroll-strategy.mjs +1 -1
  120. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +1 -1
  121. package/esm2020/overlay/scroll/index.mjs +2 -2
  122. package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +1 -1
  123. package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +1 -1
  124. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  125. package/esm2020/platform/features/input-types.mjs +1 -1
  126. package/esm2020/platform/features/passive-listeners.mjs +2 -2
  127. package/esm2020/platform/features/scrolling.mjs +1 -1
  128. package/esm2020/platform/features/shadow-dom.mjs +4 -3
  129. package/esm2020/platform/features/test-environment.mjs +3 -3
  130. package/esm2020/platform/index.mjs +6 -2
  131. package/esm2020/platform/platform-module.mjs +5 -5
  132. package/esm2020/platform/platform.mjs +18 -12
  133. package/esm2020/platform/platform_public_index.mjs +5 -0
  134. package/esm2020/portal/dom-portal-outlet.mjs +3 -3
  135. package/esm2020/portal/index.mjs +6 -2
  136. package/esm2020/portal/portal-directives.mjs +40 -33
  137. package/esm2020/portal/portal-errors.mjs +1 -1
  138. package/esm2020/portal/portal-injector.mjs +1 -1
  139. package/esm2020/portal/portal.mjs +2 -2
  140. package/esm2020/portal/portal_public_index.mjs +5 -0
  141. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +36 -16
  142. package/esm2020/scrolling/index.mjs +6 -2
  143. package/esm2020/scrolling/scroll-dispatcher.mjs +9 -10
  144. package/esm2020/scrolling/scrollable.mjs +8 -7
  145. package/esm2020/scrolling/scrolling-module.mjs +12 -27
  146. package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
  147. package/esm2020/scrolling/viewport-ruler.mjs +18 -12
  148. package/esm2020/scrolling/virtual-for-of.mjs +14 -18
  149. package/esm2020/scrolling/virtual-scroll-strategy.mjs +1 -1
  150. package/esm2020/scrolling/virtual-scroll-viewport.mjs +17 -13
  151. package/esm2020/stepper/index.mjs +6 -2
  152. package/esm2020/stepper/step-header.mjs +4 -4
  153. package/esm2020/stepper/step-label.mjs +4 -4
  154. package/esm2020/stepper/stepper-button.mjs +9 -9
  155. package/esm2020/stepper/stepper-module.mjs +8 -20
  156. package/esm2020/stepper/stepper.mjs +30 -19
  157. package/esm2020/stepper/stepper_public_index.mjs +5 -0
  158. package/esm2020/table/can-stick.mjs +4 -2
  159. package/esm2020/table/cell.mjs +33 -31
  160. package/esm2020/table/coalesced-style-scheduler.mjs +10 -8
  161. package/esm2020/table/index.mjs +6 -2
  162. package/esm2020/table/row.mjs +30 -30
  163. package/esm2020/table/sticky-position-listener.mjs +1 -1
  164. package/esm2020/table/sticky-styler.mjs +26 -16
  165. package/esm2020/table/table-errors.mjs +1 -1
  166. package/esm2020/table/table-module.mjs +8 -8
  167. package/esm2020/table/table.mjs +42 -37
  168. package/esm2020/table/table_public_index.mjs +5 -0
  169. package/esm2020/table/text-column.mjs +4 -4
  170. package/esm2020/table/tokens.mjs +1 -1
  171. package/esm2020/testing/change-detection.mjs +2 -2
  172. package/esm2020/testing/component-harness.mjs +4 -3
  173. package/esm2020/testing/element-dimensions.mjs +1 -1
  174. package/esm2020/testing/harness-environment.mjs +15 -11
  175. package/esm2020/testing/protractor/protractor-element.mjs +11 -10
  176. package/esm2020/testing/protractor/protractor-harness-environment.mjs +2 -2
  177. package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +12 -11
  178. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +3 -4
  179. package/esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs +2 -2
  180. package/esm2020/testing/test-element.mjs +1 -1
  181. package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +1 -1
  182. package/esm2020/testing/testbed/fake-events/element-focus.mjs +2 -2
  183. package/esm2020/testing/testbed/fake-events/event-objects.mjs +1 -1
  184. package/esm2020/testing/testbed/fake-events/type-in-element.mjs +17 -8
  185. package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +2 -2
  186. package/esm2020/testing/testbed/testbed-harness-environment.mjs +3 -3
  187. package/esm2020/testing/testbed/unit-test-element.mjs +4 -5
  188. package/esm2020/text-field/autofill.mjs +8 -8
  189. package/esm2020/text-field/autosize.mjs +22 -16
  190. package/esm2020/text-field/index.mjs +6 -2
  191. package/esm2020/text-field/text-field-module.mjs +5 -5
  192. package/esm2020/text-field/text-field_public_index.mjs +5 -0
  193. package/esm2020/tree/control/base-tree-control.mjs +4 -4
  194. package/esm2020/tree/control/flat-tree-control.mjs +1 -1
  195. package/esm2020/tree/control/nested-tree-control.mjs +2 -3
  196. package/esm2020/tree/index.mjs +6 -2
  197. package/esm2020/tree/nested-node.mjs +12 -10
  198. package/esm2020/tree/node.mjs +5 -7
  199. package/esm2020/tree/outlet.mjs +6 -6
  200. package/esm2020/tree/padding.mjs +17 -9
  201. package/esm2020/tree/toggle.mjs +10 -6
  202. package/esm2020/tree/tree-module.mjs +5 -5
  203. package/esm2020/tree/tree.mjs +31 -19
  204. package/esm2020/tree/tree_public_index.mjs +5 -0
  205. package/esm2020/version.mjs +1 -1
  206. package/fesm2015/a11y.mjs +142 -109
  207. package/fesm2015/a11y.mjs.map +1 -1
  208. package/fesm2015/accordion.mjs +41 -22
  209. package/fesm2015/accordion.mjs.map +1 -1
  210. package/fesm2015/bidi.mjs +26 -14
  211. package/fesm2015/bidi.mjs.map +1 -1
  212. package/fesm2015/cdk.mjs +1 -1
  213. package/fesm2015/cdk.mjs.map +1 -1
  214. package/fesm2015/clipboard.mjs +22 -13
  215. package/fesm2015/clipboard.mjs.map +1 -1
  216. package/fesm2015/collections.mjs +19 -9
  217. package/fesm2015/collections.mjs.map +1 -1
  218. package/fesm2015/drag-drop.mjs +233 -177
  219. package/fesm2015/drag-drop.mjs.map +1 -1
  220. package/fesm2015/keycodes.mjs +8 -0
  221. package/fesm2015/keycodes.mjs.map +1 -1
  222. package/fesm2015/layout.mjs +27 -17
  223. package/fesm2015/layout.mjs.map +1 -1
  224. package/fesm2015/observers.mjs +30 -19
  225. package/fesm2015/observers.mjs.map +1 -1
  226. package/fesm2015/overlay.mjs +149 -101
  227. package/fesm2015/overlay.mjs.map +1 -1
  228. package/fesm2015/platform.mjs +35 -20
  229. package/fesm2015/platform.mjs.map +1 -1
  230. package/fesm2015/portal.mjs +49 -34
  231. package/fesm2015/portal.mjs.map +1 -1
  232. package/fesm2015/scrolling.mjs +114 -95
  233. package/fesm2015/scrolling.mjs.map +1 -1
  234. package/fesm2015/stepper.mjs +57 -50
  235. package/fesm2015/stepper.mjs.map +1 -1
  236. package/fesm2015/table.mjs +152 -123
  237. package/fesm2015/table.mjs.map +1 -1
  238. package/fesm2015/testing/protractor.mjs +11 -10
  239. package/fesm2015/testing/protractor.mjs.map +1 -1
  240. package/fesm2015/testing/selenium-webdriver.mjs +13 -13
  241. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  242. package/fesm2015/testing/testbed.mjs +22 -14
  243. package/fesm2015/testing/testbed.mjs.map +1 -1
  244. package/fesm2015/testing.mjs +17 -12
  245. package/fesm2015/testing.mjs.map +1 -1
  246. package/fesm2015/text-field.mjs +39 -25
  247. package/fesm2015/text-field.mjs.map +1 -1
  248. package/fesm2015/tree.mjs +88 -57
  249. package/fesm2015/tree.mjs.map +1 -1
  250. package/fesm2020/a11y.mjs +142 -109
  251. package/fesm2020/a11y.mjs.map +1 -1
  252. package/fesm2020/accordion.mjs +41 -22
  253. package/fesm2020/accordion.mjs.map +1 -1
  254. package/fesm2020/bidi.mjs +26 -14
  255. package/fesm2020/bidi.mjs.map +1 -1
  256. package/fesm2020/cdk.mjs +1 -1
  257. package/fesm2020/cdk.mjs.map +1 -1
  258. package/fesm2020/clipboard.mjs +22 -13
  259. package/fesm2020/clipboard.mjs.map +1 -1
  260. package/fesm2020/collections.mjs +19 -9
  261. package/fesm2020/collections.mjs.map +1 -1
  262. package/fesm2020/drag-drop.mjs +233 -177
  263. package/fesm2020/drag-drop.mjs.map +1 -1
  264. package/fesm2020/keycodes.mjs +8 -0
  265. package/fesm2020/keycodes.mjs.map +1 -1
  266. package/fesm2020/layout.mjs +27 -17
  267. package/fesm2020/layout.mjs.map +1 -1
  268. package/fesm2020/observers.mjs +30 -19
  269. package/fesm2020/observers.mjs.map +1 -1
  270. package/fesm2020/overlay.mjs +149 -101
  271. package/fesm2020/overlay.mjs.map +1 -1
  272. package/fesm2020/platform.mjs +35 -20
  273. package/fesm2020/platform.mjs.map +1 -1
  274. package/fesm2020/portal.mjs +49 -34
  275. package/fesm2020/portal.mjs.map +1 -1
  276. package/fesm2020/scrolling.mjs +114 -95
  277. package/fesm2020/scrolling.mjs.map +1 -1
  278. package/fesm2020/stepper.mjs +57 -50
  279. package/fesm2020/stepper.mjs.map +1 -1
  280. package/fesm2020/table.mjs +152 -123
  281. package/fesm2020/table.mjs.map +1 -1
  282. package/fesm2020/testing/protractor.mjs +11 -10
  283. package/fesm2020/testing/protractor.mjs.map +1 -1
  284. package/fesm2020/testing/selenium-webdriver.mjs +13 -13
  285. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  286. package/fesm2020/testing/testbed.mjs +22 -14
  287. package/fesm2020/testing/testbed.mjs.map +1 -1
  288. package/fesm2020/testing.mjs +18 -13
  289. package/fesm2020/testing.mjs.map +1 -1
  290. package/fesm2020/text-field.mjs +39 -25
  291. package/fesm2020/text-field.mjs.map +1 -1
  292. package/fesm2020/tree.mjs +88 -57
  293. package/fesm2020/tree.mjs.map +1 -1
  294. package/keycodes/index.d.ts +5 -1
  295. package/keycodes/keycodes_public_index.d.ts +4 -0
  296. package/keycodes/package.json +2 -2
  297. package/layout/index.d.ts +5 -1
  298. package/layout/layout_public_index.d.ts +4 -0
  299. package/layout/package.json +2 -2
  300. package/observers/index.d.ts +5 -1
  301. package/observers/observers_public_index.d.ts +4 -0
  302. package/observers/package.json +2 -2
  303. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +3 -0
  304. package/overlay/index.d.ts +5 -1
  305. package/overlay/overlay_public_index.d.ts +4 -0
  306. package/overlay/package.json +2 -2
  307. package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
  308. package/overlay/scroll/index.d.ts +1 -1
  309. package/package.json +38 -38
  310. package/platform/index.d.ts +5 -1
  311. package/platform/package.json +2 -2
  312. package/platform/platform_public_index.d.ts +4 -0
  313. package/portal/index.d.ts +5 -1
  314. package/portal/package.json +2 -2
  315. package/portal/portal_public_index.d.ts +4 -0
  316. package/schematics/ng-add/index.js +2 -2
  317. package/schematics/ng-add/index.mjs +2 -2
  318. package/schematics/ng-add/package-config.js +4 -2
  319. package/schematics/ng-add/package-config.mjs +4 -2
  320. package/schematics/ng-add/schema.js +1 -1
  321. package/schematics/ng-add/schema.mjs +1 -1
  322. package/schematics/ng-generate/drag-drop/index.js +2 -2
  323. package/schematics/ng-generate/drag-drop/index.mjs +2 -2
  324. package/schematics/ng-update/data/attribute-selectors.js +7 -5
  325. package/schematics/ng-update/data/attribute-selectors.mjs +7 -5
  326. package/schematics/ng-update/data/class-names.js +13 -11
  327. package/schematics/ng-update/data/class-names.mjs +13 -11
  328. package/schematics/ng-update/data/constructor-checks.js +28 -20
  329. package/schematics/ng-update/data/constructor-checks.mjs +28 -20
  330. package/schematics/ng-update/data/css-selectors.js +2 -2
  331. package/schematics/ng-update/data/css-selectors.mjs +2 -2
  332. package/schematics/ng-update/data/element-selectors.js +2 -2
  333. package/schematics/ng-update/data/element-selectors.mjs +2 -2
  334. package/schematics/ng-update/data/input-names.js +40 -16
  335. package/schematics/ng-update/data/input-names.mjs +40 -16
  336. package/schematics/ng-update/data/method-call-checks.js +32 -18
  337. package/schematics/ng-update/data/method-call-checks.mjs +32 -18
  338. package/schematics/ng-update/data/output-names.js +8 -6
  339. package/schematics/ng-update/data/output-names.mjs +8 -6
  340. package/schematics/ng-update/data/property-names.js +40 -32
  341. package/schematics/ng-update/data/property-names.mjs +40 -32
  342. package/schematics/ng-update/devkit-migration-rule.js +4 -3
  343. package/schematics/ng-update/devkit-migration-rule.mjs +4 -3
  344. package/schematics/ng-update/devkit-migration.d.ts +3 -2
  345. package/schematics/ng-update/devkit-migration.js +1 -1
  346. package/schematics/ng-update/devkit-migration.mjs +1 -1
  347. package/schematics/ng-update/html-parsing/elements.js +1 -1
  348. package/schematics/ng-update/html-parsing/elements.mjs +1 -1
  349. package/schematics/ng-update/index.js +2 -4
  350. package/schematics/ng-update/index.mjs +2 -4
  351. package/schematics/ng-update/migrations/attribute-selectors.js +7 -3
  352. package/schematics/ng-update/migrations/attribute-selectors.mjs +7 -3
  353. package/schematics/ng-update/migrations/class-inheritance.js +1 -1
  354. package/schematics/ng-update/migrations/class-inheritance.mjs +1 -1
  355. package/schematics/ng-update/migrations/class-names.js +3 -2
  356. package/schematics/ng-update/migrations/class-names.mjs +3 -2
  357. package/schematics/ng-update/migrations/constructor-signature.js +15 -12
  358. package/schematics/ng-update/migrations/constructor-signature.mjs +15 -12
  359. package/schematics/ng-update/migrations/css-selectors.js +3 -2
  360. package/schematics/ng-update/migrations/css-selectors.mjs +3 -2
  361. package/schematics/ng-update/migrations/element-selectors.js +3 -2
  362. package/schematics/ng-update/migrations/element-selectors.mjs +3 -2
  363. package/schematics/ng-update/migrations/input-names.js +4 -5
  364. package/schematics/ng-update/migrations/input-names.mjs +4 -5
  365. package/schematics/ng-update/migrations/method-call-arguments.js +3 -2
  366. package/schematics/ng-update/migrations/method-call-arguments.mjs +3 -2
  367. package/schematics/ng-update/migrations/misc-template.js +2 -2
  368. package/schematics/ng-update/migrations/misc-template.mjs +2 -2
  369. package/schematics/ng-update/migrations/output-names.js +4 -5
  370. package/schematics/ng-update/migrations/output-names.mjs +4 -5
  371. package/schematics/ng-update/migrations/property-names.js +3 -2
  372. package/schematics/ng-update/migrations/property-names.mjs +3 -2
  373. package/schematics/ng-update/migrations/symbol-removal.js +1 -1
  374. package/schematics/ng-update/migrations/symbol-removal.mjs +1 -1
  375. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +4 -3
  376. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +4 -3
  377. package/schematics/ng-update/typescript/base-types.js +1 -1
  378. package/schematics/ng-update/typescript/base-types.mjs +1 -1
  379. package/schematics/ng-update/typescript/literal.d.ts +1 -1
  380. package/schematics/ng-update/typescript/literal.js +1 -1
  381. package/schematics/ng-update/typescript/literal.mjs +1 -1
  382. package/schematics/ng-update/typescript/module-specifiers.js +3 -3
  383. package/schematics/ng-update/typescript/module-specifiers.mjs +3 -3
  384. package/schematics/ng-update/upgrade-data.js +1 -1
  385. package/schematics/ng-update/upgrade-data.mjs +1 -1
  386. package/schematics/update-tool/component-resource-collector.js +2 -2
  387. package/schematics/update-tool/component-resource-collector.mjs +2 -2
  388. package/schematics/update-tool/file-system.js +1 -1
  389. package/schematics/update-tool/file-system.mjs +1 -1
  390. package/schematics/update-tool/index.d.ts +4 -1
  391. package/schematics/update-tool/index.js +7 -3
  392. package/schematics/update-tool/index.mjs +7 -3
  393. package/schematics/update-tool/migration.d.ts +1 -1
  394. package/schematics/update-tool/migration.js +1 -1
  395. package/schematics/update-tool/migration.mjs +1 -1
  396. package/schematics/update-tool/target-version.js +1 -1
  397. package/schematics/update-tool/target-version.mjs +1 -1
  398. package/schematics/update-tool/utils/decorators.js +7 -3
  399. package/schematics/update-tool/utils/decorators.mjs +7 -3
  400. package/schematics/update-tool/utils/functions.js +1 -1
  401. package/schematics/update-tool/utils/functions.mjs +1 -1
  402. package/schematics/update-tool/utils/imports.js +2 -2
  403. package/schematics/update-tool/utils/imports.mjs +2 -2
  404. package/schematics/update-tool/utils/line-mappings.js +1 -1
  405. package/schematics/update-tool/utils/line-mappings.mjs +1 -1
  406. package/schematics/update-tool/utils/parse-tsconfig.js +1 -1
  407. package/schematics/update-tool/utils/parse-tsconfig.mjs +1 -1
  408. package/schematics/update-tool/utils/property-name.js +1 -1
  409. package/schematics/update-tool/utils/property-name.mjs +1 -1
  410. package/schematics/update-tool/utils/virtual-host.js +2 -2
  411. package/schematics/update-tool/utils/virtual-host.mjs +2 -2
  412. package/schematics/update-tool/version-changes.js +1 -1
  413. package/schematics/update-tool/version-changes.mjs +1 -1
  414. package/schematics/utils/ast/ng-module-imports.js +5 -3
  415. package/schematics/utils/ast/ng-module-imports.mjs +5 -3
  416. package/schematics/utils/ast.js +1 -1
  417. package/schematics/utils/ast.mjs +1 -1
  418. package/schematics/utils/build-component.js +12 -18
  419. package/schematics/utils/build-component.mjs +12 -18
  420. package/schematics/utils/get-project.js +1 -1
  421. package/schematics/utils/get-project.mjs +1 -1
  422. package/schematics/utils/html-manipulation.js +6 -5
  423. package/schematics/utils/html-manipulation.mjs +6 -5
  424. package/schematics/utils/parse5-element.js +9 -10
  425. package/schematics/utils/parse5-element.mjs +9 -10
  426. package/schematics/utils/project-main-file.js +1 -1
  427. package/schematics/utils/project-main-file.mjs +1 -1
  428. package/schematics/utils/project-style-file.js +3 -5
  429. package/schematics/utils/project-style-file.mjs +3 -5
  430. package/schematics/utils/project-targets.js +1 -1
  431. package/schematics/utils/project-targets.mjs +1 -1
  432. package/schematics/utils/project-tsconfig-paths.js +2 -2
  433. package/schematics/utils/project-tsconfig-paths.mjs +2 -2
  434. package/schematics/utils/schematic-options.js +7 -5
  435. package/schematics/utils/schematic-options.mjs +7 -5
  436. package/schematics/utils/vendored-ast-utils/index.js +15 -16
  437. package/schematics/utils/vendored-ast-utils/index.mjs +15 -16
  438. package/scrolling/index.d.ts +5 -1
  439. package/scrolling/package.json +2 -2
  440. package/scrolling/scrolling_public_index.d.ts +4 -0
  441. package/stepper/index.d.ts +5 -1
  442. package/stepper/package.json +2 -2
  443. package/stepper/stepper_public_index.d.ts +4 -0
  444. package/table/index.d.ts +5 -1
  445. package/table/package.json +2 -2
  446. package/table/table_public_index.d.ts +4 -0
  447. package/testing/testbed/proxy-zone-types.d.ts +1 -1
  448. package/testing/testbed/zone-types.d.ts +1 -1
  449. package/text-field/index.d.ts +5 -1
  450. package/text-field/package.json +2 -2
  451. package/text-field/text-field_public_index.d.ts +4 -0
  452. package/tree/control/base-tree-control.d.ts +1 -1
  453. package/tree/control/nested-tree-control.d.ts +2 -2
  454. package/tree/index.d.ts +5 -1
  455. package/tree/package.json +2 -2
  456. package/tree/tree_public_index.d.ts +4 -0
package/fesm2020/a11y.mjs CHANGED
@@ -184,8 +184,7 @@ class AriaDescriber {
184
184
  /** Removes all cdk-describedby messages that are hosted through the element. */
185
185
  _removeCdkDescribedByReferenceIds(element) {
186
186
  // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX
187
- const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby')
188
- .filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);
187
+ const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);
189
188
  element.setAttribute('aria-describedby', originalReferenceIds.join(' '));
190
189
  }
191
190
  /**
@@ -232,16 +231,16 @@ class AriaDescriber {
232
231
  const ariaLabel = element.getAttribute('aria-label');
233
232
  // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the
234
233
  // element, because screen readers will end up reading out the same text twice in a row.
235
- return trimmedMessage ? (!ariaLabel || ariaLabel.trim() !== trimmedMessage) : false;
234
+ return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;
236
235
  }
237
236
  /** Checks whether a node is an Element node. */
238
237
  _isElementNode(element) {
239
238
  return element.nodeType === this._document.ELEMENT_NODE;
240
239
  }
241
240
  }
242
- AriaDescriber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: AriaDescriber, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
243
- AriaDescriber.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: AriaDescriber, providedIn: 'root' });
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: AriaDescriber, decorators: [{
241
+ AriaDescriber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AriaDescriber, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
242
+ AriaDescriber.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AriaDescriber, providedIn: 'root' });
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AriaDescriber, decorators: [{
245
244
  type: Injectable,
246
245
  args: [{ providedIn: 'root' }]
247
246
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -358,15 +357,18 @@ class ListKeyManager {
358
357
  * @param debounceInterval Time to wait after the last keystroke before setting the active item.
359
358
  */
360
359
  withTypeAhead(debounceInterval = 200) {
361
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && (this._items.length &&
362
- this._items.some(item => typeof item.getLabel !== 'function'))) {
360
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
361
+ this._items.length &&
362
+ this._items.some(item => typeof item.getLabel !== 'function')) {
363
363
  throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');
364
364
  }
365
365
  this._typeaheadSubscription.unsubscribe();
366
366
  // Debounce the presses of non-navigational keys, collect the ones that correspond to letters
367
367
  // and convert those letters back into a string. Afterwards find the first item that starts
368
368
  // with that string and select it.
369
- this._typeaheadSubscription = this._letterKeyStream.pipe(tap(letter => this._pressedLetters.push(letter)), debounceTime(debounceInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join(''))).subscribe(inputString => {
369
+ this._typeaheadSubscription = this._letterKeyStream
370
+ .pipe(tap(letter => this._pressedLetters.push(letter)), debounceTime(debounceInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join('')))
371
+ .subscribe(inputString => {
370
372
  const items = this._getItemsArray();
371
373
  // Start at 1 because we want to start searching at the item immediately
372
374
  // following the current active item.
@@ -505,7 +507,8 @@ class ListKeyManager {
505
507
  }
506
508
  /** Sets the active item to a previous enabled item in the list. */
507
509
  setPreviousItemActive() {
508
- this._activeItemIndex < 0 && this._wrap ? this.setLastItemActive()
510
+ this._activeItemIndex < 0 && this._wrap
511
+ ? this.setLastItemActive()
509
512
  : this._setActiveItemByDelta(-1);
510
513
  }
511
514
  updateActiveItem(item) {
@@ -532,7 +535,7 @@ class ListKeyManager {
532
535
  _setActiveInWrapMode(delta) {
533
536
  const items = this._getItemsArray();
534
537
  for (let i = 1; i <= items.length; i++) {
535
- const index = (this._activeItemIndex + (delta * i) + items.length) % items.length;
538
+ const index = (this._activeItemIndex + delta * i + items.length) % items.length;
536
539
  const item = items[index];
537
540
  if (!this._skipPredicateFn(item)) {
538
541
  this.setActiveItem(index);
@@ -748,13 +751,14 @@ class InteractivityChecker {
748
751
  isFocusable(element, config) {
749
752
  // Perform checks in order of left to most expensive.
750
753
  // Again, naive approach that does not capture many edge cases and browser quirks.
751
- return isPotentiallyFocusable(element) && !this.isDisabled(element) &&
752
- (config?.ignoreVisibility || this.isVisible(element));
754
+ return (isPotentiallyFocusable(element) &&
755
+ !this.isDisabled(element) &&
756
+ (config?.ignoreVisibility || this.isVisible(element)));
753
757
  }
754
758
  }
755
- InteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: InteractivityChecker, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
756
- InteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });
757
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: InteractivityChecker, decorators: [{
759
+ InteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InteractivityChecker, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });
760
+ InteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });
761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InteractivityChecker, decorators: [{
758
762
  type: Injectable,
759
763
  args: [{ providedIn: 'root' }]
760
764
  }], ctorParameters: function () { return [{ type: i1.Platform }]; } });
@@ -775,16 +779,17 @@ function getFrameElement(window) {
775
779
  function hasGeometry(element) {
776
780
  // Use logic from jQuery to check for an invisible element.
777
781
  // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12
778
- return !!(element.offsetWidth || element.offsetHeight ||
782
+ return !!(element.offsetWidth ||
783
+ element.offsetHeight ||
779
784
  (typeof element.getClientRects === 'function' && element.getClientRects().length));
780
785
  }
781
786
  /** Gets whether an element's */
782
787
  function isNativeFormElement(element) {
783
788
  let nodeName = element.nodeName.toLowerCase();
784
- return nodeName === 'input' ||
789
+ return (nodeName === 'input' ||
785
790
  nodeName === 'select' ||
786
791
  nodeName === 'button' ||
787
- nodeName === 'textarea';
792
+ nodeName === 'textarea');
788
793
  }
789
794
  /** Gets whether an element is an `<input type="hidden">`. */
790
795
  function isHiddenInput(element) {
@@ -826,10 +831,10 @@ function getTabIndexValue(element) {
826
831
  function isPotentiallyTabbableIOS(element) {
827
832
  let nodeName = element.nodeName.toLowerCase();
828
833
  let inputType = nodeName === 'input' && element.type;
829
- return inputType === 'text'
830
- || inputType === 'password'
831
- || nodeName === 'select'
832
- || nodeName === 'textarea';
834
+ return (inputType === 'text' ||
835
+ inputType === 'password' ||
836
+ nodeName === 'select' ||
837
+ nodeName === 'textarea');
833
838
  }
834
839
  /**
835
840
  * Gets whether an element is potentially focusable without taking current visible/disabled state
@@ -840,15 +845,15 @@ function isPotentiallyFocusable(element) {
840
845
  if (isHiddenInput(element)) {
841
846
  return false;
842
847
  }
843
- return isNativeFormElement(element) ||
848
+ return (isNativeFormElement(element) ||
844
849
  isAnchorWithHref(element) ||
845
850
  element.hasAttribute('contenteditable') ||
846
- hasValidTabIndex(element);
851
+ hasValidTabIndex(element));
847
852
  }
848
853
  /** Gets the parent window of a DOM node with regards of being inside of an iframe. */
849
854
  function getWindow(node) {
850
855
  // ownerDocument is null if `node` itself *is* a document.
851
- return node.ownerDocument && node.ownerDocument.defaultView || window;
856
+ return (node.ownerDocument && node.ownerDocument.defaultView) || window;
852
857
  }
853
858
 
854
859
  /**
@@ -884,7 +889,9 @@ class FocusTrap {
884
889
  }
885
890
  }
886
891
  /** Whether the focus trap is active. */
887
- get enabled() { return this._enabled; }
892
+ get enabled() {
893
+ return this._enabled;
894
+ }
888
895
  set enabled(value) {
889
896
  this._enabled = value;
890
897
  if (this._startAnchor && this._endAnchor) {
@@ -974,9 +981,7 @@ class FocusTrap {
974
981
  */
975
982
  _getRegionBoundary(bound) {
976
983
  // Contains the deprecated version of selector, for temporary backwards comparability.
977
- let markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` +
978
- `[cdkFocusRegion${bound}], ` +
979
- `[cdk-focus-${bound}]`);
984
+ let markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` + `[cdkFocusRegion${bound}], ` + `[cdk-focus-${bound}]`);
980
985
  for (let i = 0; i < markers.length; i++) {
981
986
  // @breaking-change 8.0.0
982
987
  if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {
@@ -993,8 +998,9 @@ class FocusTrap {
993
998
  if (bound == 'start') {
994
999
  return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);
995
1000
  }
996
- return markers.length ?
997
- markers[markers.length - 1] : this._getLastTabbableElement(this._element);
1001
+ return markers.length
1002
+ ? markers[markers.length - 1]
1003
+ : this._getLastTabbableElement(this._element);
998
1004
  }
999
1005
  /**
1000
1006
  * Focuses the element that should be focused when the focus trap is initialized.
@@ -1002,8 +1008,7 @@ class FocusTrap {
1002
1008
  */
1003
1009
  focusInitialElement(options) {
1004
1010
  // Contains the deprecated version of selector, for temporary backwards comparability.
1005
- const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` +
1006
- `[cdkFocusInitial]`);
1011
+ const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` + `[cdkFocusInitial]`);
1007
1012
  if (redirectToElement) {
1008
1013
  // @breaking-change 8.0.0
1009
1014
  if (redirectToElement.hasAttribute(`cdk-focus-initial`)) {
@@ -1062,9 +1067,9 @@ class FocusTrap {
1062
1067
  }
1063
1068
  const children = root.children;
1064
1069
  for (let i = 0; i < children.length; i++) {
1065
- const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ?
1066
- this._getFirstTabbableElement(children[i]) :
1067
- null;
1070
+ const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE
1071
+ ? this._getFirstTabbableElement(children[i])
1072
+ : null;
1068
1073
  if (tabbableChild) {
1069
1074
  return tabbableChild;
1070
1075
  }
@@ -1079,9 +1084,9 @@ class FocusTrap {
1079
1084
  // Iterate in reverse DOM order.
1080
1085
  const children = root.children;
1081
1086
  for (let i = children.length - 1; i >= 0; i--) {
1082
- const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ?
1083
- this._getLastTabbableElement(children[i]) :
1084
- null;
1087
+ const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE
1088
+ ? this._getLastTabbableElement(children[i])
1089
+ : null;
1085
1090
  if (tabbableChild) {
1086
1091
  return tabbableChild;
1087
1092
  }
@@ -1149,9 +1154,9 @@ class FocusTrapFactory {
1149
1154
  return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);
1150
1155
  }
1151
1156
  }
1152
- FocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1153
- FocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });
1154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusTrapFactory, decorators: [{
1157
+ FocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1158
+ FocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });
1159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapFactory, decorators: [{
1155
1160
  type: Injectable,
1156
1161
  args: [{ providedIn: 'root' }]
1157
1162
  }], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{
@@ -1173,14 +1178,22 @@ class CdkTrapFocus {
1173
1178
  this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);
1174
1179
  }
1175
1180
  /** Whether the focus trap is active. */
1176
- get enabled() { return this.focusTrap.enabled; }
1177
- set enabled(value) { this.focusTrap.enabled = coerceBooleanProperty(value); }
1181
+ get enabled() {
1182
+ return this.focusTrap.enabled;
1183
+ }
1184
+ set enabled(value) {
1185
+ this.focusTrap.enabled = coerceBooleanProperty(value);
1186
+ }
1178
1187
  /**
1179
1188
  * Whether the directive should automatically move focus into the trapped region upon
1180
1189
  * initialization and return focus to the previous activeElement upon destruction.
1181
1190
  */
1182
- get autoCapture() { return this._autoCapture; }
1183
- set autoCapture(value) { this._autoCapture = coerceBooleanProperty(value); }
1191
+ get autoCapture() {
1192
+ return this._autoCapture;
1193
+ }
1194
+ set autoCapture(value) {
1195
+ this._autoCapture = coerceBooleanProperty(value);
1196
+ }
1184
1197
  ngOnDestroy() {
1185
1198
  this.focusTrap.destroy();
1186
1199
  // If we stored a previously focused element when using autoCapture, return focus to that
@@ -1203,7 +1216,9 @@ class CdkTrapFocus {
1203
1216
  }
1204
1217
  ngOnChanges(changes) {
1205
1218
  const autoCaptureChange = changes['autoCapture'];
1206
- if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture &&
1219
+ if (autoCaptureChange &&
1220
+ !autoCaptureChange.firstChange &&
1221
+ this.autoCapture &&
1207
1222
  this.focusTrap.hasAttached()) {
1208
1223
  this._captureFocus();
1209
1224
  }
@@ -1213,9 +1228,9 @@ class CdkTrapFocus {
1213
1228
  this.focusTrap.focusInitialElementWhenReady();
1214
1229
  }
1215
1230
  }
1216
- CdkTrapFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTrapFocus, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
1217
- CdkTrapFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled"], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 });
1218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkTrapFocus, decorators: [{
1231
+ CdkTrapFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTrapFocus, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
1232
+ CdkTrapFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: { enabled: ["cdkTrapFocus", "enabled"], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"] }, exportAs: ["cdkTrapFocus"], usesOnChanges: true, ngImport: i0 });
1233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkTrapFocus, decorators: [{
1219
1234
  type: Directive,
1220
1235
  args: [{
1221
1236
  selector: '[cdkTrapFocus]',
@@ -1253,7 +1268,9 @@ class ConfigurableFocusTrap extends FocusTrap {
1253
1268
  this._focusTrapManager.register(this);
1254
1269
  }
1255
1270
  /** Whether the FocusTrap is enabled. */
1256
- get enabled() { return this._enabled; }
1271
+ get enabled() {
1272
+ return this._enabled;
1273
+ }
1257
1274
  set enabled(value) {
1258
1275
  this._enabled = value;
1259
1276
  if (this._enabled) {
@@ -1379,7 +1396,7 @@ class FocusTrapManager {
1379
1396
  */
1380
1397
  register(focusTrap) {
1381
1398
  // Dedupe focusTraps that register multiple times.
1382
- this._focusTrapStack = this._focusTrapStack.filter((ft) => ft !== focusTrap);
1399
+ this._focusTrapStack = this._focusTrapStack.filter(ft => ft !== focusTrap);
1383
1400
  let stack = this._focusTrapStack;
1384
1401
  if (stack.length) {
1385
1402
  stack[stack.length - 1]._disable();
@@ -1403,9 +1420,9 @@ class FocusTrapManager {
1403
1420
  }
1404
1421
  }
1405
1422
  }
1406
- FocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1407
- FocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });
1408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusTrapManager, decorators: [{
1423
+ FocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1424
+ FocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });
1425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusTrapManager, decorators: [{
1409
1426
  type: Injectable,
1410
1427
  args: [{ providedIn: 'root' }]
1411
1428
  }] });
@@ -1438,9 +1455,9 @@ class ConfigurableFocusTrapFactory {
1438
1455
  return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);
1439
1456
  }
1440
1457
  }
1441
- ConfigurableFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
1442
- ConfigurableFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' });
1443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
1458
+ ConfigurableFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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 });
1459
+ ConfigurableFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' });
1460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{
1444
1461
  type: Injectable,
1445
1462
  args: [{ providedIn: 'root' }]
1446
1463
  }], ctorParameters: function () { return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: FocusTrapManager }, { type: undefined, decorators: [{
@@ -1471,14 +1488,15 @@ function isFakeMousedownFromScreenReader(event) {
1471
1488
  }
1472
1489
  /** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */
1473
1490
  function isFakeTouchstartFromScreenReader(event) {
1474
- const touch = (event.touches && event.touches[0]) ||
1475
- (event.changedTouches && event.changedTouches[0]);
1491
+ const touch = (event.touches && event.touches[0]) || (event.changedTouches && event.changedTouches[0]);
1476
1492
  // A fake `touchstart` can be distinguished from a real one by looking at the `identifier`
1477
1493
  // which is typically >= 0 on a real device versus -1 from a screen reader. Just to be safe,
1478
1494
  // we can also look at `radiusX` and `radiusY`. This behavior was observed against a Windows 10
1479
1495
  // device with a touch screen running NVDA v2020.4 and Firefox 85 or Chrome 88.
1480
- return !!touch && touch.identifier === -1 && (touch.radiusX == null || touch.radiusX === 1) &&
1481
- (touch.radiusY == null || touch.radiusY === 1);
1496
+ return (!!touch &&
1497
+ touch.identifier === -1 &&
1498
+ (touch.radiusX == null || touch.radiusX === 1) &&
1499
+ (touch.radiusY == null || touch.radiusY === 1));
1482
1500
  }
1483
1501
 
1484
1502
  /**
@@ -1633,9 +1651,9 @@ class InputModalityDetector {
1633
1651
  }
1634
1652
  }
1635
1653
  }
1636
- InputModalityDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: InputModalityDetector, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT }, { token: INPUT_MODALITY_DETECTOR_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1637
- InputModalityDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: InputModalityDetector, providedIn: 'root' });
1638
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: InputModalityDetector, decorators: [{
1654
+ InputModalityDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InputModalityDetector, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT }, { token: INPUT_MODALITY_DETECTOR_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1655
+ InputModalityDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InputModalityDetector, providedIn: 'root' });
1656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: InputModalityDetector, decorators: [{
1639
1657
  type: Injectable,
1640
1658
  args: [{ providedIn: 'root' }]
1641
1659
  }], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }, { type: Document, decorators: [{
@@ -1697,7 +1715,7 @@ class LiveAnnouncer {
1697
1715
  clearTimeout(this._previousTimeout);
1698
1716
  if (!politeness) {
1699
1717
  politeness =
1700
- (defaultOptions && defaultOptions.politeness) ? defaultOptions.politeness : 'polite';
1718
+ defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';
1701
1719
  }
1702
1720
  if (duration == null && defaultOptions) {
1703
1721
  duration = defaultOptions.duration;
@@ -1753,9 +1771,9 @@ class LiveAnnouncer {
1753
1771
  return liveEl;
1754
1772
  }
1755
1773
  }
1756
- LiveAnnouncer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
1757
- LiveAnnouncer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' });
1758
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: LiveAnnouncer, decorators: [{
1774
+ LiveAnnouncer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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 });
1775
+ LiveAnnouncer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' });
1776
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: LiveAnnouncer, decorators: [{
1759
1777
  type: Injectable,
1760
1778
  args: [{ providedIn: 'root' }]
1761
1779
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1785,7 +1803,9 @@ class CdkAriaLive {
1785
1803
  this._politeness = 'polite';
1786
1804
  }
1787
1805
  /** The aria-live politeness level to use when announcing messages. */
1788
- get politeness() { return this._politeness; }
1806
+ get politeness() {
1807
+ return this._politeness;
1808
+ }
1789
1809
  set politeness(value) {
1790
1810
  this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';
1791
1811
  if (this._politeness === 'off') {
@@ -1796,9 +1816,7 @@ class CdkAriaLive {
1796
1816
  }
1797
1817
  else if (!this._subscription) {
1798
1818
  this._subscription = this._ngZone.runOutsideAngular(() => {
1799
- return this._contentObserver
1800
- .observe(this._elementRef)
1801
- .subscribe(() => {
1819
+ return this._contentObserver.observe(this._elementRef).subscribe(() => {
1802
1820
  // Note that we use textContent here, rather than innerText, in order to avoid a reflow.
1803
1821
  const elementText = this._elementRef.nativeElement.textContent;
1804
1822
  // The `MutationObserver` fires also for attribute
@@ -1817,9 +1835,9 @@ class CdkAriaLive {
1817
1835
  }
1818
1836
  }
1819
1837
  }
1820
- CdkAriaLive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkAriaLive, deps: [{ token: i0.ElementRef }, { token: LiveAnnouncer }, { token: i1$1.ContentObserver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1821
- CdkAriaLive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkAriaLive, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"] }, exportAs: ["cdkAriaLive"], ngImport: i0 });
1822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkAriaLive, decorators: [{
1838
+ CdkAriaLive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkAriaLive, deps: [{ token: i0.ElementRef }, { token: LiveAnnouncer }, { token: i1$1.ContentObserver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
1839
+ CdkAriaLive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkAriaLive, selector: "[cdkAriaLive]", inputs: { politeness: ["cdkAriaLive", "politeness"] }, exportAs: ["cdkAriaLive"], ngImport: i0 });
1840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkAriaLive, decorators: [{
1823
1841
  type: Directive,
1824
1842
  args: [{
1825
1843
  selector: '[cdkAriaLive]',
@@ -1845,7 +1863,7 @@ const FOCUS_MONITOR_DEFAULT_OPTIONS = new InjectionToken('cdk-focus-monitor-defa
1845
1863
  */
1846
1864
  const captureEventListenerOptions = normalizePassiveListenerOptions({
1847
1865
  passive: true,
1848
- capture: true
1866
+ capture: true,
1849
1867
  });
1850
1868
  /** Monitors mouse and keyboard events to determine the cause of focus events. */
1851
1869
  class FocusMonitor {
@@ -1883,7 +1901,7 @@ class FocusMonitor {
1883
1901
  // Make a note of when the window regains focus, so we can
1884
1902
  // restore the origin info for the focused element.
1885
1903
  this._windowFocused = true;
1886
- this._windowFocusTimeoutId = setTimeout(() => this._windowFocused = false);
1904
+ this._windowFocusTimeoutId = setTimeout(() => (this._windowFocused = false));
1887
1905
  };
1888
1906
  /** Subject for stopping our InputModalityDetector subscription. */
1889
1907
  this._stopInputModalityDetector = new Subject();
@@ -1927,7 +1945,7 @@ class FocusMonitor {
1927
1945
  const info = {
1928
1946
  checkChildren: checkChildren,
1929
1947
  subject: new Subject(),
1930
- rootNode
1948
+ rootNode,
1931
1949
  };
1932
1950
  this._elementInfo.set(nativeElement, info);
1933
1951
  this._registerGlobalListeners(info);
@@ -1950,8 +1968,7 @@ class FocusMonitor {
1950
1968
  // which means that the focus classes won't be updated. If that's the case, update the classes
1951
1969
  // directly without waiting for an event.
1952
1970
  if (nativeElement === focusedElement) {
1953
- this._getClosestElementsInfo(nativeElement)
1954
- .forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));
1971
+ this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));
1955
1972
  }
1956
1973
  else {
1957
1974
  this._setOrigin(origin);
@@ -1993,7 +2010,7 @@ class FocusMonitor {
1993
2010
  // events).
1994
2011
  //
1995
2012
  // Because we can't distinguish between these two cases, we default to setting `program`.
1996
- return (this._windowFocused && this._lastFocusOrigin) ? this._lastFocusOrigin : 'program';
2013
+ return this._windowFocused && this._lastFocusOrigin ? this._lastFocusOrigin : 'program';
1997
2014
  }
1998
2015
  /**
1999
2016
  * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a
@@ -2014,8 +2031,8 @@ class FocusMonitor {
2014
2031
  // #child, #parent is programmatically focused. This code will attribute the focus to touch
2015
2032
  // instead of program. This is a relatively minor edge-case that can be worked around by using
2016
2033
  // focusVia(parent, 'program') to focus #parent.
2017
- return (this._detectionMode === 1 /* EVENTUAL */) ||
2018
- !!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget);
2034
+ return (this._detectionMode === 1 /* EVENTUAL */ ||
2035
+ !!focusEventTarget?.contains(this._inputModalityDetector._mostRecentTarget));
2019
2036
  }
2020
2037
  /**
2021
2038
  * Sets the focus classes on the element based on the given focus origin.
@@ -2039,7 +2056,7 @@ class FocusMonitor {
2039
2056
  _setOrigin(origin, isFromInteraction = false) {
2040
2057
  this._ngZone.runOutsideAngular(() => {
2041
2058
  this._origin = origin;
2042
- this._originFromTouchInteraction = (origin === 'touch') && isFromInteraction;
2059
+ this._originFromTouchInteraction = origin === 'touch' && isFromInteraction;
2043
2060
  // If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms
2044
2061
  // for a touch event). We reset the origin at the next tick because Firefox focuses one tick
2045
2062
  // after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for
@@ -2048,7 +2065,7 @@ class FocusMonitor {
2048
2065
  if (this._detectionMode === 0 /* IMMEDIATE */) {
2049
2066
  clearTimeout(this._originTimeoutId);
2050
2067
  const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;
2051
- this._originTimeoutId = setTimeout(() => this._origin = null, ms);
2068
+ this._originTimeoutId = setTimeout(() => (this._origin = null), ms);
2052
2069
  }
2053
2070
  });
2054
2071
  }
@@ -2080,8 +2097,10 @@ class FocusMonitor {
2080
2097
  // If we are counting child-element-focus as focused, make sure that we aren't just blurring in
2081
2098
  // order to focus another child of the monitored element.
2082
2099
  const elementInfo = this._elementInfo.get(element);
2083
- if (!elementInfo || (elementInfo.checkChildren && event.relatedTarget instanceof Node &&
2084
- element.contains(event.relatedTarget))) {
2100
+ if (!elementInfo ||
2101
+ (elementInfo.checkChildren &&
2102
+ event.relatedTarget instanceof Node &&
2103
+ element.contains(event.relatedTarget))) {
2085
2104
  return;
2086
2105
  }
2087
2106
  this._setClasses(element);
@@ -2114,7 +2133,9 @@ class FocusMonitor {
2114
2133
  // The InputModalityDetector is also just a collection of global listeners.
2115
2134
  this._inputModalityDetector.modalityDetected
2116
2135
  .pipe(takeUntil(this._stopInputModalityDetector))
2117
- .subscribe(modality => { this._setOrigin(modality, true /* isFromInteraction */); });
2136
+ .subscribe(modality => {
2137
+ this._setOrigin(modality, true /* isFromInteraction */);
2138
+ });
2118
2139
  }
2119
2140
  }
2120
2141
  _removeGlobalListeners(elementInfo) {
@@ -2162,9 +2183,9 @@ class FocusMonitor {
2162
2183
  return results;
2163
2184
  }
2164
2185
  }
2165
- FocusMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", 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 });
2166
- FocusMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusMonitor, providedIn: 'root' });
2167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: FocusMonitor, decorators: [{
2186
+ FocusMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", 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 });
2187
+ FocusMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusMonitor, providedIn: 'root' });
2188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: FocusMonitor, decorators: [{
2168
2189
  type: Injectable,
2169
2190
  args: [{ providedIn: 'root' }]
2170
2191
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.Platform }, { type: InputModalityDetector }, { type: undefined, decorators: [{
@@ -2195,7 +2216,8 @@ class CdkMonitorFocus {
2195
2216
  }
2196
2217
  ngAfterViewInit() {
2197
2218
  const element = this._elementRef.nativeElement;
2198
- this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))
2219
+ this._monitorSubscription = this._focusMonitor
2220
+ .monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))
2199
2221
  .subscribe(origin => this.cdkFocusChange.emit(origin));
2200
2222
  }
2201
2223
  ngOnDestroy() {
@@ -2205,9 +2227,9 @@ class CdkMonitorFocus {
2205
2227
  }
2206
2228
  }
2207
2229
  }
2208
- CdkMonitorFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkMonitorFocus, deps: [{ token: i0.ElementRef }, { token: FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
2209
- CdkMonitorFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, ngImport: i0 });
2210
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkMonitorFocus, decorators: [{
2230
+ CdkMonitorFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkMonitorFocus, deps: [{ token: i0.ElementRef }, { token: FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
2231
+ CdkMonitorFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: { cdkFocusChange: "cdkFocusChange" }, ngImport: i0 });
2232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: CdkMonitorFocus, decorators: [{
2211
2233
  type: Directive,
2212
2234
  args: [{
2213
2235
  selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
@@ -2262,13 +2284,16 @@ class HighContrastModeDetector {
2262
2284
  // via the document so we can fake it in tests. Note that we have extra null checks, because
2263
2285
  // this logic will likely run during app bootstrap and throwing can break the entire app.
2264
2286
  const documentWindow = this._document.defaultView || window;
2265
- const computedStyle = (documentWindow && documentWindow.getComputedStyle) ?
2266
- documentWindow.getComputedStyle(testElement) : null;
2267
- const computedColor = (computedStyle && computedStyle.backgroundColor || '').replace(/ /g, '');
2287
+ const computedStyle = documentWindow && documentWindow.getComputedStyle
2288
+ ? documentWindow.getComputedStyle(testElement)
2289
+ : null;
2290
+ const computedColor = ((computedStyle && computedStyle.backgroundColor) || '').replace(/ /g, '');
2268
2291
  testElement.remove();
2269
2292
  switch (computedColor) {
2270
- case 'rgb(0,0,0)': return 2 /* WHITE_ON_BLACK */;
2271
- case 'rgb(255,255,255)': return 1 /* BLACK_ON_WHITE */;
2293
+ case 'rgb(0,0,0)':
2294
+ return 2 /* WHITE_ON_BLACK */;
2295
+ case 'rgb(255,255,255)':
2296
+ return 1 /* BLACK_ON_WHITE */;
2272
2297
  }
2273
2298
  return 0 /* NONE */;
2274
2299
  }
@@ -2293,9 +2318,9 @@ class HighContrastModeDetector {
2293
2318
  }
2294
2319
  }
2295
2320
  }
2296
- HighContrastModeDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: HighContrastModeDetector, deps: [{ token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2297
- HighContrastModeDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' });
2298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: HighContrastModeDetector, decorators: [{
2321
+ HighContrastModeDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HighContrastModeDetector, deps: [{ token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2322
+ HighContrastModeDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' });
2323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: HighContrastModeDetector, decorators: [{
2299
2324
  type: Injectable,
2300
2325
  args: [{ providedIn: 'root' }]
2301
2326
  }], ctorParameters: function () { return [{ type: i1.Platform }, { type: undefined, decorators: [{
@@ -2315,10 +2340,10 @@ class A11yModule {
2315
2340
  highContrastModeDetector._applyBodyHighContrastModeCssClasses();
2316
2341
  }
2317
2342
  }
2318
- A11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: A11yModule, deps: [{ token: HighContrastModeDetector }], target: i0.ɵɵFactoryTarget.NgModule });
2319
- A11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: A11yModule, declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], imports: [PlatformModule, ObserversModule], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] });
2320
- A11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: A11yModule, imports: [[PlatformModule, ObserversModule]] });
2321
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: A11yModule, decorators: [{
2343
+ A11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, deps: [{ token: HighContrastModeDetector }], target: i0.ɵɵFactoryTarget.NgModule });
2344
+ A11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], imports: [PlatformModule, ObserversModule], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] });
2345
+ A11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, imports: [[PlatformModule, ObserversModule]] });
2346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: A11yModule, decorators: [{
2322
2347
  type: NgModule,
2323
2348
  args: [{
2324
2349
  imports: [PlatformModule, ObserversModule],
@@ -2335,6 +2360,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15",
2335
2360
  * found in the LICENSE file at https://angular.io/license
2336
2361
  */
2337
2362
 
2363
+ /**
2364
+ * @license
2365
+ * Copyright Google LLC All Rights Reserved.
2366
+ *
2367
+ * Use of this source code is governed by an MIT-style license that can be
2368
+ * found in the LICENSE file at https://angular.io/license
2369
+ */
2370
+
2338
2371
  /**
2339
2372
  * Generated bundle index. Do not edit.
2340
2373
  */