@angular/cdk 14.0.0-next.4 → 14.0.0-next.5

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 (187) hide show
  1. package/a11y/live-announcer/live-announcer.d.ts +3 -1
  2. package/drag-drop/drag-events.d.ts +8 -0
  3. package/drag-drop/drag-ref.d.ts +7 -1
  4. package/drag-drop/drop-list-ref.d.ts +5 -1
  5. package/esm2020/a11y/a11y-module.mjs +5 -5
  6. package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
  7. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +7 -7
  8. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
  9. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
  10. package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
  11. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +4 -4
  12. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  13. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
  14. package/esm2020/a11y/live-announcer/live-announcer.mjs +11 -8
  15. package/esm2020/accordion/accordion-item.mjs +4 -4
  16. package/esm2020/accordion/accordion-module.mjs +5 -5
  17. package/esm2020/accordion/accordion.mjs +4 -4
  18. package/esm2020/bidi/bidi-module.mjs +5 -5
  19. package/esm2020/bidi/dir.mjs +4 -4
  20. package/esm2020/bidi/directionality.mjs +4 -4
  21. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  22. package/esm2020/clipboard/clipboard.mjs +4 -4
  23. package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
  24. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  25. package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
  26. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  27. package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
  28. package/esm2020/drag-drop/directives/drag.mjs +26 -24
  29. package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
  30. package/esm2020/drag-drop/directives/drop-list.mjs +14 -13
  31. package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
  32. package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
  33. package/esm2020/drag-drop/drag-drop.mjs +4 -4
  34. package/esm2020/drag-drop/drag-events.mjs +1 -1
  35. package/esm2020/drag-drop/drag-ref.mjs +19 -16
  36. package/esm2020/drag-drop/drop-list-ref.mjs +6 -2
  37. package/esm2020/layout/breakpoints-observer.mjs +4 -4
  38. package/esm2020/layout/layout-module.mjs +5 -5
  39. package/esm2020/layout/media-matcher.mjs +4 -4
  40. package/esm2020/observers/observe-content.mjs +14 -14
  41. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  42. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +26 -8
  43. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +33 -12
  44. package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
  45. package/esm2020/overlay/overlay-container.mjs +4 -4
  46. package/esm2020/overlay/overlay-directives.mjs +7 -7
  47. package/esm2020/overlay/overlay-module.mjs +5 -5
  48. package/esm2020/overlay/overlay.mjs +4 -4
  49. package/esm2020/overlay/position/global-position-strategy.mjs +64 -30
  50. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  51. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  52. package/esm2020/platform/platform-module.mjs +5 -5
  53. package/esm2020/platform/platform.mjs +4 -4
  54. package/esm2020/portal/portal-directives.mjs +17 -17
  55. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
  56. package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
  57. package/esm2020/scrolling/scrollable.mjs +4 -4
  58. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  59. package/esm2020/scrolling/viewport-ruler.mjs +4 -4
  60. package/esm2020/scrolling/virtual-for-of.mjs +4 -4
  61. package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
  62. package/esm2020/stepper/step-header.mjs +4 -4
  63. package/esm2020/stepper/step-label.mjs +4 -4
  64. package/esm2020/stepper/stepper-button.mjs +7 -7
  65. package/esm2020/stepper/stepper-module.mjs +5 -5
  66. package/esm2020/stepper/stepper.mjs +7 -7
  67. package/esm2020/table/cell.mjs +22 -22
  68. package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
  69. package/esm2020/table/row.mjs +28 -28
  70. package/esm2020/table/table-module.mjs +5 -5
  71. package/esm2020/table/table.mjs +19 -19
  72. package/esm2020/table/text-column.mjs +4 -4
  73. package/esm2020/testing/public-api.mjs +2 -1
  74. package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +8 -3
  75. package/esm2020/testing/test-element-errors.mjs +15 -0
  76. package/esm2020/testing/test-element.mjs +1 -1
  77. package/esm2020/testing/testbed/fake-events/type-in-element.mjs +12 -3
  78. package/esm2020/testing/testbed/unit-test-element.mjs +19 -5
  79. package/esm2020/text-field/autofill.mjs +7 -7
  80. package/esm2020/text-field/autosize.mjs +4 -4
  81. package/esm2020/text-field/text-field-module.mjs +5 -5
  82. package/esm2020/tree/nested-node.mjs +4 -4
  83. package/esm2020/tree/node.mjs +4 -4
  84. package/esm2020/tree/outlet.mjs +4 -4
  85. package/esm2020/tree/padding.mjs +4 -4
  86. package/esm2020/tree/toggle.mjs +4 -4
  87. package/esm2020/tree/tree-module.mjs +5 -5
  88. package/esm2020/tree/tree.mjs +7 -7
  89. package/esm2020/version.mjs +1 -1
  90. package/fesm2015/a11y.mjs +44 -41
  91. package/fesm2015/a11y.mjs.map +1 -1
  92. package/fesm2015/accordion.mjs +10 -10
  93. package/fesm2015/accordion.mjs.map +1 -1
  94. package/fesm2015/bidi.mjs +10 -10
  95. package/fesm2015/bidi.mjs.map +1 -1
  96. package/fesm2015/cdk.mjs +1 -1
  97. package/fesm2015/cdk.mjs.map +1 -1
  98. package/fesm2015/clipboard.mjs +10 -10
  99. package/fesm2015/clipboard.mjs.map +1 -1
  100. package/fesm2015/collections.mjs +3 -3
  101. package/fesm2015/collections.mjs.map +1 -1
  102. package/fesm2015/drag-drop.mjs +83 -73
  103. package/fesm2015/drag-drop.mjs.map +1 -1
  104. package/fesm2015/layout.mjs +10 -10
  105. package/fesm2015/layout.mjs.map +1 -1
  106. package/fesm2015/observers.mjs +13 -13
  107. package/fesm2015/observers.mjs.map +1 -1
  108. package/fesm2015/overlay.mjs +149 -76
  109. package/fesm2015/overlay.mjs.map +1 -1
  110. package/fesm2015/platform.mjs +7 -7
  111. package/fesm2015/platform.mjs.map +1 -1
  112. package/fesm2015/portal.mjs +16 -16
  113. package/fesm2015/portal.mjs.map +1 -1
  114. package/fesm2015/scrolling.mjs +26 -26
  115. package/fesm2015/scrolling.mjs.map +1 -1
  116. package/fesm2015/stepper.mjs +22 -22
  117. package/fesm2015/stepper.mjs.map +1 -1
  118. package/fesm2015/table.mjs +76 -76
  119. package/fesm2015/table.mjs.map +1 -1
  120. package/fesm2015/testing/selenium-webdriver.mjs +7 -2
  121. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  122. package/fesm2015/testing/testbed.mjs +29 -7
  123. package/fesm2015/testing/testbed.mjs.map +1 -1
  124. package/fesm2015/testing.mjs +16 -1
  125. package/fesm2015/testing.mjs.map +1 -1
  126. package/fesm2015/text-field.mjs +13 -13
  127. package/fesm2015/text-field.mjs.map +1 -1
  128. package/fesm2015/tree.mjs +25 -25
  129. package/fesm2015/tree.mjs.map +1 -1
  130. package/fesm2020/a11y.mjs +44 -41
  131. package/fesm2020/a11y.mjs.map +1 -1
  132. package/fesm2020/accordion.mjs +10 -10
  133. package/fesm2020/accordion.mjs.map +1 -1
  134. package/fesm2020/bidi.mjs +10 -10
  135. package/fesm2020/bidi.mjs.map +1 -1
  136. package/fesm2020/cdk.mjs +1 -1
  137. package/fesm2020/cdk.mjs.map +1 -1
  138. package/fesm2020/clipboard.mjs +10 -10
  139. package/fesm2020/clipboard.mjs.map +1 -1
  140. package/fesm2020/collections.mjs +3 -3
  141. package/fesm2020/collections.mjs.map +1 -1
  142. package/fesm2020/drag-drop.mjs +83 -73
  143. package/fesm2020/drag-drop.mjs.map +1 -1
  144. package/fesm2020/layout.mjs +10 -10
  145. package/fesm2020/layout.mjs.map +1 -1
  146. package/fesm2020/observers.mjs +13 -13
  147. package/fesm2020/observers.mjs.map +1 -1
  148. package/fesm2020/overlay.mjs +149 -76
  149. package/fesm2020/overlay.mjs.map +1 -1
  150. package/fesm2020/platform.mjs +7 -7
  151. package/fesm2020/platform.mjs.map +1 -1
  152. package/fesm2020/portal.mjs +16 -16
  153. package/fesm2020/portal.mjs.map +1 -1
  154. package/fesm2020/scrolling.mjs +26 -26
  155. package/fesm2020/scrolling.mjs.map +1 -1
  156. package/fesm2020/stepper.mjs +22 -22
  157. package/fesm2020/stepper.mjs.map +1 -1
  158. package/fesm2020/table.mjs +76 -76
  159. package/fesm2020/table.mjs.map +1 -1
  160. package/fesm2020/testing/selenium-webdriver.mjs +7 -2
  161. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  162. package/fesm2020/testing/testbed.mjs +29 -7
  163. package/fesm2020/testing/testbed.mjs.map +1 -1
  164. package/fesm2020/testing.mjs +16 -1
  165. package/fesm2020/testing.mjs.map +1 -1
  166. package/fesm2020/text-field.mjs +13 -13
  167. package/fesm2020/text-field.mjs.map +1 -1
  168. package/fesm2020/tree.mjs +25 -25
  169. package/fesm2020/tree.mjs.map +1 -1
  170. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +7 -2
  171. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +8 -2
  172. package/overlay/position/global-position-strategy.d.ts +14 -3
  173. package/package.json +3 -3
  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-update/index.d.ts +2 -0
  178. package/schematics/ng-update/index.js +7 -2
  179. package/schematics/ng-update/index.mjs +7 -2
  180. package/schematics/update-tool/target-version.d.ts +2 -1
  181. package/schematics/update-tool/target-version.js +2 -1
  182. package/schematics/update-tool/target-version.mjs +2 -1
  183. package/testing/public-api.d.ts +1 -0
  184. package/testing/test-element-errors.d.ts +12 -0
  185. package/testing/test-element.d.ts +4 -2
  186. package/testing/testbed/fake-events/type-in-element.d.ts +2 -2
  187. package/testing/testbed/unit-test-element.d.ts +4 -1
@@ -457,14 +457,6 @@ class DragRef {
457
457
  }
458
458
  return;
459
459
  }
460
- // We only need the preview dimensions if we have a boundary element.
461
- if (this._boundaryElement) {
462
- // Cache the preview element rect if we haven't cached it already or if
463
- // we cached it too early before the element dimensions were computed.
464
- if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {
465
- this._previewRect = (this._preview || this._rootElement).getBoundingClientRect();
466
- }
467
- }
468
460
  // We prevent the default action down here so that we know that dragging has started. This is
469
461
  // important for touch devices where doing this too early can unnecessarily block scrolling,
470
462
  // if there's a dragging delay.
@@ -769,7 +761,7 @@ class DragRef {
769
761
  if (!this._hasStartedDragging) {
770
762
  return;
771
763
  }
772
- this.released.next({ source: this });
764
+ this.released.next({ source: this, event });
773
765
  if (this._dropContainer) {
774
766
  // Stop scrolling immediately, instead of waiting for the animation to finish.
775
767
  this._dropContainer._stopScrolling();
@@ -791,6 +783,7 @@ class DragRef {
791
783
  source: this,
792
784
  distance: this._getDragDistance(pointerPosition),
793
785
  dropPoint: pointerPosition,
786
+ event,
794
787
  });
795
788
  });
796
789
  this._cleanupCachedDimensions();
@@ -825,13 +818,13 @@ class DragRef {
825
818
  toggleVisibility(element, false, dragImportantProperties);
826
819
  this._document.body.appendChild(parent.replaceChild(placeholder, element));
827
820
  this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
828
- this.started.next({ source: this }); // Emit before notifying the container.
821
+ this.started.next({ source: this, event }); // Emit before notifying the container.
829
822
  dropContainer.start();
830
823
  this._initialContainer = dropContainer;
831
824
  this._initialIndex = dropContainer.getItemIndex(this);
832
825
  }
833
826
  else {
834
- this.started.next({ source: this });
827
+ this.started.next({ source: this, event });
835
828
  this._initialContainer = this._initialIndex = undefined;
836
829
  }
837
830
  // Important to run after we've called `start` on the parent container
@@ -928,7 +921,7 @@ class DragRef {
928
921
  const pointerPosition = this._getPointerPositionOnPage(event);
929
922
  const distance = this._getDragDistance(pointerPosition);
930
923
  const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
931
- this.ended.next({ source: this, distance, dropPoint: pointerPosition });
924
+ this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
932
925
  this.dropped.next({
933
926
  item: this,
934
927
  currentIndex,
@@ -938,6 +931,7 @@ class DragRef {
938
931
  isPointerOverContainer,
939
932
  distance,
940
933
  dropPoint: pointerPosition,
934
+ event,
941
935
  });
942
936
  container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
943
937
  this._dropContainer = this._initialContainer;
@@ -1161,11 +1155,11 @@ class DragRef {
1161
1155
  if (this._boundaryRect) {
1162
1156
  const { x: pickupX, y: pickupY } = this._pickupPositionInElement;
1163
1157
  const boundaryRect = this._boundaryRect;
1164
- const previewRect = this._previewRect;
1158
+ const { width: previewWidth, height: previewHeight } = this._getPreviewRect();
1165
1159
  const minY = boundaryRect.top + pickupY;
1166
- const maxY = boundaryRect.bottom - (previewRect.height - pickupY);
1160
+ const maxY = boundaryRect.bottom - (previewHeight - pickupY);
1167
1161
  const minX = boundaryRect.left + pickupX;
1168
- const maxX = boundaryRect.right - (previewRect.width - pickupX);
1162
+ const maxX = boundaryRect.right - (previewWidth - pickupX);
1169
1163
  x = clamp$1(x, minX, maxX);
1170
1164
  y = clamp$1(y, minY, maxY);
1171
1165
  }
@@ -1382,6 +1376,15 @@ class DragRef {
1382
1376
  }
1383
1377
  return coerceElement(previewContainer);
1384
1378
  }
1379
+ /** Lazily resolves and returns the dimensions of the preview. */
1380
+ _getPreviewRect() {
1381
+ // Cache the preview element rect if we haven't cached it already or if
1382
+ // we cached it too early before the element dimensions were computed.
1383
+ if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {
1384
+ this._previewRect = (this._preview || this._rootElement).getBoundingClientRect();
1385
+ }
1386
+ return this._previewRect;
1387
+ }
1385
1388
  }
1386
1389
  /**
1387
1390
  * Gets a 3d `transform` that can be applied to an element.
@@ -1716,8 +1719,11 @@ class DropListRef {
1716
1719
  * @param isPointerOverContainer Whether the user's pointer was over the
1717
1720
  * container when the item was dropped.
1718
1721
  * @param distance Distance the user has dragged since the start of the dragging sequence.
1722
+ * @param event Event that triggered the dropping sequence.
1723
+ *
1724
+ * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
1719
1725
  */
1720
- drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
1726
+ drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
1721
1727
  this._reset();
1722
1728
  this.dropped.next({
1723
1729
  item,
@@ -1728,6 +1734,7 @@ class DropListRef {
1728
1734
  isPointerOverContainer,
1729
1735
  distance,
1730
1736
  dropPoint,
1737
+ event,
1731
1738
  });
1732
1739
  }
1733
1740
  /**
@@ -2533,9 +2540,9 @@ class DragDropRegistry {
2533
2540
  this._globalListeners.clear();
2534
2541
  }
2535
2542
  }
2536
- DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2537
- DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2538
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropRegistry, decorators: [{
2543
+ DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2544
+ DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropRegistry, decorators: [{
2539
2546
  type: Injectable,
2540
2547
  args: [{ providedIn: 'root' }]
2541
2548
  }], ctorParameters: function () {
@@ -2583,9 +2590,9 @@ class DragDrop {
2583
2590
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
2584
2591
  }
2585
2592
  }
2586
- DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
2587
- DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDrop, providedIn: 'root' });
2588
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDrop, decorators: [{
2593
+ DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
2594
+ DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDrop, providedIn: 'root' });
2595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDrop, decorators: [{
2589
2596
  type: Injectable,
2590
2597
  args: [{ providedIn: 'root' }]
2591
2598
  }], ctorParameters: function () {
@@ -2646,9 +2653,9 @@ class CdkDropListGroup {
2646
2653
  this._items.clear();
2647
2654
  }
2648
2655
  }
2649
- CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2650
- CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
2651
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
2656
+ CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2657
+ CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.4", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
2658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropListGroup, decorators: [{
2652
2659
  type: Directive,
2653
2660
  args: [{
2654
2661
  selector: '[cdkDropListGroup]',
@@ -2902,16 +2909,17 @@ class CdkDropList {
2902
2909
  item: event.item.data,
2903
2910
  });
2904
2911
  });
2905
- ref.dropped.subscribe(event => {
2912
+ ref.dropped.subscribe(dropEvent => {
2906
2913
  this.dropped.emit({
2907
- previousIndex: event.previousIndex,
2908
- currentIndex: event.currentIndex,
2909
- previousContainer: event.previousContainer.data,
2910
- container: event.container.data,
2911
- item: event.item.data,
2912
- isPointerOverContainer: event.isPointerOverContainer,
2913
- distance: event.distance,
2914
- dropPoint: event.dropPoint,
2914
+ previousIndex: dropEvent.previousIndex,
2915
+ currentIndex: dropEvent.currentIndex,
2916
+ previousContainer: dropEvent.previousContainer.data,
2917
+ container: dropEvent.container.data,
2918
+ item: dropEvent.item.data,
2919
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
2920
+ distance: dropEvent.distance,
2921
+ dropPoint: dropEvent.dropPoint,
2922
+ event: dropEvent.event,
2915
2923
  });
2916
2924
  // Mark for check since all of these events run outside of change
2917
2925
  // detection and we're not guaranteed for something else to have triggered it.
@@ -2936,13 +2944,13 @@ class CdkDropList {
2936
2944
  }
2937
2945
  /** Keeps track of the drop lists that are currently on the page. */
2938
2946
  CdkDropList._dropLists = [];
2939
- CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.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 });
2940
- CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.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: [
2947
+ CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", 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 });
2948
+ CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.4", 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: [
2941
2949
  // Prevent child drop lists from picking up the same group as their parent.
2942
2950
  { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
2943
2951
  { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2944
2952
  ], exportAs: ["cdkDropList"], ngImport: i0 });
2945
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDropList, decorators: [{
2953
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropList, decorators: [{
2946
2954
  type: Directive,
2947
2955
  args: [{
2948
2956
  selector: '[cdkDropList], cdk-drop-list',
@@ -3059,9 +3067,9 @@ class CdkDragHandle {
3059
3067
  this._stateChanges.complete();
3060
3068
  }
3061
3069
  }
3062
- CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3063
- CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragHandle, decorators: [{
3070
+ CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
3071
+ CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.4", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragHandle, decorators: [{
3065
3073
  type: Directive,
3066
3074
  args: [{
3067
3075
  selector: '[cdkDragHandle]',
@@ -3106,9 +3114,9 @@ class CdkDragPlaceholder {
3106
3114
  this.templateRef = templateRef;
3107
3115
  }
3108
3116
  }
3109
- CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3110
- CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
3111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3117
+ CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3118
+ CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.4", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
3119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3112
3120
  type: Directive,
3113
3121
  args: [{
3114
3122
  selector: 'ng-template[cdkDragPlaceholder]',
@@ -3148,9 +3156,9 @@ class CdkDragPreview {
3148
3156
  this._matchSize = coerceBooleanProperty(value);
3149
3157
  }
3150
3158
  }
3151
- CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3152
- CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.0", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
3153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPreview, decorators: [{
3159
+ CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3160
+ CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.4", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
3161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragPreview, decorators: [{
3154
3162
  type: Directive,
3155
3163
  args: [{
3156
3164
  selector: 'ng-template[cdkDragPreview]',
@@ -3408,48 +3416,50 @@ class CdkDrag {
3408
3416
  }
3409
3417
  /** Handles the events from the underlying `DragRef`. */
3410
3418
  _handleEvents(ref) {
3411
- ref.started.subscribe(() => {
3412
- this.started.emit({ source: this });
3419
+ ref.started.subscribe(startEvent => {
3420
+ this.started.emit({ source: this, event: startEvent.event });
3413
3421
  // Since all of these events run outside of change detection,
3414
3422
  // we need to ensure that everything is marked correctly.
3415
3423
  this._changeDetectorRef.markForCheck();
3416
3424
  });
3417
- ref.released.subscribe(() => {
3418
- this.released.emit({ source: this });
3425
+ ref.released.subscribe(releaseEvent => {
3426
+ this.released.emit({ source: this, event: releaseEvent.event });
3419
3427
  });
3420
- ref.ended.subscribe(event => {
3428
+ ref.ended.subscribe(endEvent => {
3421
3429
  this.ended.emit({
3422
3430
  source: this,
3423
- distance: event.distance,
3424
- dropPoint: event.dropPoint,
3431
+ distance: endEvent.distance,
3432
+ dropPoint: endEvent.dropPoint,
3433
+ event: endEvent.event,
3425
3434
  });
3426
3435
  // Since all of these events run outside of change detection,
3427
3436
  // we need to ensure that everything is marked correctly.
3428
3437
  this._changeDetectorRef.markForCheck();
3429
3438
  });
3430
- ref.entered.subscribe(event => {
3439
+ ref.entered.subscribe(enterEvent => {
3431
3440
  this.entered.emit({
3432
- container: event.container.data,
3441
+ container: enterEvent.container.data,
3433
3442
  item: this,
3434
- currentIndex: event.currentIndex,
3443
+ currentIndex: enterEvent.currentIndex,
3435
3444
  });
3436
3445
  });
3437
- ref.exited.subscribe(event => {
3446
+ ref.exited.subscribe(exitEvent => {
3438
3447
  this.exited.emit({
3439
- container: event.container.data,
3448
+ container: exitEvent.container.data,
3440
3449
  item: this,
3441
3450
  });
3442
3451
  });
3443
- ref.dropped.subscribe(event => {
3452
+ ref.dropped.subscribe(dropEvent => {
3444
3453
  this.dropped.emit({
3445
- previousIndex: event.previousIndex,
3446
- currentIndex: event.currentIndex,
3447
- previousContainer: event.previousContainer.data,
3448
- container: event.container.data,
3449
- isPointerOverContainer: event.isPointerOverContainer,
3454
+ previousIndex: dropEvent.previousIndex,
3455
+ currentIndex: dropEvent.currentIndex,
3456
+ previousContainer: dropEvent.previousContainer.data,
3457
+ container: dropEvent.container.data,
3458
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
3450
3459
  item: this,
3451
- distance: event.distance,
3452
- dropPoint: event.dropPoint,
3460
+ distance: dropEvent.distance,
3461
+ dropPoint: dropEvent.dropPoint,
3462
+ event: dropEvent.event,
3453
3463
  });
3454
3464
  });
3455
3465
  }
@@ -3510,9 +3520,9 @@ class CdkDrag {
3510
3520
  }
3511
3521
  }
3512
3522
  CdkDrag._dragInstances = [];
3513
- CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.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 });
3514
- CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.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 });
3515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDrag, decorators: [{
3523
+ CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", 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 });
3524
+ CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.4", 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 });
3525
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDrag, decorators: [{
3516
3526
  type: Directive,
3517
3527
  args: [{
3518
3528
  selector: '[cdkDrag]',
@@ -3628,8 +3638,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
3628
3638
  */
3629
3639
  class DragDropModule {
3630
3640
  }
3631
- DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3632
- DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3641
+ DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3642
+ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3633
3643
  CdkDropListGroup,
3634
3644
  CdkDrag,
3635
3645
  CdkDragHandle,
@@ -3641,8 +3651,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
3641
3651
  CdkDragHandle,
3642
3652
  CdkDragPreview,
3643
3653
  CdkDragPlaceholder] });
3644
- DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, decorators: [{
3654
+ DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, decorators: [{
3646
3656
  type: NgModule,
3647
3657
  args: [{
3648
3658
  declarations: [