@angular/cdk 14.0.0-next.9 → 14.0.0-rc.2

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 (474) hide show
  1. package/a11y/_index.scss +11 -0
  2. package/a11y/index.d.ts +1119 -5
  3. package/a11y-prebuilt.css +1 -1
  4. package/accordion/index.d.ts +108 -6
  5. package/bidi/index.d.ts +77 -5
  6. package/clipboard/index.d.ts +112 -5
  7. package/coercion/index.d.ts +64 -5
  8. package/collections/index.d.ts +348 -5
  9. package/dialog/index.d.ts +410 -0
  10. package/drag-drop/index.d.ts +1456 -5
  11. package/esm2020/a11y/a11y-module.mjs +5 -5
  12. package/esm2020/a11y/aria-describer/aria-describer.mjs +10 -9
  13. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +10 -10
  14. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
  15. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
  16. package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
  17. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +10 -10
  18. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  19. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
  20. package/esm2020/a11y/live-announcer/live-announcer.mjs +7 -7
  21. package/esm2020/accordion/accordion-item.mjs +4 -4
  22. package/esm2020/accordion/accordion-module.mjs +5 -5
  23. package/esm2020/accordion/accordion.mjs +4 -4
  24. package/esm2020/bidi/bidi-module.mjs +5 -5
  25. package/esm2020/bidi/dir.mjs +4 -4
  26. package/esm2020/bidi/directionality.mjs +4 -4
  27. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  28. package/esm2020/clipboard/clipboard.mjs +4 -4
  29. package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
  30. package/esm2020/collections/dispose-view-repeater-strategy.mjs +4 -4
  31. package/esm2020/collections/recycle-view-repeater-strategy.mjs +4 -4
  32. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  33. package/esm2020/dialog/dialog-config.mjs +63 -0
  34. package/esm2020/dialog/dialog-container.mjs +278 -0
  35. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  36. package/esm2020/dialog/dialog-module.mjs +42 -0
  37. package/esm2020/dialog/dialog-ref.mjs +76 -0
  38. package/esm2020/dialog/dialog.mjs +298 -0
  39. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  40. package/esm2020/dialog/index.mjs +9 -0
  41. package/esm2020/dialog/public-api.mjs +14 -0
  42. package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
  43. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  44. package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
  45. package/esm2020/drag-drop/directives/drag.mjs +11 -4
  46. package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
  47. package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
  48. package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
  49. package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
  50. package/esm2020/drag-drop/drag-drop.mjs +4 -4
  51. package/esm2020/drag-drop/drop-list-ref.mjs +23 -23
  52. package/esm2020/layout/breakpoints-observer.mjs +4 -4
  53. package/esm2020/layout/layout-module.mjs +5 -5
  54. package/esm2020/layout/media-matcher.mjs +4 -4
  55. package/esm2020/menu/context-menu-trigger.mjs +212 -0
  56. package/esm2020/menu/index.mjs +9 -0
  57. package/esm2020/menu/menu-aim.mjs +203 -0
  58. package/esm2020/menu/menu-bar.mjs +133 -0
  59. package/esm2020/menu/menu-base.mjs +187 -0
  60. package/esm2020/menu/menu-errors.mjs +22 -0
  61. package/esm2020/menu/menu-group.mjs +30 -0
  62. package/esm2020/menu/menu-interface.mjs +11 -0
  63. package/esm2020/menu/menu-item-checkbox.mjs +49 -0
  64. package/esm2020/menu/menu-item-radio.mjs +71 -0
  65. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  66. package/esm2020/menu/menu-item.mjs +259 -0
  67. package/esm2020/menu/menu-module.mjs +62 -0
  68. package/esm2020/menu/menu-stack.mjs +156 -0
  69. package/esm2020/menu/menu-trigger-base.mjs +107 -0
  70. package/esm2020/menu/menu-trigger.mjs +283 -0
  71. package/esm2020/menu/menu.mjs +134 -0
  72. package/esm2020/menu/menu_public_index.mjs +5 -0
  73. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  74. package/esm2020/menu/public-api.mjs +24 -0
  75. package/esm2020/observers/observe-content.mjs +14 -14
  76. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  77. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
  78. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
  79. package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
  80. package/esm2020/overlay/overlay-container.mjs +4 -4
  81. package/esm2020/overlay/overlay-directives.mjs +7 -7
  82. package/esm2020/overlay/overlay-module.mjs +5 -5
  83. package/esm2020/overlay/overlay-ref.mjs +14 -5
  84. package/esm2020/overlay/overlay.mjs +14 -8
  85. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  86. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  87. package/esm2020/platform/features/scrolling.mjs +4 -4
  88. package/esm2020/platform/platform-module.mjs +5 -5
  89. package/esm2020/platform/platform.mjs +4 -4
  90. package/esm2020/portal/dom-portal-outlet.mjs +6 -2
  91. package/esm2020/portal/portal-directives.mjs +17 -17
  92. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
  93. package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
  94. package/esm2020/scrolling/scrollable.mjs +9 -9
  95. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  96. package/esm2020/scrolling/viewport-ruler.mjs +4 -4
  97. package/esm2020/scrolling/virtual-for-of.mjs +4 -4
  98. package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
  99. package/esm2020/stepper/step-header.mjs +4 -4
  100. package/esm2020/stepper/step-label.mjs +4 -4
  101. package/esm2020/stepper/stepper-button.mjs +7 -7
  102. package/esm2020/stepper/stepper-module.mjs +5 -5
  103. package/esm2020/stepper/stepper.mjs +7 -7
  104. package/esm2020/table/cell.mjs +22 -22
  105. package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
  106. package/esm2020/table/row.mjs +28 -28
  107. package/esm2020/table/table-module.mjs +5 -5
  108. package/esm2020/table/table.mjs +21 -21
  109. package/esm2020/table/text-column.mjs +5 -5
  110. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
  111. package/esm2020/testing/test-element.mjs +1 -1
  112. package/esm2020/text-field/autofill.mjs +7 -7
  113. package/esm2020/text-field/autosize.mjs +4 -4
  114. package/esm2020/text-field/text-field-module.mjs +5 -5
  115. package/esm2020/tree/nested-node.mjs +4 -4
  116. package/esm2020/tree/node.mjs +4 -4
  117. package/esm2020/tree/outlet.mjs +4 -4
  118. package/esm2020/tree/padding.mjs +4 -4
  119. package/esm2020/tree/toggle.mjs +4 -4
  120. package/esm2020/tree/tree-module.mjs +5 -5
  121. package/esm2020/tree/tree.mjs +7 -7
  122. package/esm2020/version.mjs +1 -1
  123. package/fesm2015/a11y.mjs +55 -54
  124. package/fesm2015/a11y.mjs.map +1 -1
  125. package/fesm2015/accordion.mjs +10 -10
  126. package/fesm2015/accordion.mjs.map +1 -1
  127. package/fesm2015/bidi.mjs +10 -10
  128. package/fesm2015/bidi.mjs.map +1 -1
  129. package/fesm2015/cdk.mjs +1 -1
  130. package/fesm2015/cdk.mjs.map +1 -1
  131. package/fesm2015/clipboard.mjs +10 -10
  132. package/fesm2015/clipboard.mjs.map +1 -1
  133. package/fesm2015/collections.mjs +9 -9
  134. package/fesm2015/collections.mjs.map +1 -1
  135. package/fesm2015/dialog.mjs +780 -0
  136. package/fesm2015/dialog.mjs.map +1 -0
  137. package/fesm2015/drag-drop.mjs +57 -50
  138. package/fesm2015/drag-drop.mjs.map +1 -1
  139. package/fesm2015/layout.mjs +10 -10
  140. package/fesm2015/layout.mjs.map +1 -1
  141. package/fesm2015/menu.mjs +1960 -0
  142. package/fesm2015/menu.mjs.map +1 -0
  143. package/fesm2015/observers.mjs +13 -13
  144. package/fesm2015/observers.mjs.map +1 -1
  145. package/fesm2015/overlay.mjs +57 -42
  146. package/fesm2015/overlay.mjs.map +1 -1
  147. package/fesm2015/platform.mjs +10 -10
  148. package/fesm2015/platform.mjs.map +1 -1
  149. package/fesm2015/portal.mjs +21 -17
  150. package/fesm2015/portal.mjs.map +1 -1
  151. package/fesm2015/scrolling.mjs +31 -31
  152. package/fesm2015/scrolling.mjs.map +1 -1
  153. package/fesm2015/stepper.mjs +22 -22
  154. package/fesm2015/stepper.mjs.map +1 -1
  155. package/fesm2015/table.mjs +79 -79
  156. package/fesm2015/table.mjs.map +1 -1
  157. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  158. package/fesm2015/testing.mjs.map +1 -1
  159. package/fesm2015/text-field.mjs +13 -13
  160. package/fesm2015/text-field.mjs.map +1 -1
  161. package/fesm2015/tree.mjs +25 -25
  162. package/fesm2015/tree.mjs.map +1 -1
  163. package/fesm2020/a11y.mjs +55 -54
  164. package/fesm2020/a11y.mjs.map +1 -1
  165. package/fesm2020/accordion.mjs +10 -10
  166. package/fesm2020/accordion.mjs.map +1 -1
  167. package/fesm2020/bidi.mjs +10 -10
  168. package/fesm2020/bidi.mjs.map +1 -1
  169. package/fesm2020/cdk.mjs +1 -1
  170. package/fesm2020/cdk.mjs.map +1 -1
  171. package/fesm2020/clipboard.mjs +10 -10
  172. package/fesm2020/clipboard.mjs.map +1 -1
  173. package/fesm2020/collections.mjs +9 -9
  174. package/fesm2020/collections.mjs.map +1 -1
  175. package/fesm2020/dialog.mjs +784 -0
  176. package/fesm2020/dialog.mjs.map +1 -0
  177. package/fesm2020/drag-drop.mjs +57 -50
  178. package/fesm2020/drag-drop.mjs.map +1 -1
  179. package/fesm2020/layout.mjs +10 -10
  180. package/fesm2020/layout.mjs.map +1 -1
  181. package/fesm2020/menu.mjs +1942 -0
  182. package/fesm2020/menu.mjs.map +1 -0
  183. package/fesm2020/observers.mjs +13 -13
  184. package/fesm2020/observers.mjs.map +1 -1
  185. package/fesm2020/overlay.mjs +57 -42
  186. package/fesm2020/overlay.mjs.map +1 -1
  187. package/fesm2020/platform.mjs +10 -10
  188. package/fesm2020/platform.mjs.map +1 -1
  189. package/fesm2020/portal.mjs +21 -17
  190. package/fesm2020/portal.mjs.map +1 -1
  191. package/fesm2020/scrolling.mjs +31 -31
  192. package/fesm2020/scrolling.mjs.map +1 -1
  193. package/fesm2020/stepper.mjs +22 -22
  194. package/fesm2020/stepper.mjs.map +1 -1
  195. package/fesm2020/table.mjs +79 -79
  196. package/fesm2020/table.mjs.map +1 -1
  197. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  198. package/fesm2020/testing.mjs.map +1 -1
  199. package/fesm2020/text-field.mjs +13 -13
  200. package/fesm2020/text-field.mjs.map +1 -1
  201. package/fesm2020/tree.mjs +25 -25
  202. package/fesm2020/tree.mjs.map +1 -1
  203. package/index.d.ts +6 -8
  204. package/keycodes/index.d.ts +247 -6
  205. package/layout/index.d.ts +91 -8
  206. package/menu/index.d.ts +893 -0
  207. package/observers/index.d.ts +89 -6
  208. package/overlay/_index.scss +4 -0
  209. package/overlay/index.d.ts +1202 -5
  210. package/overlay-prebuilt.css +1 -1
  211. package/package.json +34 -18
  212. package/platform/index.d.ts +104 -6
  213. package/portal/index.d.ts +325 -5
  214. package/schematics/index.d.ts +2 -1
  215. package/schematics/index.js +4 -4
  216. package/schematics/index.mjs +4 -4
  217. package/schematics/ng-add/index.js +1 -1
  218. package/schematics/ng-add/index.mjs +1 -1
  219. package/schematics/ng-generate/drag-drop/schema.json +3 -0
  220. package/schematics/utils/ast/standalone.d.ts +26 -0
  221. package/schematics/utils/ast/standalone.js +191 -0
  222. package/schematics/utils/ast/standalone.mjs +191 -0
  223. package/schematics/utils/ast.js +5 -4
  224. package/schematics/utils/ast.mjs +5 -4
  225. package/schematics/utils/build-component.js +5 -5
  226. package/schematics/utils/build-component.mjs +5 -5
  227. package/schematics/utils/index.d.ts +1 -0
  228. package/schematics/utils/index.js +5 -1
  229. package/schematics/utils/index.mjs +5 -1
  230. package/schematics/utils/schematic-options.js +2 -2
  231. package/schematics/utils/schematic-options.mjs +2 -2
  232. package/scrolling/index.d.ts +647 -6
  233. package/stepper/index.d.ts +328 -6
  234. package/table/index.d.ts +1172 -5
  235. package/testing/index.d.ts +726 -5
  236. package/testing/selenium-webdriver/index.d.ts +134 -8
  237. package/testing/testbed/index.d.ts +161 -8
  238. package/text-field/index.d.ts +175 -6
  239. package/tree/index.d.ts +498 -6
  240. package/a11y/a11y-module.d.ts +0 -12
  241. package/a11y/a11y_public_index.d.ts +0 -4
  242. package/a11y/aria-describer/aria-describer.d.ts +0 -101
  243. package/a11y/aria-describer/aria-reference.d.ts +0 -22
  244. package/a11y/fake-event-detection.d.ts +0 -11
  245. package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
  246. package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
  247. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
  248. package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
  249. package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
  250. package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
  251. package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
  252. package/a11y/focus-trap/focus-trap.d.ts +0 -163
  253. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
  254. package/a11y/input-modality/input-modality-detector.d.ts +0 -99
  255. package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
  256. package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
  257. package/a11y/key-manager/focus-key-manager.d.ts +0 -37
  258. package/a11y/key-manager/list-key-manager.d.ts +0 -152
  259. package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
  260. package/a11y/live-announcer/live-announcer.d.ts +0 -85
  261. package/a11y/package.json +0 -9
  262. package/a11y/public-api.d.ts +0 -25
  263. package/accordion/accordion-item.d.ts +0 -59
  264. package/accordion/accordion-module.d.ts +0 -8
  265. package/accordion/accordion.d.ts +0 -40
  266. package/accordion/accordion_public_index.d.ts +0 -4
  267. package/accordion/package.json +0 -9
  268. package/accordion/public-api.d.ts +0 -10
  269. package/bidi/bidi-module.d.ts +0 -7
  270. package/bidi/bidi_public_index.d.ts +0 -4
  271. package/bidi/dir-document-token.d.ts +0 -26
  272. package/bidi/dir.d.ts +0 -36
  273. package/bidi/directionality.d.ts +0 -26
  274. package/bidi/package.json +0 -9
  275. package/bidi/public-api.d.ts +0 -11
  276. package/clipboard/clipboard-module.d.ts +0 -7
  277. package/clipboard/clipboard.d.ts +0 -28
  278. package/clipboard/clipboard_public_index.d.ts +0 -4
  279. package/clipboard/copy-to-clipboard.d.ts +0 -49
  280. package/clipboard/package.json +0 -9
  281. package/clipboard/pending-copy.d.ts +0 -29
  282. package/clipboard/public-api.d.ts +0 -11
  283. package/coercion/array.d.ts +0 -10
  284. package/coercion/boolean-property.d.ts +0 -14
  285. package/coercion/css-pixel-value.d.ts +0 -9
  286. package/coercion/element.d.ts +0 -13
  287. package/coercion/number-property.d.ts +0 -20
  288. package/coercion/package.json +0 -9
  289. package/coercion/public-api.d.ts +0 -13
  290. package/coercion/string-array.d.ts +0 -25
  291. package/collections/array-data-source.d.ts +0 -16
  292. package/collections/collection-viewer.d.ts +0 -24
  293. package/collections/collections_public_index.d.ts +0 -4
  294. package/collections/data-source.d.ts +0 -30
  295. package/collections/dispose-view-repeater-strategy.d.ts +0 -22
  296. package/collections/package.json +0 -9
  297. package/collections/public-api.d.ts +0 -16
  298. package/collections/recycle-view-repeater-strategy.d.ts +0 -54
  299. package/collections/selection-model.d.ts +0 -95
  300. package/collections/tree-adapter.d.ts +0 -26
  301. package/collections/unique-selection-dispatcher.d.ts +0 -36
  302. package/collections/view-repeater.d.ts +0 -92
  303. package/drag-drop/client-rect.d.ts +0 -38
  304. package/drag-drop/clone-node.d.ts +0 -9
  305. package/drag-drop/directives/assertions.d.ts +0 -13
  306. package/drag-drop/directives/config.d.ts +0 -43
  307. package/drag-drop/directives/drag-handle.d.ts +0 -33
  308. package/drag-drop/directives/drag-placeholder.d.ts +0 -27
  309. package/drag-drop/directives/drag-preview.d.ts +0 -32
  310. package/drag-drop/directives/drag.d.ts +0 -160
  311. package/drag-drop/directives/drop-list-group.d.ts +0 -33
  312. package/drag-drop/directives/drop-list.d.ts +0 -123
  313. package/drag-drop/drag-drop-module.d.ts +0 -13
  314. package/drag-drop/drag-drop-registry.d.ts +0 -89
  315. package/drag-drop/drag-drop.d.ts +0 -36
  316. package/drag-drop/drag-drop_public_index.d.ts +0 -4
  317. package/drag-drop/drag-events.d.ts +0 -124
  318. package/drag-drop/drag-parent.d.ts +0 -15
  319. package/drag-drop/drag-ref.d.ts +0 -448
  320. package/drag-drop/drag-styling.d.ts +0 -42
  321. package/drag-drop/drag-utils.d.ts +0 -32
  322. package/drag-drop/drop-list-ref.d.ts +0 -312
  323. package/drag-drop/package.json +0 -9
  324. package/drag-drop/parent-position-tracker.d.ts +0 -39
  325. package/drag-drop/public-api.d.ts +0 -22
  326. package/drag-drop/transition-duration.d.ts +0 -9
  327. package/keycodes/keycodes.d.ts +0 -126
  328. package/keycodes/keycodes_public_index.d.ts +0 -4
  329. package/keycodes/modifiers.d.ts +0 -14
  330. package/keycodes/package.json +0 -9
  331. package/keycodes/public-api.d.ts +0 -9
  332. package/layout/breakpoints-observer.d.ts +0 -45
  333. package/layout/breakpoints.d.ts +0 -23
  334. package/layout/layout-module.d.ts +0 -6
  335. package/layout/layout_public_index.d.ts +0 -4
  336. package/layout/media-matcher.d.ts +0 -18
  337. package/layout/package.json +0 -9
  338. package/layout/public-api.d.ts +0 -11
  339. package/observers/observe-content.d.ts +0 -87
  340. package/observers/observers_public_index.d.ts +0 -4
  341. package/observers/package.json +0 -9
  342. package/observers/public-api.d.ts +0 -8
  343. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
  344. package/overlay/dispatchers/index.d.ts +0 -9
  345. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
  346. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
  347. package/overlay/fullscreen-overlay-container.d.ts +0 -35
  348. package/overlay/overlay-config.d.ts +0 -47
  349. package/overlay/overlay-container.d.ts +0 -25
  350. package/overlay/overlay-directives.d.ts +0 -148
  351. package/overlay/overlay-module.d.ts +0 -10
  352. package/overlay/overlay-ref.d.ts +0 -144
  353. package/overlay/overlay-reference.d.ts +0 -38
  354. package/overlay/overlay.d.ts +0 -75
  355. package/overlay/overlay_public_index.d.ts +0 -4
  356. package/overlay/package.json +0 -9
  357. package/overlay/position/connected-position.d.ts +0 -102
  358. package/overlay/position/flexible-connected-position-strategy.d.ts +0 -282
  359. package/overlay/position/global-position-strategy.d.ts +0 -99
  360. package/overlay/position/overlay-position-builder.d.ts +0 -32
  361. package/overlay/position/position-strategy.d.ts +0 -19
  362. package/overlay/position/scroll-clip.d.ts +0 -26
  363. package/overlay/public-api.d.ts +0 -23
  364. package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
  365. package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
  366. package/overlay/scroll/index.d.ts +0 -14
  367. package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
  368. package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
  369. package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
  370. package/overlay/scroll/scroll-strategy.d.ts +0 -25
  371. package/platform/features/input-types.d.ts +0 -9
  372. package/platform/features/passive-listeners.d.ts +0 -19
  373. package/platform/features/scrolling.d.ts +0 -32
  374. package/platform/features/shadow-dom.d.ts +0 -18
  375. package/platform/features/test-environment.d.ts +0 -9
  376. package/platform/package.json +0 -9
  377. package/platform/platform-module.d.ts +0 -6
  378. package/platform/platform.d.ts +0 -29
  379. package/platform/platform_public_index.d.ts +0 -4
  380. package/platform/public-api.d.ts +0 -14
  381. package/portal/dom-portal-outlet.d.ts +0 -71
  382. package/portal/package.json +0 -9
  383. package/portal/portal-directives.d.ts +0 -99
  384. package/portal/portal-errors.d.ts +0 -37
  385. package/portal/portal-injector.d.ts +0 -21
  386. package/portal/portal.d.ts +0 -140
  387. package/portal/portal_public_index.d.ts +0 -4
  388. package/portal/public-api.d.ts +0 -11
  389. package/public-api.d.ts +0 -8
  390. package/schematics/utils/vendored-ast-utils/index.d.ts +0 -70
  391. package/schematics/utils/vendored-ast-utils/index.js +0 -480
  392. package/schematics/utils/vendored-ast-utils/index.mjs +0 -480
  393. package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
  394. package/scrolling/package.json +0 -9
  395. package/scrolling/public-api.d.ts +0 -16
  396. package/scrolling/scroll-dispatcher.d.ts +0 -71
  397. package/scrolling/scrollable.d.ts +0 -85
  398. package/scrolling/scrolling-module.d.ts +0 -19
  399. package/scrolling/scrolling_public_index.d.ts +0 -4
  400. package/scrolling/viewport-ruler.d.ts +0 -63
  401. package/scrolling/virtual-for-of.d.ts +0 -117
  402. package/scrolling/virtual-scroll-repeater.d.ts +0 -16
  403. package/scrolling/virtual-scroll-strategy.d.ts +0 -38
  404. package/scrolling/virtual-scroll-viewport.d.ts +0 -147
  405. package/stepper/package.json +0 -9
  406. package/stepper/public-api.d.ts +0 -12
  407. package/stepper/step-header.d.ts +0 -18
  408. package/stepper/step-label.d.ts +0 -15
  409. package/stepper/stepper-button.d.ts +0 -20
  410. package/stepper/stepper-module.d.ts +0 -11
  411. package/stepper/stepper.d.ts +0 -233
  412. package/stepper/stepper_public_index.d.ts +0 -4
  413. package/table/can-stick.d.ts +0 -34
  414. package/table/cell.d.ts +0 -126
  415. package/table/coalesced-style-scheduler.d.ts +0 -46
  416. package/table/package.json +0 -9
  417. package/table/public-api.d.ts +0 -19
  418. package/table/row.d.ts +0 -175
  419. package/table/sticky-position-listener.d.ts +0 -31
  420. package/table/sticky-styler.d.ts +0 -126
  421. package/table/table-errors.d.ts +0 -48
  422. package/table/table-module.d.ts +0 -11
  423. package/table/table.d.ts +0 -494
  424. package/table/table_public_index.d.ts +0 -4
  425. package/table/text-column.d.ts +0 -73
  426. package/table/tokens.d.ts +0 -25
  427. package/testing/change-detection.d.ts +0 -83
  428. package/testing/component-harness.d.ts +0 -426
  429. package/testing/element-dimensions.d.ts +0 -16
  430. package/testing/harness-environment.d.ts +0 -62
  431. package/testing/package.json +0 -9
  432. package/testing/public-api.d.ts +0 -14
  433. package/testing/selenium-webdriver/package.json +0 -9
  434. package/testing/selenium-webdriver/public-api.d.ts +0 -9
  435. package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
  436. package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
  437. package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
  438. package/testing/test-element-errors.d.ts +0 -12
  439. package/testing/test-element.d.ts +0 -135
  440. package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
  441. package/testing/testbed/fake-events/element-focus.d.ts +0 -18
  442. package/testing/testbed/fake-events/event-objects.d.ts +0 -39
  443. package/testing/testbed/fake-events/index.d.ts +0 -11
  444. package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
  445. package/testing/testbed/package.json +0 -9
  446. package/testing/testbed/proxy-zone-types.d.ts +0 -29
  447. package/testing/testbed/public-api.d.ts +0 -9
  448. package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
  449. package/testing/testbed/testbed-harness-environment.d.ts +0 -64
  450. package/testing/testbed/unit-test-element.d.ts +0 -98
  451. package/testing/testbed/zone-types.d.ts +0 -22
  452. package/testing/text-filtering.d.ts +0 -13
  453. package/text-field/autofill.d.ts +0 -66
  454. package/text-field/autosize.d.ts +0 -95
  455. package/text-field/package.json +0 -9
  456. package/text-field/public-api.d.ts +0 -10
  457. package/text-field/text-field-module.d.ts +0 -8
  458. package/text-field/text-field_public_index.d.ts +0 -4
  459. package/tree/control/base-tree-control.d.ts +0 -54
  460. package/tree/control/flat-tree-control.d.ts +0 -34
  461. package/tree/control/nested-tree-control.d.ts +0 -31
  462. package/tree/control/tree-control.d.ts +0 -49
  463. package/tree/nested-node.d.ts +0 -38
  464. package/tree/node.d.ts +0 -40
  465. package/tree/outlet.d.ts +0 -26
  466. package/tree/package.json +0 -9
  467. package/tree/padding.d.ts +0 -60
  468. package/tree/public-api.d.ts +0 -19
  469. package/tree/toggle.d.ts +0 -25
  470. package/tree/tree-errors.d.ts +0 -32
  471. package/tree/tree-module.d.ts +0 -12
  472. package/tree/tree.d.ts +0 -128
  473. package/tree/tree_public_index.d.ts +0 -4
  474. package/version.d.ts +0 -10
@@ -1 +1 @@
1
- .cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
1
+ .cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "14.0.0-next.9",
3
+ "version": "14.0.0-rc.2",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,7 +53,7 @@
53
53
  "default": "./package.json"
54
54
  },
55
55
  "./a11y": {
56
- "types": "./a11y/a11y_public_index.d.ts",
56
+ "types": "./a11y/index.d.ts",
57
57
  "esm2020": "./esm2020/a11y/a11y_public_index.mjs",
58
58
  "es2020": "./fesm2020/a11y.mjs",
59
59
  "es2015": "./fesm2015/a11y.mjs",
@@ -61,7 +61,7 @@
61
61
  "default": "./fesm2020/a11y.mjs"
62
62
  },
63
63
  "./accordion": {
64
- "types": "./accordion/accordion_public_index.d.ts",
64
+ "types": "./accordion/index.d.ts",
65
65
  "esm2020": "./esm2020/accordion/accordion_public_index.mjs",
66
66
  "es2020": "./fesm2020/accordion.mjs",
67
67
  "es2015": "./fesm2015/accordion.mjs",
@@ -69,7 +69,7 @@
69
69
  "default": "./fesm2020/accordion.mjs"
70
70
  },
71
71
  "./bidi": {
72
- "types": "./bidi/bidi_public_index.d.ts",
72
+ "types": "./bidi/index.d.ts",
73
73
  "esm2020": "./esm2020/bidi/bidi_public_index.mjs",
74
74
  "es2020": "./fesm2020/bidi.mjs",
75
75
  "es2015": "./fesm2015/bidi.mjs",
@@ -77,7 +77,7 @@
77
77
  "default": "./fesm2020/bidi.mjs"
78
78
  },
79
79
  "./clipboard": {
80
- "types": "./clipboard/clipboard_public_index.d.ts",
80
+ "types": "./clipboard/index.d.ts",
81
81
  "esm2020": "./esm2020/clipboard/clipboard_public_index.mjs",
82
82
  "es2020": "./fesm2020/clipboard.mjs",
83
83
  "es2015": "./fesm2015/clipboard.mjs",
@@ -93,15 +93,23 @@
93
93
  "default": "./fesm2020/coercion.mjs"
94
94
  },
95
95
  "./collections": {
96
- "types": "./collections/collections_public_index.d.ts",
96
+ "types": "./collections/index.d.ts",
97
97
  "esm2020": "./esm2020/collections/collections_public_index.mjs",
98
98
  "es2020": "./fesm2020/collections.mjs",
99
99
  "es2015": "./fesm2015/collections.mjs",
100
100
  "node": "./fesm2015/collections.mjs",
101
101
  "default": "./fesm2020/collections.mjs"
102
102
  },
103
+ "./dialog": {
104
+ "types": "./dialog/index.d.ts",
105
+ "esm2020": "./esm2020/dialog/dialog_public_index.mjs",
106
+ "es2020": "./fesm2020/dialog.mjs",
107
+ "es2015": "./fesm2015/dialog.mjs",
108
+ "node": "./fesm2015/dialog.mjs",
109
+ "default": "./fesm2020/dialog.mjs"
110
+ },
103
111
  "./drag-drop": {
104
- "types": "./drag-drop/drag-drop_public_index.d.ts",
112
+ "types": "./drag-drop/index.d.ts",
105
113
  "esm2020": "./esm2020/drag-drop/drag-drop_public_index.mjs",
106
114
  "es2020": "./fesm2020/drag-drop.mjs",
107
115
  "es2015": "./fesm2015/drag-drop.mjs",
@@ -109,7 +117,7 @@
109
117
  "default": "./fesm2020/drag-drop.mjs"
110
118
  },
111
119
  "./keycodes": {
112
- "types": "./keycodes/keycodes_public_index.d.ts",
120
+ "types": "./keycodes/index.d.ts",
113
121
  "esm2020": "./esm2020/keycodes/keycodes_public_index.mjs",
114
122
  "es2020": "./fesm2020/keycodes.mjs",
115
123
  "es2015": "./fesm2015/keycodes.mjs",
@@ -117,15 +125,23 @@
117
125
  "default": "./fesm2020/keycodes.mjs"
118
126
  },
119
127
  "./layout": {
120
- "types": "./layout/layout_public_index.d.ts",
128
+ "types": "./layout/index.d.ts",
121
129
  "esm2020": "./esm2020/layout/layout_public_index.mjs",
122
130
  "es2020": "./fesm2020/layout.mjs",
123
131
  "es2015": "./fesm2015/layout.mjs",
124
132
  "node": "./fesm2015/layout.mjs",
125
133
  "default": "./fesm2020/layout.mjs"
126
134
  },
135
+ "./menu": {
136
+ "types": "./menu/index.d.ts",
137
+ "esm2020": "./esm2020/menu/menu_public_index.mjs",
138
+ "es2020": "./fesm2020/menu.mjs",
139
+ "es2015": "./fesm2015/menu.mjs",
140
+ "node": "./fesm2015/menu.mjs",
141
+ "default": "./fesm2020/menu.mjs"
142
+ },
127
143
  "./observers": {
128
- "types": "./observers/observers_public_index.d.ts",
144
+ "types": "./observers/index.d.ts",
129
145
  "esm2020": "./esm2020/observers/observers_public_index.mjs",
130
146
  "es2020": "./fesm2020/observers.mjs",
131
147
  "es2015": "./fesm2015/observers.mjs",
@@ -133,7 +149,7 @@
133
149
  "default": "./fesm2020/observers.mjs"
134
150
  },
135
151
  "./overlay": {
136
- "types": "./overlay/overlay_public_index.d.ts",
152
+ "types": "./overlay/index.d.ts",
137
153
  "esm2020": "./esm2020/overlay/overlay_public_index.mjs",
138
154
  "es2020": "./fesm2020/overlay.mjs",
139
155
  "es2015": "./fesm2015/overlay.mjs",
@@ -141,7 +157,7 @@
141
157
  "default": "./fesm2020/overlay.mjs"
142
158
  },
143
159
  "./platform": {
144
- "types": "./platform/platform_public_index.d.ts",
160
+ "types": "./platform/index.d.ts",
145
161
  "esm2020": "./esm2020/platform/platform_public_index.mjs",
146
162
  "es2020": "./fesm2020/platform.mjs",
147
163
  "es2015": "./fesm2015/platform.mjs",
@@ -149,7 +165,7 @@
149
165
  "default": "./fesm2020/platform.mjs"
150
166
  },
151
167
  "./portal": {
152
- "types": "./portal/portal_public_index.d.ts",
168
+ "types": "./portal/index.d.ts",
153
169
  "esm2020": "./esm2020/portal/portal_public_index.mjs",
154
170
  "es2020": "./fesm2020/portal.mjs",
155
171
  "es2015": "./fesm2015/portal.mjs",
@@ -157,7 +173,7 @@
157
173
  "default": "./fesm2020/portal.mjs"
158
174
  },
159
175
  "./scrolling": {
160
- "types": "./scrolling/scrolling_public_index.d.ts",
176
+ "types": "./scrolling/index.d.ts",
161
177
  "esm2020": "./esm2020/scrolling/scrolling_public_index.mjs",
162
178
  "es2020": "./fesm2020/scrolling.mjs",
163
179
  "es2015": "./fesm2015/scrolling.mjs",
@@ -165,7 +181,7 @@
165
181
  "default": "./fesm2020/scrolling.mjs"
166
182
  },
167
183
  "./stepper": {
168
- "types": "./stepper/stepper_public_index.d.ts",
184
+ "types": "./stepper/index.d.ts",
169
185
  "esm2020": "./esm2020/stepper/stepper_public_index.mjs",
170
186
  "es2020": "./fesm2020/stepper.mjs",
171
187
  "es2015": "./fesm2015/stepper.mjs",
@@ -173,7 +189,7 @@
173
189
  "default": "./fesm2020/stepper.mjs"
174
190
  },
175
191
  "./table": {
176
- "types": "./table/table_public_index.d.ts",
192
+ "types": "./table/index.d.ts",
177
193
  "esm2020": "./esm2020/table/table_public_index.mjs",
178
194
  "es2020": "./fesm2020/table.mjs",
179
195
  "es2015": "./fesm2015/table.mjs",
@@ -205,7 +221,7 @@
205
221
  "default": "./fesm2020/testing/testbed.mjs"
206
222
  },
207
223
  "./text-field": {
208
- "types": "./text-field/text-field_public_index.d.ts",
224
+ "types": "./text-field/index.d.ts",
209
225
  "esm2020": "./esm2020/text-field/text-field_public_index.mjs",
210
226
  "es2020": "./fesm2020/text-field.mjs",
211
227
  "es2015": "./fesm2015/text-field.mjs",
@@ -213,7 +229,7 @@
213
229
  "default": "./fesm2020/text-field.mjs"
214
230
  },
215
231
  "./tree": {
216
- "types": "./tree/tree_public_index.d.ts",
232
+ "types": "./tree/index.d.ts",
217
233
  "esm2020": "./esm2020/tree/tree_public_index.mjs",
218
234
  "es2020": "./fesm2020/tree.mjs",
219
235
  "es2015": "./fesm2015/tree.mjs",
@@ -1,8 +1,106 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ /** Gets the target of an event while accounting for Shadow DOM. */
4
+ export declare function _getEventTarget<T extends EventTarget>(event: Event): T | null;
5
+
1
6
  /**
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
+ * Gets the currently-focused element on the page while
8
+ * also piercing through Shadow DOM boundaries.
7
9
  */
8
- export * from './public-api';
10
+ export declare function _getFocusedElementPierceShadowDom(): HTMLElement | null;
11
+
12
+ /**
13
+ * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
14
+ * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
15
+ */
16
+ export declare function getRtlScrollAxisType(): RtlScrollAxisType;
17
+
18
+ /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */
19
+ export declare function _getShadowRoot(element: HTMLElement): ShadowRoot | null;
20
+
21
+
22
+ /** @returns The input types supported by this browser. */
23
+ export declare function getSupportedInputTypes(): Set<string>;
24
+
25
+
26
+ /** Gets whether the code is currently running in a test environment. */
27
+ export declare function _isTestEnvironment(): boolean;
28
+
29
+ /**
30
+ * Normalizes an `AddEventListener` object to something that can be passed
31
+ * to `addEventListener` on any browser, no matter whether it supports the
32
+ * `options` parameter.
33
+ * @param options Object to be normalized.
34
+ */
35
+ export declare function normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
36
+
37
+ /**
38
+ * Service to detect the current platform by comparing the userAgent strings and
39
+ * checking browser-specific global properties.
40
+ */
41
+ export declare class Platform {
42
+ private _platformId;
43
+ /** Whether the Angular application is being rendered in the browser. */
44
+ isBrowser: boolean;
45
+ /** Whether the current browser is Microsoft Edge. */
46
+ EDGE: boolean;
47
+ /** Whether the current rendering engine is Microsoft Trident. */
48
+ TRIDENT: boolean;
49
+ /** Whether the current rendering engine is Blink. */
50
+ BLINK: boolean;
51
+ /** Whether the current rendering engine is WebKit. */
52
+ WEBKIT: boolean;
53
+ /** Whether the current platform is Apple iOS. */
54
+ IOS: boolean;
55
+ /** Whether the current browser is Firefox. */
56
+ FIREFOX: boolean;
57
+ /** Whether the current platform is Android. */
58
+ ANDROID: boolean;
59
+ /** Whether the current browser is Safari. */
60
+ SAFARI: boolean;
61
+ constructor(_platformId: Object);
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
63
+ static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
64
+ }
65
+
66
+ export declare class PlatformModule {
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformModule, never>;
68
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformModule, never, never, never>;
69
+ static ɵinj: i0.ɵɵInjectorDeclaration<PlatformModule>;
70
+ }
71
+
72
+
73
+ /** The possible ways the browser may handle the horizontal scroll axis in RTL languages. */
74
+ export declare const enum RtlScrollAxisType {
75
+ /**
76
+ * scrollLeft is 0 when scrolled all the way left and (scrollWidth - clientWidth) when scrolled
77
+ * all the way right.
78
+ */
79
+ NORMAL = 0,
80
+ /**
81
+ * scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
82
+ * all the way right.
83
+ */
84
+ NEGATED = 1,
85
+ /**
86
+ * scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
87
+ * all the way right.
88
+ */
89
+ INVERTED = 2
90
+ }
91
+
92
+
93
+ /**
94
+ * Checks whether the user's browser supports passive event listeners.
95
+ * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
96
+ */
97
+ export declare function supportsPassiveEventListeners(): boolean;
98
+
99
+ /** Check whether the browser supports scroll behaviors. */
100
+ export declare function supportsScrollBehavior(): boolean;
101
+
102
+
103
+ /** Checks whether the user's browser support Shadow DOM. */
104
+ export declare function _supportsShadowDom(): boolean;
105
+
106
+ export { }
package/portal/index.d.ts CHANGED
@@ -1,8 +1,328 @@
1
+ import { ApplicationRef } from '@angular/core';
2
+ import { ComponentFactoryResolver } from '@angular/core';
3
+ import { ComponentRef } from '@angular/core';
4
+ import { ElementRef } from '@angular/core';
5
+ import { EmbeddedViewRef } from '@angular/core';
6
+ import { EventEmitter } from '@angular/core';
7
+ import * as i0 from '@angular/core';
8
+ import { Injector } from '@angular/core';
9
+ import { OnDestroy } from '@angular/core';
10
+ import { OnInit } from '@angular/core';
11
+ import { TemplateRef } from '@angular/core';
12
+ import { ViewContainerRef } from '@angular/core';
13
+
1
14
  /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
15
+ * @deprecated Use `BasePortalOutlet` instead.
16
+ * @breaking-change 9.0.0
17
+ */
18
+ export declare abstract class BasePortalHost extends BasePortalOutlet {
19
+ }
20
+
21
+ /**
22
+ * Partial implementation of PortalOutlet that handles attaching
23
+ * ComponentPortal and TemplatePortal.
24
+ */
25
+ export declare abstract class BasePortalOutlet implements PortalOutlet {
26
+ /** The portal currently attached to the host. */
27
+ protected _attachedPortal: Portal<any> | null;
28
+ /** A function that will permanently dispose this host. */
29
+ private _disposeFn;
30
+ /** Whether this host has already been permanently disposed. */
31
+ private _isDisposed;
32
+ /** Whether this host has an attached portal. */
33
+ hasAttached(): boolean;
34
+ attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
35
+ attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
36
+ attach(portal: any): any;
37
+ abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
38
+ abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
39
+ readonly attachDomPortal: null | ((portal: DomPortal) => any);
40
+ /** Detaches a previously attached portal. */
41
+ detach(): void;
42
+ /** Permanently dispose of this portal host. */
43
+ dispose(): void;
44
+ /** @docs-private */
45
+ setDisposeFn(fn: () => void): void;
46
+ private _invokeDisposeFn;
47
+ }
48
+
49
+ /**
50
+ * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
51
+ * the directive instance itself can be attached to a host, enabling declarative use of portals.
52
+ */
53
+ export declare class CdkPortal extends TemplatePortal {
54
+ constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
56
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, false>;
57
+ }
58
+
59
+ /**
60
+ * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
61
+ * directly attached to it, enabling declarative use.
4
62
  *
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
63
+ * Usage:
64
+ * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
65
+ */
66
+ export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
67
+ private _componentFactoryResolver;
68
+ private _viewContainerRef;
69
+ private _document;
70
+ /** Whether the portal component is initialized. */
71
+ private _isInitialized;
72
+ /** Reference to the currently-attached component/view ref. */
73
+ private _attachedRef;
74
+ constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef,
75
+ /**
76
+ * @deprecated `_document` parameter to be made required.
77
+ * @breaking-change 9.0.0
78
+ */
79
+ _document?: any);
80
+ /** Portal associated with the Portal outlet. */
81
+ get portal(): Portal<any> | null;
82
+ set portal(portal: Portal<any> | null | undefined | '');
83
+ /** Emits when a portal is attached to the outlet. */
84
+ readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
85
+ /** Component or view reference that is attached to the portal. */
86
+ get attachedRef(): CdkPortalOutletAttachedRef;
87
+ ngOnInit(): void;
88
+ ngOnDestroy(): void;
89
+ /**
90
+ * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
91
+ *
92
+ * @param portal Portal to be attached to the portal outlet.
93
+ * @returns Reference to the created component.
94
+ */
95
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
96
+ /**
97
+ * Attach the given TemplatePortal to this PortalHost as an embedded View.
98
+ * @param portal Portal to be attached.
99
+ * @returns Reference to the created embedded view.
100
+ */
101
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
102
+ /**
103
+ * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
104
+ * @param portal Portal to be attached.
105
+ * @deprecated To be turned into a method.
106
+ * @breaking-change 10.0.0
107
+ */
108
+ attachDomPortal: (portal: DomPortal) => void;
109
+ /** Gets the root node of the portal outlet. */
110
+ private _getRootNode;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
112
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": "cdkPortalOutlet"; }, { "attached": "attached"; }, never, never, false>;
113
+ }
114
+
115
+ /**
116
+ * Possible attached references to the CdkPortalOutlet.
117
+ */
118
+ export declare type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
119
+
120
+ /**
121
+ * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
122
+ */
123
+ export declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
124
+ /** The type of the component that will be instantiated for attachment. */
125
+ component: ComponentType<T>;
126
+ /**
127
+ * [Optional] Where the attached component should live in Angular's *logical* component tree.
128
+ * This is different from where the component *renders*, which is determined by the PortalOutlet.
129
+ * The origin is necessary when the host is outside of the Angular application context.
130
+ */
131
+ viewContainerRef?: ViewContainerRef | null;
132
+ /** [Optional] Injector used for the instantiation of the component. */
133
+ injector?: Injector | null;
134
+ /**
135
+ * Alternate `ComponentFactoryResolver` to use when resolving the associated component.
136
+ * Defaults to using the resolver from the outlet that the portal is attached to.
137
+ */
138
+ componentFactoryResolver?: ComponentFactoryResolver | null;
139
+ constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, componentFactoryResolver?: ComponentFactoryResolver | null);
140
+ }
141
+
142
+ /** Interface that can be used to generically type a class. */
143
+ export declare interface ComponentType<T> {
144
+ new (...args: any[]): T;
145
+ }
146
+
147
+ /**
148
+ * A `DomPortal` is a portal whose DOM element will be taken from its current position
149
+ * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
150
+ * will be restored to its original position.
151
+ */
152
+ export declare class DomPortal<T = HTMLElement> extends Portal<T> {
153
+ /** DOM node hosting the portal's content. */
154
+ readonly element: T;
155
+ constructor(element: T | ElementRef<T>);
156
+ }
157
+
158
+ /**
159
+ * @deprecated Use `DomPortalOutlet` instead.
160
+ * @breaking-change 9.0.0
161
+ */
162
+ export declare class DomPortalHost extends DomPortalOutlet {
163
+ }
164
+
165
+ /**
166
+ * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
167
+ * application context.
168
+ */
169
+ export declare class DomPortalOutlet extends BasePortalOutlet {
170
+ /** Element into which the content is projected. */
171
+ outletElement: Element;
172
+ private _componentFactoryResolver?;
173
+ private _appRef?;
174
+ private _defaultInjector?;
175
+ private _document;
176
+ /**
177
+ * @param outletElement Element into which the content is projected.
178
+ * @param _componentFactoryResolver Used to resolve the component factory.
179
+ * Only required when attaching component portals.
180
+ * @param _appRef Reference to the application. Only used in component portals when there
181
+ * is no `ViewContainerRef` available.
182
+ * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
183
+ * have one. Only used for component portals.
184
+ * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
185
+ * become a required parameter.
186
+ */
187
+ constructor(
188
+ /** Element into which the content is projected. */
189
+ outletElement: Element, _componentFactoryResolver?: ComponentFactoryResolver | undefined, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined,
190
+ /**
191
+ * @deprecated `_document` Parameter to be made required.
192
+ * @breaking-change 10.0.0
193
+ */
194
+ _document?: any);
195
+ /**
196
+ * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
197
+ * @param portal Portal to be attached
198
+ * @returns Reference to the created component.
199
+ */
200
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
201
+ /**
202
+ * Attaches a template portal to the DOM as an embedded view.
203
+ * @param portal Portal to be attached.
204
+ * @returns Reference to the created embedded view.
205
+ */
206
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
207
+ /**
208
+ * Attaches a DOM portal by transferring its content into the outlet.
209
+ * @param portal Portal to be attached.
210
+ * @deprecated To be turned into a method.
211
+ * @breaking-change 10.0.0
212
+ */
213
+ attachDomPortal: (portal: DomPortal) => void;
214
+ /**
215
+ * Clears out a portal from the DOM.
216
+ */
217
+ dispose(): void;
218
+ /** Gets the root HTMLElement for an instantiated component. */
219
+ private _getComponentRootNode;
220
+ }
221
+
222
+ /**
223
+ * A `Portal` is something that you want to render somewhere else.
224
+ * It can be attach to / detached from a `PortalOutlet`.
225
+ */
226
+ export declare abstract class Portal<T> {
227
+ private _attachedHost;
228
+ /** Attach this portal to a host. */
229
+ attach(host: PortalOutlet): T;
230
+ /** Detach this portal from its host */
231
+ detach(): void;
232
+ /** Whether this portal is attached to a host. */
233
+ get isAttached(): boolean;
234
+ /**
235
+ * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
236
+ * the PortalOutlet when it is performing an `attach()` or `detach()`.
237
+ */
238
+ setAttachedHost(host: PortalOutlet | null): void;
239
+ }
240
+
241
+ /**
242
+ * @deprecated Use `PortalOutlet` instead.
243
+ * @breaking-change 9.0.0
244
+ */
245
+ export declare type PortalHost = PortalOutlet;
246
+
247
+ /**
248
+ * @deprecated Use `CdkPortalOutlet` instead.
249
+ * @breaking-change 9.0.0
250
+ */
251
+ export declare class PortalHostDirective extends CdkPortalOutlet {
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
253
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": "cdkPortalHost"; }, {}, never, never, false>;
254
+ }
255
+
256
+ /**
257
+ * Custom injector to be used when providing custom
258
+ * injection tokens to components inside a portal.
259
+ * @docs-private
260
+ * @deprecated Use `Injector.create` instead.
261
+ * @breaking-change 11.0.0
262
+ */
263
+ export declare class PortalInjector implements Injector {
264
+ private _parentInjector;
265
+ private _customTokens;
266
+ constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
267
+ get(token: any, notFoundValue?: any): any;
268
+ }
269
+
270
+ export declare class PortalModule {
271
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
272
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
273
+ static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
274
+ }
275
+
276
+ /** A `PortalOutlet` is an space that can contain a single `Portal`. */
277
+ export declare interface PortalOutlet {
278
+ /** Attaches a portal to this outlet. */
279
+ attach(portal: Portal<any>): any;
280
+ /** Detaches the currently attached portal from this outlet. */
281
+ detach(): any;
282
+ /** Performs cleanup before the outlet is destroyed. */
283
+ dispose(): void;
284
+ /** Whether there is currently a portal attached to this outlet. */
285
+ hasAttached(): boolean;
286
+ }
287
+
288
+ /**
289
+ * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
290
+ */
291
+ export declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
292
+ /** The embedded template that will be used to instantiate an embedded View in the host. */
293
+ templateRef: TemplateRef<C>;
294
+ /** Reference to the ViewContainer into which the template will be stamped out. */
295
+ viewContainerRef: ViewContainerRef;
296
+ /** Contextual data to be passed in to the embedded view. */
297
+ context?: C | undefined;
298
+ /** The injector to use for the embedded view. */
299
+ injector?: Injector | undefined;
300
+ constructor(
301
+ /** The embedded template that will be used to instantiate an embedded View in the host. */
302
+ templateRef: TemplateRef<C>,
303
+ /** Reference to the ViewContainer into which the template will be stamped out. */
304
+ viewContainerRef: ViewContainerRef,
305
+ /** Contextual data to be passed in to the embedded view. */
306
+ context?: C | undefined,
307
+ /** The injector to use for the embedded view. */
308
+ injector?: Injector | undefined);
309
+ get origin(): ElementRef;
310
+ /**
311
+ * Attach the portal to the provided `PortalOutlet`.
312
+ * When a context is provided it will override the `context` property of the `TemplatePortal`
313
+ * instance.
314
+ */
315
+ attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
316
+ detach(): void;
317
+ }
318
+
319
+ /**
320
+ * @deprecated Use `CdkPortal` instead.
321
+ * @breaking-change 9.0.0
7
322
  */
8
- export * from './public-api';
323
+ export declare class TemplatePortalDirective extends CdkPortal {
324
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
325
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, false>;
326
+ }
327
+
328
+ export { }
@@ -8,6 +8,7 @@
8
8
  export * from './utils';
9
9
  export * from './ng-update/public-api';
10
10
  export * from './update-tool/public-api';
11
- export * from './utils/vendored-ast-utils';
11
+ export * from '@schematics/angular/utility/ast-utils';
12
+ export * from '@schematics/angular/utility/ng-ast-utils';
12
13
  import * as parse5 from 'parse5';
13
14
  export { parse5 };
@@ -25,13 +25,13 @@ exports.parse5 = void 0;
25
25
  __exportStar(require("./utils"), exports);
26
26
  __exportStar(require("./ng-update/public-api"), exports);
27
27
  __exportStar(require("./update-tool/public-api"), exports);
28
- // Re-exported so that Angular Material schematic code can consume the
29
- // vendored "@schematics/angular" AST utils.
30
- __exportStar(require("./utils/vendored-ast-utils"), exports);
28
+ // Re-exported so that Angular Material schematic code can consume the same AST utils as the CDK.
29
+ __exportStar(require("@schematics/angular/utility/ast-utils"), exports);
30
+ __exportStar(require("@schematics/angular/utility/ng-ast-utils"), exports);
31
31
  // Re-export parse5 from the CDK. Material schematics code cannot simply import
32
32
  // "parse5" because it could result in a different version. As long as we import
33
33
  // it from within the CDK, it will always be the correct version that is specified
34
34
  // in the CDK "package.json" as optional dependency.
35
35
  const parse5 = require("parse5");
36
36
  exports.parse5 = parse5;
37
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFSCwwQ0FBd0I7QUFDeEIseURBQXVDO0FBQ3ZDLDJEQUF5QztBQUV6QyxzRUFBc0U7QUFDdEUsNENBQTRDO0FBQzVDLDZEQUEyQztBQUUzQywrRUFBK0U7QUFDL0UsZ0ZBQWdGO0FBQ2hGLGtGQUFrRjtBQUNsRixvREFBb0Q7QUFDcEQsaUNBQWlDO0FBQ3pCLHdCQUFNIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vdXRpbHMnO1xuZXhwb3J0ICogZnJvbSAnLi9uZy11cGRhdGUvcHVibGljLWFwaSc7XG5leHBvcnQgKiBmcm9tICcuL3VwZGF0ZS10b29sL3B1YmxpYy1hcGknO1xuXG4vLyBSZS1leHBvcnRlZCBzbyB0aGF0IEFuZ3VsYXIgTWF0ZXJpYWwgc2NoZW1hdGljIGNvZGUgY2FuIGNvbnN1bWUgdGhlXG4vLyB2ZW5kb3JlZCBcIkBzY2hlbWF0aWNzL2FuZ3VsYXJcIiBBU1QgdXRpbHMuXG5leHBvcnQgKiBmcm9tICcuL3V0aWxzL3ZlbmRvcmVkLWFzdC11dGlscyc7XG5cbi8vIFJlLWV4cG9ydCBwYXJzZTUgZnJvbSB0aGUgQ0RLLiBNYXRlcmlhbCBzY2hlbWF0aWNzIGNvZGUgY2Fubm90IHNpbXBseSBpbXBvcnRcbi8vIFwicGFyc2U1XCIgYmVjYXVzZSBpdCBjb3VsZCByZXN1bHQgaW4gYSBkaWZmZXJlbnQgdmVyc2lvbi4gQXMgbG9uZyBhcyB3ZSBpbXBvcnRcbi8vIGl0IGZyb20gd2l0aGluIHRoZSBDREssIGl0IHdpbGwgYWx3YXlzIGJlIHRoZSBjb3JyZWN0IHZlcnNpb24gdGhhdCBpcyBzcGVjaWZpZWRcbi8vIGluIHRoZSBDREsgXCJwYWNrYWdlLmpzb25cIiBhcyBvcHRpb25hbCBkZXBlbmRlbmN5LlxuaW1wb3J0ICogYXMgcGFyc2U1IGZyb20gJ3BhcnNlNSc7XG5leHBvcnQge3BhcnNlNX07XG4iXX0=
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFSCwwQ0FBd0I7QUFDeEIseURBQXVDO0FBQ3ZDLDJEQUF5QztBQUV6QyxpR0FBaUc7QUFDakcsd0VBQXNEO0FBQ3RELDJFQUF5RDtBQUV6RCwrRUFBK0U7QUFDL0UsZ0ZBQWdGO0FBQ2hGLGtGQUFrRjtBQUNsRixvREFBb0Q7QUFDcEQsaUNBQWlDO0FBQ3pCLHdCQUFNIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vdXRpbHMnO1xuZXhwb3J0ICogZnJvbSAnLi9uZy11cGRhdGUvcHVibGljLWFwaSc7XG5leHBvcnQgKiBmcm9tICcuL3VwZGF0ZS10b29sL3B1YmxpYy1hcGknO1xuXG4vLyBSZS1leHBvcnRlZCBzbyB0aGF0IEFuZ3VsYXIgTWF0ZXJpYWwgc2NoZW1hdGljIGNvZGUgY2FuIGNvbnN1bWUgdGhlIHNhbWUgQVNUIHV0aWxzIGFzIHRoZSBDREsuXG5leHBvcnQgKiBmcm9tICdAc2NoZW1hdGljcy9hbmd1bGFyL3V0aWxpdHkvYXN0LXV0aWxzJztcbmV4cG9ydCAqIGZyb20gJ0BzY2hlbWF0aWNzL2FuZ3VsYXIvdXRpbGl0eS9uZy1hc3QtdXRpbHMnO1xuXG4vLyBSZS1leHBvcnQgcGFyc2U1IGZyb20gdGhlIENESy4gTWF0ZXJpYWwgc2NoZW1hdGljcyBjb2RlIGNhbm5vdCBzaW1wbHkgaW1wb3J0XG4vLyBcInBhcnNlNVwiIGJlY2F1c2UgaXQgY291bGQgcmVzdWx0IGluIGEgZGlmZmVyZW50IHZlcnNpb24uIEFzIGxvbmcgYXMgd2UgaW1wb3J0XG4vLyBpdCBmcm9tIHdpdGhpbiB0aGUgQ0RLLCBpdCB3aWxsIGFsd2F5cyBiZSB0aGUgY29ycmVjdCB2ZXJzaW9uIHRoYXQgaXMgc3BlY2lmaWVkXG4vLyBpbiB0aGUgQ0RLIFwicGFja2FnZS5qc29uXCIgYXMgb3B0aW9uYWwgZGVwZW5kZW5jeS5cbmltcG9ydCAqIGFzIHBhcnNlNSBmcm9tICdwYXJzZTUnO1xuZXhwb3J0IHtwYXJzZTV9O1xuIl19