@angular/cdk 13.3.3 → 14.0.0-next.10

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 (223) hide show
  1. package/a11y/live-announcer/live-announcer.d.ts +3 -1
  2. package/a11y-prebuilt.css +1 -1
  3. package/drag-drop/drag-events.d.ts +8 -0
  4. package/drag-drop/drag-ref.d.ts +4 -0
  5. package/drag-drop/drop-list-ref.d.ts +5 -1
  6. package/esm2020/a11y/a11y-module.mjs +5 -5
  7. package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
  8. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +13 -11
  9. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
  10. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
  11. package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
  12. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +7 -12
  13. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  14. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
  15. package/esm2020/a11y/live-announcer/live-announcer.mjs +11 -8
  16. package/esm2020/accordion/accordion-item.mjs +4 -4
  17. package/esm2020/accordion/accordion-module.mjs +5 -5
  18. package/esm2020/accordion/accordion.mjs +4 -4
  19. package/esm2020/bidi/bidi-module.mjs +5 -5
  20. package/esm2020/bidi/dir.mjs +4 -4
  21. package/esm2020/bidi/directionality.mjs +4 -4
  22. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  23. package/esm2020/clipboard/clipboard.mjs +4 -4
  24. package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
  25. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  26. package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
  27. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  28. package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
  29. package/esm2020/drag-drop/directives/drag.mjs +26 -24
  30. package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
  31. package/esm2020/drag-drop/directives/drop-list.mjs +14 -13
  32. package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
  33. package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
  34. package/esm2020/drag-drop/drag-drop.mjs +4 -4
  35. package/esm2020/drag-drop/drag-events.mjs +1 -1
  36. package/esm2020/drag-drop/drag-ref.mjs +7 -5
  37. package/esm2020/drag-drop/drop-list-ref.mjs +6 -2
  38. package/esm2020/layout/breakpoints-observer.mjs +4 -4
  39. package/esm2020/layout/layout-module.mjs +5 -5
  40. package/esm2020/layout/media-matcher.mjs +4 -4
  41. package/esm2020/observers/observe-content.mjs +14 -14
  42. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  43. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
  44. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
  45. package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
  46. package/esm2020/overlay/overlay-container.mjs +4 -4
  47. package/esm2020/overlay/overlay-directives.mjs +7 -7
  48. package/esm2020/overlay/overlay-module.mjs +5 -5
  49. package/esm2020/overlay/overlay-ref.mjs +11 -3
  50. package/esm2020/overlay/overlay.mjs +14 -8
  51. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
  52. package/esm2020/overlay/position/global-position-strategy.mjs +64 -30
  53. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  54. package/esm2020/overlay/public-api.mjs +2 -2
  55. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  56. package/esm2020/platform/platform-module.mjs +5 -5
  57. package/esm2020/platform/platform.mjs +4 -4
  58. package/esm2020/portal/dom-portal-outlet.mjs +4 -2
  59. package/esm2020/portal/portal-directives.mjs +20 -18
  60. package/esm2020/portal/portal.mjs +12 -3
  61. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
  62. package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
  63. package/esm2020/scrolling/scrollable.mjs +4 -4
  64. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  65. package/esm2020/scrolling/viewport-ruler.mjs +4 -4
  66. package/esm2020/scrolling/virtual-for-of.mjs +4 -4
  67. package/esm2020/scrolling/virtual-scroll-viewport.mjs +6 -6
  68. package/esm2020/stepper/step-header.mjs +4 -4
  69. package/esm2020/stepper/step-label.mjs +4 -4
  70. package/esm2020/stepper/stepper-button.mjs +7 -7
  71. package/esm2020/stepper/stepper-module.mjs +5 -5
  72. package/esm2020/stepper/stepper.mjs +9 -22
  73. package/esm2020/table/cell.mjs +22 -22
  74. package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
  75. package/esm2020/table/row.mjs +28 -28
  76. package/esm2020/table/table-module.mjs +5 -5
  77. package/esm2020/table/table.mjs +21 -21
  78. package/esm2020/table/text-column.mjs +4 -4
  79. package/esm2020/testing/component-harness.mjs +7 -1
  80. package/esm2020/testing/harness-environment.mjs +9 -1
  81. package/esm2020/text-field/autofill.mjs +7 -7
  82. package/esm2020/text-field/autosize.mjs +4 -4
  83. package/esm2020/text-field/text-field-module.mjs +5 -5
  84. package/esm2020/tree/nested-node.mjs +4 -4
  85. package/esm2020/tree/node.mjs +4 -4
  86. package/esm2020/tree/outlet.mjs +4 -4
  87. package/esm2020/tree/padding.mjs +4 -4
  88. package/esm2020/tree/toggle.mjs +4 -4
  89. package/esm2020/tree/tree-module.mjs +5 -5
  90. package/esm2020/tree/tree.mjs +7 -7
  91. package/esm2020/version.mjs +1 -1
  92. package/fesm2015/a11y.mjs +53 -53
  93. package/fesm2015/a11y.mjs.map +1 -1
  94. package/fesm2015/accordion.mjs +10 -10
  95. package/fesm2015/accordion.mjs.map +1 -1
  96. package/fesm2015/bidi.mjs +10 -10
  97. package/fesm2015/bidi.mjs.map +1 -1
  98. package/fesm2015/cdk.mjs +1 -1
  99. package/fesm2015/cdk.mjs.map +1 -1
  100. package/fesm2015/clipboard.mjs +10 -10
  101. package/fesm2015/clipboard.mjs.map +1 -1
  102. package/fesm2015/collections.mjs +3 -3
  103. package/fesm2015/collections.mjs.map +1 -1
  104. package/fesm2015/drag-drop.mjs +71 -62
  105. package/fesm2015/drag-drop.mjs.map +1 -1
  106. package/fesm2015/layout.mjs +10 -10
  107. package/fesm2015/layout.mjs.map +1 -1
  108. package/fesm2015/observers.mjs +13 -13
  109. package/fesm2015/observers.mjs.map +1 -1
  110. package/fesm2015/overlay.mjs +132 -72
  111. package/fesm2015/overlay.mjs.map +1 -1
  112. package/fesm2015/platform.mjs +7 -7
  113. package/fesm2015/platform.mjs.map +1 -1
  114. package/fesm2015/portal.mjs +33 -20
  115. package/fesm2015/portal.mjs.map +1 -1
  116. package/fesm2015/scrolling.mjs +28 -28
  117. package/fesm2015/scrolling.mjs.map +1 -1
  118. package/fesm2015/stepper.mjs +24 -37
  119. package/fesm2015/stepper.mjs.map +1 -1
  120. package/fesm2015/table.mjs +78 -78
  121. package/fesm2015/table.mjs.map +1 -1
  122. package/fesm2015/testing.mjs +20 -0
  123. package/fesm2015/testing.mjs.map +1 -1
  124. package/fesm2015/text-field.mjs +13 -13
  125. package/fesm2015/text-field.mjs.map +1 -1
  126. package/fesm2015/tree.mjs +25 -25
  127. package/fesm2015/tree.mjs.map +1 -1
  128. package/fesm2020/a11y.mjs +53 -53
  129. package/fesm2020/a11y.mjs.map +1 -1
  130. package/fesm2020/accordion.mjs +10 -10
  131. package/fesm2020/accordion.mjs.map +1 -1
  132. package/fesm2020/bidi.mjs +10 -10
  133. package/fesm2020/bidi.mjs.map +1 -1
  134. package/fesm2020/cdk.mjs +1 -1
  135. package/fesm2020/cdk.mjs.map +1 -1
  136. package/fesm2020/clipboard.mjs +10 -10
  137. package/fesm2020/clipboard.mjs.map +1 -1
  138. package/fesm2020/collections.mjs +3 -3
  139. package/fesm2020/collections.mjs.map +1 -1
  140. package/fesm2020/drag-drop.mjs +71 -62
  141. package/fesm2020/drag-drop.mjs.map +1 -1
  142. package/fesm2020/layout.mjs +10 -10
  143. package/fesm2020/layout.mjs.map +1 -1
  144. package/fesm2020/observers.mjs +13 -13
  145. package/fesm2020/observers.mjs.map +1 -1
  146. package/fesm2020/overlay.mjs +132 -72
  147. package/fesm2020/overlay.mjs.map +1 -1
  148. package/fesm2020/platform.mjs +7 -7
  149. package/fesm2020/platform.mjs.map +1 -1
  150. package/fesm2020/portal.mjs +33 -20
  151. package/fesm2020/portal.mjs.map +1 -1
  152. package/fesm2020/scrolling.mjs +28 -28
  153. package/fesm2020/scrolling.mjs.map +1 -1
  154. package/fesm2020/stepper.mjs +24 -37
  155. package/fesm2020/stepper.mjs.map +1 -1
  156. package/fesm2020/table.mjs +78 -78
  157. package/fesm2020/table.mjs.map +1 -1
  158. package/fesm2020/testing.mjs +14 -0
  159. package/fesm2020/testing.mjs.map +1 -1
  160. package/fesm2020/text-field.mjs +13 -13
  161. package/fesm2020/text-field.mjs.map +1 -1
  162. package/fesm2020/tree.mjs +25 -25
  163. package/fesm2020/tree.mjs.map +1 -1
  164. package/overlay/_index.scss +4 -0
  165. package/overlay/overlay-ref.d.ts +2 -1
  166. package/overlay/overlay.d.ts +3 -2
  167. package/overlay/position/flexible-connected-position-strategy.d.ts +2 -0
  168. package/overlay/position/global-position-strategy.d.ts +14 -3
  169. package/overlay/public-api.d.ts +1 -1
  170. package/overlay-prebuilt.css +1 -1
  171. package/package.json +3 -11
  172. package/portal/dom-portal-outlet.d.ts +2 -2
  173. package/portal/portal.d.ts +12 -2
  174. package/schematics/migration.json +5 -0
  175. package/schematics/ng-add/index.js +1 -1
  176. package/schematics/ng-add/index.mjs +1 -1
  177. package/schematics/ng-generate/drag-drop/index.js +5 -14
  178. package/schematics/ng-generate/drag-drop/index.mjs +5 -14
  179. package/schematics/ng-update/data/constructor-checks.js +7 -1
  180. package/schematics/ng-update/data/constructor-checks.mjs +7 -1
  181. package/schematics/ng-update/devkit-migration-rule.js +4 -13
  182. package/schematics/ng-update/devkit-migration-rule.mjs +4 -13
  183. package/schematics/ng-update/html-parsing/elements.js +2 -3
  184. package/schematics/ng-update/html-parsing/elements.mjs +2 -3
  185. package/schematics/ng-update/index.d.ts +2 -0
  186. package/schematics/ng-update/index.js +7 -2
  187. package/schematics/ng-update/index.mjs +7 -2
  188. package/schematics/ng-update/migrations/symbol-removal.js +2 -3
  189. package/schematics/ng-update/migrations/symbol-removal.mjs +2 -3
  190. package/schematics/update-tool/target-version.d.ts +2 -1
  191. package/schematics/update-tool/target-version.js +2 -1
  192. package/schematics/update-tool/target-version.mjs +2 -1
  193. package/schematics/utils/ast.js +11 -22
  194. package/schematics/utils/ast.mjs +11 -22
  195. package/schematics/utils/build-component.js +10 -15
  196. package/schematics/utils/build-component.mjs +10 -15
  197. package/schematics/utils/get-project.d.ts +1 -1
  198. package/schematics/utils/get-project.js +7 -2
  199. package/schematics/utils/get-project.mjs +7 -2
  200. package/schematics/utils/project-index-file.js +2 -2
  201. package/schematics/utils/project-index-file.mjs +2 -2
  202. package/schematics/utils/project-targets.js +3 -4
  203. package/schematics/utils/project-targets.mjs +3 -4
  204. package/schematics/utils/project-tsconfig-paths.js +16 -28
  205. package/schematics/utils/project-tsconfig-paths.mjs +16 -28
  206. package/stepper/stepper.d.ts +3 -12
  207. package/table/text-column.d.ts +1 -1
  208. package/testing/component-harness.d.ts +18 -0
  209. package/testing/harness-environment.d.ts +2 -0
  210. package/text-field-prebuilt.css +1 -1
  211. package/esm2020/testing/protractor/index.mjs +0 -9
  212. package/esm2020/testing/protractor/protractor-element.mjs +0 -239
  213. package/esm2020/testing/protractor/protractor-harness-environment.mjs +0 -73
  214. package/esm2020/testing/protractor/public-api.mjs +0 -10
  215. package/fesm2015/testing/protractor.mjs +0 -361
  216. package/fesm2015/testing/protractor.mjs.map +0 -1
  217. package/fesm2020/testing/protractor.mjs +0 -328
  218. package/fesm2020/testing/protractor.mjs.map +0 -1
  219. package/testing/protractor/index.d.ts +0 -8
  220. package/testing/protractor/package.json +0 -9
  221. package/testing/protractor/protractor-element.d.ts +0 -90
  222. package/testing/protractor/protractor-harness-environment.d.ts +0 -51
  223. package/testing/protractor/public-api.d.ts +0 -9
@@ -771,7 +771,7 @@ class DragRef {
771
771
  if (!this._hasStartedDragging) {
772
772
  return;
773
773
  }
774
- this.released.next({ source: this });
774
+ this.released.next({ source: this, event });
775
775
  if (this._dropContainer) {
776
776
  // Stop scrolling immediately, instead of waiting for the animation to finish.
777
777
  this._dropContainer._stopScrolling();
@@ -793,6 +793,7 @@ class DragRef {
793
793
  source: this,
794
794
  distance: this._getDragDistance(pointerPosition),
795
795
  dropPoint: pointerPosition,
796
+ event,
796
797
  });
797
798
  });
798
799
  this._cleanupCachedDimensions();
@@ -827,13 +828,13 @@ class DragRef {
827
828
  toggleVisibility(element, false, dragImportantProperties);
828
829
  this._document.body.appendChild(parent.replaceChild(placeholder, element));
829
830
  this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
830
- this.started.next({ source: this }); // Emit before notifying the container.
831
+ this.started.next({ source: this, event }); // Emit before notifying the container.
831
832
  dropContainer.start();
832
833
  this._initialContainer = dropContainer;
833
834
  this._initialIndex = dropContainer.getItemIndex(this);
834
835
  }
835
836
  else {
836
- this.started.next({ source: this });
837
+ this.started.next({ source: this, event });
837
838
  this._initialContainer = this._initialIndex = undefined;
838
839
  }
839
840
  // Important to run after we've called `start` on the parent container
@@ -930,7 +931,7 @@ class DragRef {
930
931
  const pointerPosition = this._getPointerPositionOnPage(event);
931
932
  const distance = this._getDragDistance(pointerPosition);
932
933
  const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
933
- this.ended.next({ source: this, distance, dropPoint: pointerPosition });
934
+ this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
934
935
  this.dropped.next({
935
936
  item: this,
936
937
  currentIndex,
@@ -940,6 +941,7 @@ class DragRef {
940
941
  isPointerOverContainer,
941
942
  distance,
942
943
  dropPoint: pointerPosition,
944
+ event,
943
945
  });
944
946
  container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
945
947
  this._dropContainer = this._initialContainer;
@@ -1729,8 +1731,11 @@ class DropListRef {
1729
1731
  * @param isPointerOverContainer Whether the user's pointer was over the
1730
1732
  * container when the item was dropped.
1731
1733
  * @param distance Distance the user has dragged since the start of the dragging sequence.
1734
+ * @param event Event that triggered the dropping sequence.
1735
+ *
1736
+ * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
1732
1737
  */
1733
- drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
1738
+ drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
1734
1739
  this._reset();
1735
1740
  this.dropped.next({
1736
1741
  item,
@@ -1741,6 +1746,7 @@ class DropListRef {
1741
1746
  isPointerOverContainer,
1742
1747
  distance,
1743
1748
  dropPoint,
1749
+ event,
1744
1750
  });
1745
1751
  }
1746
1752
  /**
@@ -2546,9 +2552,9 @@ class DragDropRegistry {
2546
2552
  this._globalListeners.clear();
2547
2553
  }
2548
2554
  }
2549
- DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2550
- DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropRegistry, decorators: [{
2555
+ DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2556
+ DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2557
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, decorators: [{
2552
2558
  type: Injectable,
2553
2559
  args: [{ providedIn: 'root' }]
2554
2560
  }], ctorParameters: function () {
@@ -2596,9 +2602,9 @@ class DragDrop {
2596
2602
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
2597
2603
  }
2598
2604
  }
2599
- DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
2600
- DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDrop, providedIn: 'root' });
2601
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDrop, decorators: [{
2605
+ DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
2606
+ DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, providedIn: 'root' });
2607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, decorators: [{
2602
2608
  type: Injectable,
2603
2609
  args: [{ providedIn: 'root' }]
2604
2610
  }], ctorParameters: function () {
@@ -2659,9 +2665,9 @@ class CdkDropListGroup {
2659
2665
  this._items.clear();
2660
2666
  }
2661
2667
  }
2662
- CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2663
- CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
2664
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
2668
+ CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2669
+ CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
2670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropListGroup, decorators: [{
2665
2671
  type: Directive,
2666
2672
  args: [{
2667
2673
  selector: '[cdkDropListGroup]',
@@ -2915,16 +2921,17 @@ class CdkDropList {
2915
2921
  item: event.item.data,
2916
2922
  });
2917
2923
  });
2918
- ref.dropped.subscribe(event => {
2924
+ ref.dropped.subscribe(dropEvent => {
2919
2925
  this.dropped.emit({
2920
- previousIndex: event.previousIndex,
2921
- currentIndex: event.currentIndex,
2922
- previousContainer: event.previousContainer.data,
2923
- container: event.container.data,
2924
- item: event.item.data,
2925
- isPointerOverContainer: event.isPointerOverContainer,
2926
- distance: event.distance,
2927
- dropPoint: event.dropPoint,
2926
+ previousIndex: dropEvent.previousIndex,
2927
+ currentIndex: dropEvent.currentIndex,
2928
+ previousContainer: dropEvent.previousContainer.data,
2929
+ container: dropEvent.container.data,
2930
+ item: dropEvent.item.data,
2931
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
2932
+ distance: dropEvent.distance,
2933
+ dropPoint: dropEvent.dropPoint,
2934
+ event: dropEvent.event,
2928
2935
  });
2929
2936
  // Mark for check since all of these events run outside of change
2930
2937
  // detection and we're not guaranteed for something else to have triggered it.
@@ -2949,13 +2956,13 @@ class CdkDropList {
2949
2956
  }
2950
2957
  /** Keeps track of the drop lists that are currently on the page. */
2951
2958
  CdkDropList._dropLists = [];
2952
- CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", 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 });
2953
- CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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: [
2959
+ CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", 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 });
2960
+ CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", 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: [
2954
2961
  // Prevent child drop lists from picking up the same group as their parent.
2955
2962
  { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
2956
2963
  { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2957
2964
  ], exportAs: ["cdkDropList"], ngImport: i0 });
2958
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDropList, decorators: [{
2965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropList, decorators: [{
2959
2966
  type: Directive,
2960
2967
  args: [{
2961
2968
  selector: '[cdkDropList], cdk-drop-list',
@@ -3072,9 +3079,9 @@ class CdkDragHandle {
3072
3079
  this._stateChanges.complete();
3073
3080
  }
3074
3081
  }
3075
- CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3076
- CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3077
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragHandle, decorators: [{
3082
+ CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3083
+ CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragHandle, decorators: [{
3078
3085
  type: Directive,
3079
3086
  args: [{
3080
3087
  selector: '[cdkDragHandle]',
@@ -3119,9 +3126,9 @@ class CdkDragPlaceholder {
3119
3126
  this.templateRef = templateRef;
3120
3127
  }
3121
3128
  }
3122
- CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3123
- CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
3124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3129
+ CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3130
+ CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
3131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3125
3132
  type: Directive,
3126
3133
  args: [{
3127
3134
  selector: 'ng-template[cdkDragPlaceholder]',
@@ -3161,9 +3168,9 @@ class CdkDragPreview {
3161
3168
  this._matchSize = coerceBooleanProperty(value);
3162
3169
  }
3163
3170
  }
3164
- CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3165
- CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
3166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPreview, decorators: [{
3171
+ CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3172
+ CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
3173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPreview, decorators: [{
3167
3174
  type: Directive,
3168
3175
  args: [{
3169
3176
  selector: 'ng-template[cdkDragPreview]',
@@ -3421,48 +3428,50 @@ class CdkDrag {
3421
3428
  }
3422
3429
  /** Handles the events from the underlying `DragRef`. */
3423
3430
  _handleEvents(ref) {
3424
- ref.started.subscribe(() => {
3425
- this.started.emit({ source: this });
3431
+ ref.started.subscribe(startEvent => {
3432
+ this.started.emit({ source: this, event: startEvent.event });
3426
3433
  // Since all of these events run outside of change detection,
3427
3434
  // we need to ensure that everything is marked correctly.
3428
3435
  this._changeDetectorRef.markForCheck();
3429
3436
  });
3430
- ref.released.subscribe(() => {
3431
- this.released.emit({ source: this });
3437
+ ref.released.subscribe(releaseEvent => {
3438
+ this.released.emit({ source: this, event: releaseEvent.event });
3432
3439
  });
3433
- ref.ended.subscribe(event => {
3440
+ ref.ended.subscribe(endEvent => {
3434
3441
  this.ended.emit({
3435
3442
  source: this,
3436
- distance: event.distance,
3437
- dropPoint: event.dropPoint,
3443
+ distance: endEvent.distance,
3444
+ dropPoint: endEvent.dropPoint,
3445
+ event: endEvent.event,
3438
3446
  });
3439
3447
  // Since all of these events run outside of change detection,
3440
3448
  // we need to ensure that everything is marked correctly.
3441
3449
  this._changeDetectorRef.markForCheck();
3442
3450
  });
3443
- ref.entered.subscribe(event => {
3451
+ ref.entered.subscribe(enterEvent => {
3444
3452
  this.entered.emit({
3445
- container: event.container.data,
3453
+ container: enterEvent.container.data,
3446
3454
  item: this,
3447
- currentIndex: event.currentIndex,
3455
+ currentIndex: enterEvent.currentIndex,
3448
3456
  });
3449
3457
  });
3450
- ref.exited.subscribe(event => {
3458
+ ref.exited.subscribe(exitEvent => {
3451
3459
  this.exited.emit({
3452
- container: event.container.data,
3460
+ container: exitEvent.container.data,
3453
3461
  item: this,
3454
3462
  });
3455
3463
  });
3456
- ref.dropped.subscribe(event => {
3464
+ ref.dropped.subscribe(dropEvent => {
3457
3465
  this.dropped.emit({
3458
- previousIndex: event.previousIndex,
3459
- currentIndex: event.currentIndex,
3460
- previousContainer: event.previousContainer.data,
3461
- container: event.container.data,
3462
- isPointerOverContainer: event.isPointerOverContainer,
3466
+ previousIndex: dropEvent.previousIndex,
3467
+ currentIndex: dropEvent.currentIndex,
3468
+ previousContainer: dropEvent.previousContainer.data,
3469
+ container: dropEvent.container.data,
3470
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
3463
3471
  item: this,
3464
- distance: event.distance,
3465
- dropPoint: event.dropPoint,
3472
+ distance: dropEvent.distance,
3473
+ dropPoint: dropEvent.dropPoint,
3474
+ event: dropEvent.event,
3466
3475
  });
3467
3476
  });
3468
3477
  }
@@ -3523,9 +3532,9 @@ class CdkDrag {
3523
3532
  }
3524
3533
  }
3525
3534
  CdkDrag._dragInstances = [];
3526
- CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", 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 });
3527
- CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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 });
3528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDrag, decorators: [{
3535
+ CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", 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 });
3536
+ CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", 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 });
3537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDrag, decorators: [{
3529
3538
  type: Directive,
3530
3539
  args: [{
3531
3540
  selector: '[cdkDrag]',
@@ -3641,8 +3650,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
3641
3650
  */
3642
3651
  class DragDropModule {
3643
3652
  }
3644
- DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3645
- DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3653
+ DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3654
+ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3646
3655
  CdkDropListGroup,
3647
3656
  CdkDrag,
3648
3657
  CdkDragHandle,
@@ -3654,8 +3663,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
3654
3663
  CdkDragHandle,
3655
3664
  CdkDragPreview,
3656
3665
  CdkDragPlaceholder] });
3657
- DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3658
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, decorators: [{
3666
+ DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, decorators: [{
3659
3668
  type: NgModule,
3660
3669
  args: [{
3661
3670
  declarations: [