@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.
@@ -766,7 +758,7 @@ class DragRef {
766
758
  if (!this._hasStartedDragging) {
767
759
  return;
768
760
  }
769
- this.released.next({ source: this });
761
+ this.released.next({ source: this, event });
770
762
  if (this._dropContainer) {
771
763
  // Stop scrolling immediately, instead of waiting for the animation to finish.
772
764
  this._dropContainer._stopScrolling();
@@ -788,6 +780,7 @@ class DragRef {
788
780
  source: this,
789
781
  distance: this._getDragDistance(pointerPosition),
790
782
  dropPoint: pointerPosition,
783
+ event,
791
784
  });
792
785
  });
793
786
  this._cleanupCachedDimensions();
@@ -822,13 +815,13 @@ class DragRef {
822
815
  toggleVisibility(element, false, dragImportantProperties);
823
816
  this._document.body.appendChild(parent.replaceChild(placeholder, element));
824
817
  this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
825
- this.started.next({ source: this }); // Emit before notifying the container.
818
+ this.started.next({ source: this, event }); // Emit before notifying the container.
826
819
  dropContainer.start();
827
820
  this._initialContainer = dropContainer;
828
821
  this._initialIndex = dropContainer.getItemIndex(this);
829
822
  }
830
823
  else {
831
- this.started.next({ source: this });
824
+ this.started.next({ source: this, event });
832
825
  this._initialContainer = this._initialIndex = undefined;
833
826
  }
834
827
  // Important to run after we've called `start` on the parent container
@@ -925,7 +918,7 @@ class DragRef {
925
918
  const pointerPosition = this._getPointerPositionOnPage(event);
926
919
  const distance = this._getDragDistance(pointerPosition);
927
920
  const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
928
- this.ended.next({ source: this, distance, dropPoint: pointerPosition });
921
+ this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
929
922
  this.dropped.next({
930
923
  item: this,
931
924
  currentIndex,
@@ -935,6 +928,7 @@ class DragRef {
935
928
  isPointerOverContainer,
936
929
  distance,
937
930
  dropPoint: pointerPosition,
931
+ event,
938
932
  });
939
933
  container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
940
934
  this._dropContainer = this._initialContainer;
@@ -1157,11 +1151,11 @@ class DragRef {
1157
1151
  if (this._boundaryRect) {
1158
1152
  const { x: pickupX, y: pickupY } = this._pickupPositionInElement;
1159
1153
  const boundaryRect = this._boundaryRect;
1160
- const previewRect = this._previewRect;
1154
+ const { width: previewWidth, height: previewHeight } = this._getPreviewRect();
1161
1155
  const minY = boundaryRect.top + pickupY;
1162
- const maxY = boundaryRect.bottom - (previewRect.height - pickupY);
1156
+ const maxY = boundaryRect.bottom - (previewHeight - pickupY);
1163
1157
  const minX = boundaryRect.left + pickupX;
1164
- const maxX = boundaryRect.right - (previewRect.width - pickupX);
1158
+ const maxX = boundaryRect.right - (previewWidth - pickupX);
1165
1159
  x = clamp$1(x, minX, maxX);
1166
1160
  y = clamp$1(y, minY, maxY);
1167
1161
  }
@@ -1376,6 +1370,15 @@ class DragRef {
1376
1370
  }
1377
1371
  return coerceElement(previewContainer);
1378
1372
  }
1373
+ /** Lazily resolves and returns the dimensions of the preview. */
1374
+ _getPreviewRect() {
1375
+ // Cache the preview element rect if we haven't cached it already or if
1376
+ // we cached it too early before the element dimensions were computed.
1377
+ if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {
1378
+ this._previewRect = (this._preview || this._rootElement).getBoundingClientRect();
1379
+ }
1380
+ return this._previewRect;
1381
+ }
1379
1382
  }
1380
1383
  /**
1381
1384
  * Gets a 3d `transform` that can be applied to an element.
@@ -1710,8 +1713,11 @@ class DropListRef {
1710
1713
  * @param isPointerOverContainer Whether the user's pointer was over the
1711
1714
  * container when the item was dropped.
1712
1715
  * @param distance Distance the user has dragged since the start of the dragging sequence.
1716
+ * @param event Event that triggered the dropping sequence.
1717
+ *
1718
+ * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
1713
1719
  */
1714
- drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
1720
+ drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
1715
1721
  this._reset();
1716
1722
  this.dropped.next({
1717
1723
  item,
@@ -1722,6 +1728,7 @@ class DropListRef {
1722
1728
  isPointerOverContainer,
1723
1729
  distance,
1724
1730
  dropPoint,
1731
+ event,
1725
1732
  });
1726
1733
  }
1727
1734
  /**
@@ -2526,9 +2533,9 @@ class DragDropRegistry {
2526
2533
  this._globalListeners.clear();
2527
2534
  }
2528
2535
  }
2529
- 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 });
2530
- DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2531
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropRegistry, decorators: [{
2536
+ 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 });
2537
+ DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropRegistry, decorators: [{
2532
2539
  type: Injectable,
2533
2540
  args: [{ providedIn: 'root' }]
2534
2541
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
@@ -2574,9 +2581,9 @@ class DragDrop {
2574
2581
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
2575
2582
  }
2576
2583
  }
2577
- 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 });
2578
- DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDrop, providedIn: 'root' });
2579
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDrop, decorators: [{
2584
+ 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 });
2585
+ DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDrop, providedIn: 'root' });
2586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDrop, decorators: [{
2580
2587
  type: Injectable,
2581
2588
  args: [{ providedIn: 'root' }]
2582
2589
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -2643,9 +2650,9 @@ class CdkDropListGroup {
2643
2650
  this._items.clear();
2644
2651
  }
2645
2652
  }
2646
- CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2647
- 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 });
2648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
2653
+ CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2654
+ 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 });
2655
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropListGroup, decorators: [{
2649
2656
  type: Directive,
2650
2657
  args: [{
2651
2658
  selector: '[cdkDropListGroup]',
@@ -2899,16 +2906,17 @@ class CdkDropList {
2899
2906
  item: event.item.data,
2900
2907
  });
2901
2908
  });
2902
- ref.dropped.subscribe(event => {
2909
+ ref.dropped.subscribe(dropEvent => {
2903
2910
  this.dropped.emit({
2904
- previousIndex: event.previousIndex,
2905
- currentIndex: event.currentIndex,
2906
- previousContainer: event.previousContainer.data,
2907
- container: event.container.data,
2908
- item: event.item.data,
2909
- isPointerOverContainer: event.isPointerOverContainer,
2910
- distance: event.distance,
2911
- dropPoint: event.dropPoint,
2911
+ previousIndex: dropEvent.previousIndex,
2912
+ currentIndex: dropEvent.currentIndex,
2913
+ previousContainer: dropEvent.previousContainer.data,
2914
+ container: dropEvent.container.data,
2915
+ item: dropEvent.item.data,
2916
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
2917
+ distance: dropEvent.distance,
2918
+ dropPoint: dropEvent.dropPoint,
2919
+ event: dropEvent.event,
2912
2920
  });
2913
2921
  // Mark for check since all of these events run outside of change
2914
2922
  // detection and we're not guaranteed for something else to have triggered it.
@@ -2933,13 +2941,13 @@ class CdkDropList {
2933
2941
  }
2934
2942
  /** Keeps track of the drop lists that are currently on the page. */
2935
2943
  CdkDropList._dropLists = [];
2936
- 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 });
2937
- 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: [
2944
+ 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 });
2945
+ 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: [
2938
2946
  // Prevent child drop lists from picking up the same group as their parent.
2939
2947
  { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
2940
2948
  { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2941
2949
  ], exportAs: ["cdkDropList"], ngImport: i0 });
2942
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDropList, decorators: [{
2950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropList, decorators: [{
2943
2951
  type: Directive,
2944
2952
  args: [{
2945
2953
  selector: '[cdkDropList], cdk-drop-list',
@@ -3054,9 +3062,9 @@ class CdkDragHandle {
3054
3062
  this._stateChanges.complete();
3055
3063
  }
3056
3064
  }
3057
- 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 });
3058
- 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 });
3059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragHandle, decorators: [{
3065
+ 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 });
3066
+ 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 });
3067
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragHandle, decorators: [{
3060
3068
  type: Directive,
3061
3069
  args: [{
3062
3070
  selector: '[cdkDragHandle]',
@@ -3099,9 +3107,9 @@ class CdkDragPlaceholder {
3099
3107
  this.templateRef = templateRef;
3100
3108
  }
3101
3109
  }
3102
- CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3103
- 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 });
3104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3110
+ 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 });
3111
+ 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 });
3112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3105
3113
  type: Directive,
3106
3114
  args: [{
3107
3115
  selector: 'ng-template[cdkDragPlaceholder]',
@@ -3141,9 +3149,9 @@ class CdkDragPreview {
3141
3149
  this._matchSize = coerceBooleanProperty(value);
3142
3150
  }
3143
3151
  }
3144
- CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3145
- 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 });
3146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDragPreview, decorators: [{
3152
+ 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 });
3153
+ 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 });
3154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDragPreview, decorators: [{
3147
3155
  type: Directive,
3148
3156
  args: [{
3149
3157
  selector: 'ng-template[cdkDragPreview]',
@@ -3406,48 +3414,50 @@ class CdkDrag {
3406
3414
  }
3407
3415
  /** Handles the events from the underlying `DragRef`. */
3408
3416
  _handleEvents(ref) {
3409
- ref.started.subscribe(() => {
3410
- this.started.emit({ source: this });
3417
+ ref.started.subscribe(startEvent => {
3418
+ this.started.emit({ source: this, event: startEvent.event });
3411
3419
  // Since all of these events run outside of change detection,
3412
3420
  // we need to ensure that everything is marked correctly.
3413
3421
  this._changeDetectorRef.markForCheck();
3414
3422
  });
3415
- ref.released.subscribe(() => {
3416
- this.released.emit({ source: this });
3423
+ ref.released.subscribe(releaseEvent => {
3424
+ this.released.emit({ source: this, event: releaseEvent.event });
3417
3425
  });
3418
- ref.ended.subscribe(event => {
3426
+ ref.ended.subscribe(endEvent => {
3419
3427
  this.ended.emit({
3420
3428
  source: this,
3421
- distance: event.distance,
3422
- dropPoint: event.dropPoint,
3429
+ distance: endEvent.distance,
3430
+ dropPoint: endEvent.dropPoint,
3431
+ event: endEvent.event,
3423
3432
  });
3424
3433
  // Since all of these events run outside of change detection,
3425
3434
  // we need to ensure that everything is marked correctly.
3426
3435
  this._changeDetectorRef.markForCheck();
3427
3436
  });
3428
- ref.entered.subscribe(event => {
3437
+ ref.entered.subscribe(enterEvent => {
3429
3438
  this.entered.emit({
3430
- container: event.container.data,
3439
+ container: enterEvent.container.data,
3431
3440
  item: this,
3432
- currentIndex: event.currentIndex,
3441
+ currentIndex: enterEvent.currentIndex,
3433
3442
  });
3434
3443
  });
3435
- ref.exited.subscribe(event => {
3444
+ ref.exited.subscribe(exitEvent => {
3436
3445
  this.exited.emit({
3437
- container: event.container.data,
3446
+ container: exitEvent.container.data,
3438
3447
  item: this,
3439
3448
  });
3440
3449
  });
3441
- ref.dropped.subscribe(event => {
3450
+ ref.dropped.subscribe(dropEvent => {
3442
3451
  this.dropped.emit({
3443
- previousIndex: event.previousIndex,
3444
- currentIndex: event.currentIndex,
3445
- previousContainer: event.previousContainer.data,
3446
- container: event.container.data,
3447
- isPointerOverContainer: event.isPointerOverContainer,
3452
+ previousIndex: dropEvent.previousIndex,
3453
+ currentIndex: dropEvent.currentIndex,
3454
+ previousContainer: dropEvent.previousContainer.data,
3455
+ container: dropEvent.container.data,
3456
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
3448
3457
  item: this,
3449
- distance: event.distance,
3450
- dropPoint: event.dropPoint,
3458
+ distance: dropEvent.distance,
3459
+ dropPoint: dropEvent.dropPoint,
3460
+ event: dropEvent.event,
3451
3461
  });
3452
3462
  });
3453
3463
  }
@@ -3508,9 +3518,9 @@ class CdkDrag {
3508
3518
  }
3509
3519
  }
3510
3520
  CdkDrag._dragInstances = [];
3511
- 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 });
3512
- 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 });
3513
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: CdkDrag, decorators: [{
3521
+ 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 });
3522
+ 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 });
3523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDrag, decorators: [{
3514
3524
  type: Directive,
3515
3525
  args: [{
3516
3526
  selector: '[cdkDrag]',
@@ -3624,8 +3634,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
3624
3634
  */
3625
3635
  class DragDropModule {
3626
3636
  }
3627
- DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3628
- DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3637
+ DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3638
+ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3629
3639
  CdkDropListGroup,
3630
3640
  CdkDrag,
3631
3641
  CdkDragHandle,
@@ -3637,8 +3647,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
3637
3647
  CdkDragHandle,
3638
3648
  CdkDragPreview,
3639
3649
  CdkDragPlaceholder] });
3640
- DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3641
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: DragDropModule, decorators: [{
3650
+ DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: DragDropModule, decorators: [{
3642
3652
  type: NgModule,
3643
3653
  args: [{
3644
3654
  declarations: [