@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,98 +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 { ElementDimensions, ModifierKeys, TestElement, TestKey, TextOptions, EventData } from '@angular/cdk/testing';
9
- /** A `TestElement` implementation for unit tests. */
10
- export declare class UnitTestElement implements TestElement {
11
- readonly element: Element;
12
- private _stabilize;
13
- constructor(element: Element, _stabilize: () => Promise<void>);
14
- /** Blur the element. */
15
- blur(): Promise<void>;
16
- /** Clear the element's input (for input and textarea elements only). */
17
- clear(): Promise<void>;
18
- /**
19
- * Click the element at the default location for the current environment. If you need to guarantee
20
- * the element is clicked at a specific location, consider using `click('center')` or
21
- * `click(x, y)` instead.
22
- */
23
- click(modifiers?: ModifierKeys): Promise<void>;
24
- /** Click the element at the element's center. */
25
- click(location: 'center', modifiers?: ModifierKeys): Promise<void>;
26
- /**
27
- * Click the element at the specified coordinates relative to the top-left of the element.
28
- * @param relativeX Coordinate within the element, along the X-axis at which to click.
29
- * @param relativeY Coordinate within the element, along the Y-axis at which to click.
30
- * @param modifiers Modifier keys held while clicking
31
- */
32
- click(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
33
- /**
34
- * Right clicks on the element at the specified coordinates relative to the top-left of it.
35
- * @param relativeX Coordinate within the element, along the X-axis at which to click.
36
- * @param relativeY Coordinate within the element, along the Y-axis at which to click.
37
- * @param modifiers Modifier keys held while clicking
38
- */
39
- rightClick(relativeX: number, relativeY: number, modifiers?: ModifierKeys): Promise<void>;
40
- /** Focus the element. */
41
- focus(): Promise<void>;
42
- /** Get the computed value of the given CSS property for the element. */
43
- getCssValue(property: string): Promise<string>;
44
- /** Hovers the mouse over the element. */
45
- hover(): Promise<void>;
46
- /** Moves the mouse away from the element. */
47
- mouseAway(): Promise<void>;
48
- /**
49
- * Sends the given string to the input as a series of key presses. Also fires input events
50
- * and attempts to add the string to the Element's value. Note that this cannot
51
- * reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.
52
- */
53
- sendKeys(...keys: (string | TestKey)[]): Promise<void>;
54
- /**
55
- * Sends the given string to the input as a series of key presses. Also fires input events
56
- * and attempts to add the string to the Element's value.
57
- */
58
- sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
59
- /**
60
- * Gets the text from the element.
61
- * @param options Options that affect what text is included.
62
- */
63
- text(options?: TextOptions): Promise<string>;
64
- /** Gets the value for the given attribute from the element. */
65
- getAttribute(name: string): Promise<string | null>;
66
- /** Checks whether the element has the given class. */
67
- hasClass(name: string): Promise<boolean>;
68
- /** Gets the dimensions of the element. */
69
- getDimensions(): Promise<ElementDimensions>;
70
- /** Gets the value of a property of an element. */
71
- getProperty<T = any>(name: string): Promise<T>;
72
- /** Sets the value of a property of an input. */
73
- setInputValue(value: string): Promise<void>;
74
- /** Selects the options at the specified indexes inside of a native `select` element. */
75
- selectOptions(...optionIndexes: number[]): Promise<void>;
76
- /** Checks whether this element matches the given selector. */
77
- matchesSelector(selector: string): Promise<boolean>;
78
- /** Checks whether the element is focused. */
79
- isFocused(): Promise<boolean>;
80
- /**
81
- * Dispatches an event with a particular name.
82
- * @param name Name of the event to be dispatched.
83
- */
84
- dispatchEvent(name: string, data?: Record<string, EventData>): Promise<void>;
85
- /**
86
- * Dispatches a pointer event on the current element if the browser supports it.
87
- * @param name Name of the pointer event to be dispatched.
88
- * @param clientX Coordinate of the user's pointer along the X axis.
89
- * @param clientY Coordinate of the user's pointer along the Y axis.
90
- * @param button Mouse button that should be pressed when dispatching the event.
91
- */
92
- private _dispatchPointerEventIfSupported;
93
- /**
94
- * Dispatches all the events that are part of a mouse event sequence
95
- * and then emits a given primary event at the end, if speciifed.
96
- */
97
- private _dispatchMouseEventSequence;
98
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
-
9
- /*
10
- * Type definitions for "zone.js". We cannot reference the official types
11
- * using a triple-slash types directive because the types would bring in
12
- * the NodeJS types into the compilation unit. This would cause unexpected
13
- * type checking failures. We just create minimal type definitions for Zone
14
- * here and use these for our interceptor logic.
15
- */
16
-
17
- declare interface Zone {
18
- current: any;
19
- }
20
- declare const Zone: Zone | undefined;
21
- declare type ZoneDelegate = Object;
22
- declare type HasTaskState = {microTask: boolean; macroTask: boolean};
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /**
9
- * Gets text of element excluding certain selectors within the element.
10
- * @param element Element to get text from,
11
- * @param excludeSelector Selector identifying which elements to exclude,
12
- */
13
- export declare function _getTextWithExcludedElements(element: Element, excludeSelector: string): string;
@@ -1,66 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Platform } from '@angular/cdk/platform';
9
- import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
10
- import { Observable } from 'rxjs';
11
- import * as i0 from "@angular/core";
12
- /** An event that is emitted when the autofill state of an input changes. */
13
- export declare type AutofillEvent = {
14
- /** The element whose autofill state changes. */
15
- target: Element;
16
- /** Whether the element is currently autofilled. */
17
- isAutofilled: boolean;
18
- };
19
- /**
20
- * An injectable service that can be used to monitor the autofill state of an input.
21
- * Based on the following blog post:
22
- * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
23
- */
24
- export declare class AutofillMonitor implements OnDestroy {
25
- private _platform;
26
- private _ngZone;
27
- private _monitoredElements;
28
- constructor(_platform: Platform, _ngZone: NgZone);
29
- /**
30
- * Monitor for changes in the autofill state of the given input element.
31
- * @param element The element to monitor.
32
- * @return A stream of autofill state changes.
33
- */
34
- monitor(element: Element): Observable<AutofillEvent>;
35
- /**
36
- * Monitor for changes in the autofill state of the given input element.
37
- * @param element The element to monitor.
38
- * @return A stream of autofill state changes.
39
- */
40
- monitor(element: ElementRef<Element>): Observable<AutofillEvent>;
41
- /**
42
- * Stop monitoring the autofill state of the given input element.
43
- * @param element The element to stop monitoring.
44
- */
45
- stopMonitoring(element: Element): void;
46
- /**
47
- * Stop monitoring the autofill state of the given input element.
48
- * @param element The element to stop monitoring.
49
- */
50
- stopMonitoring(element: ElementRef<Element>): void;
51
- ngOnDestroy(): void;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<AutofillMonitor, never>;
53
- static ɵprov: i0.ɵɵInjectableDeclaration<AutofillMonitor>;
54
- }
55
- /** A directive that can be used to monitor the autofill state of an input. */
56
- export declare class CdkAutofill implements OnDestroy, OnInit {
57
- private _elementRef;
58
- private _autofillMonitor;
59
- /** Emits when the autofill state of the element changes. */
60
- readonly cdkAutofill: EventEmitter<AutofillEvent>;
61
- constructor(_elementRef: ElementRef<HTMLElement>, _autofillMonitor: AutofillMonitor);
62
- ngOnInit(): void;
63
- ngOnDestroy(): void;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkAutofill, never>;
65
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAutofill, "[cdkAutofill]", never, {}, { "cdkAutofill": "cdkAutofill"; }, never, never, false>;
66
- }
@@ -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 { BooleanInput, NumberInput } from '@angular/cdk/coercion';
9
- import { ElementRef, AfterViewInit, DoCheck, OnDestroy, NgZone } from '@angular/core';
10
- import { Platform } from '@angular/cdk/platform';
11
- import * as i0 from "@angular/core";
12
- /** Directive to automatically resize a textarea to fit its content. */
13
- export declare class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {
14
- private _elementRef;
15
- private _platform;
16
- private _ngZone;
17
- /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */
18
- private _previousValue?;
19
- private _initialHeight;
20
- private readonly _destroyed;
21
- private _minRows;
22
- private _maxRows;
23
- private _enabled;
24
- /**
25
- * Value of minRows as of last resize. If the minRows has decreased, the
26
- * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
27
- * does not have the same problem because it does not affect the textarea's scrollHeight.
28
- */
29
- private _previousMinRows;
30
- private _textareaElement;
31
- /** Minimum amount of rows in the textarea. */
32
- get minRows(): number;
33
- set minRows(value: NumberInput);
34
- /** Maximum amount of rows in the textarea. */
35
- get maxRows(): number;
36
- set maxRows(value: NumberInput);
37
- /** Whether autosizing is enabled or not */
38
- get enabled(): boolean;
39
- set enabled(value: BooleanInput);
40
- get placeholder(): string;
41
- set placeholder(value: string);
42
- /** Cached height of a textarea with a single row. */
43
- private _cachedLineHeight;
44
- /** Cached height of a textarea with only the placeholder. */
45
- private _cachedPlaceholderHeight?;
46
- /** Used to reference correct document/window */
47
- protected _document?: Document;
48
- private _hasFocus;
49
- private _isViewInited;
50
- constructor(_elementRef: ElementRef<HTMLElement>, _platform: Platform, _ngZone: NgZone,
51
- /** @breaking-change 11.0.0 make document required */
52
- document?: any);
53
- /** Sets the minimum height of the textarea as determined by minRows. */
54
- _setMinHeight(): void;
55
- /** Sets the maximum height of the textarea as determined by maxRows. */
56
- _setMaxHeight(): void;
57
- ngAfterViewInit(): void;
58
- ngOnDestroy(): void;
59
- /**
60
- * Cache the height of a single-row textarea if it has not already been cached.
61
- *
62
- * We need to know how large a single "row" of a textarea is in order to apply minRows and
63
- * maxRows. For the initial version, we will assume that the height of a single line in the
64
- * textarea does not ever change.
65
- */
66
- private _cacheTextareaLineHeight;
67
- private _measureScrollHeight;
68
- private _cacheTextareaPlaceholderHeight;
69
- /** Handles `focus` and `blur` events. */
70
- private _handleFocusEvent;
71
- ngDoCheck(): void;
72
- /**
73
- * Resize the textarea to fit its content.
74
- * @param force Whether to force a height recalculation. By default the height will be
75
- * recalculated only if the value changed since the last call.
76
- */
77
- resizeToFitContent(force?: boolean): void;
78
- /**
79
- * Resets the textarea to its original size
80
- */
81
- reset(): void;
82
- _noopInputHandler(): void;
83
- /** Access injected document if available or fallback to global document reference */
84
- private _getDocument;
85
- /** Use defaultView of injected document if available or fallback to global window reference */
86
- private _getWindow;
87
- /**
88
- * Scrolls a textarea to the caret position. On Firefox resizing the textarea will
89
- * prevent it from scrolling to the caret position. We need to re-set the selection
90
- * in order for it to scroll to the proper position.
91
- */
92
- private _scrollToCaretPosition;
93
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTextareaAutosize, [null, null, null, { optional: true; }]>;
94
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTextareaAutosize, "textarea[cdkTextareaAutosize]", ["cdkTextareaAutosize"], { "minRows": "cdkAutosizeMinRows"; "maxRows": "cdkAutosizeMaxRows"; "enabled": "cdkTextareaAutosize"; "placeholder": "placeholder"; }, {}, never, never, false>;
95
- }
@@ -1,9 +0,0 @@
1
- {
2
- "name": "@angular/cdk/text-field",
3
- "fesm2020": "../fesm2020/text-field.mjs",
4
- "fesm2015": "../fesm2015/text-field.mjs",
5
- "esm2020": "../esm2020/text-field/text-field_public_index.mjs",
6
- "typings": "./text-field_public_index.d.ts",
7
- "module": "../fesm2015/text-field.mjs",
8
- "es2020": "../fesm2020/text-field.mjs"
9
- }
@@ -1,10 +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
- export * from './autofill';
9
- export * from './autosize';
10
- export * from './text-field-module';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./autofill";
3
- import * as i2 from "./autosize";
4
- export declare class TextFieldModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<TextFieldModule, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize], never, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<TextFieldModule>;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
@@ -1,54 +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 '@angular/cdk/collections';
9
- import { Observable } from 'rxjs';
10
- import { TreeControl } from './tree-control';
11
- /** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */
12
- export declare abstract class BaseTreeControl<T, K = T> implements TreeControl<T, K> {
13
- /** Gets a list of descendent data nodes of a subtree rooted at given data node recursively. */
14
- abstract getDescendants(dataNode: T): T[];
15
- /** Expands all data nodes in the tree. */
16
- abstract expandAll(): void;
17
- /** Saved data node for `expandAll` action. */
18
- dataNodes: T[];
19
- /** A selection model with multi-selection to track expansion status. */
20
- expansionModel: SelectionModel<K>;
21
- /**
22
- * Returns the identifier by which a dataNode should be tracked, should its
23
- * reference change.
24
- *
25
- * Similar to trackBy for *ngFor
26
- */
27
- trackBy?: (dataNode: T) => K;
28
- /** Get depth of a given data node, return the level number. This is for flat tree node. */
29
- getLevel: (dataNode: T) => number;
30
- /**
31
- * Whether the data node is expandable. Returns true if expandable.
32
- * This is for flat tree node.
33
- */
34
- isExpandable: (dataNode: T) => boolean;
35
- /** Gets a stream that emits whenever the given data node's children change. */
36
- getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
37
- /** Toggles one single data node's expanded/collapsed state. */
38
- toggle(dataNode: T): void;
39
- /** Expands one single data node. */
40
- expand(dataNode: T): void;
41
- /** Collapses one single data node. */
42
- collapse(dataNode: T): void;
43
- /** Whether a given data node is expanded or not. Returns true if the data node is expanded. */
44
- isExpanded(dataNode: T): boolean;
45
- /** Toggles a subtree rooted at `node` recursively. */
46
- toggleDescendants(dataNode: T): void;
47
- /** Collapse all dataNodes in the tree. */
48
- collapseAll(): void;
49
- /** Expands a subtree rooted at given data node recursively. */
50
- expandDescendants(dataNode: T): void;
51
- /** Collapses a subtree rooted at given data node recursively. */
52
- collapseDescendants(dataNode: T): void;
53
- protected _trackByValue(value: T | K): K;
54
- }
@@ -1,34 +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 { BaseTreeControl } from './base-tree-control';
9
- /** Optional set of configuration that can be provided to the FlatTreeControl. */
10
- export interface FlatTreeControlOptions<T, K> {
11
- trackBy?: (dataNode: T) => K;
12
- }
13
- /** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */
14
- export declare class FlatTreeControl<T, K = T> extends BaseTreeControl<T, K> {
15
- getLevel: (dataNode: T) => number;
16
- isExpandable: (dataNode: T) => boolean;
17
- options?: FlatTreeControlOptions<T, K> | undefined;
18
- /** Construct with flat tree data node functions getLevel and isExpandable. */
19
- constructor(getLevel: (dataNode: T) => number, isExpandable: (dataNode: T) => boolean, options?: FlatTreeControlOptions<T, K> | undefined);
20
- /**
21
- * Gets a list of the data node's subtree of descendent data nodes.
22
- *
23
- * To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes
24
- * with correct levels.
25
- */
26
- getDescendants(dataNode: T): T[];
27
- /**
28
- * Expands all data nodes in the tree.
29
- *
30
- * To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened
31
- * data nodes of the tree.
32
- */
33
- expandAll(): void;
34
- }
@@ -1,31 +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 { Observable } from 'rxjs';
9
- import { BaseTreeControl } from './base-tree-control';
10
- /** Optional set of configuration that can be provided to the NestedTreeControl. */
11
- export interface NestedTreeControlOptions<T, K> {
12
- trackBy?: (dataNode: T) => K;
13
- }
14
- /** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */
15
- export declare class NestedTreeControl<T, K = T> extends BaseTreeControl<T, K> {
16
- getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
17
- options?: NestedTreeControlOptions<T, K> | undefined;
18
- /** Construct with nested tree function getChildren. */
19
- constructor(getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null, options?: NestedTreeControlOptions<T, K> | undefined);
20
- /**
21
- * Expands all dataNodes in the tree.
22
- *
23
- * To make this working, the `dataNodes` variable of the TreeControl must be set to all root level
24
- * data nodes of the tree.
25
- */
26
- expandAll(): void;
27
- /** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */
28
- getDescendants(dataNode: T): T[];
29
- /** A helper function to get descendants recursively. */
30
- protected _getDescendants(descendants: T[], dataNode: T): void;
31
- }
@@ -1,49 +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 '@angular/cdk/collections';
9
- import { Observable } from 'rxjs';
10
- /**
11
- * Tree control interface. User can implement TreeControl to expand/collapse dataNodes in the tree.
12
- * The CDKTree will use this TreeControl to expand/collapse a node.
13
- * User can also use it outside the `<cdk-tree>` to control the expansion status of the tree.
14
- */
15
- export interface TreeControl<T, K = T> {
16
- /** The saved tree nodes data for `expandAll` action. */
17
- dataNodes: T[];
18
- /** The expansion model */
19
- expansionModel: SelectionModel<K>;
20
- /** Whether the data node is expanded or collapsed. Return true if it's expanded. */
21
- isExpanded(dataNode: T): boolean;
22
- /** Get all descendants of a data node */
23
- getDescendants(dataNode: T): any[];
24
- /** Expand or collapse data node */
25
- toggle(dataNode: T): void;
26
- /** Expand one data node */
27
- expand(dataNode: T): void;
28
- /** Collapse one data node */
29
- collapse(dataNode: T): void;
30
- /** Expand all the dataNodes in the tree */
31
- expandAll(): void;
32
- /** Collapse all the dataNodes in the tree */
33
- collapseAll(): void;
34
- /** Toggle a data node by expand/collapse it and all its descendants */
35
- toggleDescendants(dataNode: T): void;
36
- /** Expand a data node and all its descendants */
37
- expandDescendants(dataNode: T): void;
38
- /** Collapse a data node and all its descendants */
39
- collapseDescendants(dataNode: T): void;
40
- /** Get depth of a given data node, return the level number. This is for flat tree node. */
41
- readonly getLevel: (dataNode: T) => number;
42
- /**
43
- * Whether the data node is expandable. Returns true if expandable.
44
- * This is for flat tree node.
45
- */
46
- readonly isExpandable: (dataNode: T) => boolean;
47
- /** Gets a stream that emits whenever the given data node's children change. */
48
- readonly getChildren: (dataNode: T) => Observable<T[]> | T[] | undefined | null;
49
- }
@@ -1,38 +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 { AfterContentInit, ElementRef, IterableDiffers, OnDestroy, OnInit, QueryList } from '@angular/core';
9
- import { CdkTreeNodeOutlet } from './outlet';
10
- import { CdkTree, CdkTreeNode } from './tree';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Nested node is a child of `<cdk-tree>`. It works with nested tree.
14
- * By using `cdk-nested-tree-node` component in tree node template, children of the parent node will
15
- * be added in the `cdkTreeNodeOutlet` in tree node template.
16
- * The children of node will be automatically added to `cdkTreeNodeOutlet`.
17
- */
18
- export declare class CdkNestedTreeNode<T, K = T> extends CdkTreeNode<T, K> implements AfterContentInit, OnDestroy, OnInit {
19
- protected _differs: IterableDiffers;
20
- /** Differ used to find the changes in the data provided by the data source. */
21
- private _dataDiffer;
22
- /** The children data dataNodes of current node. They will be placed in `CdkTreeNodeOutlet`. */
23
- protected _children: T[];
24
- /** The children node placeholder. */
25
- nodeOutlet: QueryList<CdkTreeNodeOutlet>;
26
- constructor(elementRef: ElementRef<HTMLElement>, tree: CdkTree<T, K>, _differs: IterableDiffers);
27
- ngAfterContentInit(): void;
28
- ngOnInit(): void;
29
- ngOnDestroy(): void;
30
- /** Add children dataNodes to the NodeOutlet */
31
- protected updateChildrenNodes(children?: T[]): void;
32
- /** Clear the children dataNodes. */
33
- protected _clear(): void;
34
- /** Gets the outlet for the current node. */
35
- private _getNodeOutlet;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkNestedTreeNode<any, any>, never>;
37
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkNestedTreeNode<any, any>, "cdk-nested-tree-node", ["cdkNestedTreeNode"], { "role": "role"; "disabled": "disabled"; "tabIndex": "tabIndex"; }, {}, ["nodeOutlet"], never, false>;
38
- }
package/tree/node.d.ts DELETED
@@ -1,40 +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 } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- /** Context provided to the tree node component. */
11
- export declare class CdkTreeNodeOutletContext<T> {
12
- /** Data for the node. */
13
- $implicit: T;
14
- /** Depth of the node. */
15
- level: number;
16
- /** Index location of the node. */
17
- index?: number;
18
- /** Length of the number of total dataNodes. */
19
- count?: number;
20
- constructor(data: T);
21
- }
22
- /**
23
- * Data node definition for the CdkTree.
24
- * Captures the node's template and a when predicate that describes when this node should be used.
25
- */
26
- export declare class CdkTreeNodeDef<T> {
27
- template: TemplateRef<any>;
28
- /**
29
- * Function that should return true if this node template should be used for the provided node
30
- * data and index. If left undefined, this node will be considered the default node template to
31
- * use when no other when functions return true for the data.
32
- * For every node, there must be at least one when function that passes or an undefined to
33
- * default.
34
- */
35
- when: (index: number, nodeData: T) => boolean;
36
- /** @docs-private */
37
- constructor(template: TemplateRef<any>);
38
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeDef<any>, never>;
39
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeDef<any>, "[cdkTreeNodeDef]", never, { "when": "cdkTreeNodeDefWhen"; }, {}, never, never, false>;
40
- }
package/tree/outlet.d.ts DELETED
@@ -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 { InjectionToken, ViewContainerRef } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * Injection token used to provide a `CdkTreeNode` to its outlet.
12
- * Used primarily to avoid circular imports.
13
- * @docs-private
14
- */
15
- export declare const CDK_TREE_NODE_OUTLET_NODE: InjectionToken<{}>;
16
- /**
17
- * Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place children dataNodes
18
- * inside the outlet.
19
- */
20
- export declare class CdkTreeNodeOutlet {
21
- viewContainer: ViewContainerRef;
22
- _node?: any;
23
- constructor(viewContainer: ViewContainerRef, _node?: any);
24
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTreeNodeOutlet, [null, { optional: true; }]>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTreeNodeOutlet, "[cdkTreeNodeOutlet]", never, {}, {}, never, never, false>;
26
- }
package/tree/package.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "name": "@angular/cdk/tree",
3
- "fesm2020": "../fesm2020/tree.mjs",
4
- "fesm2015": "../fesm2015/tree.mjs",
5
- "esm2020": "../esm2020/tree/tree_public_index.mjs",
6
- "typings": "./tree_public_index.d.ts",
7
- "module": "../fesm2015/tree.mjs",
8
- "es2020": "../fesm2020/tree.mjs"
9
- }