@kato-lee/cdk 14.2.7

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 (374) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -0
  3. package/_index.scss +8 -0
  4. package/a11y/_index.import.scss +2 -0
  5. package/a11y/_index.scss +102 -0
  6. package/a11y/index.d.ts +1212 -0
  7. package/a11y-prebuilt.css +1 -0
  8. package/accordion/index.d.ts +140 -0
  9. package/bidi/index.d.ts +80 -0
  10. package/clipboard/index.d.ts +115 -0
  11. package/coercion/index.d.ts +67 -0
  12. package/collections/index.d.ts +374 -0
  13. package/dialog/index.d.ts +469 -0
  14. package/drag-drop/index.d.ts +1614 -0
  15. package/esm2020/a11y/a11y-module.mjs +32 -0
  16. package/esm2020/a11y/a11y_public_index.mjs +5 -0
  17. package/esm2020/a11y/aria-describer/aria-describer.mjs +232 -0
  18. package/esm2020/a11y/aria-describer/aria-reference.mjs +44 -0
  19. package/esm2020/a11y/fake-event-detection.mjs +31 -0
  20. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +451 -0
  21. package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +9 -0
  22. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
  23. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
  24. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
  25. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
  26. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
  27. package/esm2020/a11y/focus-trap/focus-trap.mjs +402 -0
  28. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +109 -0
  29. package/esm2020/a11y/index.mjs +9 -0
  30. package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
  31. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
  32. package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +20 -0
  33. package/esm2020/a11y/key-manager/focus-key-manager.mjs +29 -0
  34. package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
  35. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
  36. package/esm2020/a11y/live-announcer/live-announcer.mjs +178 -0
  37. package/esm2020/a11y/public-api.mjs +26 -0
  38. package/esm2020/accordion/accordion-item.mjs +167 -0
  39. package/esm2020/accordion/accordion-module.mjs +24 -0
  40. package/esm2020/accordion/accordion.mjs +70 -0
  41. package/esm2020/accordion/accordion_public_index.mjs +5 -0
  42. package/esm2020/accordion/index.mjs +9 -0
  43. package/esm2020/accordion/public-api.mjs +11 -0
  44. package/esm2020/bidi/bidi-module.mjs +23 -0
  45. package/esm2020/bidi/bidi_public_index.mjs +5 -0
  46. package/esm2020/bidi/dir-document-token.mjs +33 -0
  47. package/esm2020/bidi/dir.mjs +69 -0
  48. package/esm2020/bidi/directionality.mjs +52 -0
  49. package/esm2020/bidi/index.mjs +9 -0
  50. package/esm2020/bidi/public-api.mjs +12 -0
  51. package/esm2020/clipboard/clipboard-module.mjs +23 -0
  52. package/esm2020/clipboard/clipboard.mjs +53 -0
  53. package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
  54. package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
  55. package/esm2020/clipboard/index.mjs +9 -0
  56. package/esm2020/clipboard/pending-copy.mjs +69 -0
  57. package/esm2020/clipboard/public-api.mjs +12 -0
  58. package/esm2020/coercion/array.mjs +11 -0
  59. package/esm2020/coercion/boolean-property.mjs +12 -0
  60. package/esm2020/coercion/css-pixel-value.mjs +15 -0
  61. package/esm2020/coercion/element.mjs +16 -0
  62. package/esm2020/coercion/index.mjs +9 -0
  63. package/esm2020/coercion/number-property.mjs +21 -0
  64. package/esm2020/coercion/public-api.mjs +14 -0
  65. package/esm2020/coercion/string-array.mjs +38 -0
  66. package/esm2020/collections/array-data-source.mjs +21 -0
  67. package/esm2020/collections/collection-viewer.mjs +9 -0
  68. package/esm2020/collections/collections_public_index.mjs +5 -0
  69. package/esm2020/collections/data-source.mjs +19 -0
  70. package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
  71. package/esm2020/collections/index.mjs +9 -0
  72. package/esm2020/collections/public-api.mjs +17 -0
  73. package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
  74. package/esm2020/collections/selection-model.mjs +216 -0
  75. package/esm2020/collections/tree-adapter.mjs +9 -0
  76. package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
  77. package/esm2020/collections/view-repeater.mjs +14 -0
  78. package/esm2020/dialog/dialog-config.mjs +63 -0
  79. package/esm2020/dialog/dialog-container.mjs +278 -0
  80. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  81. package/esm2020/dialog/dialog-module.mjs +42 -0
  82. package/esm2020/dialog/dialog-ref.mjs +76 -0
  83. package/esm2020/dialog/dialog.mjs +301 -0
  84. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  85. package/esm2020/dialog/index.mjs +9 -0
  86. package/esm2020/dialog/public-api.mjs +14 -0
  87. package/esm2020/drag-drop/directives/assertions.mjs +18 -0
  88. package/esm2020/drag-drop/directives/config.mjs +14 -0
  89. package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
  90. package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
  91. package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
  92. package/esm2020/drag-drop/directives/drag.mjs +487 -0
  93. package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
  94. package/esm2020/drag-drop/directives/drop-list.mjs +345 -0
  95. package/esm2020/drag-drop/dom/client-rect.mjs +64 -0
  96. package/esm2020/drag-drop/dom/clone-node.mjs +65 -0
  97. package/esm2020/drag-drop/dom/parent-position-tracker.mjs +76 -0
  98. package/esm2020/drag-drop/dom/styling.mjs +69 -0
  99. package/esm2020/drag-drop/dom/transition-duration.mjs +36 -0
  100. package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
  101. package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
  102. package/esm2020/drag-drop/drag-drop.mjs +57 -0
  103. package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
  104. package/esm2020/drag-drop/drag-events.mjs +9 -0
  105. package/esm2020/drag-drop/drag-parent.mjs +16 -0
  106. package/esm2020/drag-drop/drag-ref.mjs +1146 -0
  107. package/esm2020/drag-drop/drag-utils.mjs +60 -0
  108. package/esm2020/drag-drop/drop-list-ref.mjs +577 -0
  109. package/esm2020/drag-drop/index.mjs +9 -0
  110. package/esm2020/drag-drop/public-api.mjs +23 -0
  111. package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +9 -0
  112. package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +341 -0
  113. package/esm2020/index.mjs +9 -0
  114. package/esm2020/keycodes/index.mjs +9 -0
  115. package/esm2020/keycodes/keycodes.mjs +127 -0
  116. package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
  117. package/esm2020/keycodes/modifiers.mjs +18 -0
  118. package/esm2020/keycodes/public-api.mjs +10 -0
  119. package/esm2020/layout/breakpoints-observer.mjs +105 -0
  120. package/esm2020/layout/breakpoints.mjs +29 -0
  121. package/esm2020/layout/index.mjs +9 -0
  122. package/esm2020/layout/layout-module.mjs +19 -0
  123. package/esm2020/layout/layout_public_index.mjs +5 -0
  124. package/esm2020/layout/media-matcher.mjs +85 -0
  125. package/esm2020/layout/public-api.mjs +12 -0
  126. package/esm2020/listbox/index.mjs +9 -0
  127. package/esm2020/listbox/listbox-module.mjs +24 -0
  128. package/esm2020/listbox/listbox.mjs +872 -0
  129. package/esm2020/listbox/listbox_public_index.mjs +5 -0
  130. package/esm2020/listbox/public-api.mjs +10 -0
  131. package/esm2020/menu/context-menu-trigger.mjs +212 -0
  132. package/esm2020/menu/index.mjs +9 -0
  133. package/esm2020/menu/menu-aim.mjs +203 -0
  134. package/esm2020/menu/menu-bar.mjs +133 -0
  135. package/esm2020/menu/menu-base.mjs +187 -0
  136. package/esm2020/menu/menu-errors.mjs +22 -0
  137. package/esm2020/menu/menu-group.mjs +30 -0
  138. package/esm2020/menu/menu-interface.mjs +11 -0
  139. package/esm2020/menu/menu-item-checkbox.mjs +49 -0
  140. package/esm2020/menu/menu-item-radio.mjs +71 -0
  141. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  142. package/esm2020/menu/menu-item.mjs +267 -0
  143. package/esm2020/menu/menu-module.mjs +62 -0
  144. package/esm2020/menu/menu-stack.mjs +156 -0
  145. package/esm2020/menu/menu-trigger-base.mjs +107 -0
  146. package/esm2020/menu/menu-trigger.mjs +291 -0
  147. package/esm2020/menu/menu.mjs +134 -0
  148. package/esm2020/menu/menu_public_index.mjs +5 -0
  149. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  150. package/esm2020/menu/public-api.mjs +24 -0
  151. package/esm2020/observers/index.mjs +9 -0
  152. package/esm2020/observers/observe-content.mjs +187 -0
  153. package/esm2020/observers/observers_public_index.mjs +5 -0
  154. package/esm2020/observers/public-api.mjs +9 -0
  155. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
  156. package/esm2020/overlay/dispatchers/index.mjs +10 -0
  157. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +81 -0
  158. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +138 -0
  159. package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
  160. package/esm2020/overlay/index.mjs +9 -0
  161. package/esm2020/overlay/overlay-config.mjs +45 -0
  162. package/esm2020/overlay/overlay-container.mjs +81 -0
  163. package/esm2020/overlay/overlay-directives.mjs +427 -0
  164. package/esm2020/overlay/overlay-module.mjs +29 -0
  165. package/esm2020/overlay/overlay-ref.mjs +427 -0
  166. package/esm2020/overlay/overlay-reference.mjs +9 -0
  167. package/esm2020/overlay/overlay.mjs +125 -0
  168. package/esm2020/overlay/overlay_public_index.mjs +5 -0
  169. package/esm2020/overlay/position/connected-position.mjs +88 -0
  170. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +985 -0
  171. package/esm2020/overlay/position/global-position-strategy.mjs +237 -0
  172. package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
  173. package/esm2020/overlay/position/position-strategy.mjs +9 -0
  174. package/esm2020/overlay/position/scroll-clip.mjs +40 -0
  175. package/esm2020/overlay/public-api.mjs +22 -0
  176. package/esm2020/overlay/scroll/block-scroll-strategy.mjs +80 -0
  177. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
  178. package/esm2020/overlay/scroll/index.mjs +14 -0
  179. package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +17 -0
  180. package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +61 -0
  181. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
  182. package/esm2020/overlay/scroll/scroll-strategy.mjs +14 -0
  183. package/esm2020/platform/features/input-types.mjs +59 -0
  184. package/esm2020/platform/features/passive-listeners.mjs +36 -0
  185. package/esm2020/platform/features/scrolling.mjs +85 -0
  186. package/esm2020/platform/features/shadow-dom.mjs +54 -0
  187. package/esm2020/platform/features/test-environment.mjs +24 -0
  188. package/esm2020/platform/index.mjs +9 -0
  189. package/esm2020/platform/platform-module.mjs +19 -0
  190. package/esm2020/platform/platform.mjs +85 -0
  191. package/esm2020/platform/platform_public_index.mjs +5 -0
  192. package/esm2020/platform/public-api.mjs +15 -0
  193. package/esm2020/portal/dom-portal-outlet.mjs +158 -0
  194. package/esm2020/portal/index.mjs +9 -0
  195. package/esm2020/portal/portal-directives.mjs +246 -0
  196. package/esm2020/portal/portal-errors.mjs +51 -0
  197. package/esm2020/portal/portal-injector.mjs +28 -0
  198. package/esm2020/portal/portal.mjs +188 -0
  199. package/esm2020/portal/portal_public_index.mjs +5 -0
  200. package/esm2020/portal/public-api.mjs +12 -0
  201. package/esm2020/public-api.mjs +9 -0
  202. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
  203. package/esm2020/scrolling/index.mjs +9 -0
  204. package/esm2020/scrolling/public-api.mjs +20 -0
  205. package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
  206. package/esm2020/scrolling/scrollable.mjs +176 -0
  207. package/esm2020/scrolling/scrolling-module.mjs +67 -0
  208. package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
  209. package/esm2020/scrolling/viewport-ruler.mjs +146 -0
  210. package/esm2020/scrolling/virtual-for-of.mjs +298 -0
  211. package/esm2020/scrolling/virtual-scroll-repeater.mjs +9 -0
  212. package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
  213. package/esm2020/scrolling/virtual-scroll-viewport.mjs +437 -0
  214. package/esm2020/scrolling/virtual-scrollable-element.mjs +41 -0
  215. package/esm2020/scrolling/virtual-scrollable-window.mjs +40 -0
  216. package/esm2020/scrolling/virtual-scrollable.mjs +40 -0
  217. package/esm2020/stepper/index.mjs +9 -0
  218. package/esm2020/stepper/public-api.mjs +13 -0
  219. package/esm2020/stepper/step-header.mjs +30 -0
  220. package/esm2020/stepper/step-label.mjs +23 -0
  221. package/esm2020/stepper/stepper-button.mjs +56 -0
  222. package/esm2020/stepper/stepper-module.mjs +40 -0
  223. package/esm2020/stepper/stepper.mjs +458 -0
  224. package/esm2020/stepper/stepper_public_index.mjs +5 -0
  225. package/esm2020/table/can-stick.mjs +44 -0
  226. package/esm2020/table/cell.mjs +217 -0
  227. package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
  228. package/esm2020/table/index.mjs +9 -0
  229. package/esm2020/table/public-api.mjs +20 -0
  230. package/esm2020/table/row.mjs +262 -0
  231. package/esm2020/table/sticky-position-listener.mjs +11 -0
  232. package/esm2020/table/sticky-styler.mjs +345 -0
  233. package/esm2020/table/table-errors.mjs +67 -0
  234. package/esm2020/table/table-module.mjs +94 -0
  235. package/esm2020/table/table.mjs +1065 -0
  236. package/esm2020/table/table_public_index.mjs +5 -0
  237. package/esm2020/table/text-column.mjs +153 -0
  238. package/esm2020/table/tokens.mjs +16 -0
  239. package/esm2020/text-field/autofill.mjs +113 -0
  240. package/esm2020/text-field/autosize.mjs +309 -0
  241. package/esm2020/text-field/index.mjs +9 -0
  242. package/esm2020/text-field/public-api.mjs +11 -0
  243. package/esm2020/text-field/text-field-module.mjs +24 -0
  244. package/esm2020/text-field/text-field_public_index.mjs +5 -0
  245. package/esm2020/tree/control/base-tree-control.mjs +57 -0
  246. package/esm2020/tree/control/flat-tree-control.mjs +51 -0
  247. package/esm2020/tree/control/nested-tree-control.mjs +58 -0
  248. package/esm2020/tree/control/tree-control.mjs +2 -0
  249. package/esm2020/tree/index.mjs +9 -0
  250. package/esm2020/tree/nested-node.mjs +112 -0
  251. package/esm2020/tree/node.mjs +35 -0
  252. package/esm2020/tree/outlet.mjs +39 -0
  253. package/esm2020/tree/padding.mjs +131 -0
  254. package/esm2020/tree/public-api.mjs +20 -0
  255. package/esm2020/tree/toggle.mjs +50 -0
  256. package/esm2020/tree/tree-errors.mjs +43 -0
  257. package/esm2020/tree/tree-module.mjs +49 -0
  258. package/esm2020/tree/tree.mjs +347 -0
  259. package/esm2020/tree/tree_public_index.mjs +5 -0
  260. package/esm2020/version.mjs +11 -0
  261. package/fesm2015/a11y.mjs +2473 -0
  262. package/fesm2015/a11y.mjs.map +1 -0
  263. package/fesm2015/accordion.mjs +414 -0
  264. package/fesm2015/accordion.mjs.map +1 -0
  265. package/fesm2015/bidi.mjs +194 -0
  266. package/fesm2015/bidi.mjs.map +1 -0
  267. package/fesm2015/cdk.mjs +30 -0
  268. package/fesm2015/cdk.mjs.map +1 -0
  269. package/fesm2015/clipboard.mjs +263 -0
  270. package/fesm2015/clipboard.mjs.map +1 -0
  271. package/fesm2015/coercion.mjs +132 -0
  272. package/fesm2015/coercion.mjs.map +1 -0
  273. package/fesm2015/collections.mjs +519 -0
  274. package/fesm2015/collections.mjs.map +1 -0
  275. package/fesm2015/dialog.mjs +1050 -0
  276. package/fesm2015/dialog.mjs.map +1 -0
  277. package/fesm2015/drag-drop.mjs +3812 -0
  278. package/fesm2015/drag-drop.mjs.map +1 -0
  279. package/fesm2015/keycodes.mjs +167 -0
  280. package/fesm2015/keycodes.mjs.map +1 -0
  281. package/fesm2015/layout.mjs +337 -0
  282. package/fesm2015/layout.mjs.map +1 -0
  283. package/fesm2015/listbox.mjs +1200 -0
  284. package/fesm2015/listbox.mjs.map +1 -0
  285. package/fesm2015/menu.mjs +2719 -0
  286. package/fesm2015/menu.mjs.map +1 -0
  287. package/fesm2015/observers.mjs +326 -0
  288. package/fesm2015/observers.mjs.map +1 -0
  289. package/fesm2015/overlay.mjs +3137 -0
  290. package/fesm2015/overlay.mjs.map +1 -0
  291. package/fesm2015/platform.mjs +385 -0
  292. package/fesm2015/platform.mjs.map +1 -0
  293. package/fesm2015/portal.mjs +691 -0
  294. package/fesm2015/portal.mjs.map +1 -0
  295. package/fesm2015/scrolling.mjs +1558 -0
  296. package/fesm2015/scrolling.mjs.map +1 -0
  297. package/fesm2015/stepper.mjs +989 -0
  298. package/fesm2015/stepper.mjs.map +1 -0
  299. package/fesm2015/table.mjs +2356 -0
  300. package/fesm2015/table.mjs.map +1 -0
  301. package/fesm2015/testing.mjs +833 -0
  302. package/fesm2015/testing.mjs.map +1 -0
  303. package/fesm2015/text-field.mjs +461 -0
  304. package/fesm2015/text-field.mjs.map +1 -0
  305. package/fesm2015/tree.mjs +1303 -0
  306. package/fesm2015/tree.mjs.map +1 -0
  307. package/fesm2020/a11y.mjs +2476 -0
  308. package/fesm2020/a11y.mjs.map +1 -0
  309. package/fesm2020/accordion.mjs +414 -0
  310. package/fesm2020/accordion.mjs.map +1 -0
  311. package/fesm2020/bidi.mjs +192 -0
  312. package/fesm2020/bidi.mjs.map +1 -0
  313. package/fesm2020/cdk.mjs +30 -0
  314. package/fesm2020/cdk.mjs.map +1 -0
  315. package/fesm2020/clipboard.mjs +259 -0
  316. package/fesm2020/clipboard.mjs.map +1 -0
  317. package/fesm2020/coercion.mjs +132 -0
  318. package/fesm2020/coercion.mjs.map +1 -0
  319. package/fesm2020/collections.mjs +535 -0
  320. package/fesm2020/collections.mjs.map +1 -0
  321. package/fesm2020/dialog.mjs +787 -0
  322. package/fesm2020/dialog.mjs.map +1 -0
  323. package/fesm2020/drag-drop.mjs +3808 -0
  324. package/fesm2020/drag-drop.mjs.map +1 -0
  325. package/fesm2020/keycodes.mjs +167 -0
  326. package/fesm2020/keycodes.mjs.map +1 -0
  327. package/fesm2020/layout.mjs +337 -0
  328. package/fesm2020/layout.mjs.map +1 -0
  329. package/fesm2020/listbox.mjs +1164 -0
  330. package/fesm2020/listbox.mjs.map +1 -0
  331. package/fesm2020/menu.mjs +2615 -0
  332. package/fesm2020/menu.mjs.map +1 -0
  333. package/fesm2020/observers.mjs +325 -0
  334. package/fesm2020/observers.mjs.map +1 -0
  335. package/fesm2020/overlay.mjs +3145 -0
  336. package/fesm2020/overlay.mjs.map +1 -0
  337. package/fesm2020/platform.mjs +383 -0
  338. package/fesm2020/platform.mjs.map +1 -0
  339. package/fesm2020/portal.mjs +689 -0
  340. package/fesm2020/portal.mjs.map +1 -0
  341. package/fesm2020/scrolling.mjs +1591 -0
  342. package/fesm2020/scrolling.mjs.map +1 -0
  343. package/fesm2020/stepper.mjs +985 -0
  344. package/fesm2020/stepper.mjs.map +1 -0
  345. package/fesm2020/table.mjs +2348 -0
  346. package/fesm2020/table.mjs.map +1 -0
  347. package/fesm2020/testing.mjs +797 -0
  348. package/fesm2020/testing.mjs.map +1 -0
  349. package/fesm2020/text-field.mjs +459 -0
  350. package/fesm2020/text-field.mjs.map +1 -0
  351. package/fesm2020/tree.mjs +1305 -0
  352. package/fesm2020/tree.mjs.map +1 -0
  353. package/index.d.ts +6 -0
  354. package/keycodes/index.d.ts +249 -0
  355. package/layout/index.d.ts +90 -0
  356. package/listbox/index.d.ts +419 -0
  357. package/menu/index.d.ts +1013 -0
  358. package/observers/index.d.ts +109 -0
  359. package/overlay/_index-deprecated.scss +13 -0
  360. package/overlay/_index.import.scss +13 -0
  361. package/overlay/_index.scss +152 -0
  362. package/overlay/index.d.ts +1343 -0
  363. package/overlay-prebuilt.css +1 -0
  364. package/package.json +232 -0
  365. package/platform/index.d.ts +106 -0
  366. package/portal/index.d.ts +328 -0
  367. package/scrolling/index.d.ts +849 -0
  368. package/stepper/index.d.ts +419 -0
  369. package/table/index.d.ts +1483 -0
  370. package/text-field/_index.import.scss +2 -0
  371. package/text-field/_index.scss +89 -0
  372. package/text-field/index.d.ts +203 -0
  373. package/text-field-prebuilt.css +1 -0
  374. package/tree/index.d.ts +593 -0
@@ -0,0 +1,1212 @@
1
+ import { AfterContentInit } from '@angular/core';
2
+ import { AfterViewInit } from '@angular/core';
3
+ import { BooleanInput } from '@kato-lee/cdk/coercion';
4
+ import { ContentObserver } from '@kato-lee/cdk/observers';
5
+ import { DoCheck } from '@angular/core';
6
+ import { ElementRef } from '@angular/core';
7
+ import { EventEmitter } from '@angular/core';
8
+ import * as i0 from '@angular/core';
9
+ import * as i4 from '@kato-lee/cdk/observers';
10
+ import { InjectionToken } from '@angular/core';
11
+ import { NgZone } from '@angular/core';
12
+ import { Observable } from 'rxjs';
13
+ import { OnChanges } from '@angular/core';
14
+ import { OnDestroy } from '@angular/core';
15
+ import { Platform } from '@kato-lee/cdk/platform';
16
+ import { QueryList } from '@angular/core';
17
+ import { SimpleChanges } from '@angular/core';
18
+ import { Subject } from 'rxjs';
19
+
20
+ export declare class A11yModule {
21
+ constructor(highContrastModeDetector: HighContrastModeDetector);
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<A11yModule, never>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<
24
+ A11yModule,
25
+ [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus],
26
+ [typeof i4.ObserversModule],
27
+ [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus]
28
+ >;
29
+ static ɵinj: i0.ɵɵInjectorDeclaration<A11yModule>;
30
+ }
31
+
32
+ export declare class ActiveDescendantKeyManager<T> extends ListKeyManager<Highlightable & T> {
33
+ /**
34
+ * Sets the active item to the item at the specified index and adds the
35
+ * active styles to the newly active item. Also removes active styles
36
+ * from the previously active item.
37
+ * @param index Index of the item to be set as active.
38
+ */
39
+ setActiveItem(index: number): void;
40
+ /**
41
+ * Sets the active item to the item to the specified one and adds the
42
+ * active styles to the it. Also removes active styles from the
43
+ * previously active item.
44
+ * @param item Item to be set as active.
45
+ */
46
+ setActiveItem(item: T): void;
47
+ }
48
+
49
+ /**
50
+ * Utility that creates visually hidden elements with a message content. Useful for elements that
51
+ * want to use aria-describedby to further describe themselves without adding additional visual
52
+ * content.
53
+ */
54
+ export declare class AriaDescriber implements OnDestroy {
55
+ /**
56
+ * @deprecated To be turned into a required parameter.
57
+ * @breaking-change 14.0.0
58
+ */
59
+ private _platform?;
60
+ private _document;
61
+ /** Map of all registered message elements that have been placed into the document. */
62
+ private _messageRegistry;
63
+ /** Container for all registered messages. */
64
+ private _messagesContainer;
65
+ /** Unique ID for the service. */
66
+ private readonly _id;
67
+ constructor(
68
+ _document: any,
69
+ /**
70
+ * @deprecated To be turned into a required parameter.
71
+ * @breaking-change 14.0.0
72
+ */
73
+ _platform?: Platform | undefined
74
+ );
75
+ /**
76
+ * Adds to the host element an aria-describedby reference to a hidden element that contains
77
+ * the message. If the same message has already been registered, then it will reuse the created
78
+ * message element.
79
+ */
80
+ describe(hostElement: Element, message: string, role?: string): void;
81
+ /**
82
+ * Adds to the host element an aria-describedby reference to an already-existing message element.
83
+ */
84
+ describe(hostElement: Element, message: HTMLElement): void;
85
+ /** Removes the host element's aria-describedby reference to the message. */
86
+ removeDescription(hostElement: Element, message: string, role?: string): void;
87
+ /** Removes the host element's aria-describedby reference to the message element. */
88
+ removeDescription(hostElement: Element, message: HTMLElement): void;
89
+ /** Unregisters all created message elements and removes the message container. */
90
+ ngOnDestroy(): void;
91
+ /**
92
+ * Creates a new element in the visually hidden message container element with the message
93
+ * as its content and adds it to the message registry.
94
+ */
95
+ private _createMessageElement;
96
+ /** Deletes the message element from the global messages container. */
97
+ private _deleteMessageElement;
98
+ /** Creates the global container for all aria-describedby messages. */
99
+ private _createMessagesContainer;
100
+ /** Removes all cdk-describedby messages that are hosted through the element. */
101
+ private _removeCdkDescribedByReferenceIds;
102
+ /**
103
+ * Adds a message reference to the element using aria-describedby and increments the registered
104
+ * message's reference count.
105
+ */
106
+ private _addMessageReference;
107
+ /**
108
+ * Removes a message reference from the element using aria-describedby
109
+ * and decrements the registered message's reference count.
110
+ */
111
+ private _removeMessageReference;
112
+ /** Returns true if the element has been described by the provided message ID. */
113
+ private _isElementDescribedByMessage;
114
+ /** Determines whether a message can be described on a particular element. */
115
+ private _canBeDescribed;
116
+ /** Checks whether a node is an Element node. */
117
+ private _isElementNode;
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<AriaDescriber, never>;
119
+ static ɵprov: i0.ɵɵInjectableDeclaration<AriaDescriber>;
120
+ }
121
+
122
+ /** Possible politeness levels. */
123
+ export declare type AriaLivePoliteness = 'off' | 'polite' | 'assertive';
124
+
125
+ /**
126
+ * Attribute given to each host element that is described by a message element.
127
+ * @deprecated To be turned into a private variable.
128
+ * @breaking-change 14.0.0
129
+ */
130
+ export declare const CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';
131
+
132
+ /**
133
+ * ID prefix used for each created message element.
134
+ * @deprecated To be turned into a private variable.
135
+ * @breaking-change 14.0.0
136
+ */
137
+ export declare const CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';
138
+
139
+ /**
140
+ * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
141
+ * with a wider range of browsers and screen readers.
142
+ */
143
+ export declare class CdkAriaLive implements OnDestroy {
144
+ private _elementRef;
145
+ private _liveAnnouncer;
146
+ private _contentObserver;
147
+ private _ngZone;
148
+ /** The aria-live politeness level to use when announcing messages. */
149
+ get politeness(): AriaLivePoliteness;
150
+ set politeness(value: AriaLivePoliteness);
151
+ private _politeness;
152
+ /** Time in milliseconds after which to clear out the announcer element. */
153
+ duration: number;
154
+ private _previousAnnouncedText?;
155
+ private _subscription;
156
+ constructor(
157
+ _elementRef: ElementRef,
158
+ _liveAnnouncer: LiveAnnouncer,
159
+ _contentObserver: ContentObserver,
160
+ _ngZone: NgZone
161
+ );
162
+ ngOnDestroy(): void;
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkAriaLive, never>;
164
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
165
+ CdkAriaLive,
166
+ '[cdkAriaLive]',
167
+ ['cdkAriaLive'],
168
+ { politeness: 'cdkAriaLive'; duration: 'cdkAriaLiveDuration' },
169
+ {},
170
+ never,
171
+ never,
172
+ false
173
+ >;
174
+ }
175
+
176
+ /**
177
+ * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
178
+ * programmatically) and adds corresponding classes to the element.
179
+ *
180
+ * There are two variants of this directive:
181
+ * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is
182
+ * focused.
183
+ * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.
184
+ */
185
+ export declare class CdkMonitorFocus implements AfterViewInit, OnDestroy {
186
+ private _elementRef;
187
+ private _focusMonitor;
188
+ private _monitorSubscription;
189
+ private _focusOrigin;
190
+ readonly cdkFocusChange: EventEmitter<FocusOrigin>;
191
+ constructor(_elementRef: ElementRef<HTMLElement>, _focusMonitor: FocusMonitor);
192
+ get focusOrigin(): FocusOrigin;
193
+ ngAfterViewInit(): void;
194
+ ngOnDestroy(): void;
195
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMonitorFocus, never>;
196
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
197
+ CdkMonitorFocus,
198
+ '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
199
+ ['cdkMonitorFocus'],
200
+ {},
201
+ { cdkFocusChange: 'cdkFocusChange' },
202
+ never,
203
+ never,
204
+ false
205
+ >;
206
+ }
207
+
208
+ /** Directive for trapping focus within a region. */
209
+ export declare class CdkTrapFocus implements OnDestroy, AfterContentInit, OnChanges, DoCheck {
210
+ private _elementRef;
211
+ private _focusTrapFactory;
212
+ /** Underlying FocusTrap instance. */
213
+ focusTrap: FocusTrap;
214
+ /** Previously focused element to restore focus to upon destroy when using autoCapture. */
215
+ private _previouslyFocusedElement;
216
+ /** Whether the focus trap is active. */
217
+ get enabled(): boolean;
218
+ set enabled(value: BooleanInput);
219
+ /**
220
+ * Whether the directive should automatically move focus into the trapped region upon
221
+ * initialization and return focus to the previous activeElement upon destruction.
222
+ */
223
+ get autoCapture(): boolean;
224
+ set autoCapture(value: BooleanInput);
225
+ private _autoCapture;
226
+ constructor(
227
+ _elementRef: ElementRef<HTMLElement>,
228
+ _focusTrapFactory: FocusTrapFactory,
229
+ /**
230
+ * @deprecated No longer being used. To be removed.
231
+ * @breaking-change 13.0.0
232
+ */
233
+ _document: any
234
+ );
235
+ ngOnDestroy(): void;
236
+ ngAfterContentInit(): void;
237
+ ngDoCheck(): void;
238
+ ngOnChanges(changes: SimpleChanges): void;
239
+ private _captureFocus;
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTrapFocus, never>;
241
+ static ɵdir: i0.ɵɵDirectiveDeclaration<
242
+ CdkTrapFocus,
243
+ '[cdkTrapFocus]',
244
+ ['cdkTrapFocus'],
245
+ { enabled: 'cdkTrapFocus'; autoCapture: 'cdkTrapFocusAutoCapture' },
246
+ {},
247
+ never,
248
+ never,
249
+ false
250
+ >;
251
+ }
252
+
253
+ /**
254
+ * Class that allows for trapping focus within a DOM element.
255
+ *
256
+ * This class uses a strategy pattern that determines how it traps focus.
257
+ * See FocusTrapInertStrategy.
258
+ */
259
+ export declare class ConfigurableFocusTrap extends FocusTrap implements ManagedFocusTrap {
260
+ private _focusTrapManager;
261
+ private _inertStrategy;
262
+ /** Whether the FocusTrap is enabled. */
263
+ get enabled(): boolean;
264
+ set enabled(value: boolean);
265
+ constructor(
266
+ _element: HTMLElement,
267
+ _checker: InteractivityChecker,
268
+ _ngZone: NgZone,
269
+ _document: Document,
270
+ _focusTrapManager: FocusTrapManager,
271
+ _inertStrategy: FocusTrapInertStrategy,
272
+ config: ConfigurableFocusTrapConfig
273
+ );
274
+ /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */
275
+ destroy(): void;
276
+ /** @docs-private Implemented as part of ManagedFocusTrap. */
277
+ _enable(): void;
278
+ /** @docs-private Implemented as part of ManagedFocusTrap. */
279
+ _disable(): void;
280
+ }
281
+
282
+ /**
283
+ * Options for creating a ConfigurableFocusTrap.
284
+ */
285
+ export declare interface ConfigurableFocusTrapConfig {
286
+ /**
287
+ * Whether to defer the creation of FocusTrap elements to be done manually by the user.
288
+ */
289
+ defer: boolean;
290
+ }
291
+
292
+ /** Factory that allows easy instantiation of configurable focus traps. */
293
+ export declare class ConfigurableFocusTrapFactory {
294
+ private _checker;
295
+ private _ngZone;
296
+ private _focusTrapManager;
297
+ private _document;
298
+ private _inertStrategy;
299
+ constructor(
300
+ _checker: InteractivityChecker,
301
+ _ngZone: NgZone,
302
+ _focusTrapManager: FocusTrapManager,
303
+ _document: any,
304
+ _inertStrategy?: FocusTrapInertStrategy
305
+ );
306
+ /**
307
+ * Creates a focus-trapped region around the given element.
308
+ * @param element The element around which focus will be trapped.
309
+ * @param config The focus trap configuration.
310
+ * @returns The created focus trap instance.
311
+ */
312
+ create(element: HTMLElement, config?: ConfigurableFocusTrapConfig): ConfigurableFocusTrap;
313
+ /**
314
+ * @deprecated Pass a config object instead of the `deferCaptureElements` flag.
315
+ * @breaking-change 11.0.0
316
+ */
317
+ create(element: HTMLElement, deferCaptureElements: boolean): ConfigurableFocusTrap;
318
+ static ɵfac: i0.ɵɵFactoryDeclaration<
319
+ ConfigurableFocusTrapFactory,
320
+ [null, null, null, null, { optional: true }]
321
+ >;
322
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurableFocusTrapFactory>;
323
+ }
324
+
325
+ /**
326
+ * Lightweight FocusTrapInertStrategy that adds a document focus event
327
+ * listener to redirect focus back inside the FocusTrap.
328
+ */
329
+ export declare class EventListenerFocusTrapInertStrategy implements FocusTrapInertStrategy {
330
+ /** Focus event handler. */
331
+ private _listener;
332
+ /** Adds a document event listener that keeps focus inside the FocusTrap. */
333
+ preventFocus(focusTrap: ConfigurableFocusTrap): void;
334
+ /** Removes the event listener added in preventFocus. */
335
+ allowFocus(focusTrap: ConfigurableFocusTrap): void;
336
+ /**
337
+ * Refocuses the first element in the FocusTrap if the focus event target was outside
338
+ * the FocusTrap.
339
+ *
340
+ * This is an event listener callback. The event listener is added in runOutsideAngular,
341
+ * so all this code runs outside Angular as well.
342
+ */
343
+ private _trapFocus;
344
+ }
345
+
346
+ /** InjectionToken for FocusMonitorOptions. */
347
+ export declare const FOCUS_MONITOR_DEFAULT_OPTIONS: InjectionToken<FocusMonitorOptions>;
348
+
349
+ /** The injection token used to specify the inert strategy. */
350
+ export declare const FOCUS_TRAP_INERT_STRATEGY: InjectionToken<FocusTrapInertStrategy>;
351
+
352
+ /**
353
+ * This is the interface for focusable items (used by the FocusKeyManager).
354
+ * Each item must know how to focus itself, whether or not it is currently disabled
355
+ * and be able to supply its label.
356
+ */
357
+ export declare interface FocusableOption extends ListKeyManagerOption {
358
+ /** Focuses the `FocusableOption`. */
359
+ focus(origin?: FocusOrigin): void;
360
+ }
361
+
362
+ export declare class FocusKeyManager<T> extends ListKeyManager<FocusableOption & T> {
363
+ private _origin;
364
+ /**
365
+ * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
366
+ * @param origin Focus origin to be used when focusing items.
367
+ */
368
+ setFocusOrigin(origin: FocusOrigin): this;
369
+ /**
370
+ * Sets the active item to the item at the specified
371
+ * index and focuses the newly active item.
372
+ * @param index Index of the item to be set as active.
373
+ */
374
+ setActiveItem(index: number): void;
375
+ /**
376
+ * Sets the active item to the item that is specified and focuses it.
377
+ * @param item Item to be set as active.
378
+ */
379
+ setActiveItem(item: T): void;
380
+ }
381
+
382
+ /** Monitors mouse and keyboard events to determine the cause of focus events. */
383
+ export declare class FocusMonitor implements OnDestroy {
384
+ private _ngZone;
385
+ private _platform;
386
+ private readonly _inputModalityDetector;
387
+ /** The focus origin that the next focus event is a result of. */
388
+ private _origin;
389
+ /** The FocusOrigin of the last focus event tracked by the FocusMonitor. */
390
+ private _lastFocusOrigin;
391
+ /** Whether the window has just been focused. */
392
+ private _windowFocused;
393
+ /** The timeout id of the window focus timeout. */
394
+ private _windowFocusTimeoutId;
395
+ /** The timeout id of the origin clearing timeout. */
396
+ private _originTimeoutId;
397
+ /**
398
+ * Whether the origin was determined via a touch interaction. Necessary as properly attributing
399
+ * focus events to touch interactions requires special logic.
400
+ */
401
+ private _originFromTouchInteraction;
402
+ /** Map of elements being monitored to their info. */
403
+ private _elementInfo;
404
+ /** The number of elements currently being monitored. */
405
+ private _monitoredElementCount;
406
+ /**
407
+ * Keeps track of the root nodes to which we've currently bound a focus/blur handler,
408
+ * as well as the number of monitored elements that they contain. We have to treat focus/blur
409
+ * handlers differently from the rest of the events, because the browser won't emit events
410
+ * to the document when focus moves inside of a shadow root.
411
+ */
412
+ private _rootNodeFocusListenerCount;
413
+ /**
414
+ * The specified detection mode, used for attributing the origin of a focus
415
+ * event.
416
+ */
417
+ private readonly _detectionMode;
418
+ /**
419
+ * Event listener for `focus` events on the window.
420
+ * Needs to be an arrow function in order to preserve the context when it gets bound.
421
+ */
422
+ private _windowFocusListener;
423
+ /** Used to reference correct document/window */
424
+ protected _document?: Document;
425
+ /** Subject for stopping our InputModalityDetector subscription. */
426
+ private readonly _stopInputModalityDetector;
427
+ constructor(
428
+ _ngZone: NgZone,
429
+ _platform: Platform,
430
+ _inputModalityDetector: InputModalityDetector,
431
+ /** @breaking-change 11.0.0 make document required */
432
+ document: any | null,
433
+ options: FocusMonitorOptions | null
434
+ );
435
+ /**
436
+ * Event listener for `focus` and 'blur' events on the document.
437
+ * Needs to be an arrow function in order to preserve the context when it gets bound.
438
+ */
439
+ private _rootNodeFocusAndBlurListener;
440
+ /**
441
+ * Monitors focus on an element and applies appropriate CSS classes.
442
+ * @param element The element to monitor
443
+ * @param checkChildren Whether to count the element as focused when its children are focused.
444
+ * @returns An observable that emits when the focus state of the element changes.
445
+ * When the element is blurred, null will be emitted.
446
+ */
447
+ monitor(element: HTMLElement, checkChildren?: boolean): Observable<FocusOrigin>;
448
+ /**
449
+ * Monitors focus on an element and applies appropriate CSS classes.
450
+ * @param element The element to monitor
451
+ * @param checkChildren Whether to count the element as focused when its children are focused.
452
+ * @returns An observable that emits when the focus state of the element changes.
453
+ * When the element is blurred, null will be emitted.
454
+ */
455
+ monitor(element: ElementRef<HTMLElement>, checkChildren?: boolean): Observable<FocusOrigin>;
456
+ /**
457
+ * Stops monitoring an element and removes all focus classes.
458
+ * @param element The element to stop monitoring.
459
+ */
460
+ stopMonitoring(element: HTMLElement): void;
461
+ /**
462
+ * Stops monitoring an element and removes all focus classes.
463
+ * @param element The element to stop monitoring.
464
+ */
465
+ stopMonitoring(element: ElementRef<HTMLElement>): void;
466
+ /**
467
+ * Focuses the element via the specified focus origin.
468
+ * @param element Element to focus.
469
+ * @param origin Focus origin.
470
+ * @param options Options that can be used to configure the focus behavior.
471
+ */
472
+ focusVia(element: HTMLElement, origin: FocusOrigin, options?: FocusOptions_2): void;
473
+ /**
474
+ * Focuses the element via the specified focus origin.
475
+ * @param element Element to focus.
476
+ * @param origin Focus origin.
477
+ * @param options Options that can be used to configure the focus behavior.
478
+ */
479
+ focusVia(element: ElementRef<HTMLElement>, origin: FocusOrigin, options?: FocusOptions_2): void;
480
+ ngOnDestroy(): void;
481
+ /** Access injected document if available or fallback to global document reference */
482
+ private _getDocument;
483
+ /** Use defaultView of injected document if available or fallback to global window reference */
484
+ private _getWindow;
485
+ private _getFocusOrigin;
486
+ /**
487
+ * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a
488
+ * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we
489
+ * handle a focus event following a touch interaction, we need to determine whether (1) the focus
490
+ * event was directly caused by the touch interaction or (2) the focus event was caused by a
491
+ * subsequent programmatic focus call triggered by the touch interaction.
492
+ * @param focusEventTarget The target of the focus event under examination.
493
+ */
494
+ private _shouldBeAttributedToTouch;
495
+ /**
496
+ * Sets the focus classes on the element based on the given focus origin.
497
+ * @param element The element to update the classes on.
498
+ * @param origin The focus origin.
499
+ */
500
+ private _setClasses;
501
+ /**
502
+ * Updates the focus origin. If we're using immediate detection mode, we schedule an async
503
+ * function to clear the origin at the end of a timeout. The duration of the timeout depends on
504
+ * the origin being set.
505
+ * @param origin The origin to set.
506
+ * @param isFromInteraction Whether we are setting the origin from an interaction event.
507
+ */
508
+ private _setOrigin;
509
+ /**
510
+ * Handles focus events on a registered element.
511
+ * @param event The focus event.
512
+ * @param element The monitored element.
513
+ */
514
+ private _onFocus;
515
+ /**
516
+ * Handles blur events on a registered element.
517
+ * @param event The blur event.
518
+ * @param element The monitored element.
519
+ */
520
+ _onBlur(event: FocusEvent, element: HTMLElement): void;
521
+ private _emitOrigin;
522
+ private _registerGlobalListeners;
523
+ private _removeGlobalListeners;
524
+ /** Updates all the state on an element once its focus origin has changed. */
525
+ private _originChanged;
526
+ /**
527
+ * Collects the `MonitoredElementInfo` of a particular element and
528
+ * all of its ancestors that have enabled `checkChildren`.
529
+ * @param element Element from which to start the search.
530
+ */
531
+ private _getClosestElementsInfo;
532
+ /**
533
+ * Returns whether an interaction is likely to have come from the user clicking the `label` of
534
+ * an `input` or `textarea` in order to focus it.
535
+ * @param focusEventTarget Target currently receiving focus.
536
+ */
537
+ private _isLastInteractionFromInputLabel;
538
+ static ɵfac: i0.ɵɵFactoryDeclaration<
539
+ FocusMonitor,
540
+ [null, null, null, { optional: true }, { optional: true }]
541
+ >;
542
+ static ɵprov: i0.ɵɵInjectableDeclaration<FocusMonitor>;
543
+ }
544
+
545
+ /** Detection mode used for attributing the origin of a focus event. */
546
+ export declare const enum FocusMonitorDetectionMode {
547
+ /**
548
+ * Any mousedown, keydown, or touchstart event that happened in the previous
549
+ * tick or the current tick will be used to assign a focus event's origin (to
550
+ * either mouse, keyboard, or touch). This is the default option.
551
+ */
552
+ IMMEDIATE = 0,
553
+ /**
554
+ * A focus event's origin is always attributed to the last corresponding
555
+ * mousedown, keydown, or touchstart event, no matter how long ago it occurred.
556
+ */
557
+ EVENTUAL = 1,
558
+ }
559
+
560
+ /** Injectable service-level options for FocusMonitor. */
561
+ export declare interface FocusMonitorOptions {
562
+ detectionMode?: FocusMonitorDetectionMode;
563
+ }
564
+
565
+ /**
566
+ * Corresponds to the options that can be passed to the native `focus` event.
567
+ * via https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
568
+ */
569
+ declare interface FocusOptions_2 {
570
+ /** Whether the browser should scroll to the element when it is focused. */
571
+ preventScroll?: boolean;
572
+ }
573
+ export { FocusOptions_2 as FocusOptions };
574
+
575
+ export declare type FocusOrigin = 'touch' | 'mouse' | 'keyboard' | 'program' | null;
576
+
577
+ /**
578
+ * Class that allows for trapping focus within a DOM element.
579
+ *
580
+ * This class currently uses a relatively simple approach to focus trapping.
581
+ * It assumes that the tab order is the same as DOM order, which is not necessarily true.
582
+ * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.
583
+ *
584
+ * @deprecated Use `ConfigurableFocusTrap` instead.
585
+ * @breaking-change 11.0.0
586
+ */
587
+ export declare class FocusTrap {
588
+ readonly _element: HTMLElement;
589
+ private _checker;
590
+ readonly _ngZone: NgZone;
591
+ readonly _document: Document;
592
+ private _startAnchor;
593
+ private _endAnchor;
594
+ private _hasAttached;
595
+ protected startAnchorListener: () => boolean;
596
+ protected endAnchorListener: () => boolean;
597
+ /** Whether the focus trap is active. */
598
+ get enabled(): boolean;
599
+ set enabled(value: boolean);
600
+ protected _enabled: boolean;
601
+ constructor(
602
+ _element: HTMLElement,
603
+ _checker: InteractivityChecker,
604
+ _ngZone: NgZone,
605
+ _document: Document,
606
+ deferAnchors?: boolean
607
+ );
608
+ /** Destroys the focus trap by cleaning up the anchors. */
609
+ destroy(): void;
610
+ /**
611
+ * Inserts the anchors into the DOM. This is usually done automatically
612
+ * in the constructor, but can be deferred for cases like directives with `*ngIf`.
613
+ * @returns Whether the focus trap managed to attach successfully. This may not be the case
614
+ * if the target element isn't currently in the DOM.
615
+ */
616
+ attachAnchors(): boolean;
617
+ /**
618
+ * Waits for the zone to stabilize, then focuses the first tabbable element.
619
+ * @returns Returns a promise that resolves with a boolean, depending
620
+ * on whether focus was moved successfully.
621
+ */
622
+ focusInitialElementWhenReady(options?: FocusOptions): Promise<boolean>;
623
+ /**
624
+ * Waits for the zone to stabilize, then focuses
625
+ * the first tabbable element within the focus trap region.
626
+ * @returns Returns a promise that resolves with a boolean, depending
627
+ * on whether focus was moved successfully.
628
+ */
629
+ focusFirstTabbableElementWhenReady(options?: FocusOptions): Promise<boolean>;
630
+ /**
631
+ * Waits for the zone to stabilize, then focuses
632
+ * the last tabbable element within the focus trap region.
633
+ * @returns Returns a promise that resolves with a boolean, depending
634
+ * on whether focus was moved successfully.
635
+ */
636
+ focusLastTabbableElementWhenReady(options?: FocusOptions): Promise<boolean>;
637
+ /**
638
+ * Get the specified boundary element of the trapped region.
639
+ * @param bound The boundary to get (start or end of trapped region).
640
+ * @returns The boundary element.
641
+ */
642
+ private _getRegionBoundary;
643
+ /**
644
+ * Focuses the element that should be focused when the focus trap is initialized.
645
+ * @returns Whether focus was moved successfully.
646
+ */
647
+ focusInitialElement(options?: FocusOptions): boolean;
648
+ /**
649
+ * Focuses the first tabbable element within the focus trap region.
650
+ * @returns Whether focus was moved successfully.
651
+ */
652
+ focusFirstTabbableElement(options?: FocusOptions): boolean;
653
+ /**
654
+ * Focuses the last tabbable element within the focus trap region.
655
+ * @returns Whether focus was moved successfully.
656
+ */
657
+ focusLastTabbableElement(options?: FocusOptions): boolean;
658
+ /**
659
+ * Checks whether the focus trap has successfully been attached.
660
+ */
661
+ hasAttached(): boolean;
662
+ /** Get the first tabbable element from a DOM subtree (inclusive). */
663
+ private _getFirstTabbableElement;
664
+ /** Get the last tabbable element from a DOM subtree (inclusive). */
665
+ private _getLastTabbableElement;
666
+ /** Creates an anchor element. */
667
+ private _createAnchor;
668
+ /**
669
+ * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.
670
+ * @param isEnabled Whether the focus trap is enabled.
671
+ * @param anchor Anchor on which to toggle the tabindex.
672
+ */
673
+ private _toggleAnchorTabIndex;
674
+ /**
675
+ * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.
676
+ * @param enabled: Whether the anchors should trap Tab.
677
+ */
678
+ protected toggleAnchors(enabled: boolean): void;
679
+ /** Executes a function when the zone is stable. */
680
+ private _executeOnStable;
681
+ }
682
+
683
+ /**
684
+ * Factory that allows easy instantiation of focus traps.
685
+ * @deprecated Use `ConfigurableFocusTrapFactory` instead.
686
+ * @breaking-change 11.0.0
687
+ */
688
+ export declare class FocusTrapFactory {
689
+ private _checker;
690
+ private _ngZone;
691
+ private _document;
692
+ constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any);
693
+ /**
694
+ * Creates a focus-trapped region around the given element.
695
+ * @param element The element around which focus will be trapped.
696
+ * @param deferCaptureElements Defers the creation of focus-capturing elements to be done
697
+ * manually by the user.
698
+ * @returns The created focus trap instance.
699
+ */
700
+ create(element: HTMLElement, deferCaptureElements?: boolean): FocusTrap;
701
+ static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapFactory, never>;
702
+ static ɵprov: i0.ɵɵInjectableDeclaration<FocusTrapFactory>;
703
+ }
704
+
705
+ /**
706
+ * A strategy that dictates how FocusTrap should prevent elements
707
+ * outside of the FocusTrap from being focused.
708
+ */
709
+ export declare interface FocusTrapInertStrategy {
710
+ /** Makes all elements outside focusTrap unfocusable. */
711
+ preventFocus(focusTrap: FocusTrap): void;
712
+ /** Reverts elements made unfocusable by preventFocus to their previous state. */
713
+ allowFocus(focusTrap: FocusTrap): void;
714
+ }
715
+
716
+ /** Injectable that ensures only the most recently enabled FocusTrap is active. */
717
+ declare class FocusTrapManager {
718
+ private _focusTrapStack;
719
+ /**
720
+ * Disables the FocusTrap at the top of the stack, and then pushes
721
+ * the new FocusTrap onto the stack.
722
+ */
723
+ register(focusTrap: ManagedFocusTrap): void;
724
+ /**
725
+ * Removes the FocusTrap from the stack, and activates the
726
+ * FocusTrap that is the new top of the stack.
727
+ */
728
+ deregister(focusTrap: ManagedFocusTrap): void;
729
+ static ɵfac: i0.ɵɵFactoryDeclaration<FocusTrapManager, never>;
730
+ static ɵprov: i0.ɵɵInjectableDeclaration<FocusTrapManager>;
731
+ }
732
+
733
+ /** Set of possible high-contrast mode backgrounds. */
734
+ export declare const enum HighContrastMode {
735
+ NONE = 0,
736
+ BLACK_ON_WHITE = 1,
737
+ WHITE_ON_BLACK = 2,
738
+ }
739
+
740
+ /**
741
+ * Service to determine whether the browser is currently in a high-contrast-mode environment.
742
+ *
743
+ * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode
744
+ * changes the appearance of all applications, including web applications, to dramatically increase
745
+ * contrast.
746
+ *
747
+ * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast
748
+ * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast"
749
+ * browser extension.
750
+ */
751
+ export declare class HighContrastModeDetector implements OnDestroy {
752
+ private _platform;
753
+ /**
754
+ * Figuring out the high contrast mode and adding the body classes can cause
755
+ * some expensive layouts. This flag is used to ensure that we only do it once.
756
+ */
757
+ private _hasCheckedHighContrastMode;
758
+ private _document;
759
+ private _breakpointSubscription;
760
+ constructor(_platform: Platform, document: any);
761
+ /** Gets the current high-contrast-mode for the page. */
762
+ getHighContrastMode(): HighContrastMode;
763
+ ngOnDestroy(): void;
764
+ /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */
765
+ _applyBodyHighContrastModeCssClasses(): void;
766
+ static ɵfac: i0.ɵɵFactoryDeclaration<HighContrastModeDetector, never>;
767
+ static ɵprov: i0.ɵɵInjectableDeclaration<HighContrastModeDetector>;
768
+ }
769
+
770
+ /**
771
+ * This is the interface for highlightable items (used by the ActiveDescendantKeyManager).
772
+ * Each item must know how to style itself as active or inactive and whether or not it is
773
+ * currently disabled.
774
+ */
775
+ export declare interface Highlightable extends ListKeyManagerOption {
776
+ /** Applies the styles for an active item to this item. */
777
+ setActiveStyles(): void;
778
+ /** Applies the styles for an inactive item to this item. */
779
+ setInactiveStyles(): void;
780
+ }
781
+
782
+ declare namespace i1 {
783
+ export { LiveAnnouncer, CdkAriaLive };
784
+ }
785
+
786
+ declare namespace i2 {
787
+ export { FocusTrap, FocusTrapFactory, CdkTrapFocus };
788
+ }
789
+
790
+ declare namespace i3 {
791
+ export {
792
+ FocusOrigin,
793
+ FocusOptions_2 as FocusOptions,
794
+ FocusMonitorDetectionMode,
795
+ FocusMonitorOptions,
796
+ FOCUS_MONITOR_DEFAULT_OPTIONS,
797
+ FocusMonitor,
798
+ CdkMonitorFocus,
799
+ };
800
+ }
801
+
802
+ /**
803
+ * Default options for the InputModalityDetector.
804
+ *
805
+ * Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect
806
+ * keyboard input modality) for two reasons:
807
+ *
808
+ * 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open
809
+ * in new tab', and are thus less representative of actual keyboard interaction.
810
+ * 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but
811
+ * confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore
812
+ * these keys so as to not update the input modality.
813
+ *
814
+ * Note that we do not by default ignore the right Meta key on Safari because it has the same key
815
+ * code as the ContextMenu key on other browsers. When we switch to using event.key, we can
816
+ * distinguish between the two.
817
+ */
818
+ export declare const INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS: InputModalityDetectorOptions;
819
+
820
+ /**
821
+ * Injectable options for the InputModalityDetector. These are shallowly merged with the default
822
+ * options.
823
+ */
824
+ export declare const INPUT_MODALITY_DETECTOR_OPTIONS: InjectionToken<InputModalityDetectorOptions>;
825
+
826
+ /**
827
+ * The input modalities detected by this service. Null is used if the input modality is unknown.
828
+ */
829
+ export declare type InputModality = 'keyboard' | 'mouse' | 'touch' | null;
830
+
831
+ /**
832
+ * Service that detects the user's input modality.
833
+ *
834
+ * This service does not update the input modality when a user navigates with a screen reader
835
+ * (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC
836
+ * cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not
837
+ * fire as expected in these modes) but is also arguably the correct behavior. Navigating with a
838
+ * screen reader is akin to visually scanning a page, and should not be interpreted as actual user
839
+ * input interaction.
840
+ *
841
+ * When a user is not navigating but *interacting* with a screen reader, this service attempts to
842
+ * update the input modality to keyboard, but in general this service's behavior is largely
843
+ * undefined.
844
+ */
845
+ export declare class InputModalityDetector implements OnDestroy {
846
+ private readonly _platform;
847
+ /** Emits whenever an input modality is detected. */
848
+ readonly modalityDetected: Observable<InputModality>;
849
+ /** Emits when the input modality changes. */
850
+ readonly modalityChanged: Observable<InputModality>;
851
+ /** The most recently detected input modality. */
852
+ get mostRecentModality(): InputModality;
853
+ /**
854
+ * The most recently detected input modality event target. Is null if no input modality has been
855
+ * detected or if the associated event target is null for some unknown reason.
856
+ */
857
+ _mostRecentTarget: HTMLElement | null;
858
+ /** The underlying BehaviorSubject that emits whenever an input modality is detected. */
859
+ private readonly _modality;
860
+ /** Options for this InputModalityDetector. */
861
+ private readonly _options;
862
+ /**
863
+ * The timestamp of the last touch input modality. Used to determine whether mousedown events
864
+ * should be attributed to mouse or touch.
865
+ */
866
+ private _lastTouchMs;
867
+ /**
868
+ * Handles keydown events. Must be an arrow function in order to preserve the context when it gets
869
+ * bound.
870
+ */
871
+ private _onKeydown;
872
+ /**
873
+ * Handles mousedown events. Must be an arrow function in order to preserve the context when it
874
+ * gets bound.
875
+ */
876
+ private _onMousedown;
877
+ /**
878
+ * Handles touchstart events. Must be an arrow function in order to preserve the context when it
879
+ * gets bound.
880
+ */
881
+ private _onTouchstart;
882
+ constructor(
883
+ _platform: Platform,
884
+ ngZone: NgZone,
885
+ document: Document,
886
+ options?: InputModalityDetectorOptions
887
+ );
888
+ ngOnDestroy(): void;
889
+ static ɵfac: i0.ɵɵFactoryDeclaration<
890
+ InputModalityDetector,
891
+ [null, null, null, { optional: true }]
892
+ >;
893
+ static ɵprov: i0.ɵɵInjectableDeclaration<InputModalityDetector>;
894
+ }
895
+
896
+ /** Options to configure the behavior of the InputModalityDetector. */
897
+ export declare interface InputModalityDetectorOptions {
898
+ /** Keys to ignore when detecting keyboard input modality. */
899
+ ignoreKeys?: number[];
900
+ }
901
+
902
+ /**
903
+ * Utility for checking the interactivity of an element, such as whether is is focusable or
904
+ * tabbable.
905
+ */
906
+ export declare class InteractivityChecker {
907
+ private _platform;
908
+ constructor(_platform: Platform);
909
+ /**
910
+ * Gets whether an element is disabled.
911
+ *
912
+ * @param element Element to be checked.
913
+ * @returns Whether the element is disabled.
914
+ */
915
+ isDisabled(element: HTMLElement): boolean;
916
+ /**
917
+ * Gets whether an element is visible for the purposes of interactivity.
918
+ *
919
+ * This will capture states like `display: none` and `visibility: hidden`, but not things like
920
+ * being clipped by an `overflow: hidden` parent or being outside the viewport.
921
+ *
922
+ * @returns Whether the element is visible.
923
+ */
924
+ isVisible(element: HTMLElement): boolean;
925
+ /**
926
+ * Gets whether an element can be reached via Tab key.
927
+ * Assumes that the element has already been checked with isFocusable.
928
+ *
929
+ * @param element Element to be checked.
930
+ * @returns Whether the element is tabbable.
931
+ */
932
+ isTabbable(element: HTMLElement): boolean;
933
+ /**
934
+ * Gets whether an element can be focused by the user.
935
+ *
936
+ * @param element Element to be checked.
937
+ * @param config The config object with options to customize this method's behavior
938
+ * @returns Whether the element is focusable.
939
+ */
940
+ isFocusable(element: HTMLElement, config?: IsFocusableConfig): boolean;
941
+ static ɵfac: i0.ɵɵFactoryDeclaration<InteractivityChecker, never>;
942
+ static ɵprov: i0.ɵɵInjectableDeclaration<InteractivityChecker>;
943
+ }
944
+
945
+ /** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */
946
+ export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;
947
+
948
+ /** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */
949
+ export declare function isFakeTouchstartFromScreenReader(event: TouchEvent): boolean;
950
+
951
+ /**
952
+ * Configuration for the isFocusable method.
953
+ */
954
+ export declare class IsFocusableConfig {
955
+ /**
956
+ * Whether to count an element as focusable even if it is not currently visible.
957
+ */
958
+ ignoreVisibility: boolean;
959
+ }
960
+
961
+ /**
962
+ * This class manages keyboard events for selectable lists. If you pass it a query list
963
+ * of items, it will set the active item correctly when arrow events occur.
964
+ */
965
+ export declare class ListKeyManager<T extends ListKeyManagerOption> {
966
+ private _items;
967
+ private _activeItemIndex;
968
+ private _activeItem;
969
+ private _wrap;
970
+ private readonly _letterKeyStream;
971
+ private _typeaheadSubscription;
972
+ private _vertical;
973
+ private _horizontal;
974
+ private _allowedModifierKeys;
975
+ private _homeAndEnd;
976
+ /**
977
+ * Predicate function that can be used to check whether an item should be skipped
978
+ * by the key manager. By default, disabled items are skipped.
979
+ */
980
+ private _skipPredicateFn;
981
+ private _pressedLetters;
982
+ constructor(_items: QueryList<T> | T[]);
983
+ /**
984
+ * Stream that emits any time the TAB key is pressed, so components can react
985
+ * when focus is shifted off of the list.
986
+ */
987
+ readonly tabOut: Subject<void>;
988
+ /** Stream that emits whenever the active item of the list manager changes. */
989
+ readonly change: Subject<number>;
990
+ /**
991
+ * Sets the predicate function that determines which items should be skipped by the
992
+ * list key manager.
993
+ * @param predicate Function that determines whether the given item should be skipped.
994
+ */
995
+ skipPredicate(predicate: (item: T) => boolean): this;
996
+ /**
997
+ * Configures wrapping mode, which determines whether the active item will wrap to
998
+ * the other end of list when there are no more items in the given direction.
999
+ * @param shouldWrap Whether the list should wrap when reaching the end.
1000
+ */
1001
+ withWrap(shouldWrap?: boolean): this;
1002
+ /**
1003
+ * Configures whether the key manager should be able to move the selection vertically.
1004
+ * @param enabled Whether vertical selection should be enabled.
1005
+ */
1006
+ withVerticalOrientation(enabled?: boolean): this;
1007
+ /**
1008
+ * Configures the key manager to move the selection horizontally.
1009
+ * Passing in `null` will disable horizontal movement.
1010
+ * @param direction Direction in which the selection can be moved.
1011
+ */
1012
+ withHorizontalOrientation(direction: 'ltr' | 'rtl' | null): this;
1013
+ /**
1014
+ * Modifier keys which are allowed to be held down and whose default actions will be prevented
1015
+ * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
1016
+ */
1017
+ withAllowedModifierKeys(keys: ListKeyManagerModifierKey[]): this;
1018
+ /**
1019
+ * Turns on typeahead mode which allows users to set the active item by typing.
1020
+ * @param debounceInterval Time to wait after the last keystroke before setting the active item.
1021
+ */
1022
+ withTypeAhead(debounceInterval?: number): this;
1023
+ /**
1024
+ * Configures the key manager to activate the first and last items
1025
+ * respectively when the Home or End key is pressed.
1026
+ * @param enabled Whether pressing the Home or End key activates the first/last item.
1027
+ */
1028
+ withHomeAndEnd(enabled?: boolean): this;
1029
+ /**
1030
+ * Sets the active item to the item at the index specified.
1031
+ * @param index The index of the item to be set as active.
1032
+ */
1033
+ setActiveItem(index: number): void;
1034
+ /**
1035
+ * Sets the active item to the specified item.
1036
+ * @param item The item to be set as active.
1037
+ */
1038
+ setActiveItem(item: T): void;
1039
+ /**
1040
+ * Sets the active item depending on the key event passed in.
1041
+ * @param event Keyboard event to be used for determining which element should be active.
1042
+ */
1043
+ onKeydown(event: KeyboardEvent): void;
1044
+ /** Index of the currently active item. */
1045
+ get activeItemIndex(): number | null;
1046
+ /** The active item. */
1047
+ get activeItem(): T | null;
1048
+ /** Gets whether the user is currently typing into the manager using the typeahead feature. */
1049
+ isTyping(): boolean;
1050
+ /** Sets the active item to the first enabled item in the list. */
1051
+ setFirstItemActive(): void;
1052
+ /** Sets the active item to the last enabled item in the list. */
1053
+ setLastItemActive(): void;
1054
+ /** Sets the active item to the next enabled item in the list. */
1055
+ setNextItemActive(): void;
1056
+ /** Sets the active item to a previous enabled item in the list. */
1057
+ setPreviousItemActive(): void;
1058
+ /**
1059
+ * Allows setting the active without any other effects.
1060
+ * @param index Index of the item to be set as active.
1061
+ */
1062
+ updateActiveItem(index: number): void;
1063
+ /**
1064
+ * Allows setting the active item without any other effects.
1065
+ * @param item Item to be set as active.
1066
+ */
1067
+ updateActiveItem(item: T): void;
1068
+ /**
1069
+ * This method sets the active item, given a list of items and the delta between the
1070
+ * currently active item and the new active item. It will calculate differently
1071
+ * depending on whether wrap mode is turned on.
1072
+ */
1073
+ private _setActiveItemByDelta;
1074
+ /**
1075
+ * Sets the active item properly given "wrap" mode. In other words, it will continue to move
1076
+ * down the list until it finds an item that is not disabled, and it will wrap if it
1077
+ * encounters either end of the list.
1078
+ */
1079
+ private _setActiveInWrapMode;
1080
+ /**
1081
+ * Sets the active item properly given the default mode. In other words, it will
1082
+ * continue to move down the list until it finds an item that is not disabled. If
1083
+ * it encounters either end of the list, it will stop and not wrap.
1084
+ */
1085
+ private _setActiveInDefaultMode;
1086
+ /**
1087
+ * Sets the active item to the first enabled item starting at the index specified. If the
1088
+ * item is disabled, it will move in the fallbackDelta direction until it either
1089
+ * finds an enabled item or encounters the end of the list.
1090
+ */
1091
+ private _setActiveItemByIndex;
1092
+ /** Returns the items as an array. */
1093
+ private _getItemsArray;
1094
+ }
1095
+
1096
+ /** Modifier keys handled by the ListKeyManager. */
1097
+ export declare type ListKeyManagerModifierKey = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';
1098
+
1099
+ /** This interface is for items that can be passed to a ListKeyManager. */
1100
+ export declare interface ListKeyManagerOption {
1101
+ /** Whether the option is disabled. */
1102
+ disabled?: boolean;
1103
+ /** Gets the label for this option. */
1104
+ getLabel?(): string;
1105
+ }
1106
+
1107
+ /** Injection token that can be used to configure the default options for the LiveAnnouncer. */
1108
+ export declare const LIVE_ANNOUNCER_DEFAULT_OPTIONS: InjectionToken<LiveAnnouncerDefaultOptions>;
1109
+
1110
+ export declare const LIVE_ANNOUNCER_ELEMENT_TOKEN: InjectionToken<HTMLElement | null>;
1111
+
1112
+ /** @docs-private */
1113
+ export declare function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY(): null;
1114
+
1115
+ export declare class LiveAnnouncer implements OnDestroy {
1116
+ private _ngZone;
1117
+ private _defaultOptions?;
1118
+ private _liveElement;
1119
+ private _document;
1120
+ private _previousTimeout;
1121
+ private _currentPromise;
1122
+ private _currentResolve;
1123
+ constructor(
1124
+ elementToken: any,
1125
+ _ngZone: NgZone,
1126
+ _document: any,
1127
+ _defaultOptions?: LiveAnnouncerDefaultOptions | undefined
1128
+ );
1129
+ /**
1130
+ * Announces a message to screen readers.
1131
+ * @param message Message to be announced to the screen reader.
1132
+ * @returns Promise that will be resolved when the message is added to the DOM.
1133
+ */
1134
+ announce(message: string): Promise<void>;
1135
+ /**
1136
+ * Announces a message to screen readers.
1137
+ * @param message Message to be announced to the screen reader.
1138
+ * @param politeness The politeness of the announcer element.
1139
+ * @returns Promise that will be resolved when the message is added to the DOM.
1140
+ */
1141
+ announce(message: string, politeness?: AriaLivePoliteness): Promise<void>;
1142
+ /**
1143
+ * Announces a message to screen readers.
1144
+ * @param message Message to be announced to the screen reader.
1145
+ * @param duration Time in milliseconds after which to clear out the announcer element. Note
1146
+ * that this takes effect after the message has been added to the DOM, which can be up to
1147
+ * 100ms after `announce` has been called.
1148
+ * @returns Promise that will be resolved when the message is added to the DOM.
1149
+ */
1150
+ announce(message: string, duration?: number): Promise<void>;
1151
+ /**
1152
+ * Announces a message to screen readers.
1153
+ * @param message Message to be announced to the screen reader.
1154
+ * @param politeness The politeness of the announcer element.
1155
+ * @param duration Time in milliseconds after which to clear out the announcer element. Note
1156
+ * that this takes effect after the message has been added to the DOM, which can be up to
1157
+ * 100ms after `announce` has been called.
1158
+ * @returns Promise that will be resolved when the message is added to the DOM.
1159
+ */
1160
+ announce(message: string, politeness?: AriaLivePoliteness, duration?: number): Promise<void>;
1161
+ /**
1162
+ * Clears the current text from the announcer element. Can be used to prevent
1163
+ * screen readers from reading the text out again while the user is going
1164
+ * through the page landmarks.
1165
+ */
1166
+ clear(): void;
1167
+ ngOnDestroy(): void;
1168
+ private _createLiveElement;
1169
+ static ɵfac: i0.ɵɵFactoryDeclaration<
1170
+ LiveAnnouncer,
1171
+ [{ optional: true }, null, null, { optional: true }]
1172
+ >;
1173
+ static ɵprov: i0.ɵɵInjectableDeclaration<LiveAnnouncer>;
1174
+ }
1175
+
1176
+ /** Object that can be used to configure the default options for the LiveAnnouncer. */
1177
+ export declare interface LiveAnnouncerDefaultOptions {
1178
+ /** Default politeness for the announcements. */
1179
+ politeness?: AriaLivePoliteness;
1180
+ /** Default duration for the announcement messages. */
1181
+ duration?: number;
1182
+ }
1183
+
1184
+ /**
1185
+ * A FocusTrap managed by FocusTrapManager.
1186
+ * Implemented by ConfigurableFocusTrap to avoid circular dependency.
1187
+ */
1188
+ declare interface ManagedFocusTrap {
1189
+ _enable(): void;
1190
+ _disable(): void;
1191
+ focusInitialElementWhenReady(): Promise<boolean>;
1192
+ }
1193
+
1194
+ /**
1195
+ * ID used for the body container where all messages are appended.
1196
+ * @deprecated No longer being used. To be removed.
1197
+ * @breaking-change 14.0.0
1198
+ */
1199
+ export declare const MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';
1200
+
1201
+ /**
1202
+ * Interface used to register message elements and keep a count of how many registrations have
1203
+ * the same message and the reference to the message element used for the `aria-describedby`.
1204
+ */
1205
+ export declare interface RegisteredMessage {
1206
+ /** The element containing the message. */
1207
+ messageElement: Element;
1208
+ /** The number of elements that reference this message element via `aria-describedby`. */
1209
+ referenceCount: number;
1210
+ }
1211
+
1212
+ export {};