@angular/cdk 14.0.0-next.2 → 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.
- package/a11y/a11y-module.d.ts +2 -3
- package/a11y/live-announcer/live-announcer.d.ts +3 -1
- package/drag-drop/drag-events.d.ts +8 -0
- package/drag-drop/drag-ref.d.ts +7 -1
- package/drag-drop/drop-list-ref.d.ts +5 -1
- package/drag-drop/parent-position-tracker.d.ts +11 -3
- package/esm2020/a11y/a11y-module.mjs +6 -7
- package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
- package/esm2020/a11y/focus-monitor/focus-monitor.mjs +7 -7
- package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
- package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
- package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +7 -12
- package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
- package/esm2020/a11y/live-announcer/live-announcer.mjs +11 -8
- package/esm2020/accordion/accordion-item.mjs +4 -4
- package/esm2020/accordion/accordion-module.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +4 -4
- package/esm2020/bidi/bidi-module.mjs +5 -5
- package/esm2020/bidi/dir.mjs +4 -4
- package/esm2020/bidi/directionality.mjs +4 -4
- package/esm2020/clipboard/clipboard-module.mjs +5 -5
- package/esm2020/clipboard/clipboard.mjs +4 -4
- package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
- package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
- package/esm2020/drag-drop/directives/drag.mjs +26 -24
- package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
- package/esm2020/drag-drop/directives/drop-list.mjs +14 -13
- package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
- package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
- package/esm2020/drag-drop/drag-drop.mjs +4 -4
- package/esm2020/drag-drop/drag-events.mjs +1 -1
- package/esm2020/drag-drop/drag-ref.mjs +33 -21
- package/esm2020/drag-drop/drop-list-ref.mjs +7 -3
- package/esm2020/drag-drop/parent-position-tracker.mjs +13 -5
- package/esm2020/layout/breakpoints-observer.mjs +4 -4
- package/esm2020/layout/layout-module.mjs +5 -5
- package/esm2020/layout/media-matcher.mjs +4 -4
- package/esm2020/observers/observe-content.mjs +14 -14
- package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
- package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +26 -8
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +33 -12
- package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-container.mjs +4 -4
- package/esm2020/overlay/overlay-directives.mjs +7 -7
- package/esm2020/overlay/overlay-module.mjs +5 -5
- package/esm2020/overlay/overlay.mjs +4 -4
- package/esm2020/overlay/position/global-position-strategy.mjs +64 -30
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2020/platform/platform-module.mjs +5 -5
- package/esm2020/platform/platform.mjs +4 -4
- package/esm2020/portal/portal-directives.mjs +17 -17
- package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
- package/esm2020/scrolling/scrollable.mjs +4 -4
- package/esm2020/scrolling/scrolling-module.mjs +10 -11
- package/esm2020/scrolling/viewport-ruler.mjs +4 -4
- package/esm2020/scrolling/virtual-for-of.mjs +4 -4
- package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
- package/esm2020/stepper/step-header.mjs +4 -4
- package/esm2020/stepper/step-label.mjs +4 -4
- package/esm2020/stepper/stepper-button.mjs +7 -7
- package/esm2020/stepper/stepper-module.mjs +5 -5
- package/esm2020/stepper/stepper.mjs +9 -22
- package/esm2020/table/cell.mjs +22 -22
- package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
- package/esm2020/table/row.mjs +28 -28
- package/esm2020/table/table-module.mjs +5 -5
- package/esm2020/table/table.mjs +19 -19
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/testing/public-api.mjs +2 -1
- package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +8 -3
- package/esm2020/testing/test-element-errors.mjs +15 -0
- package/esm2020/testing/test-element.mjs +1 -1
- package/esm2020/testing/testbed/fake-events/type-in-element.mjs +12 -3
- package/esm2020/testing/testbed/unit-test-element.mjs +19 -5
- package/esm2020/text-field/autofill.mjs +7 -7
- package/esm2020/text-field/autosize.mjs +4 -4
- package/esm2020/text-field/text-field-module.mjs +5 -7
- package/esm2020/tree/nested-node.mjs +4 -4
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.mjs +4 -4
- package/esm2020/tree/toggle.mjs +4 -4
- package/esm2020/tree/tree-module.mjs +5 -5
- package/esm2020/tree/tree.mjs +7 -7
- package/esm2020/version.mjs +1 -1
- package/fesm2015/a11y.mjs +49 -51
- package/fesm2015/a11y.mjs.map +1 -1
- package/fesm2015/accordion.mjs +10 -10
- package/fesm2015/accordion.mjs.map +1 -1
- package/fesm2015/bidi.mjs +10 -10
- package/fesm2015/bidi.mjs.map +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/clipboard.mjs +10 -10
- package/fesm2015/clipboard.mjs.map +1 -1
- package/fesm2015/collections.mjs +3 -3
- package/fesm2015/collections.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +111 -83
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/layout.mjs +10 -10
- package/fesm2015/layout.mjs.map +1 -1
- package/fesm2015/observers.mjs +13 -13
- package/fesm2015/observers.mjs.map +1 -1
- package/fesm2015/overlay.mjs +149 -76
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -7
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +16 -16
- package/fesm2015/portal.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +28 -28
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +24 -37
- package/fesm2015/stepper.mjs.map +1 -1
- package/fesm2015/table.mjs +76 -76
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing/selenium-webdriver.mjs +7 -2
- package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2015/testing/testbed.mjs +29 -7
- package/fesm2015/testing/testbed.mjs.map +1 -1
- package/fesm2015/testing.mjs +16 -1
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/text-field.mjs +14 -15
- package/fesm2015/text-field.mjs.map +1 -1
- package/fesm2015/tree.mjs +25 -25
- package/fesm2015/tree.mjs.map +1 -1
- package/fesm2020/a11y.mjs +49 -51
- package/fesm2020/a11y.mjs.map +1 -1
- package/fesm2020/accordion.mjs +10 -10
- package/fesm2020/accordion.mjs.map +1 -1
- package/fesm2020/bidi.mjs +10 -10
- package/fesm2020/bidi.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/clipboard.mjs +10 -10
- package/fesm2020/clipboard.mjs.map +1 -1
- package/fesm2020/collections.mjs +3 -3
- package/fesm2020/collections.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +110 -83
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/layout.mjs +10 -10
- package/fesm2020/layout.mjs.map +1 -1
- package/fesm2020/observers.mjs +13 -13
- package/fesm2020/observers.mjs.map +1 -1
- package/fesm2020/overlay.mjs +149 -76
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -7
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +16 -16
- package/fesm2020/portal.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +28 -28
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +24 -37
- package/fesm2020/stepper.mjs.map +1 -1
- package/fesm2020/table.mjs +76 -76
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing/selenium-webdriver.mjs +7 -2
- package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2020/testing/testbed.mjs +29 -7
- package/fesm2020/testing/testbed.mjs.map +1 -1
- package/fesm2020/testing.mjs +16 -1
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/text-field.mjs +14 -15
- package/fesm2020/text-field.mjs.map +1 -1
- package/fesm2020/tree.mjs +25 -25
- package/fesm2020/tree.mjs.map +1 -1
- package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +7 -2
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +8 -2
- package/overlay/position/global-position-strategy.d.ts +14 -3
- package/package.json +3 -3
- package/schematics/migration.json +5 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/data/constructor-checks.js +7 -1
- package/schematics/ng-update/data/constructor-checks.mjs +7 -1
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +7 -2
- package/schematics/ng-update/index.mjs +7 -2
- package/schematics/update-tool/target-version.d.ts +2 -1
- package/schematics/update-tool/target-version.js +2 -1
- package/schematics/update-tool/target-version.mjs +2 -1
- package/scrolling/scrolling-module.d.ts +1 -2
- package/stepper/stepper.d.ts +3 -12
- package/testing/public-api.d.ts +1 -0
- package/testing/test-element-errors.d.ts +12 -0
- package/testing/test-element.d.ts +4 -2
- package/testing/testbed/fake-events/type-in-element.d.ts +2 -2
- package/testing/testbed/unit-test-element.d.ts +4 -1
- package/text-field/text-field-module.d.ts +1 -2
package/fesm2015/drag-drop.mjs
CHANGED
|
@@ -188,9 +188,8 @@ function isPointerNearClientRect(rect, threshold, pointerX, pointerY) {
|
|
|
188
188
|
*/
|
|
189
189
|
/** Keeps track of the scroll position and dimensions of the parents of an element. */
|
|
190
190
|
class ParentPositionTracker {
|
|
191
|
-
constructor(_document
|
|
191
|
+
constructor(_document) {
|
|
192
192
|
this._document = _document;
|
|
193
|
-
this._viewportRuler = _viewportRuler;
|
|
194
193
|
/** Cached positions of the scrollable parent elements. */
|
|
195
194
|
this.positions = new Map();
|
|
196
195
|
}
|
|
@@ -202,7 +201,7 @@ class ParentPositionTracker {
|
|
|
202
201
|
cache(elements) {
|
|
203
202
|
this.clear();
|
|
204
203
|
this.positions.set(this._document, {
|
|
205
|
-
scrollPosition: this.
|
|
204
|
+
scrollPosition: this.getViewportScrollPosition(),
|
|
206
205
|
});
|
|
207
206
|
elements.forEach(element => {
|
|
208
207
|
this.positions.set(element, {
|
|
@@ -222,7 +221,7 @@ class ParentPositionTracker {
|
|
|
222
221
|
let newTop;
|
|
223
222
|
let newLeft;
|
|
224
223
|
if (target === this._document) {
|
|
225
|
-
const viewportScrollPosition = this.
|
|
224
|
+
const viewportScrollPosition = this.getViewportScrollPosition();
|
|
226
225
|
newTop = viewportScrollPosition.top;
|
|
227
226
|
newLeft = viewportScrollPosition.left;
|
|
228
227
|
}
|
|
@@ -243,6 +242,15 @@ class ParentPositionTracker {
|
|
|
243
242
|
scrollPosition.left = newLeft;
|
|
244
243
|
return { top: topDifference, left: leftDifference };
|
|
245
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Gets the scroll position of the viewport. Note that we use the scrollX and scrollY directly,
|
|
247
|
+
* instead of going through the `ViewportRuler`, because the first value the ruler looks at is
|
|
248
|
+
* the top/left offset of the `document.documentElement` which works for most cases, but breaks
|
|
249
|
+
* if the element is offset by something like the `BlockScrollStrategy`.
|
|
250
|
+
*/
|
|
251
|
+
getViewportScrollPosition() {
|
|
252
|
+
return { top: window.scrollY, left: window.scrollX };
|
|
253
|
+
}
|
|
246
254
|
}
|
|
247
255
|
|
|
248
256
|
/**
|
|
@@ -449,14 +457,6 @@ class DragRef {
|
|
|
449
457
|
}
|
|
450
458
|
return;
|
|
451
459
|
}
|
|
452
|
-
// We only need the preview dimensions if we have a boundary element.
|
|
453
|
-
if (this._boundaryElement) {
|
|
454
|
-
// Cache the preview element rect if we haven't cached it already or if
|
|
455
|
-
// we cached it too early before the element dimensions were computed.
|
|
456
|
-
if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {
|
|
457
|
-
this._previewRect = (this._preview || this._rootElement).getBoundingClientRect();
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
460
|
// We prevent the default action down here so that we know that dragging has started. This is
|
|
461
461
|
// important for touch devices where doing this too early can unnecessarily block scrolling,
|
|
462
462
|
// if there's a dragging delay.
|
|
@@ -496,7 +496,7 @@ class DragRef {
|
|
|
496
496
|
this._endDragSequence(event);
|
|
497
497
|
};
|
|
498
498
|
this.withRootElement(element).withParent(_config.parentDragRef || null);
|
|
499
|
-
this._parentPositions = new ParentPositionTracker(_document
|
|
499
|
+
this._parentPositions = new ParentPositionTracker(_document);
|
|
500
500
|
_dragDropRegistry.registerDragItem(this);
|
|
501
501
|
}
|
|
502
502
|
/** Whether starting to drag this element is disabled. */
|
|
@@ -577,6 +577,9 @@ class DragRef {
|
|
|
577
577
|
this._ngZone.runOutsideAngular(() => {
|
|
578
578
|
element.addEventListener('mousedown', this._pointerDown, activeEventListenerOptions);
|
|
579
579
|
element.addEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);
|
|
580
|
+
// Usually this isn't necessary since the we prevent the default action in `pointerDown`,
|
|
581
|
+
// but some cases like dragging of links can slip through (see #24403).
|
|
582
|
+
element.addEventListener('dragstart', preventDefault, activeEventListenerOptions);
|
|
580
583
|
});
|
|
581
584
|
this._initialTransform = undefined;
|
|
582
585
|
this._rootElement = element;
|
|
@@ -758,7 +761,7 @@ class DragRef {
|
|
|
758
761
|
if (!this._hasStartedDragging) {
|
|
759
762
|
return;
|
|
760
763
|
}
|
|
761
|
-
this.released.next({ source: this });
|
|
764
|
+
this.released.next({ source: this, event });
|
|
762
765
|
if (this._dropContainer) {
|
|
763
766
|
// Stop scrolling immediately, instead of waiting for the animation to finish.
|
|
764
767
|
this._dropContainer._stopScrolling();
|
|
@@ -780,6 +783,7 @@ class DragRef {
|
|
|
780
783
|
source: this,
|
|
781
784
|
distance: this._getDragDistance(pointerPosition),
|
|
782
785
|
dropPoint: pointerPosition,
|
|
786
|
+
event,
|
|
783
787
|
});
|
|
784
788
|
});
|
|
785
789
|
this._cleanupCachedDimensions();
|
|
@@ -814,13 +818,13 @@ class DragRef {
|
|
|
814
818
|
toggleVisibility(element, false, dragImportantProperties);
|
|
815
819
|
this._document.body.appendChild(parent.replaceChild(placeholder, element));
|
|
816
820
|
this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
|
|
817
|
-
this.started.next({ source: this }); // Emit before notifying the container.
|
|
821
|
+
this.started.next({ source: this, event }); // Emit before notifying the container.
|
|
818
822
|
dropContainer.start();
|
|
819
823
|
this._initialContainer = dropContainer;
|
|
820
824
|
this._initialIndex = dropContainer.getItemIndex(this);
|
|
821
825
|
}
|
|
822
826
|
else {
|
|
823
|
-
this.started.next({ source: this });
|
|
827
|
+
this.started.next({ source: this, event });
|
|
824
828
|
this._initialContainer = this._initialIndex = undefined;
|
|
825
829
|
}
|
|
826
830
|
// Important to run after we've called `start` on the parent container
|
|
@@ -917,7 +921,7 @@ class DragRef {
|
|
|
917
921
|
const pointerPosition = this._getPointerPositionOnPage(event);
|
|
918
922
|
const distance = this._getDragDistance(pointerPosition);
|
|
919
923
|
const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
|
|
920
|
-
this.ended.next({ source: this, distance, dropPoint: pointerPosition });
|
|
924
|
+
this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
|
|
921
925
|
this.dropped.next({
|
|
922
926
|
item: this,
|
|
923
927
|
currentIndex,
|
|
@@ -927,6 +931,7 @@ class DragRef {
|
|
|
927
931
|
isPointerOverContainer,
|
|
928
932
|
distance,
|
|
929
933
|
dropPoint: pointerPosition,
|
|
934
|
+
event,
|
|
930
935
|
});
|
|
931
936
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
932
937
|
this._dropContainer = this._initialContainer;
|
|
@@ -1085,6 +1090,9 @@ class DragRef {
|
|
|
1085
1090
|
else {
|
|
1086
1091
|
placeholder = deepCloneNode(this._rootElement);
|
|
1087
1092
|
}
|
|
1093
|
+
// Stop pointer events on the preview so the user can't
|
|
1094
|
+
// interact with it while the preview is animating.
|
|
1095
|
+
placeholder.style.pointerEvents = 'none';
|
|
1088
1096
|
placeholder.classList.add('cdk-drag-placeholder');
|
|
1089
1097
|
return placeholder;
|
|
1090
1098
|
}
|
|
@@ -1147,11 +1155,11 @@ class DragRef {
|
|
|
1147
1155
|
if (this._boundaryRect) {
|
|
1148
1156
|
const { x: pickupX, y: pickupY } = this._pickupPositionInElement;
|
|
1149
1157
|
const boundaryRect = this._boundaryRect;
|
|
1150
|
-
const
|
|
1158
|
+
const { width: previewWidth, height: previewHeight } = this._getPreviewRect();
|
|
1151
1159
|
const minY = boundaryRect.top + pickupY;
|
|
1152
|
-
const maxY = boundaryRect.bottom - (
|
|
1160
|
+
const maxY = boundaryRect.bottom - (previewHeight - pickupY);
|
|
1153
1161
|
const minX = boundaryRect.left + pickupX;
|
|
1154
|
-
const maxX = boundaryRect.right - (
|
|
1162
|
+
const maxX = boundaryRect.right - (previewWidth - pickupX);
|
|
1155
1163
|
x = clamp$1(x, minX, maxX);
|
|
1156
1164
|
y = clamp$1(y, minY, maxY);
|
|
1157
1165
|
}
|
|
@@ -1194,6 +1202,7 @@ class DragRef {
|
|
|
1194
1202
|
_removeRootElementListeners(element) {
|
|
1195
1203
|
element.removeEventListener('mousedown', this._pointerDown, activeEventListenerOptions);
|
|
1196
1204
|
element.removeEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);
|
|
1205
|
+
element.removeEventListener('dragstart', preventDefault, activeEventListenerOptions);
|
|
1197
1206
|
}
|
|
1198
1207
|
/**
|
|
1199
1208
|
* Applies a `transform` to the root element, taking into account any existing transforms on it.
|
|
@@ -1331,10 +1340,9 @@ class DragRef {
|
|
|
1331
1340
|
}
|
|
1332
1341
|
/** Gets the scroll position of the viewport. */
|
|
1333
1342
|
_getViewportScrollPosition() {
|
|
1334
|
-
|
|
1335
|
-
return
|
|
1336
|
-
|
|
1337
|
-
: this._viewportRuler.getViewportScrollPosition();
|
|
1343
|
+
var _a;
|
|
1344
|
+
return (((_a = this._parentPositions.positions.get(this._document)) === null || _a === void 0 ? void 0 : _a.scrollPosition) ||
|
|
1345
|
+
this._parentPositions.getViewportScrollPosition());
|
|
1338
1346
|
}
|
|
1339
1347
|
/**
|
|
1340
1348
|
* Lazily resolves and returns the shadow root of the element. We do this in a function, rather
|
|
@@ -1368,6 +1376,15 @@ class DragRef {
|
|
|
1368
1376
|
}
|
|
1369
1377
|
return coerceElement(previewContainer);
|
|
1370
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
|
+
}
|
|
1371
1388
|
}
|
|
1372
1389
|
/**
|
|
1373
1390
|
* Gets a 3d `transform` that can be applied to an element.
|
|
@@ -1413,6 +1430,10 @@ function matchElementSize(target, sourceRect) {
|
|
|
1413
1430
|
target.style.height = `${sourceRect.height}px`;
|
|
1414
1431
|
target.style.transform = getTransform(sourceRect.left, sourceRect.top);
|
|
1415
1432
|
}
|
|
1433
|
+
/** Utility to prevent the default action of an event. */
|
|
1434
|
+
function preventDefault(event) {
|
|
1435
|
+
event.preventDefault();
|
|
1436
|
+
}
|
|
1416
1437
|
|
|
1417
1438
|
/**
|
|
1418
1439
|
* @license
|
|
@@ -1588,7 +1609,7 @@ class DropListRef {
|
|
|
1588
1609
|
this._document = _document;
|
|
1589
1610
|
this.withScrollableParents([this.element]);
|
|
1590
1611
|
_dragDropRegistry.registerDropContainer(this);
|
|
1591
|
-
this._parentPositions = new ParentPositionTracker(_document
|
|
1612
|
+
this._parentPositions = new ParentPositionTracker(_document);
|
|
1592
1613
|
}
|
|
1593
1614
|
/** Removes the drop list functionality from the DOM element. */
|
|
1594
1615
|
dispose() {
|
|
@@ -1698,8 +1719,11 @@ class DropListRef {
|
|
|
1698
1719
|
* @param isPointerOverContainer Whether the user's pointer was over the
|
|
1699
1720
|
* container when the item was dropped.
|
|
1700
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.
|
|
1701
1725
|
*/
|
|
1702
|
-
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
|
|
1726
|
+
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
|
|
1703
1727
|
this._reset();
|
|
1704
1728
|
this.dropped.next({
|
|
1705
1729
|
item,
|
|
@@ -1710,6 +1734,7 @@ class DropListRef {
|
|
|
1710
1734
|
isPointerOverContainer,
|
|
1711
1735
|
distance,
|
|
1712
1736
|
dropPoint,
|
|
1737
|
+
event,
|
|
1713
1738
|
});
|
|
1714
1739
|
}
|
|
1715
1740
|
/**
|
|
@@ -2515,9 +2540,9 @@ class DragDropRegistry {
|
|
|
2515
2540
|
this._globalListeners.clear();
|
|
2516
2541
|
}
|
|
2517
2542
|
}
|
|
2518
|
-
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2519
|
-
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
2521
2546
|
type: Injectable,
|
|
2522
2547
|
args: [{ providedIn: 'root' }]
|
|
2523
2548
|
}], ctorParameters: function () {
|
|
@@ -2565,9 +2590,9 @@ class DragDrop {
|
|
|
2565
2590
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2566
2591
|
}
|
|
2567
2592
|
}
|
|
2568
|
-
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2569
|
-
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
2571
2596
|
type: Injectable,
|
|
2572
2597
|
args: [{ providedIn: 'root' }]
|
|
2573
2598
|
}], ctorParameters: function () {
|
|
@@ -2628,9 +2653,9 @@ class CdkDropListGroup {
|
|
|
2628
2653
|
this._items.clear();
|
|
2629
2654
|
}
|
|
2630
2655
|
}
|
|
2631
|
-
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2632
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
2634
2659
|
type: Directive,
|
|
2635
2660
|
args: [{
|
|
2636
2661
|
selector: '[cdkDropListGroup]',
|
|
@@ -2884,16 +2909,17 @@ class CdkDropList {
|
|
|
2884
2909
|
item: event.item.data,
|
|
2885
2910
|
});
|
|
2886
2911
|
});
|
|
2887
|
-
ref.dropped.subscribe(
|
|
2912
|
+
ref.dropped.subscribe(dropEvent => {
|
|
2888
2913
|
this.dropped.emit({
|
|
2889
|
-
previousIndex:
|
|
2890
|
-
currentIndex:
|
|
2891
|
-
previousContainer:
|
|
2892
|
-
container:
|
|
2893
|
-
item:
|
|
2894
|
-
isPointerOverContainer:
|
|
2895
|
-
distance:
|
|
2896
|
-
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,
|
|
2897
2923
|
});
|
|
2898
2924
|
// Mark for check since all of these events run outside of change
|
|
2899
2925
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2918,13 +2944,13 @@ class CdkDropList {
|
|
|
2918
2944
|
}
|
|
2919
2945
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2920
2946
|
CdkDropList._dropLists = [];
|
|
2921
|
-
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2922
|
-
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
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: [
|
|
2923
2949
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
2924
2950
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2925
2951
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2926
2952
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2928
2954
|
type: Directive,
|
|
2929
2955
|
args: [{
|
|
2930
2956
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3041,9 +3067,9 @@ class CdkDragHandle {
|
|
|
3041
3067
|
this._stateChanges.complete();
|
|
3042
3068
|
}
|
|
3043
3069
|
}
|
|
3044
|
-
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3045
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3047
3073
|
type: Directive,
|
|
3048
3074
|
args: [{
|
|
3049
3075
|
selector: '[cdkDragHandle]',
|
|
@@ -3088,9 +3114,9 @@ class CdkDragPlaceholder {
|
|
|
3088
3114
|
this.templateRef = templateRef;
|
|
3089
3115
|
}
|
|
3090
3116
|
}
|
|
3091
|
-
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3092
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3094
3120
|
type: Directive,
|
|
3095
3121
|
args: [{
|
|
3096
3122
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -3130,9 +3156,9 @@ class CdkDragPreview {
|
|
|
3130
3156
|
this._matchSize = coerceBooleanProperty(value);
|
|
3131
3157
|
}
|
|
3132
3158
|
}
|
|
3133
|
-
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3134
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3136
3162
|
type: Directive,
|
|
3137
3163
|
args: [{
|
|
3138
3164
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3390,48 +3416,50 @@ class CdkDrag {
|
|
|
3390
3416
|
}
|
|
3391
3417
|
/** Handles the events from the underlying `DragRef`. */
|
|
3392
3418
|
_handleEvents(ref) {
|
|
3393
|
-
ref.started.subscribe(
|
|
3394
|
-
this.started.emit({ source: this });
|
|
3419
|
+
ref.started.subscribe(startEvent => {
|
|
3420
|
+
this.started.emit({ source: this, event: startEvent.event });
|
|
3395
3421
|
// Since all of these events run outside of change detection,
|
|
3396
3422
|
// we need to ensure that everything is marked correctly.
|
|
3397
3423
|
this._changeDetectorRef.markForCheck();
|
|
3398
3424
|
});
|
|
3399
|
-
ref.released.subscribe(
|
|
3400
|
-
this.released.emit({ source: this });
|
|
3425
|
+
ref.released.subscribe(releaseEvent => {
|
|
3426
|
+
this.released.emit({ source: this, event: releaseEvent.event });
|
|
3401
3427
|
});
|
|
3402
|
-
ref.ended.subscribe(
|
|
3428
|
+
ref.ended.subscribe(endEvent => {
|
|
3403
3429
|
this.ended.emit({
|
|
3404
3430
|
source: this,
|
|
3405
|
-
distance:
|
|
3406
|
-
dropPoint:
|
|
3431
|
+
distance: endEvent.distance,
|
|
3432
|
+
dropPoint: endEvent.dropPoint,
|
|
3433
|
+
event: endEvent.event,
|
|
3407
3434
|
});
|
|
3408
3435
|
// Since all of these events run outside of change detection,
|
|
3409
3436
|
// we need to ensure that everything is marked correctly.
|
|
3410
3437
|
this._changeDetectorRef.markForCheck();
|
|
3411
3438
|
});
|
|
3412
|
-
ref.entered.subscribe(
|
|
3439
|
+
ref.entered.subscribe(enterEvent => {
|
|
3413
3440
|
this.entered.emit({
|
|
3414
|
-
container:
|
|
3441
|
+
container: enterEvent.container.data,
|
|
3415
3442
|
item: this,
|
|
3416
|
-
currentIndex:
|
|
3443
|
+
currentIndex: enterEvent.currentIndex,
|
|
3417
3444
|
});
|
|
3418
3445
|
});
|
|
3419
|
-
ref.exited.subscribe(
|
|
3446
|
+
ref.exited.subscribe(exitEvent => {
|
|
3420
3447
|
this.exited.emit({
|
|
3421
|
-
container:
|
|
3448
|
+
container: exitEvent.container.data,
|
|
3422
3449
|
item: this,
|
|
3423
3450
|
});
|
|
3424
3451
|
});
|
|
3425
|
-
ref.dropped.subscribe(
|
|
3452
|
+
ref.dropped.subscribe(dropEvent => {
|
|
3426
3453
|
this.dropped.emit({
|
|
3427
|
-
previousIndex:
|
|
3428
|
-
currentIndex:
|
|
3429
|
-
previousContainer:
|
|
3430
|
-
container:
|
|
3431
|
-
isPointerOverContainer:
|
|
3454
|
+
previousIndex: dropEvent.previousIndex,
|
|
3455
|
+
currentIndex: dropEvent.currentIndex,
|
|
3456
|
+
previousContainer: dropEvent.previousContainer.data,
|
|
3457
|
+
container: dropEvent.container.data,
|
|
3458
|
+
isPointerOverContainer: dropEvent.isPointerOverContainer,
|
|
3432
3459
|
item: this,
|
|
3433
|
-
distance:
|
|
3434
|
-
dropPoint:
|
|
3460
|
+
distance: dropEvent.distance,
|
|
3461
|
+
dropPoint: dropEvent.dropPoint,
|
|
3462
|
+
event: dropEvent.event,
|
|
3435
3463
|
});
|
|
3436
3464
|
});
|
|
3437
3465
|
}
|
|
@@ -3492,9 +3520,9 @@ class CdkDrag {
|
|
|
3492
3520
|
}
|
|
3493
3521
|
}
|
|
3494
3522
|
CdkDrag._dragInstances = [];
|
|
3495
|
-
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3496
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3498
3526
|
type: Directive,
|
|
3499
3527
|
args: [{
|
|
3500
3528
|
selector: '[cdkDrag]',
|
|
@@ -3610,8 +3638,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
3610
3638
|
*/
|
|
3611
3639
|
class DragDropModule {
|
|
3612
3640
|
}
|
|
3613
|
-
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3614
|
-
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
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,
|
|
3615
3643
|
CdkDropListGroup,
|
|
3616
3644
|
CdkDrag,
|
|
3617
3645
|
CdkDragHandle,
|
|
@@ -3623,8 +3651,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
3623
3651
|
CdkDragHandle,
|
|
3624
3652
|
CdkDragPreview,
|
|
3625
3653
|
CdkDragPlaceholder] });
|
|
3626
|
-
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3628
3656
|
type: NgModule,
|
|
3629
3657
|
args: [{
|
|
3630
3658
|
declarations: [
|