@angular/cdk 13.0.0-next.6 → 13.0.0-rc.1

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 (796) hide show
  1. package/a11y/a11y-module.d.ts +9 -7
  2. package/a11y/aria-describer/aria-describer.d.ts +3 -7
  3. package/a11y/focus-monitor/focus-monitor.d.ts +5 -0
  4. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +3 -7
  5. package/a11y/focus-trap/focus-trap-manager.d.ts +3 -7
  6. package/a11y/focus-trap/focus-trap.d.ts +5 -0
  7. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +3 -0
  8. package/a11y/index.d.ts +0 -1
  9. package/a11y/input-modality/input-modality-detector.d.ts +3 -7
  10. package/a11y/interactivity-checker/interactivity-checker.d.ts +3 -0
  11. package/a11y/live-announcer/live-announcer.d.ts +6 -1
  12. package/a11y/package.json +5 -5
  13. package/accordion/accordion-item.d.ts +3 -0
  14. package/accordion/accordion-module.d.ts +6 -7
  15. package/accordion/accordion.d.ts +3 -0
  16. package/accordion/index.d.ts +0 -1
  17. package/accordion/package.json +5 -5
  18. package/bidi/bidi-module.d.ts +5 -7
  19. package/bidi/dir.d.ts +3 -0
  20. package/bidi/directionality.d.ts +3 -0
  21. package/bidi/index.d.ts +0 -1
  22. package/bidi/package.json +5 -5
  23. package/clipboard/clipboard-module.d.ts +5 -7
  24. package/clipboard/clipboard.d.ts +3 -7
  25. package/clipboard/copy-to-clipboard.d.ts +3 -0
  26. package/clipboard/package.json +5 -5
  27. package/coercion/package.json +5 -5
  28. package/collections/package.json +5 -5
  29. package/collections/unique-selection-dispatcher.d.ts +3 -0
  30. package/drag-drop/client-rect.d.ts +8 -1
  31. package/drag-drop/directives/drag-handle.d.ts +3 -0
  32. package/drag-drop/directives/drag-placeholder.d.ts +3 -0
  33. package/drag-drop/directives/drag-preview.d.ts +3 -0
  34. package/drag-drop/directives/drag.d.ts +3 -0
  35. package/drag-drop/directives/drop-list-group.d.ts +3 -0
  36. package/drag-drop/directives/drop-list.d.ts +3 -0
  37. package/drag-drop/drag-drop-module.d.ts +11 -7
  38. package/drag-drop/drag-drop-registry.d.ts +3 -0
  39. package/drag-drop/drag-drop.d.ts +3 -0
  40. package/drag-drop/index.d.ts +0 -1
  41. package/drag-drop/package.json +5 -5
  42. package/esm2020/a11y/a11y-module.mjs +33 -0
  43. package/esm2020/a11y/aria-describer/aria-describer.mjs +208 -0
  44. package/{esm2015/a11y/aria-describer/aria-reference.js → esm2020/a11y/aria-describer/aria-reference.mjs} +1 -1
  45. package/esm2020/a11y/fake-event-detection.mjs +29 -0
  46. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +400 -0
  47. package/{esm2015/a11y/focus-trap/configurable-focus-trap-config.js → esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs} +0 -0
  48. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
  49. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
  50. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
  51. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
  52. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
  53. package/esm2020/a11y/focus-trap/focus-trap.mjs +399 -0
  54. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +95 -0
  55. package/esm2020/a11y/index.mjs +5 -0
  56. package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
  57. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
  58. package/{esm2015/a11y/key-manager/activedescendant-key-manager.js → esm2020/a11y/key-manager/activedescendant-key-manager.mjs} +1 -1
  59. package/{esm2015/a11y/key-manager/focus-key-manager.js → esm2020/a11y/key-manager/focus-key-manager.mjs} +0 -0
  60. package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
  61. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
  62. package/esm2020/a11y/live-announcer/live-announcer.mjs +170 -0
  63. package/{esm2015/a11y/public-api.js → esm2020/a11y/public-api.mjs} +0 -0
  64. package/esm2020/accordion/accordion-item.mjs +167 -0
  65. package/esm2020/accordion/accordion-module.mjs +24 -0
  66. package/esm2020/accordion/accordion.mjs +70 -0
  67. package/esm2020/accordion/index.mjs +5 -0
  68. package/{esm2015/accordion/public-api.js → esm2020/accordion/public-api.mjs} +0 -0
  69. package/esm2020/bidi/bidi-module.mjs +23 -0
  70. package/{esm2015/bidi/dir-document-token.js → esm2020/bidi/dir-document-token.mjs} +1 -1
  71. package/esm2020/bidi/dir.mjs +67 -0
  72. package/esm2020/bidi/directionality.mjs +47 -0
  73. package/esm2020/bidi/index.mjs +5 -0
  74. package/{esm2015/bidi/public-api.js → esm2020/bidi/public-api.mjs} +1 -1
  75. package/esm2020/clipboard/clipboard-module.mjs +23 -0
  76. package/esm2020/clipboard/clipboard.mjs +53 -0
  77. package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
  78. package/{esm2015/clipboard/index.js → esm2020/clipboard/index.mjs} +0 -0
  79. package/esm2020/clipboard/pending-copy.mjs +67 -0
  80. package/{esm2015/clipboard/public-api.js → esm2020/clipboard/public-api.mjs} +0 -0
  81. package/{esm2015/coercion/array.js → esm2020/coercion/array.mjs} +0 -0
  82. package/{esm2015/coercion/boolean-property.js → esm2020/coercion/boolean-property.mjs} +0 -0
  83. package/{esm2015/coercion/css-pixel-value.js → esm2020/coercion/css-pixel-value.mjs} +0 -0
  84. package/{esm2015/coercion/element.js → esm2020/coercion/element.mjs} +0 -0
  85. package/{esm2015/coercion/index.js → esm2020/coercion/index.mjs} +0 -0
  86. package/{esm2015/coercion/number-property.js → esm2020/coercion/number-property.mjs} +0 -0
  87. package/{esm2015/coercion/public-api.js → esm2020/coercion/public-api.mjs} +0 -0
  88. package/{esm2015/coercion/string-array.js → esm2020/coercion/string-array.mjs} +0 -0
  89. package/{esm2015/collections/array-data-source.js → esm2020/collections/array-data-source.mjs} +1 -1
  90. package/esm2020/collections/collection-viewer.mjs +9 -0
  91. package/{esm2015/collections/data-source.js → esm2020/collections/data-source.mjs} +0 -0
  92. package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
  93. package/{esm2015/collections/index.js → esm2020/collections/index.mjs} +0 -0
  94. package/{esm2015/collections/public-api.js → esm2020/collections/public-api.mjs} +0 -0
  95. package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
  96. package/{esm2015/collections/selection-model.js → esm2020/collections/selection-model.mjs} +2 -2
  97. package/esm2020/collections/tree-adapter.mjs +9 -0
  98. package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
  99. package/esm2020/collections/view-repeater.mjs +14 -0
  100. package/esm2020/drag-drop/client-rect.mjs +64 -0
  101. package/esm2020/drag-drop/clone-node.mjs +65 -0
  102. package/esm2020/drag-drop/directives/assertions.mjs +18 -0
  103. package/{esm2015/drag-drop/directives/config.js → esm2020/drag-drop/directives/config.mjs} +1 -1
  104. package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
  105. package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
  106. package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
  107. package/esm2020/drag-drop/directives/drag.mjs +483 -0
  108. package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
  109. package/esm2020/drag-drop/directives/drop-list.mjs +344 -0
  110. package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
  111. package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
  112. package/esm2020/drag-drop/drag-drop.mjs +57 -0
  113. package/esm2020/drag-drop/drag-events.mjs +9 -0
  114. package/{esm2015/drag-drop/drag-parent.js → esm2020/drag-drop/drag-parent.mjs} +0 -0
  115. package/esm2020/drag-drop/drag-ref.mjs +1108 -0
  116. package/esm2020/drag-drop/drag-styling.mjs +69 -0
  117. package/esm2020/drag-drop/drag-utils.mjs +60 -0
  118. package/esm2020/drag-drop/drop-list-ref.mjs +830 -0
  119. package/{esm2015/drag-drop/index.js → esm2020/drag-drop/index.mjs} +1 -1
  120. package/{esm2015/drag-drop/parent-position-tracker.js → esm2020/drag-drop/parent-position-tracker.mjs} +2 -2
  121. package/{esm2015/drag-drop/public-api.js → esm2020/drag-drop/public-api.mjs} +0 -0
  122. package/esm2020/drag-drop/transition-duration.mjs +36 -0
  123. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  124. package/{esm2015/keycodes/index.js → esm2020/keycodes/index.mjs} +0 -0
  125. package/{esm2015/keycodes/keycodes.js → esm2020/keycodes/keycodes.mjs} +1 -1
  126. package/{esm2015/keycodes/modifiers.js → esm2020/keycodes/modifiers.mjs} +0 -0
  127. package/{esm2015/keycodes/public-api.js → esm2020/keycodes/public-api.mjs} +0 -0
  128. package/esm2020/layout/breakpoints-observer.mjs +105 -0
  129. package/{esm2015/layout/breakpoints.js → esm2020/layout/breakpoints.mjs} +1 -1
  130. package/{esm2015/layout/index.js → esm2020/layout/index.mjs} +0 -0
  131. package/esm2020/layout/layout-module.mjs +19 -0
  132. package/esm2020/layout/media-matcher.mjs +85 -0
  133. package/{esm2015/layout/public-api.js → esm2020/layout/public-api.mjs} +0 -0
  134. package/{esm2015/observers/index.js → esm2020/observers/index.mjs} +0 -0
  135. package/esm2020/observers/observe-content.mjs +187 -0
  136. package/{esm2015/observers/public-api.js → esm2020/observers/public-api.mjs} +0 -0
  137. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
  138. package/{esm2015/overlay/dispatchers/index.js → esm2020/overlay/dispatchers/index.mjs} +0 -0
  139. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +63 -0
  140. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +116 -0
  141. package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
  142. package/esm2020/overlay/index.mjs +5 -0
  143. package/esm2020/overlay/overlay-config.mjs +45 -0
  144. package/esm2020/overlay/overlay-container.mjs +81 -0
  145. package/esm2020/overlay/overlay-directives.mjs +427 -0
  146. package/esm2020/overlay/overlay-module.mjs +29 -0
  147. package/esm2020/overlay/overlay-ref.mjs +402 -0
  148. package/{esm2015/overlay/overlay-reference.js → esm2020/overlay/overlay-reference.mjs} +0 -0
  149. package/esm2020/overlay/overlay.mjs +119 -0
  150. package/esm2020/overlay/position/connected-position.mjs +97 -0
  151. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +959 -0
  152. package/esm2020/overlay/position/global-position-strategy.mjs +203 -0
  153. package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
  154. package/{esm2015/overlay/position/position-strategy.js → esm2020/overlay/position/position-strategy.mjs} +0 -0
  155. package/esm2020/overlay/position/scroll-clip.mjs +40 -0
  156. package/{esm2015/overlay/public-api.js → esm2020/overlay/public-api.mjs} +0 -0
  157. package/{esm2015/overlay/scroll/block-scroll-strategy.js → esm2020/overlay/scroll/block-scroll-strategy.mjs} +1 -1
  158. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
  159. package/{esm2015/overlay/scroll/index.js → esm2020/overlay/scroll/index.mjs} +2 -2
  160. package/{esm2015/overlay/scroll/noop-scroll-strategy.js → esm2020/overlay/scroll/noop-scroll-strategy.mjs} +1 -1
  161. package/{esm2015/overlay/scroll/reposition-scroll-strategy.js → esm2020/overlay/scroll/reposition-scroll-strategy.mjs} +1 -1
  162. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
  163. package/{esm2015/overlay/scroll/scroll-strategy.js → esm2020/overlay/scroll/scroll-strategy.mjs} +0 -0
  164. package/{esm2015/platform/features/input-types.js → esm2020/platform/features/input-types.mjs} +1 -1
  165. package/esm2020/platform/features/passive-listeners.mjs +36 -0
  166. package/esm2020/platform/features/scrolling.mjs +85 -0
  167. package/{esm2015/platform/features/shadow-dom.js → esm2020/platform/features/shadow-dom.mjs} +4 -3
  168. package/esm2020/platform/features/test-environment.mjs +27 -0
  169. package/{esm2015/platform/index.js → esm2020/platform/index.mjs} +0 -0
  170. package/esm2020/platform/platform-module.mjs +19 -0
  171. package/esm2020/platform/platform.mjs +85 -0
  172. package/{esm2015/platform/public-api.js → esm2020/platform/public-api.mjs} +0 -0
  173. package/esm2020/portal/dom-portal-outlet.mjs +134 -0
  174. package/{esm2015/portal/index.js → esm2020/portal/index.mjs} +0 -0
  175. package/esm2020/portal/portal-directives.mjs +244 -0
  176. package/{esm2015/portal/portal-errors.js → esm2020/portal/portal-errors.mjs} +1 -1
  177. package/esm2020/portal/portal-injector.mjs +28 -0
  178. package/esm2020/portal/portal.mjs +179 -0
  179. package/{esm2015/portal/public-api.js → esm2020/portal/public-api.mjs} +0 -0
  180. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  181. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
  182. package/{esm2015/scrolling/index.js → esm2020/scrolling/index.mjs} +0 -0
  183. package/{esm2015/scrolling/public-api.js → esm2020/scrolling/public-api.mjs} +0 -0
  184. package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
  185. package/esm2020/scrolling/scrollable.mjs +176 -0
  186. package/esm2020/scrolling/scrolling-module.mjs +52 -0
  187. package/esm2020/scrolling/viewport-ruler.mjs +146 -0
  188. package/esm2020/scrolling/virtual-for-of.mjs +296 -0
  189. package/{esm2015/scrolling/virtual-scroll-repeater.js → esm2020/scrolling/virtual-scroll-repeater.mjs} +0 -0
  190. package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
  191. package/esm2020/scrolling/virtual-scroll-viewport.mjs +378 -0
  192. package/{esm2015/stepper/index.js → esm2020/stepper/index.mjs} +0 -0
  193. package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
  194. package/esm2020/stepper/step-header.mjs +30 -0
  195. package/esm2020/stepper/step-label.mjs +23 -0
  196. package/esm2020/stepper/stepper-button.mjs +76 -0
  197. package/esm2020/stepper/stepper-module.mjs +40 -0
  198. package/esm2020/stepper/stepper.mjs +471 -0
  199. package/esm2020/table/can-stick.mjs +44 -0
  200. package/esm2020/table/cell.mjs +222 -0
  201. package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
  202. package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  203. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  204. package/esm2020/table/row.mjs +254 -0
  205. package/esm2020/table/sticky-position-listener.mjs +11 -0
  206. package/esm2020/table/sticky-styler.mjs +345 -0
  207. package/{esm2015/table/table-errors.js → esm2020/table/table-errors.mjs} +1 -1
  208. package/esm2020/table/table-module.mjs +94 -0
  209. package/esm2020/table/table.mjs +1023 -0
  210. package/esm2020/table/text-column.mjs +153 -0
  211. package/{esm2015/table/tokens.js → esm2020/table/tokens.mjs} +1 -1
  212. package/esm2020/testing/change-detection.mjs +102 -0
  213. package/esm2020/testing/component-harness.mjs +322 -0
  214. package/{esm2015/testing/element-dimensions.js → esm2020/testing/element-dimensions.mjs} +1 -1
  215. package/esm2020/testing/harness-environment.mjs +202 -0
  216. package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
  217. package/{esm2015/testing/protractor/index.js → esm2020/testing/protractor/index.mjs} +0 -0
  218. package/esm2020/testing/protractor/protractor-element.mjs +234 -0
  219. package/esm2020/testing/protractor/protractor-harness-environment.mjs +72 -0
  220. package/{esm2015/testing/protractor/public-api.js → esm2020/testing/protractor/public-api.mjs} +0 -0
  221. package/{esm2015/testing/public-api.js → esm2020/testing/public-api.mjs} +0 -0
  222. package/{esm2015/testing/selenium-webdriver/index.js → esm2020/testing/selenium-webdriver/index.mjs} +0 -0
  223. package/{esm2015/testing/selenium-webdriver/public-api.js → esm2020/testing/selenium-webdriver/public-api.mjs} +0 -0
  224. package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +199 -0
  225. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +87 -0
  226. package/{esm2015/testing/selenium-webdriver/selenium-webdriver-keys.js → esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs} +2 -2
  227. package/esm2020/testing/test-element.mjs +48 -0
  228. package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +53 -0
  229. package/esm2020/testing/testbed/fake-events/element-focus.mjs +39 -0
  230. package/esm2020/testing/testbed/fake-events/event-objects.mjs +113 -0
  231. package/{esm2015/testing/testbed/fake-events/index.js → esm2020/testing/testbed/fake-events/index.mjs} +0 -0
  232. package/esm2020/testing/testbed/fake-events/type-in-element.mjs +88 -0
  233. package/{esm2015/testing/testbed/index.js → esm2020/testing/testbed/index.mjs} +0 -0
  234. package/{esm2015/testing/testbed/public-api.js → esm2020/testing/testbed/public-api.mjs} +0 -0
  235. package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +82 -0
  236. package/esm2020/testing/testbed/testbed-harness-environment.mjs +162 -0
  237. package/esm2020/testing/testbed/unit-test-element.mjs +224 -0
  238. package/esm2020/testing/text-filtering.mjs +21 -0
  239. package/esm2020/text-field/autofill.mjs +113 -0
  240. package/esm2020/text-field/autosize.mjs +310 -0
  241. package/{esm2015/text-field/index.js → esm2020/text-field/index.mjs} +0 -0
  242. package/{esm2015/text-field/public-api.js → esm2020/text-field/public-api.mjs} +0 -0
  243. package/esm2020/text-field/text-field-module.mjs +26 -0
  244. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +4 -4
  245. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +1 -1
  246. package/esm2020/tree/control/nested-tree-control.mjs +58 -0
  247. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  248. package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
  249. package/esm2020/tree/nested-node.mjs +117 -0
  250. package/esm2020/tree/node.mjs +35 -0
  251. package/esm2020/tree/outlet.mjs +39 -0
  252. package/esm2020/tree/padding.mjs +131 -0
  253. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  254. package/esm2020/tree/toggle.mjs +53 -0
  255. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  256. package/esm2020/tree/tree-module.mjs +49 -0
  257. package/esm2020/tree/tree.mjs +361 -0
  258. package/{esm2015/version.js → esm2020/version.mjs} +1 -1
  259. package/fesm2015/a11y.mjs +2356 -0
  260. package/fesm2015/a11y.mjs.map +1 -0
  261. package/fesm2015/accordion.mjs +267 -0
  262. package/fesm2015/accordion.mjs.map +1 -0
  263. package/fesm2015/bidi.mjs +179 -0
  264. package/fesm2015/bidi.mjs.map +1 -0
  265. package/fesm2015/{cdk.js → cdk.mjs} +2 -2
  266. package/fesm2015/cdk.mjs.map +1 -0
  267. package/fesm2015/clipboard.mjs +253 -0
  268. package/fesm2015/clipboard.mjs.map +1 -0
  269. package/fesm2015/{coercion.js → coercion.mjs} +1 -1
  270. package/fesm2015/coercion.mjs.map +1 -0
  271. package/fesm2015/{collections.js → collections.mjs} +15 -27
  272. package/fesm2015/collections.mjs.map +1 -0
  273. package/fesm2015/drag-drop.mjs +3667 -0
  274. package/fesm2015/drag-drop.mjs.map +1 -0
  275. package/fesm2015/{keycodes.js → keycodes.mjs} +1 -1
  276. package/fesm2015/keycodes.mjs.map +1 -0
  277. package/fesm2015/{layout.js → layout.mjs} +30 -28
  278. package/fesm2015/layout.mjs.map +1 -0
  279. package/fesm2015/{observers.js → observers.mjs} +50 -41
  280. package/fesm2015/observers.mjs.map +1 -0
  281. package/fesm2015/overlay.mjs +3004 -0
  282. package/fesm2015/overlay.mjs.map +1 -0
  283. package/fesm2015/platform.mjs +380 -0
  284. package/fesm2015/platform.mjs.map +1 -0
  285. package/fesm2015/portal.mjs +649 -0
  286. package/fesm2015/portal.mjs.map +1 -0
  287. package/fesm2015/scrolling.mjs +1394 -0
  288. package/fesm2015/scrolling.mjs.map +1 -0
  289. package/fesm2015/{stepper.js → stepper.mjs} +186 -133
  290. package/fesm2015/stepper.mjs.map +1 -0
  291. package/fesm2015/{table.js → table.mjs} +500 -359
  292. package/fesm2015/table.mjs.map +1 -0
  293. package/fesm2015/testing/{protractor.js → protractor.mjs} +12 -25
  294. package/fesm2015/testing/protractor.mjs.map +1 -0
  295. package/fesm2015/testing/{selenium-webdriver.js → selenium-webdriver.mjs} +14 -28
  296. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -0
  297. package/fesm2015/testing/{testbed.js → testbed.mjs} +23 -29
  298. package/fesm2015/testing/testbed.mjs.map +1 -0
  299. package/fesm2015/{testing.js → testing.mjs} +19 -45
  300. package/fesm2015/testing.mjs.map +1 -0
  301. package/fesm2015/text-field.mjs +455 -0
  302. package/fesm2015/text-field.mjs.map +1 -0
  303. package/fesm2015/{tree.js → tree.mjs} +198 -152
  304. package/fesm2015/tree.mjs.map +1 -0
  305. package/{fesm2015/a11y.js → fesm2020/a11y.mjs} +272 -233
  306. package/fesm2020/a11y.mjs.map +1 -0
  307. package/{fesm2015/accordion.js → fesm2020/accordion.mjs} +87 -57
  308. package/fesm2020/accordion.mjs.map +1 -0
  309. package/{fesm2015/bidi.js → fesm2020/bidi.mjs} +47 -31
  310. package/fesm2020/bidi.mjs.map +1 -0
  311. package/fesm2020/cdk.mjs +30 -0
  312. package/fesm2020/cdk.mjs.map +1 -0
  313. package/{fesm2015/clipboard.js → fesm2020/clipboard.mjs} +51 -40
  314. package/fesm2020/clipboard.mjs.map +1 -0
  315. package/fesm2020/coercion.mjs +132 -0
  316. package/fesm2020/coercion.mjs.map +1 -0
  317. package/fesm2020/collections.mjs +472 -0
  318. package/fesm2020/collections.mjs.map +1 -0
  319. package/{fesm2015/drag-drop.js → fesm2020/drag-drop.mjs} +523 -366
  320. package/fesm2020/drag-drop.mjs.map +1 -0
  321. package/fesm2020/keycodes.mjs +159 -0
  322. package/fesm2020/keycodes.mjs.map +1 -0
  323. package/fesm2020/layout.mjs +246 -0
  324. package/fesm2020/layout.mjs.map +1 -0
  325. package/fesm2020/observers.mjs +202 -0
  326. package/fesm2020/observers.mjs.map +1 -0
  327. package/{fesm2015/overlay.js → fesm2020/overlay.mjs} +312 -228
  328. package/fesm2020/overlay.mjs.map +1 -0
  329. package/{fesm2015/platform.js → fesm2020/platform.mjs} +52 -28
  330. package/fesm2020/platform.mjs.map +1 -0
  331. package/{fesm2015/portal.js → fesm2020/portal.mjs} +85 -64
  332. package/fesm2020/portal.mjs.map +1 -0
  333. package/{fesm2015/scrolling.js → fesm2020/scrolling.mjs} +213 -170
  334. package/fesm2020/scrolling.mjs.map +1 -0
  335. package/fesm2020/stepper.mjs +638 -0
  336. package/fesm2020/stepper.mjs.map +1 -0
  337. package/fesm2020/table.mjs +2295 -0
  338. package/fesm2020/table.mjs.map +1 -0
  339. package/fesm2020/testing/protractor.mjs +322 -0
  340. package/fesm2020/testing/protractor.mjs.map +1 -0
  341. package/fesm2020/testing/selenium-webdriver.mjs +362 -0
  342. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -0
  343. package/fesm2020/testing/testbed.mjs +780 -0
  344. package/fesm2020/testing/testbed.mjs.map +1 -0
  345. package/fesm2020/testing.mjs +719 -0
  346. package/fesm2020/testing.mjs.map +1 -0
  347. package/{fesm2015/text-field.js → fesm2020/text-field.mjs} +83 -68
  348. package/fesm2020/text-field.mjs.map +1 -0
  349. package/fesm2020/tree.mjs +967 -0
  350. package/fesm2020/tree.mjs.map +1 -0
  351. package/keycodes/package.json +5 -5
  352. package/layout/breakpoints-observer.d.ts +3 -7
  353. package/layout/layout-module.d.ts +4 -0
  354. package/layout/media-matcher.d.ts +3 -0
  355. package/layout/package.json +5 -5
  356. package/observers/observe-content.d.ts +10 -0
  357. package/observers/package.json +5 -5
  358. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +3 -7
  359. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +3 -7
  360. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +6 -7
  361. package/overlay/fullscreen-overlay-container.d.ts +3 -0
  362. package/overlay/index.d.ts +0 -2
  363. package/overlay/overlay-container.d.ts +3 -7
  364. package/overlay/overlay-directives.d.ts +5 -0
  365. package/overlay/overlay-module.d.ts +8 -7
  366. package/overlay/overlay.d.ts +3 -0
  367. package/overlay/package.json +5 -5
  368. package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
  369. package/overlay/position/overlay-position-builder.d.ts +3 -0
  370. package/overlay/position/scroll-clip.d.ts +5 -2
  371. package/overlay/scroll/index.d.ts +1 -1
  372. package/overlay/scroll/scroll-strategy-options.d.ts +3 -0
  373. package/package.json +219 -7
  374. package/platform/package.json +5 -5
  375. package/platform/platform-module.d.ts +4 -7
  376. package/platform/platform.d.ts +3 -7
  377. package/portal/package.json +5 -5
  378. package/portal/portal-directives.d.ts +12 -0
  379. package/schematics/ng-add/index.js +3 -3
  380. package/schematics/ng-add/index.mjs +3 -3
  381. package/schematics/ng-add/package-config.js +4 -2
  382. package/schematics/ng-add/package-config.mjs +4 -2
  383. package/schematics/ng-add/schema.js +1 -1
  384. package/schematics/ng-add/schema.mjs +1 -1
  385. package/schematics/ng-generate/drag-drop/index.js +6 -6
  386. package/schematics/ng-generate/drag-drop/index.mjs +6 -6
  387. package/schematics/ng-update/data/attribute-selectors.js +7 -5
  388. package/schematics/ng-update/data/attribute-selectors.mjs +7 -5
  389. package/schematics/ng-update/data/class-names.js +13 -11
  390. package/schematics/ng-update/data/class-names.mjs +13 -11
  391. package/schematics/ng-update/data/constructor-checks.js +28 -20
  392. package/schematics/ng-update/data/constructor-checks.mjs +28 -20
  393. package/schematics/ng-update/data/css-selectors.js +2 -2
  394. package/schematics/ng-update/data/css-selectors.mjs +2 -2
  395. package/schematics/ng-update/data/element-selectors.js +2 -2
  396. package/schematics/ng-update/data/element-selectors.mjs +2 -2
  397. package/schematics/ng-update/data/input-names.js +40 -16
  398. package/schematics/ng-update/data/input-names.mjs +40 -16
  399. package/schematics/ng-update/data/method-call-checks.js +32 -18
  400. package/schematics/ng-update/data/method-call-checks.mjs +32 -18
  401. package/schematics/ng-update/data/output-names.js +8 -6
  402. package/schematics/ng-update/data/output-names.mjs +8 -6
  403. package/schematics/ng-update/data/property-names.js +40 -32
  404. package/schematics/ng-update/data/property-names.mjs +40 -32
  405. package/schematics/ng-update/devkit-file-system.js +2 -2
  406. package/schematics/ng-update/devkit-file-system.mjs +2 -2
  407. package/schematics/ng-update/devkit-migration-rule.js +8 -7
  408. package/schematics/ng-update/devkit-migration-rule.mjs +8 -7
  409. package/schematics/ng-update/devkit-migration.d.ts +1 -1
  410. package/schematics/ng-update/devkit-migration.js +1 -1
  411. package/schematics/ng-update/devkit-migration.mjs +1 -1
  412. package/schematics/ng-update/find-stylesheets.js +3 -3
  413. package/schematics/ng-update/find-stylesheets.mjs +3 -3
  414. package/schematics/ng-update/html-parsing/angular.js +7 -7
  415. package/schematics/ng-update/html-parsing/angular.mjs +7 -7
  416. package/schematics/ng-update/html-parsing/elements.js +2 -2
  417. package/schematics/ng-update/html-parsing/elements.mjs +2 -2
  418. package/schematics/ng-update/index.js +11 -9
  419. package/schematics/ng-update/index.mjs +11 -9
  420. package/schematics/ng-update/migrations/attribute-selectors.js +11 -7
  421. package/schematics/ng-update/migrations/attribute-selectors.mjs +11 -7
  422. package/schematics/ng-update/migrations/class-inheritance.js +3 -3
  423. package/schematics/ng-update/migrations/class-inheritance.mjs +3 -3
  424. package/schematics/ng-update/migrations/class-names.js +7 -6
  425. package/schematics/ng-update/migrations/class-names.mjs +7 -6
  426. package/schematics/ng-update/migrations/constructor-signature.js +16 -13
  427. package/schematics/ng-update/migrations/constructor-signature.mjs +16 -13
  428. package/schematics/ng-update/migrations/css-selectors.js +7 -6
  429. package/schematics/ng-update/migrations/css-selectors.mjs +7 -6
  430. package/schematics/ng-update/migrations/element-selectors.js +7 -6
  431. package/schematics/ng-update/migrations/element-selectors.mjs +7 -6
  432. package/schematics/ng-update/migrations/input-names.js +8 -9
  433. package/schematics/ng-update/migrations/input-names.mjs +8 -9
  434. package/schematics/ng-update/migrations/method-call-arguments.js +4 -3
  435. package/schematics/ng-update/migrations/method-call-arguments.mjs +4 -3
  436. package/schematics/ng-update/migrations/misc-template.js +3 -3
  437. package/schematics/ng-update/migrations/misc-template.mjs +3 -3
  438. package/schematics/ng-update/migrations/output-names.js +7 -8
  439. package/schematics/ng-update/migrations/output-names.mjs +7 -8
  440. package/schematics/ng-update/migrations/property-names.js +4 -3
  441. package/schematics/ng-update/migrations/property-names.mjs +4 -3
  442. package/schematics/ng-update/migrations/symbol-removal.js +2 -2
  443. package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
  444. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.d.ts +14 -0
  445. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +38 -0
  446. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +38 -0
  447. package/schematics/ng-update/typescript/base-types.js +1 -1
  448. package/schematics/ng-update/typescript/base-types.mjs +1 -1
  449. package/schematics/ng-update/typescript/literal.d.ts +1 -1
  450. package/schematics/ng-update/typescript/literal.js +1 -1
  451. package/schematics/ng-update/typescript/literal.mjs +1 -1
  452. package/schematics/ng-update/typescript/module-specifiers.js +5 -5
  453. package/schematics/ng-update/typescript/module-specifiers.mjs +5 -5
  454. package/schematics/ng-update/upgrade-data.js +2 -2
  455. package/schematics/ng-update/upgrade-data.mjs +2 -2
  456. package/schematics/package.json +3 -0
  457. package/schematics/paths.js +3 -3
  458. package/schematics/paths.mjs +3 -3
  459. package/schematics/update-tool/component-resource-collector.js +10 -10
  460. package/schematics/update-tool/component-resource-collector.mjs +10 -10
  461. package/schematics/update-tool/file-system.js +1 -1
  462. package/schematics/update-tool/file-system.mjs +1 -1
  463. package/schematics/update-tool/index.d.ts +4 -1
  464. package/schematics/update-tool/index.js +9 -5
  465. package/schematics/update-tool/index.mjs +9 -5
  466. package/schematics/update-tool/migration.d.ts +1 -1
  467. package/schematics/update-tool/migration.js +1 -1
  468. package/schematics/update-tool/migration.mjs +1 -1
  469. package/schematics/update-tool/target-version.js +1 -1
  470. package/schematics/update-tool/target-version.mjs +1 -1
  471. package/schematics/update-tool/utils/decorators.js +8 -4
  472. package/schematics/update-tool/utils/decorators.mjs +8 -4
  473. package/schematics/update-tool/utils/functions.js +1 -1
  474. package/schematics/update-tool/utils/functions.mjs +1 -1
  475. package/schematics/update-tool/utils/imports.js +2 -2
  476. package/schematics/update-tool/utils/imports.mjs +2 -2
  477. package/schematics/update-tool/utils/line-mappings.js +1 -1
  478. package/schematics/update-tool/utils/line-mappings.mjs +1 -1
  479. package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
  480. package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
  481. package/schematics/update-tool/utils/property-name.js +1 -1
  482. package/schematics/update-tool/utils/property-name.mjs +1 -1
  483. package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
  484. package/schematics/update-tool/utils/virtual-host.js +3 -3
  485. package/schematics/update-tool/utils/virtual-host.mjs +3 -3
  486. package/schematics/update-tool/version-changes.js +1 -1
  487. package/schematics/update-tool/version-changes.mjs +1 -1
  488. package/schematics/utils/ast/ng-module-imports.js +5 -3
  489. package/schematics/utils/ast/ng-module-imports.mjs +5 -3
  490. package/schematics/utils/ast.js +5 -5
  491. package/schematics/utils/ast.mjs +5 -5
  492. package/schematics/utils/build-component.js +32 -38
  493. package/schematics/utils/build-component.mjs +32 -38
  494. package/schematics/utils/get-project.js +1 -1
  495. package/schematics/utils/get-project.mjs +1 -1
  496. package/schematics/utils/html-manipulation.js +8 -7
  497. package/schematics/utils/html-manipulation.mjs +8 -7
  498. package/schematics/utils/parse5-element.js +9 -10
  499. package/schematics/utils/parse5-element.mjs +9 -10
  500. package/schematics/utils/project-index-file.js +2 -2
  501. package/schematics/utils/project-index-file.mjs +2 -2
  502. package/schematics/utils/project-main-file.js +2 -2
  503. package/schematics/utils/project-main-file.mjs +2 -2
  504. package/schematics/utils/project-style-file.js +7 -9
  505. package/schematics/utils/project-style-file.mjs +7 -9
  506. package/schematics/utils/project-targets.js +1 -1
  507. package/schematics/utils/project-targets.mjs +1 -1
  508. package/schematics/utils/project-tsconfig-paths.js +4 -4
  509. package/schematics/utils/project-tsconfig-paths.mjs +4 -4
  510. package/schematics/utils/schematic-options.js +7 -5
  511. package/schematics/utils/schematic-options.mjs +7 -5
  512. package/schematics/utils/vendored-ast-utils/index.js +17 -18
  513. package/schematics/utils/vendored-ast-utils/index.mjs +17 -18
  514. package/scrolling/fixed-size-virtual-scroll.d.ts +3 -0
  515. package/scrolling/package.json +5 -5
  516. package/scrolling/scroll-dispatcher.d.ts +3 -7
  517. package/scrolling/scrollable.d.ts +3 -0
  518. package/scrolling/scrolling-module.d.ts +13 -7
  519. package/scrolling/viewport-ruler.d.ts +11 -1
  520. package/scrolling/virtual-for-of.d.ts +3 -0
  521. package/scrolling/virtual-scroll-viewport.d.ts +3 -0
  522. package/stepper/package.json +5 -5
  523. package/stepper/step-header.d.ts +3 -0
  524. package/stepper/step-label.d.ts +3 -0
  525. package/stepper/stepper-button.d.ts +5 -7
  526. package/stepper/stepper-module.d.ts +9 -7
  527. package/stepper/stepper.d.ts +5 -7
  528. package/table/cell.d.ts +15 -0
  529. package/table/coalesced-style-scheduler.d.ts +3 -0
  530. package/table/package.json +5 -5
  531. package/table/row.d.ts +19 -0
  532. package/table/table-module.d.ts +9 -7
  533. package/table/table.d.ts +13 -0
  534. package/table/text-column.d.ts +3 -0
  535. package/testing/package.json +5 -5
  536. package/testing/protractor/package.json +5 -5
  537. package/testing/selenium-webdriver/package.json +5 -5
  538. package/testing/testbed/package.json +5 -5
  539. package/testing/testbed/proxy-zone-types.d.ts +1 -1
  540. package/testing/testbed/zone-types.d.ts +1 -1
  541. package/text-field/autofill.d.ts +5 -0
  542. package/text-field/autosize.d.ts +3 -0
  543. package/text-field/package.json +5 -5
  544. package/text-field/text-field-module.d.ts +7 -7
  545. package/tree/control/base-tree-control.d.ts +1 -1
  546. package/tree/control/nested-tree-control.d.ts +2 -2
  547. package/tree/nested-node.d.ts +3 -0
  548. package/tree/node.d.ts +3 -0
  549. package/tree/outlet.d.ts +3 -0
  550. package/tree/package.json +5 -5
  551. package/tree/padding.d.ts +3 -0
  552. package/tree/toggle.d.ts +3 -0
  553. package/tree/tree-module.d.ts +10 -7
  554. package/tree/tree.d.ts +5 -0
  555. package/a11y/index.metadata.json +0 -1
  556. package/accordion/index.metadata.json +0 -1
  557. package/bidi/index.metadata.json +0 -1
  558. package/bundles/cdk-a11y.umd.js +0 -2752
  559. package/bundles/cdk-a11y.umd.js.map +0 -1
  560. package/bundles/cdk-accordion.umd.js +0 -262
  561. package/bundles/cdk-accordion.umd.js.map +0 -1
  562. package/bundles/cdk-bidi.umd.js +0 -206
  563. package/bundles/cdk-bidi.umd.js.map +0 -1
  564. package/bundles/cdk-clipboard.umd.js +0 -278
  565. package/bundles/cdk-clipboard.umd.js.map +0 -1
  566. package/bundles/cdk-coercion.umd.js +0 -477
  567. package/bundles/cdk-coercion.umd.js.map +0 -1
  568. package/bundles/cdk-collections.umd.js +0 -846
  569. package/bundles/cdk-collections.umd.js.map +0 -1
  570. package/bundles/cdk-drag-drop.umd.js +0 -3915
  571. package/bundles/cdk-drag-drop.umd.js.map +0 -1
  572. package/bundles/cdk-keycodes.umd.js +0 -292
  573. package/bundles/cdk-keycodes.umd.js.map +0 -1
  574. package/bundles/cdk-layout.umd.js +0 -284
  575. package/bundles/cdk-layout.umd.js.map +0 -1
  576. package/bundles/cdk-observers.umd.js +0 -242
  577. package/bundles/cdk-observers.umd.js.map +0 -1
  578. package/bundles/cdk-overlay.umd.js +0 -3417
  579. package/bundles/cdk-overlay.umd.js.map +0 -1
  580. package/bundles/cdk-platform.umd.js +0 -397
  581. package/bundles/cdk-platform.umd.js.map +0 -1
  582. package/bundles/cdk-portal.umd.js +0 -1008
  583. package/bundles/cdk-portal.umd.js.map +0 -1
  584. package/bundles/cdk-scrolling.umd.js +0 -1787
  585. package/bundles/cdk-scrolling.umd.js.map +0 -1
  586. package/bundles/cdk-stepper.umd.js +0 -648
  587. package/bundles/cdk-stepper.umd.js.map +0 -1
  588. package/bundles/cdk-table.umd.js +0 -2730
  589. package/bundles/cdk-table.umd.js.map +0 -1
  590. package/bundles/cdk-testing-protractor.umd.js +0 -833
  591. package/bundles/cdk-testing-protractor.umd.js.map +0 -1
  592. package/bundles/cdk-testing-selenium-webdriver.umd.js +0 -1002
  593. package/bundles/cdk-testing-selenium-webdriver.umd.js.map +0 -1
  594. package/bundles/cdk-testing-testbed.umd.js +0 -1396
  595. package/bundles/cdk-testing-testbed.umd.js.map +0 -1
  596. package/bundles/cdk-testing.umd.js +0 -1285
  597. package/bundles/cdk-testing.umd.js.map +0 -1
  598. package/bundles/cdk-text-field.umd.js +0 -494
  599. package/bundles/cdk-text-field.umd.js.map +0 -1
  600. package/bundles/cdk-tree.umd.js +0 -1308
  601. package/bundles/cdk-tree.umd.js.map +0 -1
  602. package/bundles/cdk.umd.js +0 -38
  603. package/bundles/cdk.umd.js.map +0 -1
  604. package/clipboard/index.metadata.json +0 -1
  605. package/collections/index.metadata.json +0 -1
  606. package/drag-drop/index.metadata.json +0 -1
  607. package/esm2015/a11y/a11y-module.js +0 -30
  608. package/esm2015/a11y/a11y.externs.js +0 -6
  609. package/esm2015/a11y/aria-describer/aria-describer.js +0 -213
  610. package/esm2015/a11y/fake-event-detection.js +0 -28
  611. package/esm2015/a11y/focus-monitor/focus-monitor.js +0 -394
  612. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +0 -52
  613. package/esm2015/a11y/focus-trap/configurable-focus-trap.js +0 -49
  614. package/esm2015/a11y/focus-trap/event-listener-inert-strategy.js +0 -62
  615. package/esm2015/a11y/focus-trap/focus-trap-inert-strategy.js +0 -11
  616. package/esm2015/a11y/focus-trap/focus-trap-manager.js +0 -51
  617. package/esm2015/a11y/focus-trap/focus-trap.js +0 -391
  618. package/esm2015/a11y/high-contrast-mode/high-contrast-mode-detector.js +0 -92
  619. package/esm2015/a11y/index.js +0 -6
  620. package/esm2015/a11y/input-modality/input-modality-detector.js +0 -171
  621. package/esm2015/a11y/interactivity-checker/interactivity-checker.js +0 -237
  622. package/esm2015/a11y/key-manager/list-key-manager.js +0 -317
  623. package/esm2015/a11y/live-announcer/live-announcer-tokens.js +0 -19
  624. package/esm2015/a11y/live-announcer/live-announcer.js +0 -167
  625. package/esm2015/accordion/accordion-item.js +0 -146
  626. package/esm2015/accordion/accordion-module.js +0 -19
  627. package/esm2015/accordion/accordion.externs.js +0 -6
  628. package/esm2015/accordion/accordion.js +0 -63
  629. package/esm2015/accordion/index.js +0 -6
  630. package/esm2015/bidi/bidi-module.js +0 -18
  631. package/esm2015/bidi/bidi.externs.js +0 -6
  632. package/esm2015/bidi/dir.js +0 -58
  633. package/esm2015/bidi/directionality.js +0 -44
  634. package/esm2015/bidi/index.js +0 -6
  635. package/esm2015/cdk.externs.js +0 -0
  636. package/esm2015/clipboard/clipboard-module.js +0 -18
  637. package/esm2015/clipboard/clipboard.externs.js +0 -6
  638. package/esm2015/clipboard/clipboard.js +0 -52
  639. package/esm2015/clipboard/copy-to-clipboard.js +0 -90
  640. package/esm2015/clipboard/pending-copy.js +0 -68
  641. package/esm2015/coercion/coercion.externs.js +0 -0
  642. package/esm2015/collections/collection-viewer.js +0 -9
  643. package/esm2015/collections/collections.externs.js +0 -6
  644. package/esm2015/collections/dispose-view-repeater-strategy.js +0 -48
  645. package/esm2015/collections/recycle-view-repeater-strategy.js +0 -125
  646. package/esm2015/collections/tree-adapter.js +0 -9
  647. package/esm2015/collections/unique-selection-dispatcher.js +0 -53
  648. package/esm2015/collections/view-repeater.js +0 -14
  649. package/esm2015/drag-drop/client-rect.js +0 -60
  650. package/esm2015/drag-drop/clone-node.js +0 -65
  651. package/esm2015/drag-drop/directives/assertions.js +0 -19
  652. package/esm2015/drag-drop/directives/drag-handle.js +0 -57
  653. package/esm2015/drag-drop/directives/drag-placeholder.js +0 -36
  654. package/esm2015/drag-drop/directives/drag-preview.js +0 -42
  655. package/esm2015/drag-drop/directives/drag.js +0 -407
  656. package/esm2015/drag-drop/directives/drop-list-group.js +0 -47
  657. package/esm2015/drag-drop/directives/drop-list.js +0 -301
  658. package/esm2015/drag-drop/drag-drop-module.js +0 -43
  659. package/esm2015/drag-drop/drag-drop-registry.js +0 -231
  660. package/esm2015/drag-drop/drag-drop.externs.js +0 -6
  661. package/esm2015/drag-drop/drag-drop.js +0 -59
  662. package/esm2015/drag-drop/drag-events.js +0 -9
  663. package/esm2015/drag-drop/drag-ref.js +0 -1110
  664. package/esm2015/drag-drop/drag-styling.js +0 -69
  665. package/esm2015/drag-drop/drag-utils.js +0 -60
  666. package/esm2015/drag-drop/drop-list-ref.js +0 -813
  667. package/esm2015/drag-drop/transition-duration.js +0 -36
  668. package/esm2015/keycodes/keycodes.externs.js +0 -6
  669. package/esm2015/layout/breakpoints-observer.js +0 -106
  670. package/esm2015/layout/layout-module.js +0 -14
  671. package/esm2015/layout/layout.externs.js +0 -6
  672. package/esm2015/layout/media-matcher.js +0 -85
  673. package/esm2015/observers/observe-content.js +0 -179
  674. package/esm2015/observers/observers.externs.js +0 -6
  675. package/esm2015/overlay/dispatchers/base-overlay-dispatcher.js +0 -51
  676. package/esm2015/overlay/dispatchers/overlay-keyboard-dispatcher.js +0 -62
  677. package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +0 -97
  678. package/esm2015/overlay/fullscreen-overlay-container.js +0 -94
  679. package/esm2015/overlay/index.js +0 -7
  680. package/esm2015/overlay/overlay-config.js +0 -45
  681. package/esm2015/overlay/overlay-container.js +0 -85
  682. package/esm2015/overlay/overlay-directives.js +0 -352
  683. package/esm2015/overlay/overlay-module.js +0 -27
  684. package/esm2015/overlay/overlay-ref.js +0 -409
  685. package/esm2015/overlay/overlay.externs.js +0 -6
  686. package/esm2015/overlay/overlay.js +0 -119
  687. package/esm2015/overlay/position/connected-position.js +0 -94
  688. package/esm2015/overlay/position/flexible-connected-position-strategy.js +0 -960
  689. package/esm2015/overlay/position/global-position-strategy.js +0 -197
  690. package/esm2015/overlay/position/overlay-position-builder.js +0 -52
  691. package/esm2015/overlay/position/scroll-clip.js +0 -42
  692. package/esm2015/overlay/scroll/close-scroll-strategy.js +0 -61
  693. package/esm2015/overlay/scroll/scroll-strategy-options.js +0 -57
  694. package/esm2015/platform/features/passive-listeners.js +0 -36
  695. package/esm2015/platform/features/scrolling.js +0 -85
  696. package/esm2015/platform/features/test-environment.js +0 -16
  697. package/esm2015/platform/platform-module.js +0 -14
  698. package/esm2015/platform/platform.externs.js +0 -6
  699. package/esm2015/platform/platform.js +0 -77
  700. package/esm2015/portal/dom-portal-outlet.js +0 -136
  701. package/esm2015/portal/portal-directives.js +0 -221
  702. package/esm2015/portal/portal-injector.js +0 -28
  703. package/esm2015/portal/portal.externs.js +0 -6
  704. package/esm2015/portal/portal.js +0 -179
  705. package/esm2015/scrolling/fixed-size-virtual-scroll.js +0 -188
  706. package/esm2015/scrolling/scroll-dispatcher.js +0 -163
  707. package/esm2015/scrolling/scrollable.js +0 -173
  708. package/esm2015/scrolling/scrolling-module.js +0 -49
  709. package/esm2015/scrolling/scrolling.externs.js +0 -6
  710. package/esm2015/scrolling/viewport-ruler.js +0 -139
  711. package/esm2015/scrolling/virtual-for-of.js +0 -293
  712. package/esm2015/scrolling/virtual-scroll-strategy.js +0 -11
  713. package/esm2015/scrolling/virtual-scroll-viewport.js +0 -371
  714. package/esm2015/stepper/step-header.js +0 -29
  715. package/esm2015/stepper/step-label.js +0 -22
  716. package/esm2015/stepper/stepper-button.js +0 -72
  717. package/esm2015/stepper/stepper-module.js +0 -37
  718. package/esm2015/stepper/stepper.externs.js +0 -6
  719. package/esm2015/stepper/stepper.js +0 -428
  720. package/esm2015/table/can-stick.js +0 -42
  721. package/esm2015/table/cell.js +0 -211
  722. package/esm2015/table/coalesced-style-scheduler.js +0 -89
  723. package/esm2015/table/row.js +0 -244
  724. package/esm2015/table/sticky-position-listener.js +0 -11
  725. package/esm2015/table/sticky-styler.js +0 -336
  726. package/esm2015/table/table-module.js +0 -47
  727. package/esm2015/table/table.externs.js +0 -6
  728. package/esm2015/table/table.js +0 -987
  729. package/esm2015/table/text-column.js +0 -127
  730. package/esm2015/testing/change-detection.js +0 -110
  731. package/esm2015/testing/component-harness.js +0 -344
  732. package/esm2015/testing/harness-environment.js +0 -219
  733. package/esm2015/testing/protractor/protractor-element.js +0 -274
  734. package/esm2015/testing/protractor/protractor-harness-environment.js +0 -79
  735. package/esm2015/testing/protractor/protractor.externs.js +0 -0
  736. package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +0 -241
  737. package/esm2015/testing/selenium-webdriver/selenium-web-driver-harness-environment.js +0 -97
  738. package/esm2015/testing/selenium-webdriver/selenium-webdriver.externs.js +0 -0
  739. package/esm2015/testing/test-element.js +0 -48
  740. package/esm2015/testing/testbed/fake-events/dispatch-events.js +0 -53
  741. package/esm2015/testing/testbed/fake-events/element-focus.js +0 -39
  742. package/esm2015/testing/testbed/fake-events/event-objects.js +0 -107
  743. package/esm2015/testing/testbed/fake-events/type-in-element.js +0 -79
  744. package/esm2015/testing/testbed/task-state-zone-interceptor.js +0 -82
  745. package/esm2015/testing/testbed/testbed-harness-environment.js +0 -173
  746. package/esm2015/testing/testbed/testbed.externs.js +0 -0
  747. package/esm2015/testing/testbed/unit-test-element.js +0 -266
  748. package/esm2015/testing/testing.externs.js +0 -0
  749. package/esm2015/testing/text-filtering.js +0 -23
  750. package/esm2015/text-field/autofill.js +0 -117
  751. package/esm2015/text-field/autosize.js +0 -293
  752. package/esm2015/text-field/text-field-module.js +0 -21
  753. package/esm2015/text-field/text-field.externs.js +0 -6
  754. package/esm2015/tree/control/nested-tree-control.js +0 -59
  755. package/esm2015/tree/nested-node.js +0 -112
  756. package/esm2015/tree/node.js +0 -36
  757. package/esm2015/tree/outlet.js +0 -34
  758. package/esm2015/tree/padding.js +0 -119
  759. package/esm2015/tree/toggle.js +0 -46
  760. package/esm2015/tree/tree-module.js +0 -32
  761. package/esm2015/tree/tree.externs.js +0 -6
  762. package/esm2015/tree/tree.js +0 -345
  763. package/fesm2015/a11y.js.map +0 -1
  764. package/fesm2015/accordion.js.map +0 -1
  765. package/fesm2015/bidi.js.map +0 -1
  766. package/fesm2015/cdk.js.map +0 -1
  767. package/fesm2015/clipboard.js.map +0 -1
  768. package/fesm2015/coercion.js.map +0 -1
  769. package/fesm2015/collections.js.map +0 -1
  770. package/fesm2015/drag-drop.js.map +0 -1
  771. package/fesm2015/keycodes.js.map +0 -1
  772. package/fesm2015/layout.js.map +0 -1
  773. package/fesm2015/observers.js.map +0 -1
  774. package/fesm2015/overlay.js.map +0 -1
  775. package/fesm2015/platform.js.map +0 -1
  776. package/fesm2015/portal.js.map +0 -1
  777. package/fesm2015/scrolling.js.map +0 -1
  778. package/fesm2015/stepper.js.map +0 -1
  779. package/fesm2015/table.js.map +0 -1
  780. package/fesm2015/testing/protractor.js.map +0 -1
  781. package/fesm2015/testing/selenium-webdriver.js.map +0 -1
  782. package/fesm2015/testing/testbed.js.map +0 -1
  783. package/fesm2015/testing.js.map +0 -1
  784. package/fesm2015/text-field.js.map +0 -1
  785. package/fesm2015/tree.js.map +0 -1
  786. package/keycodes/index.metadata.json +0 -1
  787. package/layout/index.metadata.json +0 -1
  788. package/observers/index.metadata.json +0 -1
  789. package/overlay/index.metadata.json +0 -1
  790. package/platform/index.metadata.json +0 -1
  791. package/portal/index.metadata.json +0 -1
  792. package/scrolling/index.metadata.json +0 -1
  793. package/stepper/index.metadata.json +0 -1
  794. package/table/index.metadata.json +0 -1
  795. package/text-field/index.metadata.json +0 -1
  796. package/tree/index.metadata.json +0 -1
@@ -1,15 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, NgZone, Inject, InjectionToken, Directive, Input, EventEmitter, ElementRef, ChangeDetectorRef, Optional, SkipSelf, Output, TemplateRef, ViewContainerRef, Self, ContentChildren, ContentChild, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/common';
2
+ import { Injectable, Inject, InjectionToken, Directive, Input, EventEmitter, Optional, SkipSelf, Output, Self, ContentChildren, ContentChild, NgModule } from '@angular/core';
4
3
  import { DOCUMENT } from '@angular/common';
5
- import * as i2 from '@angular/cdk/scrolling';
6
- import { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from '@angular/cdk/scrolling';
4
+ import * as i1 from '@angular/cdk/scrolling';
5
+ import { CdkScrollableModule } from '@angular/cdk/scrolling';
7
6
  import { _getEventTarget, normalizePassiveListenerOptions, _getShadowRoot } from '@angular/cdk/platform';
8
7
  import { coerceBooleanProperty, coerceElement, coerceArray, coerceNumberProperty } from '@angular/cdk/coercion';
9
8
  import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
10
9
  import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge } from 'rxjs';
11
10
  import { takeUntil, startWith, map, take, tap, switchMap } from 'rxjs/operators';
12
- import { Directionality } from '@angular/cdk/bidi';
11
+ import * as i3 from '@angular/cdk/bidi';
13
12
 
14
13
  /**
15
14
  * @license
@@ -28,7 +27,7 @@ function extendStyles(dest, source, importantProperties) {
28
27
  if (source.hasOwnProperty(key)) {
29
28
  const value = source[key];
30
29
  if (value) {
31
- dest.setProperty(key, value, (importantProperties === null || importantProperties === void 0 ? void 0 : importantProperties.has(key)) ? 'important' : '');
30
+ dest.setProperty(key, value, importantProperties?.has(key) ? 'important' : '');
32
31
  }
33
32
  else {
34
33
  dest.removeProperty(key);
@@ -52,7 +51,7 @@ function toggleNativeDragInteractions(element, enable) {
52
51
  'user-select': userSelect,
53
52
  '-ms-user-select': userSelect,
54
53
  '-webkit-user-select': userSelect,
55
- '-moz-user-select': userSelect
54
+ '-moz-user-select': userSelect,
56
55
  });
57
56
  }
58
57
  /**
@@ -67,7 +66,7 @@ function toggleVisibility(element, enable, importantProperties) {
67
66
  position: enable ? '' : 'fixed',
68
67
  top: enable ? '' : '0',
69
68
  opacity: enable ? '' : '0',
70
- left: enable ? '' : '-999em'
69
+ left: enable ? '' : '-999em',
71
70
  }, importantProperties);
72
71
  }
73
72
  /**
@@ -75,9 +74,9 @@ function toggleVisibility(element, enable, importantProperties) {
75
74
  * that exited before the base transform was applied.
76
75
  */
77
76
  function combineTransforms(transform, initialTransform) {
78
- return initialTransform && initialTransform != 'none' ?
79
- (transform + ' ' + initialTransform) :
80
- transform;
77
+ return initialTransform && initialTransform != 'none'
78
+ ? transform + ' ' + initialTransform
79
+ : transform;
81
80
  }
82
81
 
83
82
  /**
@@ -107,8 +106,8 @@ function getTransformTransitionDurationInMs(element) {
107
106
  const propertyIndex = transitionedProperties.indexOf(property);
108
107
  const rawDurations = parseCssPropertyValue(computedStyle, 'transition-duration');
109
108
  const rawDelays = parseCssPropertyValue(computedStyle, 'transition-delay');
110
- return parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +
111
- parseCssTimeUnitsToMs(rawDelays[propertyIndex]);
109
+ return (parseCssTimeUnitsToMs(rawDurations[propertyIndex]) +
110
+ parseCssTimeUnitsToMs(rawDelays[propertyIndex]));
112
111
  }
113
112
  /** Parses out multiple values from a computed style into an array. */
114
113
  function parseCssPropertyValue(computedStyle, name) {
@@ -136,7 +135,9 @@ function getMutableClientRect(element) {
136
135
  bottom: clientRect.bottom,
137
136
  left: clientRect.left,
138
137
  width: clientRect.width,
139
- height: clientRect.height
138
+ height: clientRect.height,
139
+ x: clientRect.x,
140
+ y: clientRect.y,
140
141
  };
141
142
  }
142
143
  /**
@@ -172,8 +173,10 @@ function isPointerNearClientRect(rect, threshold, pointerX, pointerY) {
172
173
  const { top, right, bottom, left, width, height } = rect;
173
174
  const xThreshold = width * threshold;
174
175
  const yThreshold = height * threshold;
175
- return pointerY > top - yThreshold && pointerY < bottom + yThreshold &&
176
- pointerX > left - xThreshold && pointerX < right + xThreshold;
176
+ return (pointerY > top - yThreshold &&
177
+ pointerY < bottom + yThreshold &&
178
+ pointerX > left - xThreshold &&
179
+ pointerX < right + xThreshold);
177
180
  }
178
181
 
179
182
  /**
@@ -204,7 +207,7 @@ class ParentPositionTracker {
204
207
  elements.forEach(element => {
205
208
  this.positions.set(element, {
206
209
  scrollPosition: { top: element.scrollTop, left: element.scrollLeft },
207
- clientRect: getMutableClientRect(element)
210
+ clientRect: getMutableClientRect(element),
208
211
  });
209
212
  });
210
213
  }
@@ -303,7 +306,7 @@ function transferCanvasData(source, clone) {
303
306
  try {
304
307
  context.drawImage(source, 0, 0);
305
308
  }
306
- catch (_a) { }
309
+ catch { }
307
310
  }
308
311
  }
309
312
 
@@ -328,7 +331,7 @@ const MOUSE_EVENT_IGNORE_TIME = 800;
328
331
  /** Inline styles to be set as `!important` while dragging. */
329
332
  const dragImportantProperties = new Set([
330
333
  // Needs to be important, because some `mat-table` sets `position: sticky !important`. See #22781.
331
- 'position'
334
+ 'position',
332
335
  ]);
333
336
  /**
334
337
  * Reference to a draggable item. Used to manipulate or dispose of the item.
@@ -484,7 +487,7 @@ class DragRef {
484
487
  pointerPosition: constrainedPointerPosition,
485
488
  event,
486
489
  distance: this._getDragDistance(constrainedPointerPosition),
487
- delta: this._pointerDirectionDelta
490
+ delta: this._pointerDirectionDelta,
488
491
  });
489
492
  });
490
493
  }
@@ -610,9 +613,9 @@ class DragRef {
610
613
  if (this.isDragging()) {
611
614
  // Since we move out the element to the end of the body while it's being
612
615
  // dragged, we have to make sure that it's removed if it gets destroyed.
613
- removeNode(this._rootElement);
616
+ this._rootElement?.remove();
614
617
  }
615
- removeNode(this._anchor);
618
+ this._anchor?.remove();
616
619
  this._destroyPreview();
617
620
  this._destroyPlaceholder();
618
621
  this._dragDropRegistry.removeDragItem(this);
@@ -630,8 +633,14 @@ class DragRef {
630
633
  this._dropContainer = undefined;
631
634
  this._resizeSubscription.unsubscribe();
632
635
  this._parentPositions.clear();
633
- this._boundaryElement = this._rootElement = this._ownerSVGElement = this._placeholderTemplate =
634
- this._previewTemplate = this._anchor = this._parentDragRef = null;
636
+ this._boundaryElement =
637
+ this._rootElement =
638
+ this._ownerSVGElement =
639
+ this._placeholderTemplate =
640
+ this._previewTemplate =
641
+ this._anchor =
642
+ this._parentDragRef =
643
+ null;
635
644
  }
636
645
  /** Checks whether the element is currently being dragged. */
637
646
  isDragging() {
@@ -715,22 +724,14 @@ class DragRef {
715
724
  }
716
725
  /** Destroys the preview element and its ViewRef. */
717
726
  _destroyPreview() {
718
- if (this._preview) {
719
- removeNode(this._preview);
720
- }
721
- if (this._previewRef) {
722
- this._previewRef.destroy();
723
- }
727
+ this._preview?.remove();
728
+ this._previewRef?.destroy();
724
729
  this._preview = this._previewRef = null;
725
730
  }
726
731
  /** Destroys the placeholder element and its ViewRef. */
727
732
  _destroyPlaceholder() {
728
- if (this._placeholder) {
729
- removeNode(this._placeholder);
730
- }
731
- if (this._placeholderRef) {
732
- this._placeholderRef.destroy();
733
- }
733
+ this._placeholder?.remove();
734
+ this._placeholderRef?.destroy();
734
735
  this._placeholder = this._placeholderRef = null;
735
736
  }
736
737
  /**
@@ -775,7 +776,7 @@ class DragRef {
775
776
  this.ended.next({
776
777
  source: this,
777
778
  distance: this._getDragDistance(pointerPosition),
778
- dropPoint: pointerPosition
779
+ dropPoint: pointerPosition,
779
780
  });
780
781
  });
781
782
  this._cleanupCachedDimensions();
@@ -792,8 +793,8 @@ class DragRef {
792
793
  if (dropContainer) {
793
794
  const element = this._rootElement;
794
795
  const parent = element.parentNode;
795
- const placeholder = this._placeholder = this._createPlaceholderElement();
796
- const anchor = this._anchor = this._anchor || this._document.createComment('');
796
+ const placeholder = (this._placeholder = this._createPlaceholderElement());
797
+ const anchor = (this._anchor = this._anchor || this._document.createComment(''));
797
798
  // Needs to happen before the root element is moved.
798
799
  const shadowRoot = this._getShadowRoot();
799
800
  // Insert an anchor node so that we can restore the element's position in the DOM.
@@ -840,10 +841,12 @@ class DragRef {
840
841
  const isAuxiliaryMouseButton = !isTouchSequence && event.button !== 0;
841
842
  const rootElement = this._rootElement;
842
843
  const target = _getEventTarget(event);
843
- const isSyntheticEvent = !isTouchSequence && this._lastTouchEventTime &&
844
+ const isSyntheticEvent = !isTouchSequence &&
845
+ this._lastTouchEventTime &&
844
846
  this._lastTouchEventTime + MOUSE_EVENT_IGNORE_TIME > Date.now();
845
- const isFakeEvent = isTouchSequence ? isFakeTouchstartFromScreenReader(event) :
846
- isFakeMousedownFromScreenReader(event);
847
+ const isFakeEvent = isTouchSequence
848
+ ? isFakeTouchstartFromScreenReader(event)
849
+ : isFakeMousedownFromScreenReader(event);
847
850
  // If the event started from an element with the native HTML drag&drop, it'll interfere
848
851
  // with our own dragging (e.g. `img` tags do it by default). Prevent the default action
849
852
  // to stop it from happening. Note that preventing on `dragstart` also seems to work, but
@@ -861,8 +864,9 @@ class DragRef {
861
864
  // otherwise iOS will still add it, even though all the drag interactions on the handle
862
865
  // are disabled.
863
866
  if (this._handles.length) {
864
- this._rootElementTapHighlight = rootElement.style.webkitTapHighlightColor || '';
865
- rootElement.style.webkitTapHighlightColor = 'transparent';
867
+ const rootStyles = rootElement.style;
868
+ this._rootElementTapHighlight = rootStyles.webkitTapHighlightColor || '';
869
+ rootStyles.webkitTapHighlightColor = 'transparent';
866
870
  }
867
871
  this._hasStartedDragging = this._hasMoved = false;
868
872
  // Avoid multiple subscriptions and memory leaks when multi touch
@@ -880,11 +884,13 @@ class DragRef {
880
884
  // it next to the cursor. The exception is when the consumer has opted into making the preview
881
885
  // the same size as the root element, in which case we do know the size.
882
886
  const previewTemplate = this._previewTemplate;
883
- this._pickupPositionInElement = previewTemplate && previewTemplate.template &&
884
- !previewTemplate.matchSize ? { x: 0, y: 0 } :
885
- this._getPointerPositionInElement(referenceElement, event);
886
- const pointerPosition = this._pickupPositionOnPage = this._lastKnownPointerPosition =
887
- this._getPointerPositionOnPage(event);
887
+ this._pickupPositionInElement =
888
+ previewTemplate && previewTemplate.template && !previewTemplate.matchSize
889
+ ? { x: 0, y: 0 }
890
+ : this._getPointerPositionInElement(referenceElement, event);
891
+ const pointerPosition = (this._pickupPositionOnPage =
892
+ this._lastKnownPointerPosition =
893
+ this._getPointerPositionOnPage(event));
888
894
  this._pointerDirectionDelta = { x: 0, y: 0 };
889
895
  this._pointerPositionAtLastDirectionChange = { x: pointerPosition.x, y: pointerPosition.y };
890
896
  this._dragStartTime = Date.now();
@@ -917,7 +923,7 @@ class DragRef {
917
923
  previousContainer: this._initialContainer,
918
924
  isPointerOverContainer,
919
925
  distance,
920
- dropPoint: pointerPosition
926
+ dropPoint: pointerPosition,
921
927
  });
922
928
  container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
923
929
  this._dropContainer = this._initialContainer;
@@ -934,7 +940,8 @@ class DragRef {
934
940
  // initial container, check whether the it's over the initial container. This handles the
935
941
  // case where two containers are connected one way and the user tries to undo dragging an
936
942
  // item into a new container.
937
- if (!newContainer && this._dropContainer !== this._initialContainer &&
943
+ if (!newContainer &&
944
+ this._dropContainer !== this._initialContainer &&
938
945
  this._initialContainer._isOverContainer(x, y)) {
939
946
  newContainer = this._initialContainer;
940
947
  }
@@ -948,11 +955,13 @@ class DragRef {
948
955
  this._dropContainer.enter(this, x, y, newContainer === this._initialContainer &&
949
956
  // If we're re-entering the initial container and sorting is disabled,
950
957
  // put item the into its starting index to begin with.
951
- newContainer.sortingDisabled ? this._initialIndex : undefined);
958
+ newContainer.sortingDisabled
959
+ ? this._initialIndex
960
+ : undefined);
952
961
  this.entered.next({
953
962
  item: this,
954
963
  container: newContainer,
955
- currentIndex: newContainer.getItemIndex(this)
964
+ currentIndex: newContainer.getItemIndex(this),
956
965
  });
957
966
  });
958
967
  }
@@ -984,8 +993,7 @@ class DragRef {
984
993
  matchElementSize(preview, rootRect);
985
994
  }
986
995
  else {
987
- preview.style.transform =
988
- getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
996
+ preview.style.transform = getTransform(this._pickupPositionOnPage.x, this._pickupPositionOnPage.y);
989
997
  }
990
998
  }
991
999
  else {
@@ -1005,7 +1013,7 @@ class DragRef {
1005
1013
  'position': 'fixed',
1006
1014
  'top': '0',
1007
1015
  'left': '0',
1008
- 'z-index': `${this._config.zIndex || 1000}`
1016
+ 'z-index': `${this._config.zIndex || 1000}`,
1009
1017
  }, dragImportantProperties);
1010
1018
  toggleNativeDragInteractions(preview, false);
1011
1019
  preview.classList.add('cdk-drag-preview');
@@ -1045,9 +1053,9 @@ class DragRef {
1045
1053
  return this._ngZone.runOutsideAngular(() => {
1046
1054
  return new Promise(resolve => {
1047
1055
  const handler = ((event) => {
1048
- if (!event || (_getEventTarget(event) === this._preview &&
1049
- event.propertyName === 'transform')) {
1050
- this._preview.removeEventListener('transitionend', handler);
1056
+ if (!event ||
1057
+ (_getEventTarget(event) === this._preview && event.propertyName === 'transform')) {
1058
+ this._preview?.removeEventListener('transitionend', handler);
1051
1059
  resolve();
1052
1060
  clearTimeout(timeout);
1053
1061
  }
@@ -1091,21 +1099,22 @@ class DragRef {
1091
1099
  const y = point.pageY - referenceRect.top - scrollPosition.top;
1092
1100
  return {
1093
1101
  x: referenceRect.left - elementRect.left + x,
1094
- y: referenceRect.top - elementRect.top + y
1102
+ y: referenceRect.top - elementRect.top + y,
1095
1103
  };
1096
1104
  }
1097
1105
  /** Determines the point of the page that was touched by the user. */
1098
1106
  _getPointerPositionOnPage(event) {
1099
1107
  const scrollPosition = this._getViewportScrollPosition();
1100
- const point = isTouchEvent(event) ?
1101
- // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
1102
- // Also note that on real devices we're guaranteed for either `touches` or `changedTouches`
1103
- // to have a value, but Firefox in device emulation mode has a bug where both can be empty
1104
- // for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid
1105
- // throwing an error. The value returned here will be incorrect, but since this only
1106
- // breaks inside a developer tool and the value is only used for secondary information,
1107
- // we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.
1108
- (event.touches[0] || event.changedTouches[0] || { pageX: 0, pageY: 0 }) : event;
1108
+ const point = isTouchEvent(event)
1109
+ ? // `touches` will be empty for start/end events so we have to fall back to `changedTouches`.
1110
+ // Also note that on real devices we're guaranteed for either `touches` or `changedTouches`
1111
+ // to have a value, but Firefox in device emulation mode has a bug where both can be empty
1112
+ // for `touchstart` and `touchend` so we fall back to a dummy object in order to avoid
1113
+ // throwing an error. The value returned here will be incorrect, but since this only
1114
+ // breaks inside a developer tool and the value is only used for secondary information,
1115
+ // we can get away with it. See https://bugzilla.mozilla.org/show_bug.cgi?id=1615824.
1116
+ event.touches[0] || event.changedTouches[0] || { pageX: 0, pageY: 0 }
1117
+ : event;
1109
1118
  const x = point.pageX - scrollPosition.left;
1110
1119
  const y = point.pageY - scrollPosition.top;
1111
1120
  // if dragging SVG element, try to convert from the screen coordinate system to the SVG
@@ -1208,10 +1217,9 @@ class DragRef {
1208
1217
  * @param y New transform value along the Y axis.
1209
1218
  */
1210
1219
  _applyPreviewTransform(x, y) {
1211
- var _a;
1212
1220
  // Only apply the initial transform if the preview is a clone of the original element, otherwise
1213
1221
  // it could be completely different and the transform might not make sense anymore.
1214
- const initialTransform = ((_a = this._previewTemplate) === null || _a === void 0 ? void 0 : _a.template) ? undefined : this._initialTransform;
1222
+ const initialTransform = this._previewTemplate?.template ? undefined : this._initialTransform;
1215
1223
  const transform = getTransform(x, y);
1216
1224
  this._preview.style.transform = combineTransforms(transform, initialTransform);
1217
1225
  }
@@ -1300,7 +1308,8 @@ class DragRef {
1300
1308
  const target = _getEventTarget(event);
1301
1309
  // ClientRect dimensions are based on the scroll position of the page and its parent
1302
1310
  // node so we have to update the cached boundary ClientRect if the user has scrolled.
1303
- if (this._boundaryRect && target !== this._boundaryElement &&
1311
+ if (this._boundaryRect &&
1312
+ target !== this._boundaryElement &&
1304
1313
  target.contains(this._boundaryElement)) {
1305
1314
  adjustClientRect(this._boundaryRect, scrollDifference.top, scrollDifference.left);
1306
1315
  }
@@ -1318,8 +1327,9 @@ class DragRef {
1318
1327
  /** Gets the scroll position of the viewport. */
1319
1328
  _getViewportScrollPosition() {
1320
1329
  const cachedPosition = this._parentPositions.positions.get(this._document);
1321
- return cachedPosition ? cachedPosition.scrollPosition :
1322
- this._viewportRuler.getViewportScrollPosition();
1330
+ return cachedPosition
1331
+ ? cachedPosition.scrollPosition
1332
+ : this._viewportRuler.getViewportScrollPosition();
1323
1333
  }
1324
1334
  /**
1325
1335
  * Lazily resolves and returns the shadow root of the element. We do this in a function, rather
@@ -1344,12 +1354,12 @@ class DragRef {
1344
1354
  // We can't use the body if the user is in fullscreen mode,
1345
1355
  // because the preview will render under the fullscreen element.
1346
1356
  // TODO(crisbeto): dedupe this with the `FullscreenOverlayContainer` eventually.
1347
- return shadowRoot ||
1357
+ return (shadowRoot ||
1348
1358
  documentRef.fullscreenElement ||
1349
1359
  documentRef.webkitFullscreenElement ||
1350
1360
  documentRef.mozFullScreenElement ||
1351
1361
  documentRef.msFullscreenElement ||
1352
- documentRef.body;
1362
+ documentRef.body);
1353
1363
  }
1354
1364
  return coerceElement(previewContainer);
1355
1365
  }
@@ -1368,15 +1378,6 @@ function getTransform(x, y) {
1368
1378
  function clamp$1(value, min, max) {
1369
1379
  return Math.max(min, Math.min(max, value));
1370
1380
  }
1371
- /**
1372
- * Helper to remove a node from the DOM and to do all the necessary null checks.
1373
- * @param node Node to be removed.
1374
- */
1375
- function removeNode(node) {
1376
- if (node && node.parentNode) {
1377
- node.parentNode.removeChild(node);
1378
- }
1379
- }
1380
1381
  /** Determines whether an event is a touch event. */
1381
1382
  function isTouchEvent(event) {
1382
1383
  // This function is called for every pixel that the user has dragged so we need it to be
@@ -1701,7 +1702,7 @@ class DropListRef {
1701
1702
  previousContainer,
1702
1703
  isPointerOverContainer,
1703
1704
  distance,
1704
- dropPoint
1705
+ dropPoint,
1705
1706
  });
1706
1707
  }
1707
1708
  /**
@@ -1774,8 +1775,9 @@ class DropListRef {
1774
1775
  // Items are sorted always by top/left in the cache, however they flow differently in RTL.
1775
1776
  // The rest of the logic still stands no matter what orientation we're in, however
1776
1777
  // we need to invert the array when determining the index.
1777
- const items = this._orientation === 'horizontal' && this._direction === 'rtl' ?
1778
- this._itemPositions.slice().reverse() : this._itemPositions;
1778
+ const items = this._orientation === 'horizontal' && this._direction === 'rtl'
1779
+ ? this._itemPositions.slice().reverse()
1780
+ : this._itemPositions;
1779
1781
  return items.findIndex(currentItem => currentItem.drag === item);
1780
1782
  }
1781
1783
  /**
@@ -1794,7 +1796,8 @@ class DropListRef {
1794
1796
  */
1795
1797
  _sortItem(item, pointerX, pointerY, pointerDelta) {
1796
1798
  // Don't sort the item if sorting is disabled or it's out of range.
1797
- if (this.sortingDisabled || !this._clientRect ||
1799
+ if (this.sortingDisabled ||
1800
+ !this._clientRect ||
1798
1801
  !isPointerNearClientRect(this._clientRect, DROP_PROXIMITY_THRESHOLD, pointerX, pointerY)) {
1799
1802
  return;
1800
1803
  }
@@ -1822,7 +1825,7 @@ class DropListRef {
1822
1825
  previousIndex: currentIndex,
1823
1826
  currentIndex: newIndex,
1824
1827
  container: this,
1825
- item
1828
+ item,
1826
1829
  });
1827
1830
  siblings.forEach((sibling, index) => {
1828
1831
  // Don't do anything if the position hasn't changed.
@@ -1831,8 +1834,9 @@ class DropListRef {
1831
1834
  }
1832
1835
  const isDraggedItem = sibling.drag === item;
1833
1836
  const offset = isDraggedItem ? itemOffset : siblingOffset;
1834
- const elementToOffset = isDraggedItem ? item.getPlaceholderElement() :
1835
- sibling.drag.getRootElement();
1837
+ const elementToOffset = isDraggedItem
1838
+ ? item.getPlaceholderElement()
1839
+ : sibling.drag.getRootElement();
1836
1840
  // Update the offset to reflect the new position.
1837
1841
  sibling.offset += offset;
1838
1842
  // Since we're moving the items with a `transform`, we need to adjust their cached
@@ -1885,14 +1889,22 @@ class DropListRef {
1885
1889
  // Otherwise check if we can start scrolling the viewport.
1886
1890
  if (!verticalScrollDirection && !horizontalScrollDirection) {
1887
1891
  const { width, height } = this._viewportRuler.getViewportSize();
1888
- const clientRect = { width, height, top: 0, right: width, bottom: height, left: 0 };
1892
+ const clientRect = {
1893
+ width,
1894
+ height,
1895
+ top: 0,
1896
+ right: width,
1897
+ bottom: height,
1898
+ left: 0,
1899
+ };
1889
1900
  verticalScrollDirection = getVerticalScrollDirection(clientRect, pointerY);
1890
1901
  horizontalScrollDirection = getHorizontalScrollDirection(clientRect, pointerX);
1891
1902
  scrollNode = window;
1892
1903
  }
1893
- if (scrollNode && (verticalScrollDirection !== this._verticalScrollDirection ||
1894
- horizontalScrollDirection !== this._horizontalScrollDirection ||
1895
- scrollNode !== this._scrollNode)) {
1904
+ if (scrollNode &&
1905
+ (verticalScrollDirection !== this._verticalScrollDirection ||
1906
+ horizontalScrollDirection !== this._horizontalScrollDirection ||
1907
+ scrollNode !== this._scrollNode)) {
1896
1908
  this._verticalScrollDirection = verticalScrollDirection;
1897
1909
  this._horizontalScrollDirection = horizontalScrollDirection;
1898
1910
  this._scrollNode = scrollNode;
@@ -1933,7 +1945,8 @@ class DropListRef {
1933
1945
  /** Refreshes the position cache of the items and sibling containers. */
1934
1946
  _cacheItemPositions() {
1935
1947
  const isHorizontal = this._orientation === 'horizontal';
1936
- this._itemPositions = this._activeDraggables.map(drag => {
1948
+ this._itemPositions = this._activeDraggables
1949
+ .map(drag => {
1937
1950
  const elementToMeasure = drag.getVisibleElement();
1938
1951
  return {
1939
1952
  drag,
@@ -1941,9 +1954,11 @@ class DropListRef {
1941
1954
  initialTransform: elementToMeasure.style.transform || '',
1942
1955
  clientRect: getMutableClientRect(elementToMeasure),
1943
1956
  };
1944
- }).sort((a, b) => {
1945
- return isHorizontal ? a.clientRect.left - b.clientRect.left :
1946
- a.clientRect.top - b.clientRect.top;
1957
+ })
1958
+ .sort((a, b) => {
1959
+ return isHorizontal
1960
+ ? a.clientRect.left - b.clientRect.left
1961
+ : a.clientRect.top - b.clientRect.top;
1947
1962
  });
1948
1963
  }
1949
1964
  /** Resets the container to its initial state. */
@@ -1953,11 +1968,9 @@ class DropListRef {
1953
1968
  styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;
1954
1969
  // TODO(crisbeto): may have to wait for the animations to finish.
1955
1970
  this._activeDraggables.forEach(item => {
1956
- var _a;
1957
1971
  const rootElement = item.getRootElement();
1958
1972
  if (rootElement) {
1959
- const initialTransform = (_a = this._itemPositions
1960
- .find(current => current.drag === item)) === null || _a === void 0 ? void 0 : _a.initialTransform;
1973
+ const initialTransform = this._itemPositions.find(current => current.drag === item)?.initialTransform;
1961
1974
  rootElement.style.transform = initialTransform || '';
1962
1975
  }
1963
1976
  });
@@ -2006,12 +2019,14 @@ class DropListRef {
2006
2019
  */
2007
2020
  _getItemOffsetPx(currentPosition, newPosition, delta) {
2008
2021
  const isHorizontal = this._orientation === 'horizontal';
2009
- let itemOffset = isHorizontal ? newPosition.left - currentPosition.left :
2010
- newPosition.top - currentPosition.top;
2022
+ let itemOffset = isHorizontal
2023
+ ? newPosition.left - currentPosition.left
2024
+ : newPosition.top - currentPosition.top;
2011
2025
  // Account for differences in the item width/height.
2012
2026
  if (delta === -1) {
2013
- itemOffset += isHorizontal ? newPosition.width - currentPosition.width :
2014
- newPosition.height - currentPosition.height;
2027
+ itemOffset += isHorizontal
2028
+ ? newPosition.width - currentPosition.width
2029
+ : newPosition.height - currentPosition.height;
2015
2030
  }
2016
2031
  return itemOffset;
2017
2032
  }
@@ -2057,18 +2072,19 @@ class DropListRef {
2057
2072
  // If the user is still hovering over the same item as last time, their cursor hasn't left
2058
2073
  // the item after we made the swap, and they didn't change the direction in which they're
2059
2074
  // dragging, we don't consider it a direction swap.
2060
- if (drag === this._previousSwap.drag && this._previousSwap.overlaps &&
2075
+ if (drag === this._previousSwap.drag &&
2076
+ this._previousSwap.overlaps &&
2061
2077
  direction === this._previousSwap.delta) {
2062
2078
  return false;
2063
2079
  }
2064
2080
  }
2065
- return isHorizontal ?
2066
- // Round these down since most browsers report client rects with
2067
- // sub-pixel precision, whereas the pointer coordinates are rounded to pixels.
2068
- pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right) :
2069
- pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
2081
+ return isHorizontal
2082
+ ? // Round these down since most browsers report client rects with
2083
+ // sub-pixel precision, whereas the pointer coordinates are rounded to pixels.
2084
+ pointerX >= Math.floor(clientRect.left) && pointerX < Math.floor(clientRect.right)
2085
+ : pointerY >= Math.floor(clientRect.top) && pointerY < Math.floor(clientRect.bottom);
2070
2086
  });
2071
- return (index === -1 || !this.sortPredicate(index, item, this)) ? -1 : index;
2087
+ return index === -1 || !this.sortPredicate(index, item, this) ? -1 : index;
2072
2088
  }
2073
2089
  /** Caches the current items in the list and their positions. */
2074
2090
  _cacheItems() {
@@ -2101,7 +2117,8 @@ class DropListRef {
2101
2117
  * @param y Position of the item along the Y axis.
2102
2118
  */
2103
2119
  _canReceive(item, x, y) {
2104
- if (!this._clientRect || !isInsideClientRect(this._clientRect, x, y) ||
2120
+ if (!this._clientRect ||
2121
+ !isInsideClientRect(this._clientRect, x, y) ||
2105
2122
  !this.enterPredicate(item, this)) {
2106
2123
  return false;
2107
2124
  }
@@ -2126,13 +2143,14 @@ class DropListRef {
2126
2143
  */
2127
2144
  _startReceiving(sibling, items) {
2128
2145
  const activeSiblings = this._activeSiblings;
2129
- if (!activeSiblings.has(sibling) && items.every(item => {
2130
- // Note that we have to add an exception to the `enterPredicate` for items that started off
2131
- // in this drop list. The drag ref has logic that allows an item to return to its initial
2132
- // container, if it has left the initial container and none of the connected containers
2133
- // allow it to enter. See `DragRef._updateActiveDropContainer` for more context.
2134
- return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;
2135
- })) {
2146
+ if (!activeSiblings.has(sibling) &&
2147
+ items.every(item => {
2148
+ // Note that we have to add an exception to the `enterPredicate` for items that started off
2149
+ // in this drop list. The drag ref has logic that allows an item to return to its initial
2150
+ // container, if it has left the initial container and none of the connected containers
2151
+ // allow it to enter. See `DragRef._updateActiveDropContainer` for more context.
2152
+ return this.enterPredicate(item, this) || this._draggables.indexOf(item) > -1;
2153
+ })) {
2136
2154
  activeSiblings.add(sibling);
2137
2155
  this._cacheParentPositions();
2138
2156
  this._listenToScrollEvents();
@@ -2189,7 +2207,7 @@ class DropListRef {
2189
2207
  _getShadowRoot() {
2190
2208
  if (!this._cachedShadowRoot) {
2191
2209
  const shadowRoot = _getShadowRoot(coerceElement(this.element));
2192
- this._cachedShadowRoot = shadowRoot || this._document;
2210
+ this._cachedShadowRoot = (shadowRoot || this._document);
2193
2211
  }
2194
2212
  return this._cachedShadowRoot;
2195
2213
  }
@@ -2283,7 +2301,7 @@ function getElementScrollDirections(element, clientRect, pointerX, pointerY) {
2283
2301
  /** Event options that can be used to bind an active, capturing event. */
2284
2302
  const activeCapturingEventOptions = normalizePassiveListenerOptions({
2285
2303
  passive: false,
2286
- capture: true
2304
+ capture: true,
2287
2305
  });
2288
2306
  /**
2289
2307
  * Service that keeps track of all the drag item and drop container
@@ -2399,13 +2417,13 @@ class DragDropRegistry {
2399
2417
  this._globalListeners
2400
2418
  .set(isTouchEvent ? 'touchend' : 'mouseup', {
2401
2419
  handler: (e) => this.pointerUp.next(e),
2402
- options: true
2420
+ options: true,
2403
2421
  })
2404
2422
  .set('scroll', {
2405
2423
  handler: (e) => this.scroll.next(e),
2406
2424
  // Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
2407
2425
  // the document. See https://github.com/angular/components/issues/17144.
2408
- options: true
2426
+ options: true,
2409
2427
  })
2410
2428
  // Preventing the default action on `mousemove` isn't enough to disable text selection
2411
2429
  // on Safari so we need to prevent the selection event as well. Alternatively this can
@@ -2413,14 +2431,14 @@ class DragDropRegistry {
2413
2431
  // recalculation which can be expensive on pages with a lot of elements.
2414
2432
  .set('selectstart', {
2415
2433
  handler: this._preventDefaultWhileDragging,
2416
- options: activeCapturingEventOptions
2434
+ options: activeCapturingEventOptions,
2417
2435
  });
2418
2436
  // We don't have to bind a move event for touch drag sequences, because
2419
2437
  // we already have a persistent global one bound from `registerDragItem`.
2420
2438
  if (!isTouchEvent) {
2421
2439
  this._globalListeners.set('mousemove', {
2422
2440
  handler: (e) => this.pointerMove.next(e),
2423
- options: activeCapturingEventOptions
2441
+ options: activeCapturingEventOptions,
2424
2442
  });
2425
2443
  }
2426
2444
  this._ngZone.runOutsideAngular(() => {
@@ -2489,14 +2507,15 @@ class DragDropRegistry {
2489
2507
  this._globalListeners.clear();
2490
2508
  }
2491
2509
  }
2492
- DragDropRegistry.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragDropRegistry_Factory() { return new DragDropRegistry(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.DOCUMENT)); }, token: DragDropRegistry, providedIn: "root" });
2493
- DragDropRegistry.decorators = [
2494
- { type: Injectable, args: [{ providedIn: 'root' },] }
2495
- ];
2496
- DragDropRegistry.ctorParameters = () => [
2497
- { type: NgZone },
2498
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
2499
- ];
2510
+ DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2511
+ DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropRegistry, decorators: [{
2513
+ type: Injectable,
2514
+ args: [{ providedIn: 'root' }]
2515
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
2516
+ type: Inject,
2517
+ args: [DOCUMENT]
2518
+ }] }]; } });
2500
2519
 
2501
2520
  /**
2502
2521
  * @license
@@ -2508,7 +2527,7 @@ DragDropRegistry.ctorParameters = () => [
2508
2527
  /** Default configuration to be used when creating a `DragRef`. */
2509
2528
  const DEFAULT_CONFIG = {
2510
2529
  dragStartThreshold: 5,
2511
- pointerDirectionChangeThreshold: 5
2530
+ pointerDirectionChangeThreshold: 5,
2512
2531
  };
2513
2532
  /**
2514
2533
  * Service that allows for drag-and-drop functionality to be attached to DOM elements.
@@ -2536,16 +2555,15 @@ class DragDrop {
2536
2555
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
2537
2556
  }
2538
2557
  }
2539
- DragDrop.ɵprov = i0.ɵɵdefineInjectable({ factory: function DragDrop_Factory() { return new DragDrop(i0.ɵɵinject(i1.DOCUMENT), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.ViewportRuler), i0.ɵɵinject(DragDropRegistry)); }, token: DragDrop, providedIn: "root" });
2540
- DragDrop.decorators = [
2541
- { type: Injectable, args: [{ providedIn: 'root' },] }
2542
- ];
2543
- DragDrop.ctorParameters = () => [
2544
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
2545
- { type: NgZone },
2546
- { type: ViewportRuler },
2547
- { type: DragDropRegistry }
2548
- ];
2558
+ DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
2559
+ DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDrop, providedIn: 'root' });
2560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDrop, decorators: [{
2561
+ type: Injectable,
2562
+ args: [{ providedIn: 'root' }]
2563
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2564
+ type: Inject,
2565
+ args: [DOCUMENT]
2566
+ }] }, { type: i0.NgZone }, { type: i1.ViewportRuler }, { type: DragDropRegistry }]; } });
2549
2567
 
2550
2568
  /**
2551
2569
  * @license
@@ -2596,7 +2614,9 @@ class CdkDropListGroup {
2596
2614
  this._disabled = false;
2597
2615
  }
2598
2616
  /** Whether starting a dragging sequence from inside this group is disabled. */
2599
- get disabled() { return this._disabled; }
2617
+ get disabled() {
2618
+ return this._disabled;
2619
+ }
2600
2620
  set disabled(value) {
2601
2621
  this._disabled = coerceBooleanProperty(value);
2602
2622
  }
@@ -2604,16 +2624,19 @@ class CdkDropListGroup {
2604
2624
  this._items.clear();
2605
2625
  }
2606
2626
  }
2607
- CdkDropListGroup.decorators = [
2608
- { type: Directive, args: [{
2609
- selector: '[cdkDropListGroup]',
2610
- exportAs: 'cdkDropListGroup',
2611
- providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],
2612
- },] }
2613
- ];
2614
- CdkDropListGroup.propDecorators = {
2615
- disabled: [{ type: Input, args: ['cdkDropListGroupDisabled',] }]
2616
- };
2627
+ CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2628
+ CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
2629
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropListGroup, decorators: [{
2630
+ type: Directive,
2631
+ args: [{
2632
+ selector: '[cdkDropListGroup]',
2633
+ exportAs: 'cdkDropListGroup',
2634
+ providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],
2635
+ }]
2636
+ }], propDecorators: { disabled: [{
2637
+ type: Input,
2638
+ args: ['cdkDropListGroupDisabled']
2639
+ }] } });
2617
2640
 
2618
2641
  /**
2619
2642
  * @license
@@ -2642,8 +2665,7 @@ const CDK_DRAG_CONFIG = new InjectionToken('CDK_DRAG_CONFIG');
2642
2665
  */
2643
2666
  function assertElementNode(node, name) {
2644
2667
  if (node.nodeType !== 1) {
2645
- throw Error(`${name} must be attached to an element node. ` +
2646
- `Currently attached to "${node.nodeName}".`);
2668
+ throw Error(`${name} must be attached to an element node. ` + `Currently attached to "${node.nodeName}".`);
2647
2669
  }
2648
2670
  }
2649
2671
 
@@ -2662,7 +2684,6 @@ let _uniqueIdCounter = 0;
2662
2684
  * retention of the class and its directive metadata.
2663
2685
  */
2664
2686
  const CDK_DROP_LIST = new InjectionToken('CdkDropList');
2665
- const ɵ0 = undefined;
2666
2687
  /** Container that wraps a set of draggable items. */
2667
2688
  class CdkDropList {
2668
2689
  constructor(
@@ -2725,10 +2746,9 @@ class CdkDropList {
2725
2746
  this._dropListRef.enterPredicate = (drag, drop) => {
2726
2747
  return this.enterPredicate(drag.data, drop.data);
2727
2748
  };
2728
- this._dropListRef.sortPredicate =
2729
- (index, drag, drop) => {
2730
- return this.sortPredicate(index, drag.data, drop.data);
2731
- };
2749
+ this._dropListRef.sortPredicate = (index, drag, drop) => {
2750
+ return this.sortPredicate(index, drag.data, drop.data);
2751
+ };
2732
2752
  this._setupInputSyncSubscription(this._dropListRef);
2733
2753
  this._handleEvents(this._dropListRef);
2734
2754
  CdkDropList._dropLists.push(this);
@@ -2764,7 +2784,9 @@ class CdkDropList {
2764
2784
  /** Gets the registered items in the list, sorted by their position in the DOM. */
2765
2785
  getSortedItems() {
2766
2786
  return Array.from(this._unsortedItems).sort((a, b) => {
2767
- const documentPosition = a._dragRef.getVisibleElement().compareDocumentPosition(b._dragRef.getVisibleElement());
2787
+ const documentPosition = a._dragRef
2788
+ .getVisibleElement()
2789
+ .compareDocumentPosition(b._dragRef.getVisibleElement());
2768
2790
  // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
2769
2791
  // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
2770
2792
  // tslint:disable-next-line:no-bitwise
@@ -2840,13 +2862,13 @@ class CdkDropList {
2840
2862
  this.entered.emit({
2841
2863
  container: this,
2842
2864
  item: event.item.data,
2843
- currentIndex: event.currentIndex
2865
+ currentIndex: event.currentIndex,
2844
2866
  });
2845
2867
  });
2846
2868
  ref.exited.subscribe(event => {
2847
2869
  this.exited.emit({
2848
2870
  container: this,
2849
- item: event.item.data
2871
+ item: event.item.data,
2850
2872
  });
2851
2873
  this._changeDetectorRef.markForCheck();
2852
2874
  });
@@ -2855,7 +2877,7 @@ class CdkDropList {
2855
2877
  previousIndex: event.previousIndex,
2856
2878
  currentIndex: event.currentIndex,
2857
2879
  container: this,
2858
- item: event.item.data
2880
+ item: event.item.data,
2859
2881
  });
2860
2882
  });
2861
2883
  ref.dropped.subscribe(event => {
@@ -2867,7 +2889,7 @@ class CdkDropList {
2867
2889
  item: event.item.data,
2868
2890
  isPointerOverContainer: event.isPointerOverContainer,
2869
2891
  distance: event.distance,
2870
- dropPoint: event.dropPoint
2892
+ dropPoint: event.dropPoint,
2871
2893
  });
2872
2894
  // Mark for check since all of these events run outside of change
2873
2895
  // detection and we're not guaranteed for something else to have triggered it.
@@ -2892,50 +2914,89 @@ class CdkDropList {
2892
2914
  }
2893
2915
  /** Keeps track of the drop lists that are currently on the page. */
2894
2916
  CdkDropList._dropLists = [];
2895
- CdkDropList.decorators = [
2896
- { type: Directive, args: [{
2897
- selector: '[cdkDropList], cdk-drop-list',
2898
- exportAs: 'cdkDropList',
2899
- providers: [
2900
- // Prevent child drop lists from picking up the same group as their parent.
2901
- { provide: CDK_DROP_LIST_GROUP, useValue: ɵ0 },
2902
- { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2903
- ],
2904
- host: {
2905
- 'class': 'cdk-drop-list',
2906
- '[attr.id]': 'id',
2907
- '[class.cdk-drop-list-disabled]': 'disabled',
2908
- '[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
2909
- '[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
2910
- }
2911
- },] }
2912
- ];
2913
- CdkDropList.ctorParameters = () => [
2914
- { type: ElementRef },
2915
- { type: DragDrop },
2916
- { type: ChangeDetectorRef },
2917
- { type: ScrollDispatcher },
2918
- { type: Directionality, decorators: [{ type: Optional }] },
2919
- { type: CdkDropListGroup, decorators: [{ type: Optional }, { type: Inject, args: [CDK_DROP_LIST_GROUP,] }, { type: SkipSelf }] },
2920
- { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [CDK_DRAG_CONFIG,] }] }
2921
- ];
2922
- CdkDropList.propDecorators = {
2923
- connectedTo: [{ type: Input, args: ['cdkDropListConnectedTo',] }],
2924
- data: [{ type: Input, args: ['cdkDropListData',] }],
2925
- orientation: [{ type: Input, args: ['cdkDropListOrientation',] }],
2926
- id: [{ type: Input }],
2927
- lockAxis: [{ type: Input, args: ['cdkDropListLockAxis',] }],
2928
- disabled: [{ type: Input, args: ['cdkDropListDisabled',] }],
2929
- sortingDisabled: [{ type: Input, args: ['cdkDropListSortingDisabled',] }],
2930
- enterPredicate: [{ type: Input, args: ['cdkDropListEnterPredicate',] }],
2931
- sortPredicate: [{ type: Input, args: ['cdkDropListSortPredicate',] }],
2932
- autoScrollDisabled: [{ type: Input, args: ['cdkDropListAutoScrollDisabled',] }],
2933
- autoScrollStep: [{ type: Input, args: ['cdkDropListAutoScrollStep',] }],
2934
- dropped: [{ type: Output, args: ['cdkDropListDropped',] }],
2935
- entered: [{ type: Output, args: ['cdkDropListEntered',] }],
2936
- exited: [{ type: Output, args: ['cdkDropListExited',] }],
2937
- sorted: [{ type: Output, args: ['cdkDropListSorted',] }]
2938
- };
2917
+ CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropList, deps: [{ token: i0.ElementRef }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: i1.ScrollDispatcher }, { token: i3.Directionality, optional: true }, { token: CDK_DROP_LIST_GROUP, optional: true, skipSelf: true }, { token: CDK_DRAG_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2918
+ CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled"], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled"], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled"], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
2919
+ // Prevent child drop lists from picking up the same group as their parent.
2920
+ { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
2921
+ { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2922
+ ], exportAs: ["cdkDropList"], ngImport: i0 });
2923
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDropList, decorators: [{
2924
+ type: Directive,
2925
+ args: [{
2926
+ selector: '[cdkDropList], cdk-drop-list',
2927
+ exportAs: 'cdkDropList',
2928
+ providers: [
2929
+ // Prevent child drop lists from picking up the same group as their parent.
2930
+ { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
2931
+ { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2932
+ ],
2933
+ host: {
2934
+ 'class': 'cdk-drop-list',
2935
+ '[attr.id]': 'id',
2936
+ '[class.cdk-drop-list-disabled]': 'disabled',
2937
+ '[class.cdk-drop-list-dragging]': '_dropListRef.isDragging()',
2938
+ '[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
2939
+ },
2940
+ }]
2941
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: i1.ScrollDispatcher }, { type: i3.Directionality, decorators: [{
2942
+ type: Optional
2943
+ }] }, { type: CdkDropListGroup, decorators: [{
2944
+ type: Optional
2945
+ }, {
2946
+ type: Inject,
2947
+ args: [CDK_DROP_LIST_GROUP]
2948
+ }, {
2949
+ type: SkipSelf
2950
+ }] }, { type: undefined, decorators: [{
2951
+ type: Optional
2952
+ }, {
2953
+ type: Inject,
2954
+ args: [CDK_DRAG_CONFIG]
2955
+ }] }]; }, propDecorators: { connectedTo: [{
2956
+ type: Input,
2957
+ args: ['cdkDropListConnectedTo']
2958
+ }], data: [{
2959
+ type: Input,
2960
+ args: ['cdkDropListData']
2961
+ }], orientation: [{
2962
+ type: Input,
2963
+ args: ['cdkDropListOrientation']
2964
+ }], id: [{
2965
+ type: Input
2966
+ }], lockAxis: [{
2967
+ type: Input,
2968
+ args: ['cdkDropListLockAxis']
2969
+ }], disabled: [{
2970
+ type: Input,
2971
+ args: ['cdkDropListDisabled']
2972
+ }], sortingDisabled: [{
2973
+ type: Input,
2974
+ args: ['cdkDropListSortingDisabled']
2975
+ }], enterPredicate: [{
2976
+ type: Input,
2977
+ args: ['cdkDropListEnterPredicate']
2978
+ }], sortPredicate: [{
2979
+ type: Input,
2980
+ args: ['cdkDropListSortPredicate']
2981
+ }], autoScrollDisabled: [{
2982
+ type: Input,
2983
+ args: ['cdkDropListAutoScrollDisabled']
2984
+ }], autoScrollStep: [{
2985
+ type: Input,
2986
+ args: ['cdkDropListAutoScrollStep']
2987
+ }], dropped: [{
2988
+ type: Output,
2989
+ args: ['cdkDropListDropped']
2990
+ }], entered: [{
2991
+ type: Output,
2992
+ args: ['cdkDropListEntered']
2993
+ }], exited: [{
2994
+ type: Output,
2995
+ args: ['cdkDropListExited']
2996
+ }], sorted: [{
2997
+ type: Output,
2998
+ args: ['cdkDropListSorted']
2999
+ }] } });
2939
3000
 
2940
3001
  /**
2941
3002
  * @license
@@ -2963,7 +3024,9 @@ class CdkDragHandle {
2963
3024
  this._parentDrag = parentDrag;
2964
3025
  }
2965
3026
  /** Whether starting to drag through this handle is disabled. */
2966
- get disabled() { return this._disabled; }
3027
+ get disabled() {
3028
+ return this._disabled;
3029
+ }
2967
3030
  set disabled(value) {
2968
3031
  this._disabled = coerceBooleanProperty(value);
2969
3032
  this._stateChanges.next(this);
@@ -2972,22 +3035,28 @@ class CdkDragHandle {
2972
3035
  this._stateChanges.complete();
2973
3036
  }
2974
3037
  }
2975
- CdkDragHandle.decorators = [
2976
- { type: Directive, args: [{
2977
- selector: '[cdkDragHandle]',
2978
- host: {
2979
- 'class': 'cdk-drag-handle'
2980
- },
2981
- providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
2982
- },] }
2983
- ];
2984
- CdkDragHandle.ctorParameters = () => [
2985
- { type: ElementRef },
2986
- { type: undefined, decorators: [{ type: Inject, args: [CDK_DRAG_PARENT,] }, { type: Optional }, { type: SkipSelf }] }
2987
- ];
2988
- CdkDragHandle.propDecorators = {
2989
- disabled: [{ type: Input, args: ['cdkDragHandleDisabled',] }]
2990
- };
3038
+ CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3039
+ CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragHandle, decorators: [{
3041
+ type: Directive,
3042
+ args: [{
3043
+ selector: '[cdkDragHandle]',
3044
+ host: {
3045
+ 'class': 'cdk-drag-handle',
3046
+ },
3047
+ providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
3048
+ }]
3049
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
3050
+ type: Inject,
3051
+ args: [CDK_DRAG_PARENT]
3052
+ }, {
3053
+ type: Optional
3054
+ }, {
3055
+ type: SkipSelf
3056
+ }] }]; }, propDecorators: { disabled: [{
3057
+ type: Input,
3058
+ args: ['cdkDragHandleDisabled']
3059
+ }] } });
2991
3060
 
2992
3061
  /**
2993
3062
  * @license
@@ -3011,18 +3080,17 @@ class CdkDragPlaceholder {
3011
3080
  this.templateRef = templateRef;
3012
3081
  }
3013
3082
  }
3014
- CdkDragPlaceholder.decorators = [
3015
- { type: Directive, args: [{
3016
- selector: 'ng-template[cdkDragPlaceholder]',
3017
- providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
3018
- },] }
3019
- ];
3020
- CdkDragPlaceholder.ctorParameters = () => [
3021
- { type: TemplateRef }
3022
- ];
3023
- CdkDragPlaceholder.propDecorators = {
3024
- data: [{ type: Input }]
3025
- };
3083
+ CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3084
+ CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
3085
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3086
+ type: Directive,
3087
+ args: [{
3088
+ selector: 'ng-template[cdkDragPlaceholder]',
3089
+ providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
3090
+ }]
3091
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
3092
+ type: Input
3093
+ }] } });
3026
3094
 
3027
3095
  /**
3028
3096
  * @license
@@ -3047,22 +3115,26 @@ class CdkDragPreview {
3047
3115
  this._matchSize = false;
3048
3116
  }
3049
3117
  /** Whether the preview should preserve the same size as the item that is being dragged. */
3050
- get matchSize() { return this._matchSize; }
3051
- set matchSize(value) { this._matchSize = coerceBooleanProperty(value); }
3118
+ get matchSize() {
3119
+ return this._matchSize;
3120
+ }
3121
+ set matchSize(value) {
3122
+ this._matchSize = coerceBooleanProperty(value);
3123
+ }
3052
3124
  }
3053
- CdkDragPreview.decorators = [
3054
- { type: Directive, args: [{
3055
- selector: 'ng-template[cdkDragPreview]',
3056
- providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
3057
- },] }
3058
- ];
3059
- CdkDragPreview.ctorParameters = () => [
3060
- { type: TemplateRef }
3061
- ];
3062
- CdkDragPreview.propDecorators = {
3063
- data: [{ type: Input }],
3064
- matchSize: [{ type: Input }]
3065
- };
3125
+ CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3126
+ CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
3127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDragPreview, decorators: [{
3128
+ type: Directive,
3129
+ args: [{
3130
+ selector: 'ng-template[cdkDragPreview]',
3131
+ providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
3132
+ }]
3133
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
3134
+ type: Input
3135
+ }], matchSize: [{
3136
+ type: Input
3137
+ }] } });
3066
3138
 
3067
3139
  /**
3068
3140
  * @license
@@ -3110,23 +3182,25 @@ class CdkDrag {
3110
3182
  * because this event will fire for every pixel that the user has dragged.
3111
3183
  */
3112
3184
  this.moved = new Observable((observer) => {
3113
- const subscription = this._dragRef.moved.pipe(map(movedEvent => ({
3185
+ const subscription = this._dragRef.moved
3186
+ .pipe(map(movedEvent => ({
3114
3187
  source: this,
3115
3188
  pointerPosition: movedEvent.pointerPosition,
3116
3189
  event: movedEvent.event,
3117
3190
  delta: movedEvent.delta,
3118
- distance: movedEvent.distance
3119
- }))).subscribe(observer);
3191
+ distance: movedEvent.distance,
3192
+ })))
3193
+ .subscribe(observer);
3120
3194
  return () => {
3121
3195
  subscription.unsubscribe();
3122
3196
  };
3123
3197
  });
3124
3198
  this._dragRef = dragDrop.createDrag(element, {
3125
- dragStartThreshold: config && config.dragStartThreshold != null ?
3126
- config.dragStartThreshold : 5,
3127
- pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null ?
3128
- config.pointerDirectionChangeThreshold : 5,
3129
- zIndex: config === null || config === void 0 ? void 0 : config.zIndex,
3199
+ dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,
3200
+ pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null
3201
+ ? config.pointerDirectionChangeThreshold
3202
+ : 5,
3203
+ zIndex: config?.zIndex,
3130
3204
  });
3131
3205
  this._dragRef.data = this;
3132
3206
  // We have to keep track of the drag instances in order to be able to match an element to
@@ -3187,9 +3261,7 @@ class CdkDrag {
3187
3261
  // element to be in the proper place in the DOM. This is mostly relevant
3188
3262
  // for draggable elements inside portals since they get stamped out in
3189
3263
  // their original DOM position and then they get transferred to the portal.
3190
- this._ngZone.onStable
3191
- .pipe(take(1), takeUntil(this._destroyed))
3192
- .subscribe(() => {
3264
+ this._ngZone.onStable.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {
3193
3265
  this._updateRootElement();
3194
3266
  this._setupHandlesListener();
3195
3267
  if (this.freeDragPosition) {
@@ -3229,8 +3301,14 @@ class CdkDrag {
3229
3301
  /** Syncs the root element with the `DragRef`. */
3230
3302
  _updateRootElement() {
3231
3303
  const element = this.element.nativeElement;
3232
- const rootElement = this.rootElementSelector ?
3233
- element.closest(this.rootElementSelector) : element;
3304
+ let rootElement = element;
3305
+ if (this.rootElementSelector) {
3306
+ rootElement =
3307
+ element.closest !== undefined
3308
+ ? element.closest(this.rootElementSelector)
3309
+ : // Comment tag doesn't have closest method, so use parent's one.
3310
+ element.parentElement?.closest(this.rootElementSelector);
3311
+ }
3234
3312
  if (rootElement && (typeof ngDevMode === 'undefined' || ngDevMode)) {
3235
3313
  assertElementNode(rootElement, 'cdkDrag');
3236
3314
  }
@@ -3258,21 +3336,27 @@ class CdkDrag {
3258
3336
  if (!ref.isDragging()) {
3259
3337
  const dir = this._dir;
3260
3338
  const dragStartDelay = this.dragStartDelay;
3261
- const placeholder = this._placeholderTemplate ? {
3262
- template: this._placeholderTemplate.templateRef,
3263
- context: this._placeholderTemplate.data,
3264
- viewContainer: this._viewContainerRef
3265
- } : null;
3266
- const preview = this._previewTemplate ? {
3267
- template: this._previewTemplate.templateRef,
3268
- context: this._previewTemplate.data,
3269
- matchSize: this._previewTemplate.matchSize,
3270
- viewContainer: this._viewContainerRef
3271
- } : null;
3339
+ const placeholder = this._placeholderTemplate
3340
+ ? {
3341
+ template: this._placeholderTemplate.templateRef,
3342
+ context: this._placeholderTemplate.data,
3343
+ viewContainer: this._viewContainerRef,
3344
+ }
3345
+ : null;
3346
+ const preview = this._previewTemplate
3347
+ ? {
3348
+ template: this._previewTemplate.templateRef,
3349
+ context: this._previewTemplate.data,
3350
+ matchSize: this._previewTemplate.matchSize,
3351
+ viewContainer: this._viewContainerRef,
3352
+ }
3353
+ : null;
3272
3354
  ref.disabled = this.disabled;
3273
3355
  ref.lockAxis = this.lockAxis;
3274
- ref.dragStartDelay = (typeof dragStartDelay === 'object' && dragStartDelay) ?
3275
- dragStartDelay : coerceNumberProperty(dragStartDelay);
3356
+ ref.dragStartDelay =
3357
+ typeof dragStartDelay === 'object' && dragStartDelay
3358
+ ? dragStartDelay
3359
+ : coerceNumberProperty(dragStartDelay);
3276
3360
  ref.constrainPosition = this.constrainPosition;
3277
3361
  ref.previewClass = this.previewClass;
3278
3362
  ref
@@ -3287,7 +3371,6 @@ class CdkDrag {
3287
3371
  });
3288
3372
  // This only needs to be resolved once.
3289
3373
  ref.beforeStarted.pipe(take(1)).subscribe(() => {
3290
- var _a;
3291
3374
  // If we managed to resolve a parent through DI, use it.
3292
3375
  if (this._parentDrag) {
3293
3376
  ref.withParent(this._parentDrag._dragRef);
@@ -3298,9 +3381,9 @@ class CdkDrag {
3298
3381
  let parent = this.element.nativeElement.parentElement;
3299
3382
  while (parent) {
3300
3383
  if (parent.classList.contains(DRAG_HOST_CLASS)) {
3301
- ref.withParent(((_a = CdkDrag._dragInstances.find(drag => {
3384
+ ref.withParent(CdkDrag._dragInstances.find(drag => {
3302
3385
  return drag.element.nativeElement === parent;
3303
- })) === null || _a === void 0 ? void 0 : _a._dragRef) || null);
3386
+ })?._dragRef || null);
3304
3387
  break;
3305
3388
  }
3306
3389
  parent = parent.parentElement;
@@ -3322,7 +3405,7 @@ class CdkDrag {
3322
3405
  this.ended.emit({
3323
3406
  source: this,
3324
3407
  distance: event.distance,
3325
- dropPoint: event.dropPoint
3408
+ dropPoint: event.dropPoint,
3326
3409
  });
3327
3410
  // Since all of these events run outside of change detection,
3328
3411
  // we need to ensure that everything is marked correctly.
@@ -3332,13 +3415,13 @@ class CdkDrag {
3332
3415
  this.entered.emit({
3333
3416
  container: event.container.data,
3334
3417
  item: this,
3335
- currentIndex: event.currentIndex
3418
+ currentIndex: event.currentIndex,
3336
3419
  });
3337
3420
  });
3338
3421
  ref.exited.subscribe(event => {
3339
3422
  this.exited.emit({
3340
3423
  container: event.container.data,
3341
- item: this
3424
+ item: this,
3342
3425
  });
3343
3426
  });
3344
3427
  ref.dropped.subscribe(event => {
@@ -3350,13 +3433,13 @@ class CdkDrag {
3350
3433
  isPointerOverContainer: event.isPointerOverContainer,
3351
3434
  item: this,
3352
3435
  distance: event.distance,
3353
- dropPoint: event.dropPoint
3436
+ dropPoint: event.dropPoint,
3354
3437
  });
3355
3438
  });
3356
3439
  }
3357
3440
  /** Assigns the default input values based on a provided config object. */
3358
3441
  _assignDefaults(config) {
3359
- const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer } = config;
3442
+ const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector, previewContainer, } = config;
3360
3443
  this.disabled = draggingDisabled == null ? false : draggingDisabled;
3361
3444
  this.dragStartDelay = dragStartDelay || 0;
3362
3445
  if (lockAxis) {
@@ -3381,7 +3464,8 @@ class CdkDrag {
3381
3464
  /** Sets up the listener that syncs the handles with the drag ref. */
3382
3465
  _setupHandlesListener() {
3383
3466
  // Listen for any newly-added handles.
3384
- this._handles.changes.pipe(startWith(this._handles),
3467
+ this._handles.changes
3468
+ .pipe(startWith(this._handles),
3385
3469
  // Sync the new handles with the DragRef.
3386
3470
  tap((handles) => {
3387
3471
  const childHandleElements = handles
@@ -3400,7 +3484,8 @@ class CdkDrag {
3400
3484
  return merge(...handles.map(item => {
3401
3485
  return item._stateChanges.pipe(startWith(item));
3402
3486
  }));
3403
- }), takeUntil(this._destroyed)).subscribe(handleInstance => {
3487
+ }), takeUntil(this._destroyed))
3488
+ .subscribe(handleInstance => {
3404
3489
  // Enabled/disable the handle that changed in the DragRef.
3405
3490
  const dragRef = this._dragRef;
3406
3491
  const handle = handleInstance.element.nativeElement;
@@ -3409,53 +3494,112 @@ class CdkDrag {
3409
3494
  }
3410
3495
  }
3411
3496
  CdkDrag._dragInstances = [];
3412
- CdkDrag.decorators = [
3413
- { type: Directive, args: [{
3414
- selector: '[cdkDrag]',
3415
- exportAs: 'cdkDrag',
3416
- host: {
3417
- 'class': DRAG_HOST_CLASS,
3418
- '[class.cdk-drag-disabled]': 'disabled',
3419
- '[class.cdk-drag-dragging]': '_dragRef.isDragging()',
3420
- },
3421
- providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }]
3422
- },] }
3423
- ];
3424
- CdkDrag.ctorParameters = () => [
3425
- { type: ElementRef },
3426
- { type: undefined, decorators: [{ type: Inject, args: [CDK_DROP_LIST,] }, { type: Optional }, { type: SkipSelf }] },
3427
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
3428
- { type: NgZone },
3429
- { type: ViewContainerRef },
3430
- { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [CDK_DRAG_CONFIG,] }] },
3431
- { type: Directionality, decorators: [{ type: Optional }] },
3432
- { type: DragDrop },
3433
- { type: ChangeDetectorRef },
3434
- { type: CdkDragHandle, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [CDK_DRAG_HANDLE,] }] },
3435
- { type: CdkDrag, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [CDK_DRAG_PARENT,] }] }
3436
- ];
3437
- CdkDrag.propDecorators = {
3438
- _handles: [{ type: ContentChildren, args: [CDK_DRAG_HANDLE, { descendants: true },] }],
3439
- _previewTemplate: [{ type: ContentChild, args: [CDK_DRAG_PREVIEW,] }],
3440
- _placeholderTemplate: [{ type: ContentChild, args: [CDK_DRAG_PLACEHOLDER,] }],
3441
- data: [{ type: Input, args: ['cdkDragData',] }],
3442
- lockAxis: [{ type: Input, args: ['cdkDragLockAxis',] }],
3443
- rootElementSelector: [{ type: Input, args: ['cdkDragRootElement',] }],
3444
- boundaryElement: [{ type: Input, args: ['cdkDragBoundary',] }],
3445
- dragStartDelay: [{ type: Input, args: ['cdkDragStartDelay',] }],
3446
- freeDragPosition: [{ type: Input, args: ['cdkDragFreeDragPosition',] }],
3447
- disabled: [{ type: Input, args: ['cdkDragDisabled',] }],
3448
- constrainPosition: [{ type: Input, args: ['cdkDragConstrainPosition',] }],
3449
- previewClass: [{ type: Input, args: ['cdkDragPreviewClass',] }],
3450
- previewContainer: [{ type: Input, args: ['cdkDragPreviewContainer',] }],
3451
- started: [{ type: Output, args: ['cdkDragStarted',] }],
3452
- released: [{ type: Output, args: ['cdkDragReleased',] }],
3453
- ended: [{ type: Output, args: ['cdkDragEnded',] }],
3454
- entered: [{ type: Output, args: ['cdkDragEntered',] }],
3455
- exited: [{ type: Output, args: ['cdkDragExited',] }],
3456
- dropped: [{ type: Output, args: ['cdkDragDropped',] }],
3457
- moved: [{ type: Output, args: ['cdkDragMoved',] }]
3458
- };
3497
+ CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDrag, deps: [{ token: i0.ElementRef }, { token: CDK_DROP_LIST, optional: true, skipSelf: true }, { token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: CDK_DRAG_CONFIG, optional: true }, { token: i3.Directionality, optional: true }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: CDK_DRAG_HANDLE, optional: true, self: true }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3498
+ CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0-next.15", type: CdkDrag, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled"], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], queries: [{ propertyName: "_previewTemplate", first: true, predicate: CDK_DRAG_PREVIEW, descendants: true }, { propertyName: "_placeholderTemplate", first: true, predicate: CDK_DRAG_PLACEHOLDER, descendants: true }, { propertyName: "_handles", predicate: CDK_DRAG_HANDLE, descendants: true }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
3499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: CdkDrag, decorators: [{
3500
+ type: Directive,
3501
+ args: [{
3502
+ selector: '[cdkDrag]',
3503
+ exportAs: 'cdkDrag',
3504
+ host: {
3505
+ 'class': DRAG_HOST_CLASS,
3506
+ '[class.cdk-drag-disabled]': 'disabled',
3507
+ '[class.cdk-drag-dragging]': '_dragRef.isDragging()',
3508
+ },
3509
+ providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }],
3510
+ }]
3511
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
3512
+ type: Inject,
3513
+ args: [CDK_DROP_LIST]
3514
+ }, {
3515
+ type: Optional
3516
+ }, {
3517
+ type: SkipSelf
3518
+ }] }, { type: undefined, decorators: [{
3519
+ type: Inject,
3520
+ args: [DOCUMENT]
3521
+ }] }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
3522
+ type: Optional
3523
+ }, {
3524
+ type: Inject,
3525
+ args: [CDK_DRAG_CONFIG]
3526
+ }] }, { type: i3.Directionality, decorators: [{
3527
+ type: Optional
3528
+ }] }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: CdkDragHandle, decorators: [{
3529
+ type: Optional
3530
+ }, {
3531
+ type: Self
3532
+ }, {
3533
+ type: Inject,
3534
+ args: [CDK_DRAG_HANDLE]
3535
+ }] }, { type: CdkDrag, decorators: [{
3536
+ type: Optional
3537
+ }, {
3538
+ type: SkipSelf
3539
+ }, {
3540
+ type: Inject,
3541
+ args: [CDK_DRAG_PARENT]
3542
+ }] }]; }, propDecorators: { _handles: [{
3543
+ type: ContentChildren,
3544
+ args: [CDK_DRAG_HANDLE, { descendants: true }]
3545
+ }], _previewTemplate: [{
3546
+ type: ContentChild,
3547
+ args: [CDK_DRAG_PREVIEW]
3548
+ }], _placeholderTemplate: [{
3549
+ type: ContentChild,
3550
+ args: [CDK_DRAG_PLACEHOLDER]
3551
+ }], data: [{
3552
+ type: Input,
3553
+ args: ['cdkDragData']
3554
+ }], lockAxis: [{
3555
+ type: Input,
3556
+ args: ['cdkDragLockAxis']
3557
+ }], rootElementSelector: [{
3558
+ type: Input,
3559
+ args: ['cdkDragRootElement']
3560
+ }], boundaryElement: [{
3561
+ type: Input,
3562
+ args: ['cdkDragBoundary']
3563
+ }], dragStartDelay: [{
3564
+ type: Input,
3565
+ args: ['cdkDragStartDelay']
3566
+ }], freeDragPosition: [{
3567
+ type: Input,
3568
+ args: ['cdkDragFreeDragPosition']
3569
+ }], disabled: [{
3570
+ type: Input,
3571
+ args: ['cdkDragDisabled']
3572
+ }], constrainPosition: [{
3573
+ type: Input,
3574
+ args: ['cdkDragConstrainPosition']
3575
+ }], previewClass: [{
3576
+ type: Input,
3577
+ args: ['cdkDragPreviewClass']
3578
+ }], previewContainer: [{
3579
+ type: Input,
3580
+ args: ['cdkDragPreviewContainer']
3581
+ }], started: [{
3582
+ type: Output,
3583
+ args: ['cdkDragStarted']
3584
+ }], released: [{
3585
+ type: Output,
3586
+ args: ['cdkDragReleased']
3587
+ }], ended: [{
3588
+ type: Output,
3589
+ args: ['cdkDragEnded']
3590
+ }], entered: [{
3591
+ type: Output,
3592
+ args: ['cdkDragEntered']
3593
+ }], exited: [{
3594
+ type: Output,
3595
+ args: ['cdkDragExited']
3596
+ }], dropped: [{
3597
+ type: Output,
3598
+ args: ['cdkDragDropped']
3599
+ }], moved: [{
3600
+ type: Output,
3601
+ args: ['cdkDragMoved']
3602
+ }] } });
3459
3603
 
3460
3604
  /**
3461
3605
  * @license
@@ -3466,30 +3610,43 @@ CdkDrag.propDecorators = {
3466
3610
  */
3467
3611
  class DragDropModule {
3468
3612
  }
3469
- DragDropModule.decorators = [
3470
- { type: NgModule, args: [{
3471
- declarations: [
3472
- CdkDropList,
3473
- CdkDropListGroup,
3474
- CdkDrag,
3475
- CdkDragHandle,
3476
- CdkDragPreview,
3477
- CdkDragPlaceholder,
3478
- ],
3479
- exports: [
3480
- CdkScrollableModule,
3481
- CdkDropList,
3482
- CdkDropListGroup,
3483
- CdkDrag,
3484
- CdkDragHandle,
3485
- CdkDragPreview,
3486
- CdkDragPlaceholder,
3487
- ],
3488
- providers: [
3489
- DragDrop,
3490
- ]
3491
- },] }
3492
- ];
3613
+ DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3614
+ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3615
+ CdkDropListGroup,
3616
+ CdkDrag,
3617
+ CdkDragHandle,
3618
+ CdkDragPreview,
3619
+ CdkDragPlaceholder], exports: [CdkScrollableModule,
3620
+ CdkDropList,
3621
+ CdkDropListGroup,
3622
+ CdkDrag,
3623
+ CdkDragHandle,
3624
+ CdkDragPreview,
3625
+ CdkDragPlaceholder] });
3626
+ DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-next.15", ngImport: i0, type: DragDropModule, decorators: [{
3628
+ type: NgModule,
3629
+ args: [{
3630
+ declarations: [
3631
+ CdkDropList,
3632
+ CdkDropListGroup,
3633
+ CdkDrag,
3634
+ CdkDragHandle,
3635
+ CdkDragPreview,
3636
+ CdkDragPlaceholder,
3637
+ ],
3638
+ exports: [
3639
+ CdkScrollableModule,
3640
+ CdkDropList,
3641
+ CdkDropListGroup,
3642
+ CdkDrag,
3643
+ CdkDragHandle,
3644
+ CdkDragPreview,
3645
+ CdkDragPlaceholder,
3646
+ ],
3647
+ providers: [DragDrop],
3648
+ }]
3649
+ }] });
3493
3650
 
3494
3651
  /**
3495
3652
  * @license
@@ -3504,4 +3661,4 @@ DragDropModule.decorators = [
3504
3661
  */
3505
3662
 
3506
3663
  export { CDK_DRAG_CONFIG, CDK_DRAG_HANDLE, CDK_DRAG_PARENT, CDK_DRAG_PLACEHOLDER, CDK_DRAG_PREVIEW, CDK_DROP_LIST, CDK_DROP_LIST_GROUP, CdkDrag, CdkDragHandle, CdkDragPlaceholder, CdkDragPreview, CdkDropList, CdkDropListGroup, DragDrop, DragDropModule, DragDropRegistry, DragRef, DropListRef, copyArrayItem, moveItemInArray, transferArrayItem };
3507
- //# sourceMappingURL=drag-drop.js.map
3664
+ //# sourceMappingURL=drag-drop.mjs.map