@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,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 { NgZone, ElementRef } from '@angular/core';
9
- import { ViewportRuler } from '@angular/cdk/scrolling';
10
- import { DragRef, DragRefConfig } from './drag-ref';
11
- import { DropListRef } from './drop-list-ref';
12
- import { DragDropRegistry } from './drag-drop-registry';
13
- import * as i0 from "@angular/core";
14
- /**
15
- * Service that allows for drag-and-drop functionality to be attached to DOM elements.
16
- */
17
- export declare class DragDrop {
18
- private _document;
19
- private _ngZone;
20
- private _viewportRuler;
21
- private _dragDropRegistry;
22
- constructor(_document: any, _ngZone: NgZone, _viewportRuler: ViewportRuler, _dragDropRegistry: DragDropRegistry<DragRef, DropListRef>);
23
- /**
24
- * Turns an element into a draggable item.
25
- * @param element Element to which to attach the dragging functionality.
26
- * @param config Object used to configure the dragging behavior.
27
- */
28
- createDrag<T = any>(element: ElementRef<HTMLElement> | HTMLElement, config?: DragRefConfig): DragRef<T>;
29
- /**
30
- * Turns an element into a drop list.
31
- * @param element Element to which to attach the drop list functionality.
32
- */
33
- createDropList<T = any>(element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<DragDrop, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<DragDrop>;
36
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
@@ -1,124 +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 { CdkDrag } from './directives/drag';
9
- import { CdkDropList } from './directives/drop-list';
10
- /** Event emitted when the user starts dragging a draggable. */
11
- export interface CdkDragStart<T = any> {
12
- /** Draggable that emitted the event. */
13
- source: CdkDrag<T>;
14
- /** Native event that started the drag sequence. */
15
- event: MouseEvent | TouchEvent;
16
- }
17
- /** Event emitted when the user releases an item, before any animations have started. */
18
- export interface CdkDragRelease<T = any> {
19
- /** Draggable that emitted the event. */
20
- source: CdkDrag<T>;
21
- /** Native event that caused the release event. */
22
- event: MouseEvent | TouchEvent;
23
- }
24
- /** Event emitted when the user stops dragging a draggable. */
25
- export interface CdkDragEnd<T = any> {
26
- /** Draggable that emitted the event. */
27
- source: CdkDrag<T>;
28
- /** Distance in pixels that the user has dragged since the drag sequence started. */
29
- distance: {
30
- x: number;
31
- y: number;
32
- };
33
- /** Position where the pointer was when the item was dropped */
34
- dropPoint: {
35
- x: number;
36
- y: number;
37
- };
38
- /** Native event that caused the dragging to stop. */
39
- event: MouseEvent | TouchEvent;
40
- }
41
- /** Event emitted when the user moves an item into a new drop container. */
42
- export interface CdkDragEnter<T = any, I = T> {
43
- /** Container into which the user has moved the item. */
44
- container: CdkDropList<T>;
45
- /** Item that was moved into the container. */
46
- item: CdkDrag<I>;
47
- /** Index at which the item has entered the container. */
48
- currentIndex: number;
49
- }
50
- /**
51
- * Event emitted when the user removes an item from a
52
- * drop container by moving it into another one.
53
- */
54
- export interface CdkDragExit<T = any, I = T> {
55
- /** Container from which the user has a removed an item. */
56
- container: CdkDropList<T>;
57
- /** Item that was removed from the container. */
58
- item: CdkDrag<I>;
59
- }
60
- /** Event emitted when the user drops a draggable item inside a drop container. */
61
- export interface CdkDragDrop<T, O = T, I = any> {
62
- /** Index of the item when it was picked up. */
63
- previousIndex: number;
64
- /** Current index of the item. */
65
- currentIndex: number;
66
- /** Item that is being dropped. */
67
- item: CdkDrag<I>;
68
- /** Container in which the item was dropped. */
69
- container: CdkDropList<T>;
70
- /** Container from which the item was picked up. Can be the same as the `container`. */
71
- previousContainer: CdkDropList<O>;
72
- /** Whether the user's pointer was over the container when the item was dropped. */
73
- isPointerOverContainer: boolean;
74
- /** Distance in pixels that the user has dragged since the drag sequence started. */
75
- distance: {
76
- x: number;
77
- y: number;
78
- };
79
- /** Position where the pointer was when the item was dropped */
80
- dropPoint: {
81
- x: number;
82
- y: number;
83
- };
84
- /** Native event that caused the drop event. */
85
- event: MouseEvent | TouchEvent;
86
- }
87
- /** Event emitted as the user is dragging a draggable item. */
88
- export interface CdkDragMove<T = any> {
89
- /** Item that is being dragged. */
90
- source: CdkDrag<T>;
91
- /** Position of the user's pointer on the page. */
92
- pointerPosition: {
93
- x: number;
94
- y: number;
95
- };
96
- /** Native event that is causing the dragging. */
97
- event: MouseEvent | TouchEvent;
98
- /** Distance in pixels that the user has dragged since the drag sequence started. */
99
- distance: {
100
- x: number;
101
- y: number;
102
- };
103
- /**
104
- * Indicates the direction in which the user is dragging the element along each axis.
105
- * `1` means that the position is increasing (e.g. the user is moving to the right or downwards),
106
- * whereas `-1` means that it's decreasing (they're moving to the left or upwards). `0` means
107
- * that the position hasn't changed.
108
- */
109
- delta: {
110
- x: -1 | 0 | 1;
111
- y: -1 | 0 | 1;
112
- };
113
- }
114
- /** Event emitted when the user swaps the position of two drag items. */
115
- export interface CdkDragSortEvent<T = any, I = T> {
116
- /** Index from which the item was sorted previously. */
117
- previousIndex: number;
118
- /** Index that the item is currently in. */
119
- currentIndex: number;
120
- /** Container that the item belongs to. */
121
- container: CdkDropList<T>;
122
- /** Item that is being sorted. */
123
- item: CdkDrag<I>;
124
- }
@@ -1,15 +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
- /**
10
- * Injection token that can be used for a `CdkDrag` to provide itself as a parent to the
11
- * drag-specific child directive (`CdkDragHandle`, `CdkDragPreview` etc.). Used primarily
12
- * to avoid circular imports.
13
- * @docs-private
14
- */
15
- export declare const CDK_DRAG_PARENT: InjectionToken<{}>;
@@ -1,448 +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 { ElementRef, NgZone, ViewContainerRef, TemplateRef } from '@angular/core';
9
- import { ViewportRuler } from '@angular/cdk/scrolling';
10
- import { Direction } from '@angular/cdk/bidi';
11
- import { Subject, Observable } from 'rxjs';
12
- import { DropListRefInternal as DropListRef } from './drop-list-ref';
13
- import { DragDropRegistry } from './drag-drop-registry';
14
- /** Object that can be used to configure the behavior of DragRef. */
15
- export interface DragRefConfig {
16
- /**
17
- * Minimum amount of pixels that the user should
18
- * drag, before the CDK initiates a drag sequence.
19
- */
20
- dragStartThreshold: number;
21
- /**
22
- * Amount the pixels the user should drag before the CDK
23
- * considers them to have changed the drag direction.
24
- */
25
- pointerDirectionChangeThreshold: number;
26
- /** `z-index` for the absolutely-positioned elements that are created by the drag item. */
27
- zIndex?: number;
28
- /** Ref that the current drag item is nested in. */
29
- parentDragRef?: DragRef;
30
- }
31
- /**
32
- * Internal compile-time-only representation of a `DragRef`.
33
- * Used to avoid circular import issues between the `DragRef` and the `DropListRef`.
34
- * @docs-private
35
- */
36
- export interface DragRefInternal extends DragRef {
37
- }
38
- /** Template that can be used to create a drag helper element (e.g. a preview or a placeholder). */
39
- interface DragHelperTemplate<T = any> {
40
- template: TemplateRef<T> | null;
41
- viewContainer: ViewContainerRef;
42
- context: T;
43
- }
44
- /** Template that can be used to create a drag preview element. */
45
- interface DragPreviewTemplate<T = any> extends DragHelperTemplate<T> {
46
- matchSize?: boolean;
47
- }
48
- /** Point on the page or within an element. */
49
- export interface Point {
50
- x: number;
51
- y: number;
52
- }
53
- /**
54
- * Possible places into which the preview of a drag item can be inserted.
55
- * - `global` - Preview will be inserted at the bottom of the `<body>`. The advantage is that
56
- * you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain
57
- * its inherited styles.
58
- * - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that
59
- * inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be
60
- * visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors
61
- * like `:nth-child` and some flexbox configurations.
62
- * - `ElementRef<HTMLElement> | HTMLElement` - Preview will be inserted into a specific element.
63
- * Same advantages and disadvantages as `parent`.
64
- */
65
- export declare type PreviewContainer = 'global' | 'parent' | ElementRef<HTMLElement> | HTMLElement;
66
- /**
67
- * Reference to a draggable item. Used to manipulate or dispose of the item.
68
- */
69
- export declare class DragRef<T = any> {
70
- private _config;
71
- private _document;
72
- private _ngZone;
73
- private _viewportRuler;
74
- private _dragDropRegistry;
75
- /** Element displayed next to the user's pointer while the element is dragged. */
76
- private _preview;
77
- /** Reference to the view of the preview element. */
78
- private _previewRef;
79
- /** Container into which to insert the preview. */
80
- private _previewContainer;
81
- /** Reference to the view of the placeholder element. */
82
- private _placeholderRef;
83
- /** Element that is rendered instead of the draggable item while it is being sorted. */
84
- private _placeholder;
85
- /** Coordinates within the element at which the user picked up the element. */
86
- private _pickupPositionInElement;
87
- /** Coordinates on the page at which the user picked up the element. */
88
- private _pickupPositionOnPage;
89
- /**
90
- * Anchor node used to save the place in the DOM where the element was
91
- * picked up so that it can be restored at the end of the drag sequence.
92
- */
93
- private _anchor;
94
- /**
95
- * CSS `transform` applied to the element when it isn't being dragged. We need a
96
- * passive transform in order for the dragged element to retain its new position
97
- * after the user has stopped dragging and because we need to know the relative
98
- * position in case they start dragging again. This corresponds to `element.style.transform`.
99
- */
100
- private _passiveTransform;
101
- /** CSS `transform` that is applied to the element while it's being dragged. */
102
- private _activeTransform;
103
- /** Inline `transform` value that the element had before the first dragging sequence. */
104
- private _initialTransform?;
105
- /**
106
- * Whether the dragging sequence has been started. Doesn't
107
- * necessarily mean that the element has been moved.
108
- */
109
- private _hasStartedDragging;
110
- /** Whether the element has moved since the user started dragging it. */
111
- private _hasMoved;
112
- /** Drop container in which the DragRef resided when dragging began. */
113
- private _initialContainer;
114
- /** Index at which the item started in its initial container. */
115
- private _initialIndex;
116
- /** Cached positions of scrollable parent elements. */
117
- private _parentPositions;
118
- /** Emits when the item is being moved. */
119
- private readonly _moveEvents;
120
- /** Keeps track of the direction in which the user is dragging along each axis. */
121
- private _pointerDirectionDelta;
122
- /** Pointer position at which the last change in the delta occurred. */
123
- private _pointerPositionAtLastDirectionChange;
124
- /** Position of the pointer at the last pointer event. */
125
- private _lastKnownPointerPosition;
126
- /**
127
- * Root DOM node of the drag instance. This is the element that will
128
- * be moved around as the user is dragging.
129
- */
130
- private _rootElement;
131
- /**
132
- * Nearest ancestor SVG, relative to which coordinates are calculated if dragging SVGElement
133
- */
134
- private _ownerSVGElement;
135
- /**
136
- * Inline style value of `-webkit-tap-highlight-color` at the time the
137
- * dragging was started. Used to restore the value once we're done dragging.
138
- */
139
- private _rootElementTapHighlight;
140
- /** Subscription to pointer movement events. */
141
- private _pointerMoveSubscription;
142
- /** Subscription to the event that is dispatched when the user lifts their pointer. */
143
- private _pointerUpSubscription;
144
- /** Subscription to the viewport being scrolled. */
145
- private _scrollSubscription;
146
- /** Subscription to the viewport being resized. */
147
- private _resizeSubscription;
148
- /**
149
- * Time at which the last touch event occurred. Used to avoid firing the same
150
- * events multiple times on touch devices where the browser will fire a fake
151
- * mouse event for each touch event, after a certain time.
152
- */
153
- private _lastTouchEventTime;
154
- /** Time at which the last dragging sequence was started. */
155
- private _dragStartTime;
156
- /** Cached reference to the boundary element. */
157
- private _boundaryElement;
158
- /** Whether the native dragging interactions have been enabled on the root element. */
159
- private _nativeInteractionsEnabled;
160
- /** Cached dimensions of the preview element. Should be read via `_getPreviewRect`. */
161
- private _previewRect?;
162
- /** Cached dimensions of the boundary element. */
163
- private _boundaryRect?;
164
- /** Element that will be used as a template to create the draggable item's preview. */
165
- private _previewTemplate?;
166
- /** Template for placeholder element rendered to show where a draggable would be dropped. */
167
- private _placeholderTemplate?;
168
- /** Elements that can be used to drag the draggable item. */
169
- private _handles;
170
- /** Registered handles that are currently disabled. */
171
- private _disabledHandles;
172
- /** Droppable container that the draggable is a part of. */
173
- private _dropContainer?;
174
- /** Layout direction of the item. */
175
- private _direction;
176
- /** Ref that the current drag item is nested in. */
177
- private _parentDragRef;
178
- /**
179
- * Cached shadow root that the element is placed in. `null` means that the element isn't in
180
- * the shadow DOM and `undefined` means that it hasn't been resolved yet. Should be read via
181
- * `_getShadowRoot`, not directly.
182
- */
183
- private _cachedShadowRoot;
184
- /** Axis along which dragging is locked. */
185
- lockAxis: 'x' | 'y';
186
- /**
187
- * Amount of milliseconds to wait after the user has put their
188
- * pointer down before starting to drag the element.
189
- */
190
- dragStartDelay: number | {
191
- touch: number;
192
- mouse: number;
193
- };
194
- /** Class to be added to the preview element. */
195
- previewClass: string | string[] | undefined;
196
- /** Whether starting to drag this element is disabled. */
197
- get disabled(): boolean;
198
- set disabled(value: boolean);
199
- private _disabled;
200
- /** Emits as the drag sequence is being prepared. */
201
- readonly beforeStarted: Subject<void>;
202
- /** Emits when the user starts dragging the item. */
203
- readonly started: Subject<{
204
- source: DragRef;
205
- event: MouseEvent | TouchEvent;
206
- }>;
207
- /** Emits when the user has released a drag item, before any animations have started. */
208
- readonly released: Subject<{
209
- source: DragRef;
210
- event: MouseEvent | TouchEvent;
211
- }>;
212
- /** Emits when the user stops dragging an item in the container. */
213
- readonly ended: Subject<{
214
- source: DragRef;
215
- distance: Point;
216
- dropPoint: Point;
217
- event: MouseEvent | TouchEvent;
218
- }>;
219
- /** Emits when the user has moved the item into a new container. */
220
- readonly entered: Subject<{
221
- container: DropListRef;
222
- item: DragRef;
223
- currentIndex: number;
224
- }>;
225
- /** Emits when the user removes the item its container by dragging it into another container. */
226
- readonly exited: Subject<{
227
- container: DropListRef;
228
- item: DragRef;
229
- }>;
230
- /** Emits when the user drops the item inside a container. */
231
- readonly dropped: Subject<{
232
- previousIndex: number;
233
- currentIndex: number;
234
- item: DragRef;
235
- container: DropListRef;
236
- previousContainer: DropListRef;
237
- distance: Point;
238
- dropPoint: Point;
239
- isPointerOverContainer: boolean;
240
- event: MouseEvent | TouchEvent;
241
- }>;
242
- /**
243
- * Emits as the user is dragging the item. Use with caution,
244
- * because this event will fire for every pixel that the user has dragged.
245
- */
246
- readonly moved: Observable<{
247
- source: DragRef;
248
- pointerPosition: {
249
- x: number;
250
- y: number;
251
- };
252
- event: MouseEvent | TouchEvent;
253
- distance: Point;
254
- delta: {
255
- x: -1 | 0 | 1;
256
- y: -1 | 0 | 1;
257
- };
258
- }>;
259
- /** Arbitrary data that can be attached to the drag item. */
260
- data: T;
261
- /**
262
- * Function that can be used to customize the logic of how the position of the drag item
263
- * is limited while it's being dragged. Gets called with a point containing the current position
264
- * of the user's pointer on the page and should return a point describing where the item should
265
- * be rendered.
266
- */
267
- constrainPosition?: (point: Point, dragRef: DragRef) => Point;
268
- constructor(element: ElementRef<HTMLElement> | HTMLElement, _config: DragRefConfig, _document: Document, _ngZone: NgZone, _viewportRuler: ViewportRuler, _dragDropRegistry: DragDropRegistry<DragRef, DropListRef>);
269
- /**
270
- * Returns the element that is being used as a placeholder
271
- * while the current element is being dragged.
272
- */
273
- getPlaceholderElement(): HTMLElement;
274
- /** Returns the root draggable element. */
275
- getRootElement(): HTMLElement;
276
- /**
277
- * Gets the currently-visible element that represents the drag item.
278
- * While dragging this is the placeholder, otherwise it's the root element.
279
- */
280
- getVisibleElement(): HTMLElement;
281
- /** Registers the handles that can be used to drag the element. */
282
- withHandles(handles: (HTMLElement | ElementRef<HTMLElement>)[]): this;
283
- /**
284
- * Registers the template that should be used for the drag preview.
285
- * @param template Template that from which to stamp out the preview.
286
- */
287
- withPreviewTemplate(template: DragPreviewTemplate | null): this;
288
- /**
289
- * Registers the template that should be used for the drag placeholder.
290
- * @param template Template that from which to stamp out the placeholder.
291
- */
292
- withPlaceholderTemplate(template: DragHelperTemplate | null): this;
293
- /**
294
- * Sets an alternate drag root element. The root element is the element that will be moved as
295
- * the user is dragging. Passing an alternate root element is useful when trying to enable
296
- * dragging on an element that you might not have access to.
297
- */
298
- withRootElement(rootElement: ElementRef<HTMLElement> | HTMLElement): this;
299
- /**
300
- * Element to which the draggable's position will be constrained.
301
- */
302
- withBoundaryElement(boundaryElement: ElementRef<HTMLElement> | HTMLElement | null): this;
303
- /** Sets the parent ref that the ref is nested in. */
304
- withParent(parent: DragRef<unknown> | null): this;
305
- /** Removes the dragging functionality from the DOM element. */
306
- dispose(): void;
307
- /** Checks whether the element is currently being dragged. */
308
- isDragging(): boolean;
309
- /** Resets a standalone drag item to its initial position. */
310
- reset(): void;
311
- /**
312
- * Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.
313
- * @param handle Handle element that should be disabled.
314
- */
315
- disableHandle(handle: HTMLElement): void;
316
- /**
317
- * Enables a handle, if it has been disabled.
318
- * @param handle Handle element to be enabled.
319
- */
320
- enableHandle(handle: HTMLElement): void;
321
- /** Sets the layout direction of the draggable item. */
322
- withDirection(direction: Direction): this;
323
- /** Sets the container that the item is part of. */
324
- _withDropContainer(container: DropListRef): void;
325
- /**
326
- * Gets the current position in pixels the draggable outside of a drop container.
327
- */
328
- getFreeDragPosition(): Readonly<Point>;
329
- /**
330
- * Sets the current position in pixels the draggable outside of a drop container.
331
- * @param value New position to be set.
332
- */
333
- setFreeDragPosition(value: Point): this;
334
- /**
335
- * Sets the container into which to insert the preview element.
336
- * @param value Container into which to insert the preview.
337
- */
338
- withPreviewContainer(value: PreviewContainer): this;
339
- /** Updates the item's sort order based on the last-known pointer position. */
340
- _sortFromLastPointerPosition(): void;
341
- /** Unsubscribes from the global subscriptions. */
342
- private _removeSubscriptions;
343
- /** Destroys the preview element and its ViewRef. */
344
- private _destroyPreview;
345
- /** Destroys the placeholder element and its ViewRef. */
346
- private _destroyPlaceholder;
347
- /** Handler for the `mousedown`/`touchstart` events. */
348
- private _pointerDown;
349
- /** Handler that is invoked when the user moves their pointer after they've initiated a drag. */
350
- private _pointerMove;
351
- /** Handler that is invoked when the user lifts their pointer up, after initiating a drag. */
352
- private _pointerUp;
353
- /**
354
- * Clears subscriptions and stops the dragging sequence.
355
- * @param event Browser event object that ended the sequence.
356
- */
357
- private _endDragSequence;
358
- /** Starts the dragging sequence. */
359
- private _startDragSequence;
360
- /**
361
- * Sets up the different variables and subscriptions
362
- * that will be necessary for the dragging sequence.
363
- * @param referenceElement Element that started the drag sequence.
364
- * @param event Browser event object that started the sequence.
365
- */
366
- private _initializeDragSequence;
367
- /** Cleans up the DOM artifacts that were added to facilitate the element being dragged. */
368
- private _cleanupDragArtifacts;
369
- /**
370
- * Updates the item's position in its drop container, or moves it
371
- * into a new one, depending on its current drag position.
372
- */
373
- private _updateActiveDropContainer;
374
- /**
375
- * Creates the element that will be rendered next to the user's pointer
376
- * and will be used as a preview of the element that is being dragged.
377
- */
378
- private _createPreviewElement;
379
- /**
380
- * Animates the preview element from its current position to the location of the drop placeholder.
381
- * @returns Promise that resolves when the animation completes.
382
- */
383
- private _animatePreviewToPlaceholder;
384
- /** Creates an element that will be shown instead of the current element while dragging. */
385
- private _createPlaceholderElement;
386
- /**
387
- * Figures out the coordinates at which an element was picked up.
388
- * @param referenceElement Element that initiated the dragging.
389
- * @param event Event that initiated the dragging.
390
- */
391
- private _getPointerPositionInElement;
392
- /** Determines the point of the page that was touched by the user. */
393
- private _getPointerPositionOnPage;
394
- /** Gets the pointer position on the page, accounting for any position constraints. */
395
- private _getConstrainedPointerPosition;
396
- /** Updates the current drag delta, based on the user's current pointer position on the page. */
397
- private _updatePointerDirectionDelta;
398
- /** Toggles the native drag interactions, based on how many handles are registered. */
399
- private _toggleNativeDragInteractions;
400
- /** Removes the manually-added event listeners from the root element. */
401
- private _removeRootElementListeners;
402
- /**
403
- * Applies a `transform` to the root element, taking into account any existing transforms on it.
404
- * @param x New transform value along the X axis.
405
- * @param y New transform value along the Y axis.
406
- */
407
- private _applyRootElementTransform;
408
- /**
409
- * Applies a `transform` to the preview, taking into account any existing transforms on it.
410
- * @param x New transform value along the X axis.
411
- * @param y New transform value along the Y axis.
412
- */
413
- private _applyPreviewTransform;
414
- /**
415
- * Gets the distance that the user has dragged during the current drag sequence.
416
- * @param currentPosition Current position of the user's pointer.
417
- */
418
- private _getDragDistance;
419
- /** Cleans up any cached element dimensions that we don't need after dragging has stopped. */
420
- private _cleanupCachedDimensions;
421
- /**
422
- * Checks whether the element is still inside its boundary after the viewport has been resized.
423
- * If not, the position is adjusted so that the element fits again.
424
- */
425
- private _containInsideBoundaryOnResize;
426
- /** Gets the drag start delay, based on the event type. */
427
- private _getDragStartDelay;
428
- /** Updates the internal state of the draggable element when scrolling has occurred. */
429
- private _updateOnScroll;
430
- /** Gets the scroll position of the viewport. */
431
- private _getViewportScrollPosition;
432
- /**
433
- * Lazily resolves and returns the shadow root of the element. We do this in a function, rather
434
- * than saving it in property directly on init, because we want to resolve it as late as possible
435
- * in order to ensure that the element has been moved into the shadow DOM. Doing it inside the
436
- * constructor might be too early if the element is inside of something like `ngFor` or `ngIf`.
437
- */
438
- private _getShadowRoot;
439
- /** Gets the element into which the drag preview should be inserted. */
440
- private _getPreviewInsertionPoint;
441
- /** Lazily resolves and returns the dimensions of the preview. */
442
- private _getPreviewRect;
443
- /** Handles a native `dragstart` event. */
444
- private _nativeDragStart;
445
- /** Gets a handle that is the target of an event. */
446
- private _getTargetHandle;
447
- }
448
- export {};
@@ -1,42 +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
- * Extended CSSStyleDeclaration that includes a couple of drag-related
10
- * properties that aren't in the built-in TS typings.
11
- */
12
- export interface DragCSSStyleDeclaration extends CSSStyleDeclaration {
13
- msScrollSnapType: string;
14
- scrollSnapType: string;
15
- webkitTapHighlightColor: string;
16
- }
17
- /**
18
- * Shallow-extends a stylesheet object with another stylesheet-like object.
19
- * Note that the keys in `source` have to be dash-cased.
20
- * @docs-private
21
- */
22
- export declare function extendStyles(dest: CSSStyleDeclaration, source: Record<string, string>, importantProperties?: Set<string>): CSSStyleDeclaration;
23
- /**
24
- * Toggles whether the native drag interactions should be enabled for an element.
25
- * @param element Element on which to toggle the drag interactions.
26
- * @param enable Whether the drag interactions should be enabled.
27
- * @docs-private
28
- */
29
- export declare function toggleNativeDragInteractions(element: HTMLElement, enable: boolean): void;
30
- /**
31
- * Toggles whether an element is visible while preserving its dimensions.
32
- * @param element Element whose visibility to toggle
33
- * @param enable Whether the element should be visible.
34
- * @param importantProperties Properties to be set as `!important`.
35
- * @docs-private
36
- */
37
- export declare function toggleVisibility(element: HTMLElement, enable: boolean, importantProperties?: Set<string>): void;
38
- /**
39
- * Combines a transform string with an optional other transform
40
- * that exited before the base transform was applied.
41
- */
42
- export declare function combineTransforms(transform: string, initialTransform?: string): string;