@angular/cdk 14.0.0-next.10 → 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 (451) 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 +410 -0
  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 +4 -4
  11. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +7 -7
  12. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
  13. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
  14. package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
  15. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +4 -4
  16. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  17. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
  18. package/esm2020/a11y/live-announcer/live-announcer.mjs +7 -7
  19. package/esm2020/accordion/accordion-item.mjs +4 -4
  20. package/esm2020/accordion/accordion-module.mjs +5 -5
  21. package/esm2020/accordion/accordion.mjs +4 -4
  22. package/esm2020/bidi/bidi-module.mjs +5 -5
  23. package/esm2020/bidi/dir.mjs +4 -4
  24. package/esm2020/bidi/directionality.mjs +4 -4
  25. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  26. package/esm2020/clipboard/clipboard.mjs +4 -4
  27. package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
  28. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  29. package/esm2020/dialog/dialog-config.mjs +63 -0
  30. package/esm2020/dialog/dialog-container.mjs +278 -0
  31. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  32. package/esm2020/dialog/dialog-module.mjs +42 -0
  33. package/esm2020/dialog/dialog-ref.mjs +76 -0
  34. package/esm2020/dialog/dialog.mjs +298 -0
  35. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  36. package/esm2020/dialog/index.mjs +9 -0
  37. package/esm2020/dialog/public-api.mjs +14 -0
  38. package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
  39. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  40. package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
  41. package/esm2020/drag-drop/directives/drag.mjs +11 -4
  42. package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
  43. package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
  44. package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
  45. package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
  46. package/esm2020/drag-drop/drag-drop.mjs +4 -4
  47. package/esm2020/layout/breakpoints-observer.mjs +4 -4
  48. package/esm2020/layout/layout-module.mjs +5 -5
  49. package/esm2020/layout/media-matcher.mjs +4 -4
  50. package/esm2020/menu/context-menu-trigger.mjs +229 -0
  51. package/esm2020/menu/index.mjs +9 -0
  52. package/esm2020/menu/menu-aim.mjs +204 -0
  53. package/esm2020/menu/menu-bar.mjs +159 -0
  54. package/esm2020/menu/menu-base.mjs +203 -0
  55. package/esm2020/menu/menu-errors.mjs +22 -0
  56. package/esm2020/menu/menu-group.mjs +30 -0
  57. package/esm2020/menu/menu-interface.mjs +11 -0
  58. package/esm2020/menu/menu-item-checkbox.mjs +48 -0
  59. package/esm2020/menu/menu-item-radio.mjs +114 -0
  60. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  61. package/esm2020/menu/menu-item.mjs +289 -0
  62. package/esm2020/menu/menu-module.mjs +62 -0
  63. package/esm2020/menu/menu-stack.mjs +156 -0
  64. package/esm2020/menu/menu-trigger-base.mjs +114 -0
  65. package/esm2020/menu/menu-trigger.mjs +304 -0
  66. package/esm2020/menu/menu.mjs +168 -0
  67. package/esm2020/menu/menu_public_index.mjs +5 -0
  68. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  69. package/esm2020/menu/public-api.mjs +24 -0
  70. package/esm2020/observers/observe-content.mjs +14 -14
  71. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  72. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
  73. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
  74. package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
  75. package/esm2020/overlay/overlay-container.mjs +4 -4
  76. package/esm2020/overlay/overlay-directives.mjs +7 -7
  77. package/esm2020/overlay/overlay-module.mjs +5 -5
  78. package/esm2020/overlay/overlay-ref.mjs +4 -3
  79. package/esm2020/overlay/overlay.mjs +4 -4
  80. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  81. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  82. package/esm2020/platform/platform-module.mjs +5 -5
  83. package/esm2020/platform/platform.mjs +4 -4
  84. package/esm2020/portal/dom-portal-outlet.mjs +6 -2
  85. package/esm2020/portal/portal-directives.mjs +17 -17
  86. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
  87. package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
  88. package/esm2020/scrolling/scrollable.mjs +4 -4
  89. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  90. package/esm2020/scrolling/viewport-ruler.mjs +4 -4
  91. package/esm2020/scrolling/virtual-for-of.mjs +4 -4
  92. package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
  93. package/esm2020/stepper/step-header.mjs +4 -4
  94. package/esm2020/stepper/step-label.mjs +4 -4
  95. package/esm2020/stepper/stepper-button.mjs +7 -7
  96. package/esm2020/stepper/stepper-module.mjs +5 -5
  97. package/esm2020/stepper/stepper.mjs +7 -7
  98. package/esm2020/table/cell.mjs +22 -22
  99. package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
  100. package/esm2020/table/row.mjs +28 -28
  101. package/esm2020/table/table-module.mjs +5 -5
  102. package/esm2020/table/table.mjs +20 -20
  103. package/esm2020/table/text-column.mjs +5 -5
  104. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
  105. package/esm2020/testing/test-element.mjs +1 -1
  106. package/esm2020/text-field/autofill.mjs +7 -7
  107. package/esm2020/text-field/autosize.mjs +4 -4
  108. package/esm2020/text-field/text-field-module.mjs +5 -5
  109. package/esm2020/tree/nested-node.mjs +4 -4
  110. package/esm2020/tree/node.mjs +4 -4
  111. package/esm2020/tree/outlet.mjs +4 -4
  112. package/esm2020/tree/padding.mjs +4 -4
  113. package/esm2020/tree/toggle.mjs +4 -4
  114. package/esm2020/tree/tree-module.mjs +5 -5
  115. package/esm2020/tree/tree.mjs +7 -7
  116. package/esm2020/version.mjs +1 -1
  117. package/fesm2015/a11y.mjs +40 -40
  118. package/fesm2015/a11y.mjs.map +1 -1
  119. package/fesm2015/accordion.mjs +10 -10
  120. package/fesm2015/accordion.mjs.map +1 -1
  121. package/fesm2015/bidi.mjs +10 -10
  122. package/fesm2015/bidi.mjs.map +1 -1
  123. package/fesm2015/cdk.mjs +1 -1
  124. package/fesm2015/cdk.mjs.map +1 -1
  125. package/fesm2015/clipboard.mjs +10 -10
  126. package/fesm2015/clipboard.mjs.map +1 -1
  127. package/fesm2015/collections.mjs +3 -3
  128. package/fesm2015/collections.mjs.map +1 -1
  129. package/fesm2015/dialog.mjs +780 -0
  130. package/fesm2015/dialog.mjs.map +1 -0
  131. package/fesm2015/drag-drop.mjs +35 -28
  132. package/fesm2015/drag-drop.mjs.map +1 -1
  133. package/fesm2015/layout.mjs +10 -10
  134. package/fesm2015/layout.mjs.map +1 -1
  135. package/fesm2015/menu.mjs +2135 -0
  136. package/fesm2015/menu.mjs.map +1 -0
  137. package/fesm2015/observers.mjs +13 -13
  138. package/fesm2015/observers.mjs.map +1 -1
  139. package/fesm2015/overlay.mjs +37 -36
  140. package/fesm2015/overlay.mjs.map +1 -1
  141. package/fesm2015/platform.mjs +7 -7
  142. package/fesm2015/platform.mjs.map +1 -1
  143. package/fesm2015/portal.mjs +21 -17
  144. package/fesm2015/portal.mjs.map +1 -1
  145. package/fesm2015/scrolling.mjs +26 -26
  146. package/fesm2015/scrolling.mjs.map +1 -1
  147. package/fesm2015/stepper.mjs +22 -22
  148. package/fesm2015/stepper.mjs.map +1 -1
  149. package/fesm2015/table.mjs +78 -78
  150. package/fesm2015/table.mjs.map +1 -1
  151. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  152. package/fesm2015/testing.mjs.map +1 -1
  153. package/fesm2015/text-field.mjs +13 -13
  154. package/fesm2015/text-field.mjs.map +1 -1
  155. package/fesm2015/tree.mjs +25 -25
  156. package/fesm2015/tree.mjs.map +1 -1
  157. package/fesm2020/a11y.mjs +40 -40
  158. package/fesm2020/a11y.mjs.map +1 -1
  159. package/fesm2020/accordion.mjs +10 -10
  160. package/fesm2020/accordion.mjs.map +1 -1
  161. package/fesm2020/bidi.mjs +10 -10
  162. package/fesm2020/bidi.mjs.map +1 -1
  163. package/fesm2020/cdk.mjs +1 -1
  164. package/fesm2020/cdk.mjs.map +1 -1
  165. package/fesm2020/clipboard.mjs +10 -10
  166. package/fesm2020/clipboard.mjs.map +1 -1
  167. package/fesm2020/collections.mjs +3 -3
  168. package/fesm2020/collections.mjs.map +1 -1
  169. package/fesm2020/dialog.mjs +784 -0
  170. package/fesm2020/dialog.mjs.map +1 -0
  171. package/fesm2020/drag-drop.mjs +35 -28
  172. package/fesm2020/drag-drop.mjs.map +1 -1
  173. package/fesm2020/layout.mjs +10 -10
  174. package/fesm2020/layout.mjs.map +1 -1
  175. package/fesm2020/menu.mjs +2108 -0
  176. package/fesm2020/menu.mjs.map +1 -0
  177. package/fesm2020/observers.mjs +13 -13
  178. package/fesm2020/observers.mjs.map +1 -1
  179. package/fesm2020/overlay.mjs +37 -36
  180. package/fesm2020/overlay.mjs.map +1 -1
  181. package/fesm2020/platform.mjs +7 -7
  182. package/fesm2020/platform.mjs.map +1 -1
  183. package/fesm2020/portal.mjs +21 -17
  184. package/fesm2020/portal.mjs.map +1 -1
  185. package/fesm2020/scrolling.mjs +26 -26
  186. package/fesm2020/scrolling.mjs.map +1 -1
  187. package/fesm2020/stepper.mjs +22 -22
  188. package/fesm2020/stepper.mjs.map +1 -1
  189. package/fesm2020/table.mjs +78 -78
  190. package/fesm2020/table.mjs.map +1 -1
  191. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  192. package/fesm2020/testing.mjs.map +1 -1
  193. package/fesm2020/text-field.mjs +13 -13
  194. package/fesm2020/text-field.mjs.map +1 -1
  195. package/fesm2020/tree.mjs +25 -25
  196. package/fesm2020/tree.mjs.map +1 -1
  197. package/index.d.ts +6 -8
  198. package/keycodes/index.d.ts +247 -6
  199. package/layout/index.d.ts +91 -8
  200. package/menu/index.d.ts +992 -0
  201. package/observers/index.d.ts +89 -6
  202. package/overlay/index.d.ts +1202 -5
  203. package/package.json +34 -18
  204. package/platform/index.d.ts +104 -6
  205. package/portal/index.d.ts +325 -5
  206. package/schematics/ng-add/index.js +1 -1
  207. package/schematics/ng-add/index.mjs +1 -1
  208. package/schematics/utils/build-component.js +2 -2
  209. package/schematics/utils/build-component.mjs +2 -2
  210. package/schematics/utils/schematic-options.js +2 -2
  211. package/schematics/utils/schematic-options.mjs +2 -2
  212. package/scrolling/index.d.ts +647 -6
  213. package/stepper/index.d.ts +328 -6
  214. package/table/index.d.ts +1172 -5
  215. package/testing/index.d.ts +726 -5
  216. package/testing/selenium-webdriver/index.d.ts +134 -8
  217. package/testing/testbed/index.d.ts +161 -8
  218. package/text-field/index.d.ts +175 -6
  219. package/tree/index.d.ts +498 -6
  220. package/a11y/a11y-module.d.ts +0 -12
  221. package/a11y/a11y_public_index.d.ts +0 -4
  222. package/a11y/aria-describer/aria-describer.d.ts +0 -101
  223. package/a11y/aria-describer/aria-reference.d.ts +0 -22
  224. package/a11y/fake-event-detection.d.ts +0 -11
  225. package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
  226. package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
  227. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
  228. package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
  229. package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
  230. package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
  231. package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
  232. package/a11y/focus-trap/focus-trap.d.ts +0 -163
  233. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
  234. package/a11y/input-modality/input-modality-detector.d.ts +0 -99
  235. package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
  236. package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
  237. package/a11y/key-manager/focus-key-manager.d.ts +0 -37
  238. package/a11y/key-manager/list-key-manager.d.ts +0 -152
  239. package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
  240. package/a11y/live-announcer/live-announcer.d.ts +0 -85
  241. package/a11y/package.json +0 -9
  242. package/a11y/public-api.d.ts +0 -25
  243. package/accordion/accordion-item.d.ts +0 -59
  244. package/accordion/accordion-module.d.ts +0 -8
  245. package/accordion/accordion.d.ts +0 -40
  246. package/accordion/accordion_public_index.d.ts +0 -4
  247. package/accordion/package.json +0 -9
  248. package/accordion/public-api.d.ts +0 -10
  249. package/bidi/bidi-module.d.ts +0 -7
  250. package/bidi/bidi_public_index.d.ts +0 -4
  251. package/bidi/dir-document-token.d.ts +0 -26
  252. package/bidi/dir.d.ts +0 -36
  253. package/bidi/directionality.d.ts +0 -26
  254. package/bidi/package.json +0 -9
  255. package/bidi/public-api.d.ts +0 -11
  256. package/clipboard/clipboard-module.d.ts +0 -7
  257. package/clipboard/clipboard.d.ts +0 -28
  258. package/clipboard/clipboard_public_index.d.ts +0 -4
  259. package/clipboard/copy-to-clipboard.d.ts +0 -49
  260. package/clipboard/package.json +0 -9
  261. package/clipboard/pending-copy.d.ts +0 -29
  262. package/clipboard/public-api.d.ts +0 -11
  263. package/coercion/array.d.ts +0 -10
  264. package/coercion/boolean-property.d.ts +0 -14
  265. package/coercion/css-pixel-value.d.ts +0 -9
  266. package/coercion/element.d.ts +0 -13
  267. package/coercion/number-property.d.ts +0 -20
  268. package/coercion/package.json +0 -9
  269. package/coercion/public-api.d.ts +0 -13
  270. package/coercion/string-array.d.ts +0 -25
  271. package/collections/array-data-source.d.ts +0 -16
  272. package/collections/collection-viewer.d.ts +0 -24
  273. package/collections/collections_public_index.d.ts +0 -4
  274. package/collections/data-source.d.ts +0 -30
  275. package/collections/dispose-view-repeater-strategy.d.ts +0 -22
  276. package/collections/package.json +0 -9
  277. package/collections/public-api.d.ts +0 -16
  278. package/collections/recycle-view-repeater-strategy.d.ts +0 -54
  279. package/collections/selection-model.d.ts +0 -95
  280. package/collections/tree-adapter.d.ts +0 -26
  281. package/collections/unique-selection-dispatcher.d.ts +0 -36
  282. package/collections/view-repeater.d.ts +0 -92
  283. package/drag-drop/client-rect.d.ts +0 -38
  284. package/drag-drop/clone-node.d.ts +0 -9
  285. package/drag-drop/directives/assertions.d.ts +0 -13
  286. package/drag-drop/directives/config.d.ts +0 -43
  287. package/drag-drop/directives/drag-handle.d.ts +0 -33
  288. package/drag-drop/directives/drag-placeholder.d.ts +0 -27
  289. package/drag-drop/directives/drag-preview.d.ts +0 -32
  290. package/drag-drop/directives/drag.d.ts +0 -160
  291. package/drag-drop/directives/drop-list-group.d.ts +0 -33
  292. package/drag-drop/directives/drop-list.d.ts +0 -123
  293. package/drag-drop/drag-drop-module.d.ts +0 -13
  294. package/drag-drop/drag-drop-registry.d.ts +0 -89
  295. package/drag-drop/drag-drop.d.ts +0 -36
  296. package/drag-drop/drag-drop_public_index.d.ts +0 -4
  297. package/drag-drop/drag-events.d.ts +0 -124
  298. package/drag-drop/drag-parent.d.ts +0 -15
  299. package/drag-drop/drag-ref.d.ts +0 -448
  300. package/drag-drop/drag-styling.d.ts +0 -42
  301. package/drag-drop/drag-utils.d.ts +0 -32
  302. package/drag-drop/drop-list-ref.d.ts +0 -312
  303. package/drag-drop/package.json +0 -9
  304. package/drag-drop/parent-position-tracker.d.ts +0 -39
  305. package/drag-drop/public-api.d.ts +0 -22
  306. package/drag-drop/transition-duration.d.ts +0 -9
  307. package/keycodes/keycodes.d.ts +0 -126
  308. package/keycodes/keycodes_public_index.d.ts +0 -4
  309. package/keycodes/modifiers.d.ts +0 -14
  310. package/keycodes/package.json +0 -9
  311. package/keycodes/public-api.d.ts +0 -9
  312. package/layout/breakpoints-observer.d.ts +0 -45
  313. package/layout/breakpoints.d.ts +0 -23
  314. package/layout/layout-module.d.ts +0 -6
  315. package/layout/layout_public_index.d.ts +0 -4
  316. package/layout/media-matcher.d.ts +0 -18
  317. package/layout/package.json +0 -9
  318. package/layout/public-api.d.ts +0 -11
  319. package/observers/observe-content.d.ts +0 -87
  320. package/observers/observers_public_index.d.ts +0 -4
  321. package/observers/package.json +0 -9
  322. package/observers/public-api.d.ts +0 -8
  323. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
  324. package/overlay/dispatchers/index.d.ts +0 -9
  325. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
  326. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
  327. package/overlay/fullscreen-overlay-container.d.ts +0 -35
  328. package/overlay/overlay-config.d.ts +0 -47
  329. package/overlay/overlay-container.d.ts +0 -25
  330. package/overlay/overlay-directives.d.ts +0 -148
  331. package/overlay/overlay-module.d.ts +0 -10
  332. package/overlay/overlay-ref.d.ts +0 -145
  333. package/overlay/overlay-reference.d.ts +0 -38
  334. package/overlay/overlay.d.ts +0 -76
  335. package/overlay/overlay_public_index.d.ts +0 -4
  336. package/overlay/package.json +0 -9
  337. package/overlay/position/connected-position.d.ts +0 -102
  338. package/overlay/position/flexible-connected-position-strategy.d.ts +0 -282
  339. package/overlay/position/global-position-strategy.d.ts +0 -99
  340. package/overlay/position/overlay-position-builder.d.ts +0 -32
  341. package/overlay/position/position-strategy.d.ts +0 -19
  342. package/overlay/position/scroll-clip.d.ts +0 -26
  343. package/overlay/public-api.d.ts +0 -23
  344. package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
  345. package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
  346. package/overlay/scroll/index.d.ts +0 -14
  347. package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
  348. package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
  349. package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
  350. package/overlay/scroll/scroll-strategy.d.ts +0 -25
  351. package/platform/features/input-types.d.ts +0 -9
  352. package/platform/features/passive-listeners.d.ts +0 -19
  353. package/platform/features/scrolling.d.ts +0 -32
  354. package/platform/features/shadow-dom.d.ts +0 -18
  355. package/platform/features/test-environment.d.ts +0 -9
  356. package/platform/package.json +0 -9
  357. package/platform/platform-module.d.ts +0 -6
  358. package/platform/platform.d.ts +0 -29
  359. package/platform/platform_public_index.d.ts +0 -4
  360. package/platform/public-api.d.ts +0 -14
  361. package/portal/dom-portal-outlet.d.ts +0 -71
  362. package/portal/package.json +0 -9
  363. package/portal/portal-directives.d.ts +0 -99
  364. package/portal/portal-errors.d.ts +0 -37
  365. package/portal/portal-injector.d.ts +0 -21
  366. package/portal/portal.d.ts +0 -140
  367. package/portal/portal_public_index.d.ts +0 -4
  368. package/portal/public-api.d.ts +0 -11
  369. package/public-api.d.ts +0 -8
  370. package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
  371. package/scrolling/package.json +0 -9
  372. package/scrolling/public-api.d.ts +0 -16
  373. package/scrolling/scroll-dispatcher.d.ts +0 -71
  374. package/scrolling/scrollable.d.ts +0 -85
  375. package/scrolling/scrolling-module.d.ts +0 -19
  376. package/scrolling/scrolling_public_index.d.ts +0 -4
  377. package/scrolling/viewport-ruler.d.ts +0 -63
  378. package/scrolling/virtual-for-of.d.ts +0 -117
  379. package/scrolling/virtual-scroll-repeater.d.ts +0 -16
  380. package/scrolling/virtual-scroll-strategy.d.ts +0 -38
  381. package/scrolling/virtual-scroll-viewport.d.ts +0 -147
  382. package/stepper/package.json +0 -9
  383. package/stepper/public-api.d.ts +0 -12
  384. package/stepper/step-header.d.ts +0 -18
  385. package/stepper/step-label.d.ts +0 -15
  386. package/stepper/stepper-button.d.ts +0 -20
  387. package/stepper/stepper-module.d.ts +0 -11
  388. package/stepper/stepper.d.ts +0 -233
  389. package/stepper/stepper_public_index.d.ts +0 -4
  390. package/table/can-stick.d.ts +0 -34
  391. package/table/cell.d.ts +0 -126
  392. package/table/coalesced-style-scheduler.d.ts +0 -46
  393. package/table/package.json +0 -9
  394. package/table/public-api.d.ts +0 -19
  395. package/table/row.d.ts +0 -175
  396. package/table/sticky-position-listener.d.ts +0 -31
  397. package/table/sticky-styler.d.ts +0 -126
  398. package/table/table-errors.d.ts +0 -48
  399. package/table/table-module.d.ts +0 -11
  400. package/table/table.d.ts +0 -494
  401. package/table/table_public_index.d.ts +0 -4
  402. package/table/text-column.d.ts +0 -73
  403. package/table/tokens.d.ts +0 -25
  404. package/testing/change-detection.d.ts +0 -83
  405. package/testing/component-harness.d.ts +0 -426
  406. package/testing/element-dimensions.d.ts +0 -16
  407. package/testing/harness-environment.d.ts +0 -62
  408. package/testing/package.json +0 -9
  409. package/testing/public-api.d.ts +0 -14
  410. package/testing/selenium-webdriver/package.json +0 -9
  411. package/testing/selenium-webdriver/public-api.d.ts +0 -9
  412. package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
  413. package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
  414. package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
  415. package/testing/test-element-errors.d.ts +0 -12
  416. package/testing/test-element.d.ts +0 -135
  417. package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
  418. package/testing/testbed/fake-events/element-focus.d.ts +0 -18
  419. package/testing/testbed/fake-events/event-objects.d.ts +0 -39
  420. package/testing/testbed/fake-events/index.d.ts +0 -11
  421. package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
  422. package/testing/testbed/package.json +0 -9
  423. package/testing/testbed/proxy-zone-types.d.ts +0 -29
  424. package/testing/testbed/public-api.d.ts +0 -9
  425. package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
  426. package/testing/testbed/testbed-harness-environment.d.ts +0 -64
  427. package/testing/testbed/unit-test-element.d.ts +0 -98
  428. package/testing/testbed/zone-types.d.ts +0 -22
  429. package/testing/text-filtering.d.ts +0 -13
  430. package/text-field/autofill.d.ts +0 -66
  431. package/text-field/autosize.d.ts +0 -95
  432. package/text-field/package.json +0 -9
  433. package/text-field/public-api.d.ts +0 -10
  434. package/text-field/text-field-module.d.ts +0 -8
  435. package/text-field/text-field_public_index.d.ts +0 -4
  436. package/tree/control/base-tree-control.d.ts +0 -54
  437. package/tree/control/flat-tree-control.d.ts +0 -34
  438. package/tree/control/nested-tree-control.d.ts +0 -31
  439. package/tree/control/tree-control.d.ts +0 -49
  440. package/tree/nested-node.d.ts +0 -38
  441. package/tree/node.d.ts +0 -40
  442. package/tree/outlet.d.ts +0 -26
  443. package/tree/package.json +0 -9
  444. package/tree/padding.d.ts +0 -60
  445. package/tree/public-api.d.ts +0 -19
  446. package/tree/toggle.d.ts +0 -25
  447. package/tree/tree-errors.d.ts +0 -32
  448. package/tree/tree-module.d.ts +0 -12
  449. package/tree/tree.d.ts +0 -128
  450. package/tree/tree_public_index.d.ts +0 -4
  451. package/version.d.ts +0 -10
@@ -1,95 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Subject } from 'rxjs';
9
- /**
10
- * Class to be used to power selecting one or more options from a list.
11
- */
12
- export declare class SelectionModel<T> {
13
- private _multiple;
14
- private _emitChanges;
15
- /** Currently-selected values. */
16
- private _selection;
17
- /** Keeps track of the deselected options that haven't been emitted by the change event. */
18
- private _deselectedToEmit;
19
- /** Keeps track of the selected options that haven't been emitted by the change event. */
20
- private _selectedToEmit;
21
- /** Cache for the array value of the selected items. */
22
- private _selected;
23
- /** Selected values. */
24
- get selected(): T[];
25
- /** Event emitted when the value has changed. */
26
- readonly changed: Subject<SelectionChange<T>>;
27
- constructor(_multiple?: boolean, initiallySelectedValues?: T[], _emitChanges?: boolean);
28
- /**
29
- * Selects a value or an array of values.
30
- */
31
- select(...values: T[]): void;
32
- /**
33
- * Deselects a value or an array of values.
34
- */
35
- deselect(...values: T[]): void;
36
- /**
37
- * Toggles a value between selected and deselected.
38
- */
39
- toggle(value: T): void;
40
- /**
41
- * Clears all of the selected values.
42
- */
43
- clear(): void;
44
- /**
45
- * Determines whether a value is selected.
46
- */
47
- isSelected(value: T): boolean;
48
- /**
49
- * Determines whether the model does not have a value.
50
- */
51
- isEmpty(): boolean;
52
- /**
53
- * Determines whether the model has a value.
54
- */
55
- hasValue(): boolean;
56
- /**
57
- * Sorts the selected values based on a predicate function.
58
- */
59
- sort(predicate?: (a: T, b: T) => number): void;
60
- /**
61
- * Gets whether multiple values can be selected.
62
- */
63
- isMultipleSelection(): boolean;
64
- /** Emits a change event and clears the records of selected and deselected values. */
65
- private _emitChangeEvent;
66
- /** Selects a value. */
67
- private _markSelected;
68
- /** Deselects a value. */
69
- private _unmarkSelected;
70
- /** Clears out the selected values. */
71
- private _unmarkAll;
72
- /**
73
- * Verifies the value assignment and throws an error if the specified value array is
74
- * including multiple values while the selection model is not supporting multiple values.
75
- */
76
- private _verifyValueAssignment;
77
- }
78
- /**
79
- * Event emitted when the value of a MatSelectionModel has changed.
80
- * @docs-private
81
- */
82
- export interface SelectionChange<T> {
83
- /** Model that dispatched the event. */
84
- source: SelectionModel<T>;
85
- /** Options that were added to the model. */
86
- added: T[];
87
- /** Options that were removed from the model. */
88
- removed: T[];
89
- }
90
- /**
91
- * Returns an error that reports that multiple values are passed into a selection model
92
- * with a single value.
93
- * @docs-private
94
- */
95
- export declare function getMultipleValuesInSingleSelectionError(): Error;
@@ -1,26 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { SelectionModel } from './selection-model';
9
- /**
10
- * Interface for a class that can flatten hierarchical structured data and re-expand the flattened
11
- * data back into its original structure. Should be used in conjunction with the cdk-tree.
12
- */
13
- export interface TreeDataNodeFlattener<T> {
14
- /** Transforms a set of hierarchical structured data into a flattened data array. */
15
- flattenNodes(structuredData: any[]): T[];
16
- /**
17
- * Expands a flattened array of data into its hierarchical form using the provided expansion
18
- * model.
19
- */
20
- expandFlattenedNodes(nodes: T[], expansionModel: SelectionModel<T>): T[];
21
- /**
22
- * Put node descendants of node in array.
23
- * If `onlyExpandable` is true, then only process expandable descendants.
24
- */
25
- nodeDescendents(node: T, nodes: T[], onlyExpandable: boolean): void;
26
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { OnDestroy } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
11
- /**
12
- * Class to coordinate unique selection based on name.
13
- * Intended to be consumed as an Angular service.
14
- * This service is needed because native radio change events are only fired on the item currently
15
- * being selected, and we still need to uncheck the previous selection.
16
- *
17
- * This service does not *store* any IDs and names because they may change at any time, so it is
18
- * less error-prone if they are simply passed through when the events occur.
19
- */
20
- export declare class UniqueSelectionDispatcher implements OnDestroy {
21
- private _listeners;
22
- /**
23
- * Notify other items that selection for the given name has been set.
24
- * @param id ID of the item.
25
- * @param name Name of the item.
26
- */
27
- notify(id: string, name: string): void;
28
- /**
29
- * Listen for future changes to item selection.
30
- * @return Function used to deregister listener
31
- */
32
- listen(listener: UniqueSelectionDispatcherListener): () => void;
33
- ngOnDestroy(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<UniqueSelectionDispatcher, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<UniqueSelectionDispatcher>;
36
- }
@@ -1,92 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { InjectionToken, IterableChangeRecord, IterableChanges, TemplateRef, ViewContainerRef } from '@angular/core';
9
- /**
10
- * The context for an embedded view in the repeater's view container.
11
- *
12
- * @template T The type for the embedded view's $implicit property.
13
- */
14
- export interface _ViewRepeaterItemContext<T> {
15
- $implicit?: T;
16
- }
17
- /**
18
- * The arguments needed to construct an embedded view for an item in a view
19
- * container.
20
- *
21
- * @template C The type for the context passed to each embedded view.
22
- */
23
- export interface _ViewRepeaterItemInsertArgs<C> {
24
- templateRef: TemplateRef<C>;
25
- context?: C;
26
- index?: number;
27
- }
28
- /**
29
- * A factory that derives the embedded view context for an item in a view
30
- * container.
31
- *
32
- * @template T The type for the embedded view's $implicit property.
33
- * @template R The type for the item in each IterableDiffer change record.
34
- * @template C The type for the context passed to each embedded view.
35
- */
36
- export declare type _ViewRepeaterItemContextFactory<T, R, C extends _ViewRepeaterItemContext<T>> = (record: IterableChangeRecord<R>, adjustedPreviousIndex: number | null, currentIndex: number | null) => _ViewRepeaterItemInsertArgs<C>;
37
- /**
38
- * Extracts the value of an item from an {@link IterableChangeRecord}.
39
- *
40
- * @template T The type for the embedded view's $implicit property.
41
- * @template R The type for the item in each IterableDiffer change record.
42
- */
43
- export declare type _ViewRepeaterItemValueResolver<T, R> = (record: IterableChangeRecord<R>) => T;
44
- /** Indicates how a view was changed by a {@link _ViewRepeater}. */
45
- export declare const enum _ViewRepeaterOperation {
46
- /** The content of an existing view was replaced with another item. */
47
- REPLACED = 0,
48
- /** A new view was created with `createEmbeddedView`. */
49
- INSERTED = 1,
50
- /** The position of a view changed, but the content remains the same. */
51
- MOVED = 2,
52
- /** A view was detached from the view container. */
53
- REMOVED = 3
54
- }
55
- /**
56
- * Meta data describing the state of a view after it was updated by a
57
- * {@link _ViewRepeater}.
58
- *
59
- * @template R The type for the item in each IterableDiffer change record.
60
- * @template C The type for the context passed to each embedded view.
61
- */
62
- export interface _ViewRepeaterItemChange<R, C> {
63
- /** The view's context after it was changed. */
64
- context?: C;
65
- /** Indicates how the view was changed. */
66
- operation: _ViewRepeaterOperation;
67
- /** The view's corresponding change record. */
68
- record: IterableChangeRecord<R>;
69
- }
70
- /**
71
- * Type for a callback to be executed after a view has changed.
72
- *
73
- * @template R The type for the item in each IterableDiffer change record.
74
- * @template C The type for the context passed to each embedded view.
75
- */
76
- export declare type _ViewRepeaterItemChanged<R, C> = (change: _ViewRepeaterItemChange<R, C>) => void;
77
- /**
78
- * Describes a strategy for rendering items in a {@link ViewContainerRef}.
79
- *
80
- * @template T The type for the embedded view's $implicit property.
81
- * @template R The type for the item in each IterableDiffer change record.
82
- * @template C The type for the context passed to each embedded view.
83
- */
84
- export interface _ViewRepeater<T, R, C extends _ViewRepeaterItemContext<T>> {
85
- applyChanges(changes: IterableChanges<R>, viewContainerRef: ViewContainerRef, itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>, itemValueResolver: _ViewRepeaterItemValueResolver<T, R>, itemViewChanged?: _ViewRepeaterItemChanged<R, C>): void;
86
- detach(): void;
87
- }
88
- /**
89
- * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
90
- * @docs-private
91
- */
92
- export declare const _VIEW_REPEATER_STRATEGY: InjectionToken<_ViewRepeater<unknown, unknown, _ViewRepeaterItemContext<unknown>>>;
@@ -1,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
- /** Gets a mutable version of an element's bounding `ClientRect`. */
9
- export declare function getMutableClientRect(element: Element): ClientRect;
10
- /**
11
- * Checks whether some coordinates are within a `ClientRect`.
12
- * @param clientRect ClientRect that is being checked.
13
- * @param x Coordinates along the X axis.
14
- * @param y Coordinates along the Y axis.
15
- */
16
- export declare function isInsideClientRect(clientRect: ClientRect, x: number, y: number): boolean;
17
- /**
18
- * Updates the top/left positions of a `ClientRect`, as well as their bottom/right counterparts.
19
- * @param clientRect `ClientRect` that should be updated.
20
- * @param top Amount to add to the `top` position.
21
- * @param left Amount to add to the `left` position.
22
- */
23
- export declare function adjustClientRect(clientRect: {
24
- top: number;
25
- bottom: number;
26
- left: number;
27
- right: number;
28
- width: number;
29
- height: number;
30
- }, top: number, left: number): void;
31
- /**
32
- * Checks whether the pointer coordinates are close to a ClientRect.
33
- * @param rect ClientRect to check against.
34
- * @param threshold Threshold around the ClientRect.
35
- * @param pointerX Coordinates along the X axis.
36
- * @param pointerY Coordinates along the Y axis.
37
- */
38
- export declare function isPointerNearClientRect(rect: ClientRect, threshold: number, pointerX: number, pointerY: number): boolean;
@@ -1,9 +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
- /** Creates a deep clone of an element. */
9
- export declare function deepCloneNode(node: HTMLElement): HTMLElement;
@@ -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
- * Asserts that a particular node is an element.
10
- * @param node Node to be checked.
11
- * @param name Name to attach to the error message.
12
- */
13
- export declare function assertElementNode(node: Node, name: string): asserts node is HTMLElement;
@@ -1,43 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { InjectionToken } from '@angular/core';
9
- import { DragRefConfig, Point, DragRef } from '../drag-ref';
10
- /** Possible values that can be used to configure the drag start delay. */
11
- export declare type DragStartDelay = number | {
12
- touch: number;
13
- mouse: number;
14
- };
15
- /** Possible axis along which dragging can be locked. */
16
- export declare type DragAxis = 'x' | 'y';
17
- /** Function that can be used to constrain the position of a dragged element. */
18
- export declare type DragConstrainPosition = (point: Point, dragRef: DragRef) => Point;
19
- /** Possible orientations for a drop list. */
20
- export declare type DropListOrientation = 'horizontal' | 'vertical';
21
- /**
22
- * Injection token that can be used to configure the
23
- * behavior of the drag&drop-related components.
24
- */
25
- export declare const CDK_DRAG_CONFIG: InjectionToken<DragDropConfig>;
26
- /**
27
- * Object that can be used to configure the drag
28
- * items and drop lists within a module or a component.
29
- */
30
- export interface DragDropConfig extends Partial<DragRefConfig> {
31
- lockAxis?: DragAxis;
32
- dragStartDelay?: DragStartDelay;
33
- constrainPosition?: DragConstrainPosition;
34
- previewClass?: string | string[];
35
- boundaryElement?: string;
36
- rootElementSelector?: string;
37
- draggingDisabled?: boolean;
38
- sortingDisabled?: boolean;
39
- listAutoScrollDisabled?: boolean;
40
- listOrientation?: DropListOrientation;
41
- zIndex?: number;
42
- previewContainer?: 'global' | 'parent';
43
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { BooleanInput } from '@angular/cdk/coercion';
9
- import { ElementRef, InjectionToken, OnDestroy } from '@angular/core';
10
- import { Subject } from 'rxjs';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Injection token that can be used to reference instances of `CdkDragHandle`. It serves as
14
- * alternative token to the actual `CdkDragHandle` class which could cause unnecessary
15
- * retention of the class and its directive metadata.
16
- */
17
- export declare const CDK_DRAG_HANDLE: InjectionToken<CdkDragHandle>;
18
- /** Handle that can be used to drag a CdkDrag instance. */
19
- export declare class CdkDragHandle implements OnDestroy {
20
- element: ElementRef<HTMLElement>;
21
- /** Closest parent draggable instance. */
22
- _parentDrag: {} | undefined;
23
- /** Emits when the state of the handle has changed. */
24
- readonly _stateChanges: Subject<CdkDragHandle>;
25
- /** Whether starting to drag through this handle is disabled. */
26
- get disabled(): boolean;
27
- set disabled(value: BooleanInput);
28
- private _disabled;
29
- constructor(element: ElementRef<HTMLElement>, parentDrag?: any);
30
- ngOnDestroy(): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragHandle, [null, { optional: true; skipSelf: true; }]>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragHandle, "[cdkDragHandle]", never, { "disabled": "cdkDragHandleDisabled"; }, {}, never>;
33
- }
@@ -1,27 +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, InjectionToken } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * Injection token that can be used to reference instances of `CdkDragPlaceholder`. It serves as
12
- * alternative token to the actual `CdkDragPlaceholder` class which could cause unnecessary
13
- * retention of the class and its directive metadata.
14
- */
15
- export declare const CDK_DRAG_PLACEHOLDER: InjectionToken<CdkDragPlaceholder<any>>;
16
- /**
17
- * Element that will be used as a template for the placeholder of a CdkDrag when
18
- * it is being dragged. The placeholder is displayed in place of the element being dragged.
19
- */
20
- export declare class CdkDragPlaceholder<T = any> {
21
- templateRef: TemplateRef<T>;
22
- /** Context data to be added to the placeholder template instance. */
23
- data: T;
24
- constructor(templateRef: TemplateRef<T>);
25
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPlaceholder<any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { "data": "data"; }, {}, never>;
27
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { BooleanInput } from '@angular/cdk/coercion';
9
- import { InjectionToken, TemplateRef } from '@angular/core';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * Injection token that can be used to reference instances of `CdkDragPreview`. It serves as
13
- * alternative token to the actual `CdkDragPreview` class which could cause unnecessary
14
- * retention of the class and its directive metadata.
15
- */
16
- export declare const CDK_DRAG_PREVIEW: InjectionToken<CdkDragPreview<any>>;
17
- /**
18
- * Element that will be used as a template for the preview
19
- * of a CdkDrag when it is being dragged.
20
- */
21
- export declare class CdkDragPreview<T = any> {
22
- templateRef: TemplateRef<T>;
23
- /** Context data to be added to the preview template instance. */
24
- data: T;
25
- /** Whether the preview should preserve the same size as the item that is being dragged. */
26
- get matchSize(): boolean;
27
- set matchSize(value: BooleanInput);
28
- private _matchSize;
29
- constructor(templateRef: TemplateRef<T>);
30
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDragPreview<any>, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { "data": "data"; "matchSize": "matchSize"; }, {}, never>;
32
- }
@@ -1,160 +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 { Directionality } from '@angular/cdk/bidi';
9
- import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, QueryList, ViewContainerRef, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
10
- import { BooleanInput } from '@angular/cdk/coercion';
11
- import { Observable } from 'rxjs';
12
- import { CdkDragDrop, CdkDragEnd, CdkDragEnter, CdkDragExit, CdkDragMove, CdkDragStart, CdkDragRelease } from '../drag-events';
13
- import { CdkDragHandle } from './drag-handle';
14
- import { CdkDragPlaceholder } from './drag-placeholder';
15
- import { CdkDragPreview } from './drag-preview';
16
- import { DragRef, Point, PreviewContainer } from '../drag-ref';
17
- import { CdkDropListInternal as CdkDropList } from './drop-list';
18
- import { DragDrop } from '../drag-drop';
19
- import { DragDropConfig, DragStartDelay, DragAxis } from './config';
20
- import * as i0 from "@angular/core";
21
- /** Element that can be moved inside a CdkDropList container. */
22
- export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {
23
- /** Element that the draggable is attached to. */
24
- element: ElementRef<HTMLElement>;
25
- /** Droppable container that the draggable is a part of. */
26
- dropContainer: CdkDropList;
27
- private _ngZone;
28
- private _viewContainerRef;
29
- private _dir;
30
- private _changeDetectorRef;
31
- private _selfHandle?;
32
- private _parentDrag?;
33
- private readonly _destroyed;
34
- private static _dragInstances;
35
- /** Reference to the underlying drag instance. */
36
- _dragRef: DragRef<CdkDrag<T>>;
37
- /** Elements that can be used to drag the draggable item. */
38
- _handles: QueryList<CdkDragHandle>;
39
- /** Element that will be used as a template to create the draggable item's preview. */
40
- _previewTemplate: CdkDragPreview;
41
- /** Template for placeholder element rendered to show where a draggable would be dropped. */
42
- _placeholderTemplate: CdkDragPlaceholder;
43
- /** Arbitrary data to attach to this drag instance. */
44
- data: T;
45
- /** Locks the position of the dragged element along the specified axis. */
46
- lockAxis: DragAxis;
47
- /**
48
- * Selector that will be used to determine the root draggable element, starting from
49
- * the `cdkDrag` element and going up the DOM. Passing an alternate root element is useful
50
- * when trying to enable dragging on an element that you might not have access to.
51
- */
52
- rootElementSelector: string;
53
- /**
54
- * Node or selector that will be used to determine the element to which the draggable's
55
- * position will be constrained. If a string is passed in, it'll be used as a selector that
56
- * will be matched starting from the element's parent and going up the DOM until a match
57
- * has been found.
58
- */
59
- boundaryElement: string | ElementRef<HTMLElement> | HTMLElement;
60
- /**
61
- * Amount of milliseconds to wait after the user has put their
62
- * pointer down before starting to drag the element.
63
- */
64
- dragStartDelay: DragStartDelay;
65
- /**
66
- * Sets the position of a `CdkDrag` that is outside of a drop container.
67
- * Can be used to restore the element's position for a returning user.
68
- */
69
- freeDragPosition: {
70
- x: number;
71
- y: number;
72
- };
73
- /** Whether starting to drag this element is disabled. */
74
- get disabled(): boolean;
75
- set disabled(value: BooleanInput);
76
- private _disabled;
77
- /**
78
- * Function that can be used to customize the logic of how the position of the drag item
79
- * is limited while it's being dragged. Gets called with a point containing the current position
80
- * of the user's pointer on the page and should return a point describing where the item should
81
- * be rendered.
82
- */
83
- constrainPosition?: (point: Point, dragRef: DragRef) => Point;
84
- /** Class to be added to the preview element. */
85
- previewClass: string | string[];
86
- /**
87
- * Configures the place into which the preview of the item will be inserted. Can be configured
88
- * globally through `CDK_DROP_LIST`. Possible values:
89
- * - `global` - Preview will be inserted at the bottom of the `<body>`. The advantage is that
90
- * you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain
91
- * its inherited styles.
92
- * - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that
93
- * inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be
94
- * visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors
95
- * like `:nth-child` and some flexbox configurations.
96
- * - `ElementRef<HTMLElement> | HTMLElement` - Preview will be inserted into a specific element.
97
- * Same advantages and disadvantages as `parent`.
98
- */
99
- previewContainer: PreviewContainer;
100
- /** Emits when the user starts dragging the item. */
101
- readonly started: EventEmitter<CdkDragStart>;
102
- /** Emits when the user has released a drag item, before any animations have started. */
103
- readonly released: EventEmitter<CdkDragRelease>;
104
- /** Emits when the user stops dragging an item in the container. */
105
- readonly ended: EventEmitter<CdkDragEnd>;
106
- /** Emits when the user has moved the item into a new container. */
107
- readonly entered: EventEmitter<CdkDragEnter<any>>;
108
- /** Emits when the user removes the item its container by dragging it into another container. */
109
- readonly exited: EventEmitter<CdkDragExit<any>>;
110
- /** Emits when the user drops the item inside a container. */
111
- readonly dropped: EventEmitter<CdkDragDrop<any>>;
112
- /**
113
- * Emits as the user is dragging the item. Use with caution,
114
- * because this event will fire for every pixel that the user has dragged.
115
- */
116
- readonly moved: Observable<CdkDragMove<T>>;
117
- constructor(
118
- /** Element that the draggable is attached to. */
119
- element: ElementRef<HTMLElement>,
120
- /** Droppable container that the draggable is a part of. */
121
- dropContainer: CdkDropList,
122
- /**
123
- * @deprecated `_document` parameter no longer being used and will be removed.
124
- * @breaking-change 12.0.0
125
- */
126
- _document: any, _ngZone: NgZone, _viewContainerRef: ViewContainerRef, config: DragDropConfig, _dir: Directionality, dragDrop: DragDrop, _changeDetectorRef: ChangeDetectorRef, _selfHandle?: CdkDragHandle | undefined, _parentDrag?: CdkDrag<any> | undefined);
127
- /**
128
- * Returns the element that is being used as a placeholder
129
- * while the current element is being dragged.
130
- */
131
- getPlaceholderElement(): HTMLElement;
132
- /** Returns the root draggable element. */
133
- getRootElement(): HTMLElement;
134
- /** Resets a standalone drag item to its initial position. */
135
- reset(): void;
136
- /**
137
- * Gets the pixel coordinates of the draggable outside of a drop container.
138
- */
139
- getFreeDragPosition(): {
140
- readonly x: number;
141
- readonly y: number;
142
- };
143
- ngAfterViewInit(): void;
144
- ngOnChanges(changes: SimpleChanges): void;
145
- ngOnDestroy(): void;
146
- /** Syncs the root element with the `DragRef`. */
147
- private _updateRootElement;
148
- /** Gets the boundary element, based on the `boundaryElement` value. */
149
- private _getBoundaryElement;
150
- /** Syncs the inputs of the CdkDrag with the options of the underlying DragRef. */
151
- private _syncInputs;
152
- /** Handles the events from the underlying `DragRef`. */
153
- private _handleEvents;
154
- /** Assigns the default input values based on a provided config object. */
155
- private _assignDefaults;
156
- /** Sets up the listener that syncs the handles with the drag ref. */
157
- private _setupHandlesListener;
158
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDrag<any>, [null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }, { optional: true; }, null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }]>;
159
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { "data": "cdkDragData"; "lockAxis": "cdkDragLockAxis"; "rootElementSelector": "cdkDragRootElement"; "boundaryElement": "cdkDragBoundary"; "dragStartDelay": "cdkDragStartDelay"; "freeDragPosition": "cdkDragFreeDragPosition"; "disabled": "cdkDragDisabled"; "constrainPosition": "cdkDragConstrainPosition"; "previewClass": "cdkDragPreviewClass"; "previewContainer": "cdkDragPreviewContainer"; }, { "started": "cdkDragStarted"; "released": "cdkDragReleased"; "ended": "cdkDragEnded"; "entered": "cdkDragEntered"; "exited": "cdkDragExited"; "dropped": "cdkDragDropped"; "moved": "cdkDragMoved"; }, ["_previewTemplate", "_placeholderTemplate", "_handles"]>;
160
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { OnDestroy, InjectionToken } from '@angular/core';
9
- import { BooleanInput } from '@angular/cdk/coercion';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as
13
- * alternative token to the actual `CdkDropListGroup` class which could cause unnecessary
14
- * retention of the class and its directive metadata.
15
- */
16
- export declare const CDK_DROP_LIST_GROUP: InjectionToken<CdkDropListGroup<unknown>>;
17
- /**
18
- * Declaratively connects sibling `cdkDropList` instances together. All of the `cdkDropList`
19
- * elements that are placed inside a `cdkDropListGroup` will be connected to each other
20
- * automatically. Can be used as an alternative to the `cdkDropListConnectedTo` input
21
- * from `cdkDropList`.
22
- */
23
- export declare class CdkDropListGroup<T> implements OnDestroy {
24
- /** Drop lists registered inside the group. */
25
- readonly _items: Set<T>;
26
- /** Whether starting a dragging sequence from inside this group is disabled. */
27
- get disabled(): boolean;
28
- set disabled(value: BooleanInput);
29
- private _disabled;
30
- ngOnDestroy(): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkDropListGroup<any>, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { "disabled": "cdkDropListGroupDisabled"; }, {}, never>;
33
- }