@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,95 +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 { Subject } from 'rxjs';
9
- /**
10
- * Class to be used to power selecting one or more options from a list.
11
- */
12
- export declare class SelectionModel<T> {
13
- private _multiple;
14
- private _emitChanges;
15
- /** Currently-selected values. */
16
- private _selection;
17
- /** Keeps track of the deselected options that haven't been emitted by the change event. */
18
- private _deselectedToEmit;
19
- /** Keeps track of the selected options that haven't been emitted by the change event. */
20
- private _selectedToEmit;
21
- /** Cache for the array value of the selected items. */
22
- private _selected;
23
- /** Selected values. */
24
- get selected(): T[];
25
- /** Event emitted when the value has changed. */
26
- readonly changed: Subject<SelectionChange<T>>;
27
- constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean);
28
- /**
29
- * Selects a value or an array of values.
30
- */
31
- select(...values: T[]): void;
32
- /**
33
- * Deselects a value or an array of values.
34
- */
35
- deselect(...values: T[]): void;
36
- /**
37
- * Toggles a value between selected and deselected.
38
- */
39
- toggle(value: T): void;
40
- /**
41
- * Clears all of the selected values.
42
- */
43
- clear(): void;
44
- /**
45
- * Determines whether a value is selected.
46
- */
47
- isSelected(value: T): boolean;
48
- /**
49
- * Determines whether the model does not have a value.
50
- */
51
- isEmpty(): boolean;
52
- /**
53
- * Determines whether the model has a value.
54
- */
55
- hasValue(): boolean;
56
- /**
57
- * Sorts the selected values based on a predicate function.
58
- */
59
- sort(predicate?: (a: T, b: T) => number): void;
60
- /**
61
- * Gets whether multiple values can be selected.
62
- */
63
- isMultipleSelection(): boolean;
64
- /** Emits a change event and clears the records of selected and deselected values. */
65
- private _emitChangeEvent;
66
- /** Selects a value. */
67
- private _markSelected;
68
- /** Deselects a value. */
69
- private _unmarkSelected;
70
- /** Clears out the selected values. */
71
- private _unmarkAll;
72
- /**
73
- * Verifies the value assignment and throws an error if the specified value array is
74
- * including multiple values while the selection model is not supporting multiple values.
75
- */
76
- private _verifyValueAssignment;
77
- }
78
- /**
79
- * Event emitted when the value of a MatSelectionModel has changed.
80
- * @docs-private
81
- */
82
- export interface SelectionChange<T> {
83
- /** Model that dispatched the event. */
84
- source: SelectionModel<T>;
85
- /** Options that were added to the model. */
86
- added: T[];
87
- /** Options that were removed from the model. */
88
- removed: T[];
89
- }
90
- /**
91
- * Returns an error that reports that multiple values are passed into a selection model
92
- * with a single value.
93
- * @docs-private
94
- */
95
- export declare function getMultipleValuesInSingleSelectionError(): Error;
@@ -1,26 +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 { SelectionModel } from './selection-model';
9
- /**
10
- * Interface for a class that can flatten hierarchical structured data and re-expand the flattened
11
- * data back into its original structure. Should be used in conjunction with the cdk-tree.
12
- */
13
- export interface TreeDataNodeFlattener<T> {
14
- /** Transforms a set of hierarchical structured data into a flattened data array. */
15
- flattenNodes(structuredData: any[]): T[];
16
- /**
17
- * Expands a flattened array of data into its hierarchical form using the provided expansion
18
- * model.
19
- */
20
- expandFlattenedNodes(nodes: T[], expansionModel: SelectionModel<T>): T[];
21
- /**
22
- * Put node descendants of node in array.
23
- * If `onlyExpandable` is true, then only process expandable descendants.
24
- */
25
- nodeDescendents(node: T, nodes: T[], onlyExpandable: boolean): void;
26
- }
@@ -1,36 +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 { OnDestroy } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
11
- /**
12
- * Class to coordinate unique selection based on name.
13
- * Intended to be consumed as an Angular service.
14
- * This service is needed because native radio change events are only fired on the item currently
15
- * being selected, and we still need to uncheck the previous selection.
16
- *
17
- * This service does not *store* any IDs and names because they may change at any time, so it is
18
- * less error-prone if they are simply passed through when the events occur.
19
- */
20
- export declare class UniqueSelectionDispatcher implements OnDestroy {
21
- private _listeners;
22
- /**
23
- * Notify other items that selection for the given name has been set.
24
- * @param id ID of the item.
25
- * @param name Name of the item.
26
- */
27
- notify(id: string, name: string): void;
28
- /**
29
- * Listen for future changes to item selection.
30
- * @return Function used to deregister listener
31
- */
32
- listen(listener: UniqueSelectionDispatcherListener): () => void;
33
- ngOnDestroy(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
36
- }
@@ -1,92 +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, IterableChangeRecord, IterableChanges, TemplateRef, ViewContainerRef } from '@angular/core';
9
- /**
10
- * The context for an embedded view in the repeater's view container.
11
- *
12
- * @template T The type for the embedded view's $implicit property.
13
- */
14
- export interface _ViewRepeaterItemContext<T> {
15
- $implicit?: T;
16
- }
17
- /**
18
- * The arguments needed to construct an embedded view for an item in a view
19
- * container.
20
- *
21
- * @template C The type for the context passed to each embedded view.
22
- */
23
- export interface _ViewRepeaterItemInsertArgs<C> {
24
- templateRef: TemplateRef<C>;
25
- context?: C;
26
- index?: number;
27
- }
28
- /**
29
- * A factory that derives the embedded view context for an item in a view
30
- * container.
31
- *
32
- * @template T The type for the embedded view's $implicit property.
33
- * @template R The type for the item in each IterableDiffer change record.
34
- * @template C The type for the context passed to each embedded view.
35
- */
36
- export declare type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
37
- /**
38
- * Extracts the value of an item from an {@link IterableChangeRecord}.
39
- *
40
- * @template T The type for the embedded view's $implicit property.
41
- * @template R The type for the item in each IterableDiffer change record.
42
- */
43
- export declare type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
44
- /** Indicates how a view was changed by a {@link _ViewRepeater}. */
45
- export declare const enum _ViewRepeaterOperation {
46
- /** The content of an existing view was replaced with another item. */
47
- REPLACED = 0,
48
- /** A new view was created with `createEmbeddedView`. */
49
- INSERTED = 1,
50
- /** The position of a view changed, but the content remains the same. */
51
- MOVED = 2,
52
- /** A view was detached from the view container. */
53
- REMOVED = 3
54
- }
55
- /**
56
- * Meta data describing the state of a view after it was updated by a
57
- * {@link _ViewRepeater}.
58
- *
59
- * @template R The type for the item in each IterableDiffer change record.
60
- * @template C The type for the context passed to each embedded view.
61
- */
62
- export interface _ViewRepeaterItemChange<R, C> {
63
- /** The view's context after it was changed. */
64
- context?: C;
65
- /** Indicates how the view was changed. */
66
- operation: _ViewRepeaterOperation;
67
- /** The view's corresponding change record. */
68
- record: IterableChangeRecord<R>;
69
- }
70
- /**
71
- * Type for a callback to be executed after a view has changed.
72
- *
73
- * @template R The type for the item in each IterableDiffer change record.
74
- * @template C The type for the context passed to each embedded view.
75
- */
76
- export declare type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
77
- /**
78
- * Describes a strategy for rendering items in a {@link ViewContainerRef}.
79
- *
80
- * @template T The type for the embedded view's $implicit property.
81
- * @template R The type for the item in each IterableDiffer change record.
82
- * @template C The type for the context passed to each embedded view.
83
- */
84
- export interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
85
- applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
86
- detach(): void;
87
- }
88
- /**
89
- * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
90
- * @docs-private
91
- */
92
- export declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
@@ -1,115 +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 { ViewContainerRef, ComponentFactoryResolver, Injector, StaticProvider, Type } from '@angular/core';
9
- import { Direction } from '@angular/cdk/bidi';
10
- import { PositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
11
- import { BasePortalOutlet } from '@angular/cdk/portal';
12
- /** Options for where to set focus to automatically on dialog open */
13
- export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
14
- /** Valid ARIA roles for a dialog. */
15
- export declare type DialogRole = 'dialog' | 'alertdialog';
16
- /** Configuration for opening a modal dialog. */
17
- export declare class DialogConfig<D = unknown, R = unknown, C extends BasePortalOutlet = BasePortalOutlet> {
18
- /**
19
- * Where the attached component should live in Angular's *logical* component tree.
20
- * This affects what is available for injection and the change detection order for the
21
- * component instantiated inside of the dialog. This does not affect where the dialog
22
- * content will be rendered.
23
- */
24
- viewContainerRef?: ViewContainerRef;
25
- /**
26
- * Injector used for the instantiation of the component to be attached. If provided,
27
- * takes precedence over the injector indirectly provided by `ViewContainerRef`.
28
- */
29
- injector?: Injector;
30
- /** ID for the dialog. If omitted, a unique one will be generated. */
31
- id?: string;
32
- /** The ARIA role of the dialog element. */
33
- role?: DialogRole;
34
- /** Optional CSS class or classes applied to the overlay panel. */
35
- panelClass?: string | string[];
36
- /** Whether the dialog has a backdrop. */
37
- hasBackdrop?: boolean;
38
- /** Optional CSS class or classes applied to the overlay backdrop. */
39
- backdropClass?: string | string[];
40
- /** Whether the dialog closes with the escape key or pointer events outside the panel element. */
41
- disableClose?: boolean;
42
- /** Width of the dialog. */
43
- width?: string;
44
- /** Height of the dialog. */
45
- height?: string;
46
- /** Min-width of the dialog. If a number is provided, assumes pixel units. */
47
- minWidth?: number | string;
48
- /** Min-height of the dialog. If a number is provided, assumes pixel units. */
49
- minHeight?: number | string;
50
- /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
51
- maxWidth?: number | string;
52
- /** Max-height of the dialog. If a number is provided, assumes pixel units. */
53
- maxHeight?: number | string;
54
- /** Strategy to use when positioning the dialog. Defaults to centering it on the page. */
55
- positionStrategy?: PositionStrategy;
56
- /** Data being injected into the child component. */
57
- data?: D | null;
58
- /** Layout direction for the dialog's content. */
59
- direction?: Direction;
60
- /** ID of the element that describes the dialog. */
61
- ariaDescribedBy?: string | null;
62
- /** ID of the element that labels the dialog. */
63
- ariaLabelledBy?: string | null;
64
- /** Dialog label applied via `aria-label` */
65
- ariaLabel?: string | null;
66
- /** Whether this a modal dialog. Used to set the `aria-modal` attribute. */
67
- ariaModal?: boolean;
68
- /**
69
- * Where the dialog should focus on open.
70
- * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
71
- * AutoFocusTarget instead.
72
- */
73
- autoFocus?: AutoFocusTarget | string | boolean;
74
- /**
75
- * Whether the dialog should restore focus to the previously-focused element upon closing.
76
- * Has the following behavior based on the type that is passed in:
77
- * - `boolean` - when true, will return focus to the element that was focused before the dialog
78
- * was opened, otherwise won't restore focus at all.
79
- * - `string` - focus will be restored to the first element that matches the CSS selector.
80
- * - `HTMLElement` - focus will be restored to the specific element.
81
- */
82
- restoreFocus?: boolean | string | HTMLElement;
83
- /**
84
- * Scroll strategy to be used for the dialog. This determines how
85
- * the dialog responds to scrolling underneath the panel element.
86
- */
87
- scrollStrategy?: ScrollStrategy;
88
- /**
89
- * Whether the dialog should close when the user navigates backwards or forwards through browser
90
- * history. This does not apply to navigation via anchor element unless using URL-hash based
91
- * routing (`HashLocationStrategy` in the Angular router).
92
- */
93
- closeOnNavigation?: boolean;
94
- /** Alternate `ComponentFactoryResolver` to use when resolving the associated component. */
95
- componentFactoryResolver?: ComponentFactoryResolver;
96
- /**
97
- * Providers that will be exposed to the contents of the dialog. Can also
98
- * be provided as a function in order to generate the providers lazily.
99
- */
100
- providers?: StaticProvider[] | ((dialogRef: R, config: DialogConfig<D, R, C>, container: C) => StaticProvider[]);
101
- /**
102
- * Component into which the dialog content will be rendered. Defaults to `CdkDialogContainer`.
103
- * A configuration object can be passed in to customize the providers that will be exposed
104
- * to the dialog container.
105
- */
106
- container?: Type<C> | {
107
- type: Type<C>;
108
- providers: (config: DialogConfig<D, R, C>) => StaticProvider[];
109
- };
110
- /**
111
- * Context that will be passed to template-based dialogs.
112
- * A function can be passed in to resolve the context lazily.
113
- */
114
- templateContext?: Record<string, any> | (() => Record<string, any>);
115
- }
@@ -1,95 +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 { FocusMonitor, FocusOrigin, FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
9
- import { OverlayRef } from '@angular/cdk/overlay';
10
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';
11
- import { AfterViewInit, ComponentRef, ElementRef, EmbeddedViewRef, NgZone, OnDestroy } from '@angular/core';
12
- import { DialogConfig } from './dialog-config';
13
- import * as i0 from "@angular/core";
14
- export declare function throwDialogContentAlreadyAttachedError(): void;
15
- /**
16
- * Internal component that wraps user-provided dialog content.
17
- * @docs-private
18
- */
19
- export declare class CdkDialogContainer<C extends DialogConfig = DialogConfig> extends BasePortalOutlet implements AfterViewInit, OnDestroy {
20
- protected _elementRef: ElementRef;
21
- protected _focusTrapFactory: FocusTrapFactory;
22
- readonly _config: C;
23
- private _interactivityChecker;
24
- private _ngZone;
25
- private _overlayRef;
26
- private _focusMonitor?;
27
- protected _document: Document;
28
- /** The portal outlet inside of this container into which the dialog content will be loaded. */
29
- _portalOutlet: CdkPortalOutlet;
30
- /** The class that traps and manages focus within the dialog. */
31
- private _focusTrap;
32
- /** Element that was focused before the dialog was opened. Save this to restore upon close. */
33
- private _elementFocusedBeforeDialogWasOpened;
34
- /**
35
- * Type of interaction that led to the dialog being closed. This is used to determine
36
- * whether the focus style will be applied when returning focus to its original location
37
- * after the dialog is closed.
38
- */
39
- _closeInteractionType: FocusOrigin | null;
40
- /** ID of the element that should be considered as the dialog's label. */
41
- _ariaLabelledBy: string | null;
42
- constructor(_elementRef: ElementRef, _focusTrapFactory: FocusTrapFactory, _document: any, _config: C, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, _overlayRef: OverlayRef, _focusMonitor?: FocusMonitor | undefined);
43
- ngAfterViewInit(): void;
44
- /**
45
- * Can be used by child classes to customize the initial focus
46
- * capturing behavior (e.g. if it's tied to an animation).
47
- */
48
- protected _captureInitialFocus(): void;
49
- ngOnDestroy(): void;
50
- /**
51
- * Attach a ComponentPortal as content to this dialog container.
52
- * @param portal Portal to be attached as the dialog content.
53
- */
54
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
55
- /**
56
- * Attach a TemplatePortal as content to this dialog container.
57
- * @param portal Portal to be attached as the dialog content.
58
- */
59
- attachTemplatePortal<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
60
- /**
61
- * Attaches a DOM portal to the dialog container.
62
- * @param portal Portal to be attached.
63
- * @deprecated To be turned into a method.
64
- * @breaking-change 10.0.0
65
- */
66
- attachDomPortal: (portal: DomPortal) => void;
67
- /**
68
- * Focuses the provided element. If the element is not focusable, it will add a tabIndex
69
- * attribute to forcefully focus it. The attribute is removed after focus is moved.
70
- * @param element The element to focus.
71
- */
72
- private _forceFocus;
73
- /**
74
- * Focuses the first element that matches the given selector within the focus trap.
75
- * @param selector The CSS selector for the element to set focus to.
76
- */
77
- private _focusByCssSelector;
78
- /**
79
- * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus
80
- * cannot be moved then focus will go to the dialog container.
81
- */
82
- protected _trapFocus(): void;
83
- /** Restores focus to the element that was focused before the dialog opened. */
84
- private _restoreFocus;
85
- /** Focuses the dialog container. */
86
- private _focusDialogContainer;
87
- /** Returns whether focus is inside the dialog. */
88
- private _containsFocus;
89
- /** Sets up the focus trap. */
90
- private _initializeFocusTrap;
91
- /** Sets up the listener that handles clicks on the dialog backdrop. */
92
- private _handleBackdropClicks;
93
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogContainer<any>, [null, null, { optional: true; }, null, null, null, null, null]>;
94
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer<any>, "cdk-dialog-container", never, {}, {}, never, never, false>;
95
- }
@@ -1,24 +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 { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
10
- import { DialogConfig } from './dialog-config';
11
- /** Injection token for the Dialog's ScrollStrategy. */
12
- export declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
13
- /** Injection token for the Dialog's Data. */
14
- export declare const DIALOG_DATA: InjectionToken<any>;
15
- /** Injection token that can be used to provide default options for the dialog module. */
16
- export declare const DEFAULT_DIALOG_CONFIG: InjectionToken<DialogConfig<unknown, unknown, import("@angular/cdk/portal").BasePortalOutlet>>;
17
- /** @docs-private */
18
- export declare function DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
19
- /** @docs-private */
20
- export declare const DIALOG_SCROLL_STRATEGY_PROVIDER: {
21
- provide: InjectionToken<() => ScrollStrategy>;
22
- deps: (typeof Overlay)[];
23
- useFactory: typeof DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
24
- };
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./dialog-container";
3
- import * as i2 from "@angular/cdk/overlay";
4
- import * as i3 from "@angular/cdk/portal";
5
- import * as i4 from "@angular/cdk/a11y";
6
- export declare class DialogModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.CdkDialogContainer], [typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.A11yModule], [typeof i3.PortalModule, typeof i1.CdkDialogContainer]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
10
- }
@@ -1,64 +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 { OverlayRef } from '@angular/cdk/overlay';
9
- import { Observable } from 'rxjs';
10
- import { DialogConfig } from './dialog-config';
11
- import { FocusOrigin } from '@angular/cdk/a11y';
12
- import { BasePortalOutlet } from '@angular/cdk/portal';
13
- /** Additional options that can be passed in when closing a dialog. */
14
- export interface DialogCloseOptions {
15
- /** Focus original to use when restoring focus. */
16
- focusOrigin?: FocusOrigin;
17
- }
18
- /**
19
- * Reference to a dialog opened via the Dialog service.
20
- */
21
- export declare class DialogRef<R = unknown, C = unknown> {
22
- readonly overlayRef: OverlayRef;
23
- readonly config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>;
24
- /**
25
- * Instance of component opened into the dialog. Will be
26
- * null when the dialog is opened using a `TemplateRef`.
27
- */
28
- readonly componentInstance: C | null;
29
- /** Instance of the container that is rendering out the dialog content. */
30
- readonly containerInstance: BasePortalOutlet & {
31
- _closeInteractionType?: FocusOrigin;
32
- };
33
- /** Whether the user is allowed to close the dialog. */
34
- disableClose: boolean | undefined;
35
- /** Emits when the dialog has been closed. */
36
- readonly closed: Observable<R | undefined>;
37
- /** Emits when the backdrop of the dialog is clicked. */
38
- readonly backdropClick: Observable<MouseEvent>;
39
- /** Emits when on keyboard events within the dialog. */
40
- readonly keydownEvents: Observable<KeyboardEvent>;
41
- /** Emits on pointer events that happen outside of the dialog. */
42
- readonly outsidePointerEvents: Observable<MouseEvent>;
43
- /** Unique ID for the dialog. */
44
- readonly id: string;
45
- constructor(overlayRef: OverlayRef, config: DialogConfig<any, DialogRef<R, C>, BasePortalOutlet>);
46
- /**
47
- * Close the dialog.
48
- * @param result Optional result to return to the dialog opener.
49
- * @param options Additional options to customize the closing behavior.
50
- */
51
- close(result?: R, options?: DialogCloseOptions): void;
52
- /** Updates the position of the dialog based on the current position strategy. */
53
- updatePosition(): this;
54
- /**
55
- * Updates the dialog's width and height.
56
- * @param width New width of the dialog.
57
- * @param height New height of the dialog.
58
- */
59
- updateSize(width?: string | number, height?: string | number): this;
60
- /** Add a CSS class or an array of classes to the overlay pane. */
61
- addPanelClass(classes: string | string[]): this;
62
- /** Remove a CSS class or an array of classes from the overlay pane. */
63
- removePanelClass(classes: string | string[]): this;
64
- }
@@ -1,103 +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 { TemplateRef, Injector, OnDestroy } from '@angular/core';
9
- import { Observable, Subject } from 'rxjs';
10
- import { DialogRef } from './dialog-ref';
11
- import { DialogConfig } from './dialog-config';
12
- import { ComponentType, Overlay, OverlayContainer } from '@angular/cdk/overlay';
13
- import * as i0 from "@angular/core";
14
- export declare class Dialog implements OnDestroy {
15
- private _overlay;
16
- private _injector;
17
- private _defaultOptions;
18
- private _parentDialog;
19
- private _overlayContainer;
20
- private _openDialogsAtThisLevel;
21
- private readonly _afterAllClosedAtThisLevel;
22
- private readonly _afterOpenedAtThisLevel;
23
- private _ariaHiddenElements;
24
- private _scrollStrategy;
25
- /** Keeps track of the currently-open dialogs. */
26
- get openDialogs(): readonly DialogRef<any, any>[];
27
- /** Stream that emits when a dialog has been opened. */
28
- get afterOpened(): Subject<DialogRef<any, any>>;
29
- /**
30
- * Stream that emits when all open dialog have finished closing.
31
- * Will emit on subscribe if there are no open dialogs to begin with.
32
- */
33
- readonly afterAllClosed: Observable<void>;
34
- constructor(_overlay: Overlay, _injector: Injector, _defaultOptions: DialogConfig, _parentDialog: Dialog, _overlayContainer: OverlayContainer, scrollStrategy: any);
35
- /**
36
- * Opens a modal dialog containing the given component.
37
- * @param component Type of the component to load into the dialog.
38
- * @param config Extra configuration options.
39
- * @returns Reference to the newly-opened dialog.
40
- */
41
- open<R = unknown, D = unknown, C = unknown>(component: ComponentType<C>, config?: DialogConfig<D, DialogRef<R, C>>): DialogRef<R, C>;
42
- /**
43
- * Opens a modal dialog containing the given template.
44
- * @param template TemplateRef to instantiate as the dialog content.
45
- * @param config Extra configuration options.
46
- * @returns Reference to the newly-opened dialog.
47
- */
48
- open<R = unknown, D = unknown, C = unknown>(template: TemplateRef<C>, config?: DialogConfig<D, DialogRef<R, C>>): DialogRef<R, C>;
49
- open<R = unknown, D = unknown, C = unknown>(componentOrTemplateRef: ComponentType<C> | TemplateRef<C>, config?: DialogConfig<D, DialogRef<R, C>>): DialogRef<R, C>;
50
- /**
51
- * Closes all of the currently-open dialogs.
52
- */
53
- closeAll(): void;
54
- /**
55
- * Finds an open dialog by its id.
56
- * @param id ID to use when looking up the dialog.
57
- */
58
- getDialogById<R, C>(id: string): DialogRef<R, C> | undefined;
59
- ngOnDestroy(): void;
60
- /**
61
- * Creates an overlay config from a dialog config.
62
- * @param config The dialog configuration.
63
- * @returns The overlay configuration.
64
- */
65
- private _getOverlayConfig;
66
- /**
67
- * Attaches a dialog container to a dialog's already-created overlay.
68
- * @param overlay Reference to the dialog's underlying overlay.
69
- * @param config The dialog configuration.
70
- * @returns A promise resolving to a ComponentRef for the attached container.
71
- */
72
- private _attachContainer;
73
- /**
74
- * Attaches the user-provided component to the already-created dialog container.
75
- * @param componentOrTemplateRef The type of component being loaded into the dialog,
76
- * or a TemplateRef to instantiate as the content.
77
- * @param dialogRef Reference to the dialog being opened.
78
- * @param dialogContainer Component that is going to wrap the dialog content.
79
- * @param config Configuration used to open the dialog.
80
- */
81
- private _attachDialogContent;
82
- /**
83
- * Creates a custom injector to be used inside the dialog. This allows a component loaded inside
84
- * of a dialog to close itself and, optionally, to return a value.
85
- * @param config Config object that is used to construct the dialog.
86
- * @param dialogRef Reference to the dialog being opened.
87
- * @param dialogContainer Component that is going to wrap the dialog content.
88
- * @returns The custom injector that can be used inside the dialog.
89
- */
90
- private _createInjector;
91
- /**
92
- * Removes a dialog from the array of open dialogs.
93
- * @param dialogRef Dialog to be removed.
94
- */
95
- private _removeOpenDialog;
96
- /** Hides all of the content that isn't an overlay from assistive technology. */
97
- private _hideNonDialogContentFromAssistiveTechnology;
98
- /** Closes all of the dialogs in an array. */
99
- private _closeDialogs;
100
- private _getAfterAllClosed;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, [null, null, { optional: true; }, { optional: true; skipSelf: true; }, null, null]>;
102
- static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
103
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';