@angular/cdk 14.0.0-next.12 → 14.0.0-next.13

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 (445) hide show
  1. package/a11y/index.d.ts +1119 -5
  2. package/accordion/index.d.ts +108 -6
  3. package/bidi/index.d.ts +77 -5
  4. package/clipboard/index.d.ts +112 -5
  5. package/coercion/index.d.ts +64 -5
  6. package/collections/index.d.ts +348 -5
  7. package/dialog/index.d.ts +408 -6
  8. package/drag-drop/index.d.ts +1456 -5
  9. package/esm2020/a11y/a11y-module.mjs +5 -5
  10. package/esm2020/a11y/aria-describer/aria-describer.mjs +3 -3
  11. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +6 -6
  12. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
  13. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +3 -3
  14. package/esm2020/a11y/focus-trap/focus-trap.mjs +6 -6
  15. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
  16. package/esm2020/a11y/input-modality/input-modality-detector.mjs +3 -3
  17. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
  18. package/esm2020/a11y/live-announcer/live-announcer.mjs +6 -6
  19. package/esm2020/accordion/accordion-item.mjs +3 -3
  20. package/esm2020/accordion/accordion-module.mjs +4 -4
  21. package/esm2020/accordion/accordion.mjs +3 -3
  22. package/esm2020/bidi/bidi-module.mjs +4 -4
  23. package/esm2020/bidi/dir.mjs +3 -3
  24. package/esm2020/bidi/directionality.mjs +3 -3
  25. package/esm2020/clipboard/clipboard-module.mjs +4 -4
  26. package/esm2020/clipboard/clipboard.mjs +3 -3
  27. package/esm2020/clipboard/copy-to-clipboard.mjs +3 -3
  28. package/esm2020/collections/unique-selection-dispatcher.mjs +3 -3
  29. package/esm2020/dialog/dialog-config.mjs +6 -1
  30. package/esm2020/dialog/dialog-container.mjs +23 -10
  31. package/esm2020/dialog/dialog-module.mjs +5 -5
  32. package/esm2020/dialog/dialog.mjs +35 -22
  33. package/esm2020/drag-drop/directives/drag-handle.mjs +3 -3
  34. package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -3
  35. package/esm2020/drag-drop/directives/drag-preview.mjs +3 -3
  36. package/esm2020/drag-drop/directives/drag.mjs +3 -3
  37. package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -3
  38. package/esm2020/drag-drop/directives/drop-list.mjs +3 -3
  39. package/esm2020/drag-drop/drag-drop-module.mjs +4 -4
  40. package/esm2020/drag-drop/drag-drop-registry.mjs +3 -3
  41. package/esm2020/drag-drop/drag-drop.mjs +3 -3
  42. package/esm2020/layout/breakpoints-observer.mjs +3 -3
  43. package/esm2020/layout/layout-module.mjs +4 -4
  44. package/esm2020/layout/media-matcher.mjs +3 -3
  45. package/esm2020/menu/context-menu-trigger.mjs +10 -8
  46. package/esm2020/menu/menu-aim.mjs +6 -6
  47. package/esm2020/menu/menu-bar.mjs +3 -3
  48. package/esm2020/menu/menu-base.mjs +3 -3
  49. package/esm2020/menu/menu-group.mjs +3 -3
  50. package/esm2020/menu/menu-item-checkbox.mjs +3 -3
  51. package/esm2020/menu/menu-item-radio.mjs +3 -3
  52. package/esm2020/menu/menu-item-selectable.mjs +3 -3
  53. package/esm2020/menu/menu-item.mjs +3 -3
  54. package/esm2020/menu/menu-module.mjs +5 -5
  55. package/esm2020/menu/menu-stack.mjs +3 -3
  56. package/esm2020/menu/menu-trigger-base.mjs +3 -3
  57. package/esm2020/menu/menu-trigger.mjs +7 -5
  58. package/esm2020/menu/menu.mjs +3 -3
  59. package/esm2020/observers/observe-content.mjs +13 -13
  60. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
  61. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
  62. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
  63. package/esm2020/overlay/fullscreen-overlay-container.mjs +3 -3
  64. package/esm2020/overlay/overlay-container.mjs +3 -3
  65. package/esm2020/overlay/overlay-directives.mjs +6 -6
  66. package/esm2020/overlay/overlay-module.mjs +5 -5
  67. package/esm2020/overlay/overlay.mjs +3 -3
  68. package/esm2020/overlay/position/overlay-position-builder.mjs +3 -3
  69. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +3 -3
  70. package/esm2020/platform/platform-module.mjs +4 -4
  71. package/esm2020/platform/platform.mjs +3 -3
  72. package/esm2020/portal/portal-directives.mjs +16 -16
  73. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +3 -3
  74. package/esm2020/scrolling/scroll-dispatcher.mjs +3 -3
  75. package/esm2020/scrolling/scrollable.mjs +3 -3
  76. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  77. package/esm2020/scrolling/viewport-ruler.mjs +3 -3
  78. package/esm2020/scrolling/virtual-for-of.mjs +3 -3
  79. package/esm2020/scrolling/virtual-scroll-viewport.mjs +3 -3
  80. package/esm2020/stepper/step-header.mjs +3 -3
  81. package/esm2020/stepper/step-label.mjs +3 -3
  82. package/esm2020/stepper/stepper-button.mjs +6 -6
  83. package/esm2020/stepper/stepper-module.mjs +5 -5
  84. package/esm2020/stepper/stepper.mjs +6 -6
  85. package/esm2020/table/cell.mjs +21 -21
  86. package/esm2020/table/coalesced-style-scheduler.mjs +3 -3
  87. package/esm2020/table/row.mjs +27 -27
  88. package/esm2020/table/table-module.mjs +5 -5
  89. package/esm2020/table/table.mjs +18 -18
  90. package/esm2020/table/text-column.mjs +3 -3
  91. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
  92. package/esm2020/testing/test-element.mjs +1 -1
  93. package/esm2020/text-field/autofill.mjs +6 -6
  94. package/esm2020/text-field/autosize.mjs +3 -3
  95. package/esm2020/text-field/text-field-module.mjs +4 -4
  96. package/esm2020/tree/nested-node.mjs +3 -3
  97. package/esm2020/tree/node.mjs +3 -3
  98. package/esm2020/tree/outlet.mjs +3 -3
  99. package/esm2020/tree/padding.mjs +3 -3
  100. package/esm2020/tree/toggle.mjs +3 -3
  101. package/esm2020/tree/tree-module.mjs +4 -4
  102. package/esm2020/tree/tree.mjs +6 -6
  103. package/esm2020/version.mjs +1 -1
  104. package/fesm2015/a11y.mjs +40 -40
  105. package/fesm2015/a11y.mjs.map +1 -1
  106. package/fesm2015/accordion.mjs +10 -10
  107. package/fesm2015/bidi.mjs +10 -10
  108. package/fesm2015/cdk.mjs +1 -1
  109. package/fesm2015/cdk.mjs.map +1 -1
  110. package/fesm2015/clipboard.mjs +10 -10
  111. package/fesm2015/collections.mjs +3 -3
  112. package/fesm2015/dialog.mjs +65 -34
  113. package/fesm2015/dialog.mjs.map +1 -1
  114. package/fesm2015/drag-drop.mjs +28 -28
  115. package/fesm2015/layout.mjs +10 -10
  116. package/fesm2015/menu.mjs +55 -51
  117. package/fesm2015/menu.mjs.map +1 -1
  118. package/fesm2015/observers.mjs +13 -13
  119. package/fesm2015/overlay.mjs +34 -34
  120. package/fesm2015/overlay.mjs.map +1 -1
  121. package/fesm2015/platform.mjs +7 -7
  122. package/fesm2015/portal.mjs +16 -16
  123. package/fesm2015/scrolling.mjs +26 -26
  124. package/fesm2015/scrolling.mjs.map +1 -1
  125. package/fesm2015/stepper.mjs +22 -22
  126. package/fesm2015/stepper.mjs.map +1 -1
  127. package/fesm2015/table.mjs +76 -76
  128. package/fesm2015/table.mjs.map +1 -1
  129. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  130. package/fesm2015/testing.mjs.map +1 -1
  131. package/fesm2015/text-field.mjs +13 -13
  132. package/fesm2015/tree.mjs +25 -25
  133. package/fesm2020/a11y.mjs +40 -40
  134. package/fesm2020/a11y.mjs.map +1 -1
  135. package/fesm2020/accordion.mjs +10 -10
  136. package/fesm2020/bidi.mjs +10 -10
  137. package/fesm2020/cdk.mjs +1 -1
  138. package/fesm2020/cdk.mjs.map +1 -1
  139. package/fesm2020/clipboard.mjs +10 -10
  140. package/fesm2020/collections.mjs +3 -3
  141. package/fesm2020/dialog.mjs +65 -34
  142. package/fesm2020/dialog.mjs.map +1 -1
  143. package/fesm2020/drag-drop.mjs +28 -28
  144. package/fesm2020/layout.mjs +10 -10
  145. package/fesm2020/menu.mjs +55 -51
  146. package/fesm2020/menu.mjs.map +1 -1
  147. package/fesm2020/observers.mjs +13 -13
  148. package/fesm2020/overlay.mjs +34 -34
  149. package/fesm2020/overlay.mjs.map +1 -1
  150. package/fesm2020/platform.mjs +7 -7
  151. package/fesm2020/portal.mjs +16 -16
  152. package/fesm2020/scrolling.mjs +26 -26
  153. package/fesm2020/scrolling.mjs.map +1 -1
  154. package/fesm2020/stepper.mjs +22 -22
  155. package/fesm2020/stepper.mjs.map +1 -1
  156. package/fesm2020/table.mjs +76 -76
  157. package/fesm2020/table.mjs.map +1 -1
  158. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  159. package/fesm2020/testing.mjs.map +1 -1
  160. package/fesm2020/text-field.mjs +13 -13
  161. package/fesm2020/tree.mjs +25 -25
  162. package/index.d.ts +6 -8
  163. package/keycodes/index.d.ts +247 -6
  164. package/layout/index.d.ts +91 -8
  165. package/menu/index.d.ts +989 -5
  166. package/observers/index.d.ts +89 -6
  167. package/overlay/index.d.ts +1202 -5
  168. package/package.json +20 -20
  169. package/platform/index.d.ts +104 -6
  170. package/portal/index.d.ts +325 -5
  171. package/schematics/ng-add/index.js +1 -1
  172. package/schematics/ng-add/index.mjs +1 -1
  173. package/schematics/utils/build-component.js +2 -2
  174. package/schematics/utils/build-component.mjs +2 -2
  175. package/schematics/utils/schematic-options.js +2 -2
  176. package/schematics/utils/schematic-options.mjs +2 -2
  177. package/scrolling/index.d.ts +647 -6
  178. package/stepper/index.d.ts +328 -6
  179. package/table/index.d.ts +1172 -5
  180. package/testing/index.d.ts +726 -5
  181. package/testing/selenium-webdriver/index.d.ts +134 -8
  182. package/testing/testbed/index.d.ts +161 -8
  183. package/text-field/index.d.ts +175 -6
  184. package/tree/index.d.ts +498 -6
  185. package/a11y/a11y-module.d.ts +0 -12
  186. package/a11y/a11y_public_index.d.ts +0 -4
  187. package/a11y/aria-describer/aria-describer.d.ts +0 -101
  188. package/a11y/aria-describer/aria-reference.d.ts +0 -22
  189. package/a11y/fake-event-detection.d.ts +0 -11
  190. package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
  191. package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
  192. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
  193. package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
  194. package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
  195. package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
  196. package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
  197. package/a11y/focus-trap/focus-trap.d.ts +0 -163
  198. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
  199. package/a11y/input-modality/input-modality-detector.d.ts +0 -99
  200. package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
  201. package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
  202. package/a11y/key-manager/focus-key-manager.d.ts +0 -37
  203. package/a11y/key-manager/list-key-manager.d.ts +0 -152
  204. package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
  205. package/a11y/live-announcer/live-announcer.d.ts +0 -85
  206. package/a11y/package.json +0 -9
  207. package/a11y/public-api.d.ts +0 -25
  208. package/accordion/accordion-item.d.ts +0 -59
  209. package/accordion/accordion-module.d.ts +0 -8
  210. package/accordion/accordion.d.ts +0 -40
  211. package/accordion/accordion_public_index.d.ts +0 -4
  212. package/accordion/package.json +0 -9
  213. package/accordion/public-api.d.ts +0 -10
  214. package/bidi/bidi-module.d.ts +0 -7
  215. package/bidi/bidi_public_index.d.ts +0 -4
  216. package/bidi/dir-document-token.d.ts +0 -26
  217. package/bidi/dir.d.ts +0 -36
  218. package/bidi/directionality.d.ts +0 -26
  219. package/bidi/package.json +0 -9
  220. package/bidi/public-api.d.ts +0 -11
  221. package/clipboard/clipboard-module.d.ts +0 -7
  222. package/clipboard/clipboard.d.ts +0 -28
  223. package/clipboard/clipboard_public_index.d.ts +0 -4
  224. package/clipboard/copy-to-clipboard.d.ts +0 -49
  225. package/clipboard/package.json +0 -9
  226. package/clipboard/pending-copy.d.ts +0 -29
  227. package/clipboard/public-api.d.ts +0 -11
  228. package/coercion/array.d.ts +0 -10
  229. package/coercion/boolean-property.d.ts +0 -14
  230. package/coercion/css-pixel-value.d.ts +0 -9
  231. package/coercion/element.d.ts +0 -13
  232. package/coercion/number-property.d.ts +0 -20
  233. package/coercion/package.json +0 -9
  234. package/coercion/public-api.d.ts +0 -13
  235. package/coercion/string-array.d.ts +0 -25
  236. package/collections/array-data-source.d.ts +0 -16
  237. package/collections/collection-viewer.d.ts +0 -24
  238. package/collections/collections_public_index.d.ts +0 -4
  239. package/collections/data-source.d.ts +0 -30
  240. package/collections/dispose-view-repeater-strategy.d.ts +0 -22
  241. package/collections/package.json +0 -9
  242. package/collections/public-api.d.ts +0 -16
  243. package/collections/recycle-view-repeater-strategy.d.ts +0 -54
  244. package/collections/selection-model.d.ts +0 -95
  245. package/collections/tree-adapter.d.ts +0 -26
  246. package/collections/unique-selection-dispatcher.d.ts +0 -36
  247. package/collections/view-repeater.d.ts +0 -92
  248. package/dialog/dialog-config.d.ts +0 -115
  249. package/dialog/dialog-container.d.ts +0 -95
  250. package/dialog/dialog-injectors.d.ts +0 -24
  251. package/dialog/dialog-module.d.ts +0 -10
  252. package/dialog/dialog-ref.d.ts +0 -64
  253. package/dialog/dialog.d.ts +0 -103
  254. package/dialog/dialog_public_index.d.ts +0 -4
  255. package/dialog/package.json +0 -9
  256. package/dialog/public-api.d.ts +0 -13
  257. package/drag-drop/client-rect.d.ts +0 -38
  258. package/drag-drop/clone-node.d.ts +0 -9
  259. package/drag-drop/directives/assertions.d.ts +0 -13
  260. package/drag-drop/directives/config.d.ts +0 -43
  261. package/drag-drop/directives/drag-handle.d.ts +0 -33
  262. package/drag-drop/directives/drag-placeholder.d.ts +0 -27
  263. package/drag-drop/directives/drag-preview.d.ts +0 -32
  264. package/drag-drop/directives/drag.d.ts +0 -159
  265. package/drag-drop/directives/drop-list-group.d.ts +0 -33
  266. package/drag-drop/directives/drop-list.d.ts +0 -123
  267. package/drag-drop/drag-drop-module.d.ts +0 -13
  268. package/drag-drop/drag-drop-registry.d.ts +0 -89
  269. package/drag-drop/drag-drop.d.ts +0 -36
  270. package/drag-drop/drag-drop_public_index.d.ts +0 -4
  271. package/drag-drop/drag-events.d.ts +0 -124
  272. package/drag-drop/drag-parent.d.ts +0 -15
  273. package/drag-drop/drag-ref.d.ts +0 -448
  274. package/drag-drop/drag-styling.d.ts +0 -42
  275. package/drag-drop/drag-utils.d.ts +0 -32
  276. package/drag-drop/drop-list-ref.d.ts +0 -312
  277. package/drag-drop/package.json +0 -9
  278. package/drag-drop/parent-position-tracker.d.ts +0 -39
  279. package/drag-drop/public-api.d.ts +0 -22
  280. package/drag-drop/transition-duration.d.ts +0 -9
  281. package/keycodes/keycodes.d.ts +0 -126
  282. package/keycodes/keycodes_public_index.d.ts +0 -4
  283. package/keycodes/modifiers.d.ts +0 -14
  284. package/keycodes/package.json +0 -9
  285. package/keycodes/public-api.d.ts +0 -9
  286. package/layout/breakpoints-observer.d.ts +0 -45
  287. package/layout/breakpoints.d.ts +0 -23
  288. package/layout/layout-module.d.ts +0 -6
  289. package/layout/layout_public_index.d.ts +0 -4
  290. package/layout/media-matcher.d.ts +0 -18
  291. package/layout/package.json +0 -9
  292. package/layout/public-api.d.ts +0 -11
  293. package/menu/context-menu-trigger.d.ts +0 -98
  294. package/menu/menu-aim.d.ts +0 -107
  295. package/menu/menu-bar.d.ts +0 -52
  296. package/menu/menu-base.d.ts +0 -104
  297. package/menu/menu-errors.d.ts +0 -17
  298. package/menu/menu-group.d.ts +0 -8
  299. package/menu/menu-interface.d.ts +0 -25
  300. package/menu/menu-item-checkbox.d.ts +0 -18
  301. package/menu/menu-item-radio.d.ts +0 -59
  302. package/menu/menu-item-selectable.d.ts +0 -21
  303. package/menu/menu-item.d.ts +0 -140
  304. package/menu/menu-module.d.ts +0 -17
  305. package/menu/menu-stack.d.ts +0 -122
  306. package/menu/menu-trigger-base.d.ts +0 -77
  307. package/menu/menu-trigger.d.ts +0 -104
  308. package/menu/menu.d.ts +0 -60
  309. package/menu/menu_public_index.d.ts +0 -4
  310. package/menu/package.json +0 -9
  311. package/menu/pointer-focus-tracker.d.ts +0 -47
  312. package/menu/public-api.d.ts +0 -23
  313. package/observers/observe-content.d.ts +0 -87
  314. package/observers/observers_public_index.d.ts +0 -4
  315. package/observers/package.json +0 -9
  316. package/observers/public-api.d.ts +0 -8
  317. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
  318. package/overlay/dispatchers/index.d.ts +0 -9
  319. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
  320. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
  321. package/overlay/fullscreen-overlay-container.d.ts +0 -35
  322. package/overlay/overlay-config.d.ts +0 -47
  323. package/overlay/overlay-container.d.ts +0 -25
  324. package/overlay/overlay-directives.d.ts +0 -148
  325. package/overlay/overlay-module.d.ts +0 -10
  326. package/overlay/overlay-ref.d.ts +0 -145
  327. package/overlay/overlay-reference.d.ts +0 -38
  328. package/overlay/overlay.d.ts +0 -76
  329. package/overlay/overlay_public_index.d.ts +0 -4
  330. package/overlay/package.json +0 -9
  331. package/overlay/position/connected-position.d.ts +0 -102
  332. package/overlay/position/flexible-connected-position-strategy.d.ts +0 -282
  333. package/overlay/position/global-position-strategy.d.ts +0 -99
  334. package/overlay/position/overlay-position-builder.d.ts +0 -32
  335. package/overlay/position/position-strategy.d.ts +0 -19
  336. package/overlay/position/scroll-clip.d.ts +0 -26
  337. package/overlay/public-api.d.ts +0 -23
  338. package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
  339. package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
  340. package/overlay/scroll/index.d.ts +0 -14
  341. package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
  342. package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
  343. package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
  344. package/overlay/scroll/scroll-strategy.d.ts +0 -25
  345. package/platform/features/input-types.d.ts +0 -9
  346. package/platform/features/passive-listeners.d.ts +0 -19
  347. package/platform/features/scrolling.d.ts +0 -32
  348. package/platform/features/shadow-dom.d.ts +0 -18
  349. package/platform/features/test-environment.d.ts +0 -9
  350. package/platform/package.json +0 -9
  351. package/platform/platform-module.d.ts +0 -6
  352. package/platform/platform.d.ts +0 -29
  353. package/platform/platform_public_index.d.ts +0 -4
  354. package/platform/public-api.d.ts +0 -14
  355. package/portal/dom-portal-outlet.d.ts +0 -71
  356. package/portal/package.json +0 -9
  357. package/portal/portal-directives.d.ts +0 -99
  358. package/portal/portal-errors.d.ts +0 -37
  359. package/portal/portal-injector.d.ts +0 -21
  360. package/portal/portal.d.ts +0 -140
  361. package/portal/portal_public_index.d.ts +0 -4
  362. package/portal/public-api.d.ts +0 -11
  363. package/public-api.d.ts +0 -8
  364. package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
  365. package/scrolling/package.json +0 -9
  366. package/scrolling/public-api.d.ts +0 -16
  367. package/scrolling/scroll-dispatcher.d.ts +0 -71
  368. package/scrolling/scrollable.d.ts +0 -85
  369. package/scrolling/scrolling-module.d.ts +0 -19
  370. package/scrolling/scrolling_public_index.d.ts +0 -4
  371. package/scrolling/viewport-ruler.d.ts +0 -63
  372. package/scrolling/virtual-for-of.d.ts +0 -117
  373. package/scrolling/virtual-scroll-repeater.d.ts +0 -16
  374. package/scrolling/virtual-scroll-strategy.d.ts +0 -38
  375. package/scrolling/virtual-scroll-viewport.d.ts +0 -147
  376. package/stepper/package.json +0 -9
  377. package/stepper/public-api.d.ts +0 -12
  378. package/stepper/step-header.d.ts +0 -18
  379. package/stepper/step-label.d.ts +0 -15
  380. package/stepper/stepper-button.d.ts +0 -20
  381. package/stepper/stepper-module.d.ts +0 -11
  382. package/stepper/stepper.d.ts +0 -233
  383. package/stepper/stepper_public_index.d.ts +0 -4
  384. package/table/can-stick.d.ts +0 -34
  385. package/table/cell.d.ts +0 -126
  386. package/table/coalesced-style-scheduler.d.ts +0 -46
  387. package/table/package.json +0 -9
  388. package/table/public-api.d.ts +0 -19
  389. package/table/row.d.ts +0 -175
  390. package/table/sticky-position-listener.d.ts +0 -31
  391. package/table/sticky-styler.d.ts +0 -126
  392. package/table/table-errors.d.ts +0 -48
  393. package/table/table-module.d.ts +0 -11
  394. package/table/table.d.ts +0 -490
  395. package/table/table_public_index.d.ts +0 -4
  396. package/table/text-column.d.ts +0 -73
  397. package/table/tokens.d.ts +0 -25
  398. package/testing/change-detection.d.ts +0 -83
  399. package/testing/component-harness.d.ts +0 -426
  400. package/testing/element-dimensions.d.ts +0 -16
  401. package/testing/harness-environment.d.ts +0 -62
  402. package/testing/package.json +0 -9
  403. package/testing/public-api.d.ts +0 -14
  404. package/testing/selenium-webdriver/package.json +0 -9
  405. package/testing/selenium-webdriver/public-api.d.ts +0 -9
  406. package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
  407. package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
  408. package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
  409. package/testing/test-element-errors.d.ts +0 -12
  410. package/testing/test-element.d.ts +0 -135
  411. package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
  412. package/testing/testbed/fake-events/element-focus.d.ts +0 -18
  413. package/testing/testbed/fake-events/event-objects.d.ts +0 -39
  414. package/testing/testbed/fake-events/index.d.ts +0 -11
  415. package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
  416. package/testing/testbed/package.json +0 -9
  417. package/testing/testbed/proxy-zone-types.d.ts +0 -29
  418. package/testing/testbed/public-api.d.ts +0 -9
  419. package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
  420. package/testing/testbed/testbed-harness-environment.d.ts +0 -64
  421. package/testing/testbed/unit-test-element.d.ts +0 -98
  422. package/testing/testbed/zone-types.d.ts +0 -22
  423. package/testing/text-filtering.d.ts +0 -13
  424. package/text-field/autofill.d.ts +0 -66
  425. package/text-field/autosize.d.ts +0 -95
  426. package/text-field/package.json +0 -9
  427. package/text-field/public-api.d.ts +0 -10
  428. package/text-field/text-field-module.d.ts +0 -8
  429. package/text-field/text-field_public_index.d.ts +0 -4
  430. package/tree/control/base-tree-control.d.ts +0 -54
  431. package/tree/control/flat-tree-control.d.ts +0 -34
  432. package/tree/control/nested-tree-control.d.ts +0 -31
  433. package/tree/control/tree-control.d.ts +0 -49
  434. package/tree/nested-node.d.ts +0 -38
  435. package/tree/node.d.ts +0 -40
  436. package/tree/outlet.d.ts +0 -26
  437. package/tree/package.json +0 -9
  438. package/tree/padding.d.ts +0 -60
  439. package/tree/public-api.d.ts +0 -19
  440. package/tree/toggle.d.ts +0 -25
  441. package/tree/tree-errors.d.ts +0 -32
  442. package/tree/tree-module.d.ts +0 -12
  443. package/tree/tree.d.ts +0 -128
  444. package/tree/tree_public_index.d.ts +0 -4
  445. package/version.d.ts +0 -10
@@ -1,209 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Platform } from '@angular/cdk/platform';
9
- import { ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, AfterViewInit } from '@angular/core';
10
- import { Observable } from 'rxjs';
11
- import { InputModalityDetector } from '../input-modality/input-modality-detector';
12
- import * as i0 from "@angular/core";
13
- export declare type FocusOrigin = 'touch' | 'mouse' | 'keyboard' | 'program' | null;
14
- /**
15
- * Corresponds to the options that can be passed to the native `focus` event.
16
- * via https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
17
- */
18
- export interface FocusOptions {
19
- /** Whether the browser should scroll to the element when it is focused. */
20
- preventScroll?: boolean;
21
- }
22
- /** Detection mode used for attributing the origin of a focus event. */
23
- export declare const enum FocusMonitorDetectionMode {
24
- /**
25
- * Any mousedown, keydown, or touchstart event that happened in the previous
26
- * tick or the current tick will be used to assign a focus event's origin (to
27
- * either mouse, keyboard, or touch). This is the default option.
28
- */
29
- IMMEDIATE = 0,
30
- /**
31
- * A focus event's origin is always attributed to the last corresponding
32
- * mousedown, keydown, or touchstart event, no matter how long ago it occurred.
33
- */
34
- EVENTUAL = 1
35
- }
36
- /** Injectable service-level options for FocusMonitor. */
37
- export interface FocusMonitorOptions {
38
- detectionMode?: FocusMonitorDetectionMode;
39
- }
40
- /** InjectionToken for FocusMonitorOptions. */
41
- export declare const FOCUS_MONITOR_DEFAULT_OPTIONS: InjectionToken<FocusMonitorOptions>;
42
- /** Monitors mouse and keyboard events to determine the cause of focus events. */
43
- export declare class FocusMonitor implements OnDestroy {
44
- private _ngZone;
45
- private _platform;
46
- private readonly _inputModalityDetector;
47
- /** The focus origin that the next focus event is a result of. */
48
- private _origin;
49
- /** The FocusOrigin of the last focus event tracked by the FocusMonitor. */
50
- private _lastFocusOrigin;
51
- /** Whether the window has just been focused. */
52
- private _windowFocused;
53
- /** The timeout id of the window focus timeout. */
54
- private _windowFocusTimeoutId;
55
- /** The timeout id of the origin clearing timeout. */
56
- private _originTimeoutId;
57
- /**
58
- * Whether the origin was determined via a touch interaction. Necessary as properly attributing
59
- * focus events to touch interactions requires special logic.
60
- */
61
- private _originFromTouchInteraction;
62
- /** Map of elements being monitored to their info. */
63
- private _elementInfo;
64
- /** The number of elements currently being monitored. */
65
- private _monitoredElementCount;
66
- /**
67
- * Keeps track of the root nodes to which we've currently bound a focus/blur handler,
68
- * as well as the number of monitored elements that they contain. We have to treat focus/blur
69
- * handlers differently from the rest of the events, because the browser won't emit events
70
- * to the document when focus moves inside of a shadow root.
71
- */
72
- private _rootNodeFocusListenerCount;
73
- /**
74
- * The specified detection mode, used for attributing the origin of a focus
75
- * event.
76
- */
77
- private readonly _detectionMode;
78
- /**
79
- * Event listener for `focus` events on the window.
80
- * Needs to be an arrow function in order to preserve the context when it gets bound.
81
- */
82
- private _windowFocusListener;
83
- /** Used to reference correct document/window */
84
- protected _document?: Document;
85
- /** Subject for stopping our InputModalityDetector subscription. */
86
- private readonly _stopInputModalityDetector;
87
- constructor(_ngZone: NgZone, _platform: Platform, _inputModalityDetector: InputModalityDetector,
88
- /** @breaking-change 11.0.0 make document required */
89
- document: any | null, options: FocusMonitorOptions | null);
90
- /**
91
- * Event listener for `focus` and 'blur' events on the document.
92
- * Needs to be an arrow function in order to preserve the context when it gets bound.
93
- */
94
- private _rootNodeFocusAndBlurListener;
95
- /**
96
- * Monitors focus on an element and applies appropriate CSS classes.
97
- * @param element The element to monitor
98
- * @param checkChildren Whether to count the element as focused when its children are focused.
99
- * @returns An observable that emits when the focus state of the element changes.
100
- * When the element is blurred, null will be emitted.
101
- */
102
- monitor(element: HTMLElement, checkChildren?: boolean): Observable<FocusOrigin>;
103
- /**
104
- * Monitors focus on an element and applies appropriate CSS classes.
105
- * @param element The element to monitor
106
- * @param checkChildren Whether to count the element as focused when its children are focused.
107
- * @returns An observable that emits when the focus state of the element changes.
108
- * When the element is blurred, null will be emitted.
109
- */
110
- monitor(element: ElementRef<HTMLElement>, checkChildren?: boolean): Observable<FocusOrigin>;
111
- /**
112
- * Stops monitoring an element and removes all focus classes.
113
- * @param element The element to stop monitoring.
114
- */
115
- stopMonitoring(element: HTMLElement): void;
116
- /**
117
- * Stops monitoring an element and removes all focus classes.
118
- * @param element The element to stop monitoring.
119
- */
120
- stopMonitoring(element: ElementRef<HTMLElement>): void;
121
- /**
122
- * Focuses the element via the specified focus origin.
123
- * @param element Element to focus.
124
- * @param origin Focus origin.
125
- * @param options Options that can be used to configure the focus behavior.
126
- */
127
- focusVia(element: HTMLElement, origin: FocusOrigin, options?: FocusOptions): void;
128
- /**
129
- * Focuses the element via the specified focus origin.
130
- * @param element Element to focus.
131
- * @param origin Focus origin.
132
- * @param options Options that can be used to configure the focus behavior.
133
- */
134
- focusVia(element: ElementRef<HTMLElement>, origin: FocusOrigin, options?: FocusOptions): void;
135
- ngOnDestroy(): void;
136
- /** Access injected document if available or fallback to global document reference */
137
- private _getDocument;
138
- /** Use defaultView of injected document if available or fallback to global window reference */
139
- private _getWindow;
140
- private _getFocusOrigin;
141
- /**
142
- * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a
143
- * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we
144
- * handle a focus event following a touch interaction, we need to determine whether (1) the focus
145
- * event was directly caused by the touch interaction or (2) the focus event was caused by a
146
- * subsequent programmatic focus call triggered by the touch interaction.
147
- * @param focusEventTarget The target of the focus event under examination.
148
- */
149
- private _shouldBeAttributedToTouch;
150
- /**
151
- * Sets the focus classes on the element based on the given focus origin.
152
- * @param element The element to update the classes on.
153
- * @param origin The focus origin.
154
- */
155
- private _setClasses;
156
- /**
157
- * Updates the focus origin. If we're using immediate detection mode, we schedule an async
158
- * function to clear the origin at the end of a timeout. The duration of the timeout depends on
159
- * the origin being set.
160
- * @param origin The origin to set.
161
- * @param isFromInteraction Whether we are setting the origin from an interaction event.
162
- */
163
- private _setOrigin;
164
- /**
165
- * Handles focus events on a registered element.
166
- * @param event The focus event.
167
- * @param element The monitored element.
168
- */
169
- private _onFocus;
170
- /**
171
- * Handles blur events on a registered element.
172
- * @param event The blur event.
173
- * @param element The monitored element.
174
- */
175
- _onBlur(event: FocusEvent, element: HTMLElement): void;
176
- private _emitOrigin;
177
- private _registerGlobalListeners;
178
- private _removeGlobalListeners;
179
- /** Updates all the state on an element once its focus origin has changed. */
180
- private _originChanged;
181
- /**
182
- * Collects the `MonitoredElementInfo` of a particular element and
183
- * all of its ancestors that have enabled `checkChildren`.
184
- * @param element Element from which to start the search.
185
- */
186
- private _getClosestElementsInfo;
187
- static ɵfac: i0.ɵɵFactoryDeclaration<FocusMonitor, [null, null, null, { optional: true; }, { optional: true; }]>;
188
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusMonitor>;
189
- }
190
- /**
191
- * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
192
- * programmatically) and adds corresponding classes to the element.
193
- *
194
- * There are two variants of this directive:
195
- * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is
196
- * focused.
197
- * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.
198
- */
199
- export declare class CdkMonitorFocus implements AfterViewInit, OnDestroy {
200
- private _elementRef;
201
- private _focusMonitor;
202
- private _monitorSubscription;
203
- readonly cdkFocusChange: EventEmitter<FocusOrigin>;
204
- constructor(_elementRef: ElementRef<HTMLElement>, _focusMonitor: FocusMonitor);
205
- ngAfterViewInit(): void;
206
- ngOnDestroy(): void;
207
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMonitorFocus, never>;
208
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { "cdkFocusChange": "cdkFocusChange"; }, never, never, false>;
209
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /**
9
- * Options for creating a ConfigurableFocusTrap.
10
- */
11
- export interface ConfigurableFocusTrapConfig {
12
- /**
13
- * Whether to defer the creation of FocusTrap elements to be done manually by the user.
14
- */
15
- defer: boolean;
16
- }
@@ -1,30 +0,0 @@
1
- import { NgZone } from '@angular/core';
2
- import { InteractivityChecker } from '../interactivity-checker/interactivity-checker';
3
- import { ConfigurableFocusTrap } from './configurable-focus-trap';
4
- import { ConfigurableFocusTrapConfig } from './configurable-focus-trap-config';
5
- import { FocusTrapInertStrategy } from './focus-trap-inert-strategy';
6
- import { FocusTrapManager } from './focus-trap-manager';
7
- import * as i0 from "@angular/core";
8
- /** Factory that allows easy instantiation of configurable focus traps. */
9
- export declare class ConfigurableFocusTrapFactory {
10
- private _checker;
11
- private _ngZone;
12
- private _focusTrapManager;
13
- private _document;
14
- private _inertStrategy;
15
- constructor(_checker: InteractivityChecker, _ngZone: NgZone, _focusTrapManager: FocusTrapManager, _document: any, _inertStrategy?: FocusTrapInertStrategy);
16
- /**
17
- * Creates a focus-trapped region around the given element.
18
- * @param element The element around which focus will be trapped.
19
- * @param config The focus trap configuration.
20
- * @returns The created focus trap instance.
21
- */
22
- create(element: HTMLElement, config?: ConfigurableFocusTrapConfig): ConfigurableFocusTrap;
23
- /**
24
- * @deprecated Pass a config object instead of the `deferCaptureElements` flag.
25
- * @breaking-change 11.0.0
26
- */
27
- create(element: HTMLElement, deferCaptureElements: boolean): ConfigurableFocusTrap;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurableFocusTrapFactory, [null, null, null, null, { optional: true; }]>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurableFocusTrapFactory>;
30
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { NgZone } from '@angular/core';
9
- import { InteractivityChecker } from '../interactivity-checker/interactivity-checker';
10
- import { FocusTrap } from './focus-trap';
11
- import { FocusTrapManager, ManagedFocusTrap } from './focus-trap-manager';
12
- import { FocusTrapInertStrategy } from './focus-trap-inert-strategy';
13
- import { ConfigurableFocusTrapConfig } from './configurable-focus-trap-config';
14
- /**
15
- * Class that allows for trapping focus within a DOM element.
16
- *
17
- * This class uses a strategy pattern that determines how it traps focus.
18
- * See FocusTrapInertStrategy.
19
- */
20
- export declare class ConfigurableFocusTrap extends FocusTrap implements ManagedFocusTrap {
21
- private _focusTrapManager;
22
- private _inertStrategy;
23
- /** Whether the FocusTrap is enabled. */
24
- get enabled(): boolean;
25
- set enabled(value: boolean);
26
- constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, _focusTrapManager: FocusTrapManager, _inertStrategy: FocusTrapInertStrategy, config: ConfigurableFocusTrapConfig);
27
- /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */
28
- destroy(): void;
29
- /** @docs-private Implemented as part of ManagedFocusTrap. */
30
- _enable(): void;
31
- /** @docs-private Implemented as part of ManagedFocusTrap. */
32
- _disable(): void;
33
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { FocusTrapInertStrategy } from './focus-trap-inert-strategy';
9
- import { ConfigurableFocusTrap } from './configurable-focus-trap';
10
- /**
11
- * Lightweight FocusTrapInertStrategy that adds a document focus event
12
- * listener to redirect focus back inside the FocusTrap.
13
- */
14
- export declare class EventListenerFocusTrapInertStrategy implements FocusTrapInertStrategy {
15
- /** Focus event handler. */
16
- private _listener;
17
- /** Adds a document event listener that keeps focus inside the FocusTrap. */
18
- preventFocus(focusTrap: ConfigurableFocusTrap): void;
19
- /** Removes the event listener added in preventFocus. */
20
- allowFocus(focusTrap: ConfigurableFocusTrap): void;
21
- /**
22
- * Refocuses the first element in the FocusTrap if the focus event target was outside
23
- * the FocusTrap.
24
- *
25
- * This is an event listener callback. The event listener is added in runOutsideAngular,
26
- * so all this code runs outside Angular as well.
27
- */
28
- private _trapFocus;
29
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { InjectionToken } from '@angular/core';
9
- import { FocusTrap } from './focus-trap';
10
- /** The injection token used to specify the inert strategy. */
11
- export declare const FOCUS_TRAP_INERT_STRATEGY: InjectionToken<FocusTrapInertStrategy>;
12
- /**
13
- * A strategy that dictates how FocusTrap should prevent elements
14
- * outside of the FocusTrap from being focused.
15
- */
16
- export interface FocusTrapInertStrategy {
17
- /** Makes all elements outside focusTrap unfocusable. */
18
- preventFocus(focusTrap: FocusTrap): void;
19
- /** Reverts elements made unfocusable by preventFocus to their previous state. */
20
- allowFocus(focusTrap: FocusTrap): void;
21
- }
@@ -1,26 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * A FocusTrap managed by FocusTrapManager.
4
- * Implemented by ConfigurableFocusTrap to avoid circular dependency.
5
- */
6
- export interface ManagedFocusTrap {
7
- _enable(): void;
8
- _disable(): void;
9
- focusInitialElementWhenReady(): Promise<boolean>;
10
- }
11
- /** Injectable that ensures only the most recently enabled FocusTrap is active. */
12
- export declare class FocusTrapManager {
13
- private _focusTrapStack;
14
- /**
15
- * Disables the FocusTrap at the top of the stack, and then pushes
16
- * the new FocusTrap onto the stack.
17
- */
18
- register(focusTrap: ManagedFocusTrap): void;
19
- /**
20
- * Removes the FocusTrap from the stack, and activates the
21
- * FocusTrap that is the new top of the stack.
22
- */
23
- deregister(focusTrap: ManagedFocusTrap): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapManager, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusTrapManager>;
26
- }
@@ -1,163 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { BooleanInput } from '@angular/cdk/coercion';
9
- import { AfterContentInit, ElementRef, NgZone, OnDestroy, DoCheck, SimpleChanges, OnChanges } from '@angular/core';
10
- import { InteractivityChecker } from '../interactivity-checker/interactivity-checker';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Class that allows for trapping focus within a DOM element.
14
- *
15
- * This class currently uses a relatively simple approach to focus trapping.
16
- * It assumes that the tab order is the same as DOM order, which is not necessarily true.
17
- * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.
18
- *
19
- * @deprecated Use `ConfigurableFocusTrap` instead.
20
- * @breaking-change 11.0.0
21
- */
22
- export declare class FocusTrap {
23
- readonly _element: HTMLElement;
24
- private _checker;
25
- readonly _ngZone: NgZone;
26
- readonly _document: Document;
27
- private _startAnchor;
28
- private _endAnchor;
29
- private _hasAttached;
30
- protected startAnchorListener: () => boolean;
31
- protected endAnchorListener: () => boolean;
32
- /** Whether the focus trap is active. */
33
- get enabled(): boolean;
34
- set enabled(value: boolean);
35
- protected _enabled: boolean;
36
- constructor(_element: HTMLElement, _checker: InteractivityChecker, _ngZone: NgZone, _document: Document, deferAnchors?: boolean);
37
- /** Destroys the focus trap by cleaning up the anchors. */
38
- destroy(): void;
39
- /**
40
- * Inserts the anchors into the DOM. This is usually done automatically
41
- * in the constructor, but can be deferred for cases like directives with `*ngIf`.
42
- * @returns Whether the focus trap managed to attach successfully. This may not be the case
43
- * if the target element isn't currently in the DOM.
44
- */
45
- attachAnchors(): boolean;
46
- /**
47
- * Waits for the zone to stabilize, then focuses the first tabbable element.
48
- * @returns Returns a promise that resolves with a boolean, depending
49
- * on whether focus was moved successfully.
50
- */
51
- focusInitialElementWhenReady(options?: FocusOptions): Promise<boolean>;
52
- /**
53
- * Waits for the zone to stabilize, then focuses
54
- * the first tabbable element within the focus trap region.
55
- * @returns Returns a promise that resolves with a boolean, depending
56
- * on whether focus was moved successfully.
57
- */
58
- focusFirstTabbableElementWhenReady(options?: FocusOptions): Promise<boolean>;
59
- /**
60
- * Waits for the zone to stabilize, then focuses
61
- * the last tabbable element within the focus trap region.
62
- * @returns Returns a promise that resolves with a boolean, depending
63
- * on whether focus was moved successfully.
64
- */
65
- focusLastTabbableElementWhenReady(options?: FocusOptions): Promise<boolean>;
66
- /**
67
- * Get the specified boundary element of the trapped region.
68
- * @param bound The boundary to get (start or end of trapped region).
69
- * @returns The boundary element.
70
- */
71
- private _getRegionBoundary;
72
- /**
73
- * Focuses the element that should be focused when the focus trap is initialized.
74
- * @returns Whether focus was moved successfully.
75
- */
76
- focusInitialElement(options?: FocusOptions): boolean;
77
- /**
78
- * Focuses the first tabbable element within the focus trap region.
79
- * @returns Whether focus was moved successfully.
80
- */
81
- focusFirstTabbableElement(options?: FocusOptions): boolean;
82
- /**
83
- * Focuses the last tabbable element within the focus trap region.
84
- * @returns Whether focus was moved successfully.
85
- */
86
- focusLastTabbableElement(options?: FocusOptions): boolean;
87
- /**
88
- * Checks whether the focus trap has successfully been attached.
89
- */
90
- hasAttached(): boolean;
91
- /** Get the first tabbable element from a DOM subtree (inclusive). */
92
- private _getFirstTabbableElement;
93
- /** Get the last tabbable element from a DOM subtree (inclusive). */
94
- private _getLastTabbableElement;
95
- /** Creates an anchor element. */
96
- private _createAnchor;
97
- /**
98
- * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.
99
- * @param isEnabled Whether the focus trap is enabled.
100
- * @param anchor Anchor on which to toggle the tabindex.
101
- */
102
- private _toggleAnchorTabIndex;
103
- /**
104
- * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.
105
- * @param enabled: Whether the anchors should trap Tab.
106
- */
107
- protected toggleAnchors(enabled: boolean): void;
108
- /** Executes a function when the zone is stable. */
109
- private _executeOnStable;
110
- }
111
- /**
112
- * Factory that allows easy instantiation of focus traps.
113
- * @deprecated Use `ConfigurableFocusTrapFactory` instead.
114
- * @breaking-change 11.0.0
115
- */
116
- export declare class FocusTrapFactory {
117
- private _checker;
118
- private _ngZone;
119
- private _document;
120
- constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any);
121
- /**
122
- * Creates a focus-trapped region around the given element.
123
- * @param element The element around which focus will be trapped.
124
- * @param deferCaptureElements Defers the creation of focus-capturing elements to be done
125
- * manually by the user.
126
- * @returns The created focus trap instance.
127
- */
128
- create(element: HTMLElement, deferCaptureElements?: boolean): FocusTrap;
129
- static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapFactory, never>;
130
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusTrapFactory>;
131
- }
132
- /** Directive for trapping focus within a region. */
133
- export declare class CdkTrapFocus implements OnDestroy, AfterContentInit, OnChanges, DoCheck {
134
- private _elementRef;
135
- private _focusTrapFactory;
136
- /** Underlying FocusTrap instance. */
137
- focusTrap: FocusTrap;
138
- /** Previously focused element to restore focus to upon destroy when using autoCapture. */
139
- private _previouslyFocusedElement;
140
- /** Whether the focus trap is active. */
141
- get enabled(): boolean;
142
- set enabled(value: BooleanInput);
143
- /**
144
- * Whether the directive should automatically move focus into the trapped region upon
145
- * initialization and return focus to the previous activeElement upon destruction.
146
- */
147
- get autoCapture(): boolean;
148
- set autoCapture(value: BooleanInput);
149
- private _autoCapture;
150
- constructor(_elementRef: ElementRef<HTMLElement>, _focusTrapFactory: FocusTrapFactory,
151
- /**
152
- * @deprecated No longer being used. To be removed.
153
- * @breaking-change 13.0.0
154
- */
155
- _document: any);
156
- ngOnDestroy(): void;
157
- ngAfterContentInit(): void;
158
- ngDoCheck(): void;
159
- ngOnChanges(changes: SimpleChanges): void;
160
- private _captureFocus;
161
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTrapFocus, never>;
162
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { "enabled": "cdkTrapFocus"; "autoCapture": "cdkTrapFocusAutoCapture"; }, {}, never, never, false>;
163
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Platform } from '@angular/cdk/platform';
9
- import * as i0 from "@angular/core";
10
- /** Set of possible high-contrast mode backgrounds. */
11
- export declare const enum HighContrastMode {
12
- NONE = 0,
13
- BLACK_ON_WHITE = 1,
14
- WHITE_ON_BLACK = 2
15
- }
16
- /** CSS class applied to the document body when in black-on-white high-contrast mode. */
17
- export declare const BLACK_ON_WHITE_CSS_CLASS = "cdk-high-contrast-black-on-white";
18
- /** CSS class applied to the document body when in white-on-black high-contrast mode. */
19
- export declare const WHITE_ON_BLACK_CSS_CLASS = "cdk-high-contrast-white-on-black";
20
- /** CSS class applied to the document body when in high-contrast mode. */
21
- export declare const HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = "cdk-high-contrast-active";
22
- /**
23
- * Service to determine whether the browser is currently in a high-contrast-mode environment.
24
- *
25
- * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode
26
- * changes the appearance of all applications, including web applications, to dramatically increase
27
- * contrast.
28
- *
29
- * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast
30
- * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast"
31
- * browser extension.
32
- */
33
- export declare class HighContrastModeDetector {
34
- private _platform;
35
- /**
36
- * Figuring out the high contrast mode and adding the body classes can cause
37
- * some expensive layouts. This flag is used to ensure that we only do it once.
38
- */
39
- private _hasCheckedHighContrastMode;
40
- private _document;
41
- constructor(_platform: Platform, document: any);
42
- /** Gets the current high-contrast-mode for the page. */
43
- getHighContrastMode(): HighContrastMode;
44
- /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
45
- _applyBodyHighContrastModeCssClasses(): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<HighContrastModeDetector, never>;
47
- static ɵprov: i0.ɵɵInjectableDeclaration<HighContrastModeDetector>;
48
- }