@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
@@ -768,7 +768,7 @@ class DragRef {
768
768
  if (!this._hasStartedDragging) {
769
769
  return;
770
770
  }
771
- this.released.next({ source: this });
771
+ this.released.next({ source: this, event });
772
772
  if (this._dropContainer) {
773
773
  // Stop scrolling immediately, instead of waiting for the animation to finish.
774
774
  this._dropContainer._stopScrolling();
@@ -790,6 +790,7 @@ class DragRef {
790
790
  source: this,
791
791
  distance: this._getDragDistance(pointerPosition),
792
792
  dropPoint: pointerPosition,
793
+ event,
793
794
  });
794
795
  });
795
796
  this._cleanupCachedDimensions();
@@ -824,13 +825,13 @@ class DragRef {
824
825
  toggleVisibility(element, false, dragImportantProperties);
825
826
  this._document.body.appendChild(parent.replaceChild(placeholder, element));
826
827
  this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
827
- this.started.next({ source: this }); // Emit before notifying the container.
828
+ this.started.next({ source: this, event }); // Emit before notifying the container.
828
829
  dropContainer.start();
829
830
  this._initialContainer = dropContainer;
830
831
  this._initialIndex = dropContainer.getItemIndex(this);
831
832
  }
832
833
  else {
833
- this.started.next({ source: this });
834
+ this.started.next({ source: this, event });
834
835
  this._initialContainer = this._initialIndex = undefined;
835
836
  }
836
837
  // Important to run after we've called `start` on the parent container
@@ -927,7 +928,7 @@ class DragRef {
927
928
  const pointerPosition = this._getPointerPositionOnPage(event);
928
929
  const distance = this._getDragDistance(pointerPosition);
929
930
  const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
930
- this.ended.next({ source: this, distance, dropPoint: pointerPosition });
931
+ this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
931
932
  this.dropped.next({
932
933
  item: this,
933
934
  currentIndex,
@@ -937,6 +938,7 @@ class DragRef {
937
938
  isPointerOverContainer,
938
939
  distance,
939
940
  dropPoint: pointerPosition,
941
+ event,
940
942
  });
941
943
  container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
942
944
  this._dropContainer = this._initialContainer;
@@ -1723,8 +1725,11 @@ class DropListRef {
1723
1725
  * @param isPointerOverContainer Whether the user's pointer was over the
1724
1726
  * container when the item was dropped.
1725
1727
  * @param distance Distance the user has dragged since the start of the dragging sequence.
1728
+ * @param event Event that triggered the dropping sequence.
1729
+ *
1730
+ * @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
1726
1731
  */
1727
- drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
1732
+ drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
1728
1733
  this._reset();
1729
1734
  this.dropped.next({
1730
1735
  item,
@@ -1735,6 +1740,7 @@ class DropListRef {
1735
1740
  isPointerOverContainer,
1736
1741
  distance,
1737
1742
  dropPoint,
1743
+ event,
1738
1744
  });
1739
1745
  }
1740
1746
  /**
@@ -2539,9 +2545,9 @@ class DragDropRegistry {
2539
2545
  this._globalListeners.clear();
2540
2546
  }
2541
2547
  }
2542
- 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 });
2543
- DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2544
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropRegistry, decorators: [{
2548
+ 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 });
2549
+ DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
2550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, decorators: [{
2545
2551
  type: Injectable,
2546
2552
  args: [{ providedIn: 'root' }]
2547
2553
  }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
@@ -2587,9 +2593,9 @@ class DragDrop {
2587
2593
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
2588
2594
  }
2589
2595
  }
2590
- 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 });
2591
- DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDrop, providedIn: 'root' });
2592
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDrop, decorators: [{
2596
+ 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 });
2597
+ DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, providedIn: 'root' });
2598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, decorators: [{
2593
2599
  type: Injectable,
2594
2600
  args: [{ providedIn: 'root' }]
2595
2601
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -2656,9 +2662,9 @@ class CdkDropListGroup {
2656
2662
  this._items.clear();
2657
2663
  }
2658
2664
  }
2659
- CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2660
- 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 });
2661
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
2665
+ CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2666
+ 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 });
2667
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropListGroup, decorators: [{
2662
2668
  type: Directive,
2663
2669
  args: [{
2664
2670
  selector: '[cdkDropListGroup]',
@@ -2912,16 +2918,17 @@ class CdkDropList {
2912
2918
  item: event.item.data,
2913
2919
  });
2914
2920
  });
2915
- ref.dropped.subscribe(event => {
2921
+ ref.dropped.subscribe(dropEvent => {
2916
2922
  this.dropped.emit({
2917
- previousIndex: event.previousIndex,
2918
- currentIndex: event.currentIndex,
2919
- previousContainer: event.previousContainer.data,
2920
- container: event.container.data,
2921
- item: event.item.data,
2922
- isPointerOverContainer: event.isPointerOverContainer,
2923
- distance: event.distance,
2924
- dropPoint: event.dropPoint,
2923
+ previousIndex: dropEvent.previousIndex,
2924
+ currentIndex: dropEvent.currentIndex,
2925
+ previousContainer: dropEvent.previousContainer.data,
2926
+ container: dropEvent.container.data,
2927
+ item: dropEvent.item.data,
2928
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
2929
+ distance: dropEvent.distance,
2930
+ dropPoint: dropEvent.dropPoint,
2931
+ event: dropEvent.event,
2925
2932
  });
2926
2933
  // Mark for check since all of these events run outside of change
2927
2934
  // detection and we're not guaranteed for something else to have triggered it.
@@ -2946,13 +2953,13 @@ class CdkDropList {
2946
2953
  }
2947
2954
  /** Keeps track of the drop lists that are currently on the page. */
2948
2955
  CdkDropList._dropLists = [];
2949
- 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 });
2950
- 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: [
2956
+ 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 });
2957
+ 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: [
2951
2958
  // Prevent child drop lists from picking up the same group as their parent.
2952
2959
  { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
2953
2960
  { provide: CDK_DROP_LIST, useExisting: CdkDropList },
2954
2961
  ], exportAs: ["cdkDropList"], ngImport: i0 });
2955
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDropList, decorators: [{
2962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropList, decorators: [{
2956
2963
  type: Directive,
2957
2964
  args: [{
2958
2965
  selector: '[cdkDropList], cdk-drop-list',
@@ -3067,9 +3074,9 @@ class CdkDragHandle {
3067
3074
  this._stateChanges.complete();
3068
3075
  }
3069
3076
  }
3070
- 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 });
3071
- 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 });
3072
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragHandle, decorators: [{
3077
+ 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 });
3078
+ 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 });
3079
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragHandle, decorators: [{
3073
3080
  type: Directive,
3074
3081
  args: [{
3075
3082
  selector: '[cdkDragHandle]',
@@ -3112,9 +3119,9 @@ class CdkDragPlaceholder {
3112
3119
  this.templateRef = templateRef;
3113
3120
  }
3114
3121
  }
3115
- CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3116
- 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 });
3117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3122
+ 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 });
3123
+ 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 });
3124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
3118
3125
  type: Directive,
3119
3126
  args: [{
3120
3127
  selector: 'ng-template[cdkDragPlaceholder]',
@@ -3154,9 +3161,9 @@ class CdkDragPreview {
3154
3161
  this._matchSize = coerceBooleanProperty(value);
3155
3162
  }
3156
3163
  }
3157
- CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
3158
- 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 });
3159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDragPreview, decorators: [{
3164
+ 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 });
3165
+ 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 });
3166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPreview, decorators: [{
3160
3167
  type: Directive,
3161
3168
  args: [{
3162
3169
  selector: 'ng-template[cdkDragPreview]',
@@ -3419,48 +3426,50 @@ class CdkDrag {
3419
3426
  }
3420
3427
  /** Handles the events from the underlying `DragRef`. */
3421
3428
  _handleEvents(ref) {
3422
- ref.started.subscribe(() => {
3423
- this.started.emit({ source: this });
3429
+ ref.started.subscribe(startEvent => {
3430
+ this.started.emit({ source: this, event: startEvent.event });
3424
3431
  // Since all of these events run outside of change detection,
3425
3432
  // we need to ensure that everything is marked correctly.
3426
3433
  this._changeDetectorRef.markForCheck();
3427
3434
  });
3428
- ref.released.subscribe(() => {
3429
- this.released.emit({ source: this });
3435
+ ref.released.subscribe(releaseEvent => {
3436
+ this.released.emit({ source: this, event: releaseEvent.event });
3430
3437
  });
3431
- ref.ended.subscribe(event => {
3438
+ ref.ended.subscribe(endEvent => {
3432
3439
  this.ended.emit({
3433
3440
  source: this,
3434
- distance: event.distance,
3435
- dropPoint: event.dropPoint,
3441
+ distance: endEvent.distance,
3442
+ dropPoint: endEvent.dropPoint,
3443
+ event: endEvent.event,
3436
3444
  });
3437
3445
  // Since all of these events run outside of change detection,
3438
3446
  // we need to ensure that everything is marked correctly.
3439
3447
  this._changeDetectorRef.markForCheck();
3440
3448
  });
3441
- ref.entered.subscribe(event => {
3449
+ ref.entered.subscribe(enterEvent => {
3442
3450
  this.entered.emit({
3443
- container: event.container.data,
3451
+ container: enterEvent.container.data,
3444
3452
  item: this,
3445
- currentIndex: event.currentIndex,
3453
+ currentIndex: enterEvent.currentIndex,
3446
3454
  });
3447
3455
  });
3448
- ref.exited.subscribe(event => {
3456
+ ref.exited.subscribe(exitEvent => {
3449
3457
  this.exited.emit({
3450
- container: event.container.data,
3458
+ container: exitEvent.container.data,
3451
3459
  item: this,
3452
3460
  });
3453
3461
  });
3454
- ref.dropped.subscribe(event => {
3462
+ ref.dropped.subscribe(dropEvent => {
3455
3463
  this.dropped.emit({
3456
- previousIndex: event.previousIndex,
3457
- currentIndex: event.currentIndex,
3458
- previousContainer: event.previousContainer.data,
3459
- container: event.container.data,
3460
- isPointerOverContainer: event.isPointerOverContainer,
3464
+ previousIndex: dropEvent.previousIndex,
3465
+ currentIndex: dropEvent.currentIndex,
3466
+ previousContainer: dropEvent.previousContainer.data,
3467
+ container: dropEvent.container.data,
3468
+ isPointerOverContainer: dropEvent.isPointerOverContainer,
3461
3469
  item: this,
3462
- distance: event.distance,
3463
- dropPoint: event.dropPoint,
3470
+ distance: dropEvent.distance,
3471
+ dropPoint: dropEvent.dropPoint,
3472
+ event: dropEvent.event,
3464
3473
  });
3465
3474
  });
3466
3475
  }
@@ -3521,9 +3530,9 @@ class CdkDrag {
3521
3530
  }
3522
3531
  }
3523
3532
  CdkDrag._dragInstances = [];
3524
- 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 });
3525
- 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 });
3526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CdkDrag, decorators: [{
3533
+ 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 });
3534
+ 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 });
3535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDrag, decorators: [{
3527
3536
  type: Directive,
3528
3537
  args: [{
3529
3538
  selector: '[cdkDrag]',
@@ -3637,8 +3646,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
3637
3646
  */
3638
3647
  class DragDropModule {
3639
3648
  }
3640
- DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3641
- DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3649
+ DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3650
+ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
3642
3651
  CdkDropListGroup,
3643
3652
  CdkDrag,
3644
3653
  CdkDragHandle,
@@ -3650,8 +3659,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
3650
3659
  CdkDragHandle,
3651
3660
  CdkDragPreview,
3652
3661
  CdkDragPlaceholder] });
3653
- DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3654
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DragDropModule, decorators: [{
3662
+ DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
3663
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, decorators: [{
3655
3664
  type: NgModule,
3656
3665
  args: [{
3657
3666
  declarations: [