@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/fesm2020/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;
|
|
@@ -755,7 +758,7 @@ class DragRef {
|
|
|
755
758
|
if (!this._hasStartedDragging) {
|
|
756
759
|
return;
|
|
757
760
|
}
|
|
758
|
-
this.released.next({ source: this });
|
|
761
|
+
this.released.next({ source: this, event });
|
|
759
762
|
if (this._dropContainer) {
|
|
760
763
|
// Stop scrolling immediately, instead of waiting for the animation to finish.
|
|
761
764
|
this._dropContainer._stopScrolling();
|
|
@@ -777,6 +780,7 @@ class DragRef {
|
|
|
777
780
|
source: this,
|
|
778
781
|
distance: this._getDragDistance(pointerPosition),
|
|
779
782
|
dropPoint: pointerPosition,
|
|
783
|
+
event,
|
|
780
784
|
});
|
|
781
785
|
});
|
|
782
786
|
this._cleanupCachedDimensions();
|
|
@@ -811,13 +815,13 @@ class DragRef {
|
|
|
811
815
|
toggleVisibility(element, false, dragImportantProperties);
|
|
812
816
|
this._document.body.appendChild(parent.replaceChild(placeholder, element));
|
|
813
817
|
this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
|
|
814
|
-
this.started.next({ source: this }); // Emit before notifying the container.
|
|
818
|
+
this.started.next({ source: this, event }); // Emit before notifying the container.
|
|
815
819
|
dropContainer.start();
|
|
816
820
|
this._initialContainer = dropContainer;
|
|
817
821
|
this._initialIndex = dropContainer.getItemIndex(this);
|
|
818
822
|
}
|
|
819
823
|
else {
|
|
820
|
-
this.started.next({ source: this });
|
|
824
|
+
this.started.next({ source: this, event });
|
|
821
825
|
this._initialContainer = this._initialIndex = undefined;
|
|
822
826
|
}
|
|
823
827
|
// Important to run after we've called `start` on the parent container
|
|
@@ -914,7 +918,7 @@ class DragRef {
|
|
|
914
918
|
const pointerPosition = this._getPointerPositionOnPage(event);
|
|
915
919
|
const distance = this._getDragDistance(pointerPosition);
|
|
916
920
|
const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
|
|
917
|
-
this.ended.next({ source: this, distance, dropPoint: pointerPosition });
|
|
921
|
+
this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
|
|
918
922
|
this.dropped.next({
|
|
919
923
|
item: this,
|
|
920
924
|
currentIndex,
|
|
@@ -924,6 +928,7 @@ class DragRef {
|
|
|
924
928
|
isPointerOverContainer,
|
|
925
929
|
distance,
|
|
926
930
|
dropPoint: pointerPosition,
|
|
931
|
+
event,
|
|
927
932
|
});
|
|
928
933
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
929
934
|
this._dropContainer = this._initialContainer;
|
|
@@ -1081,6 +1086,9 @@ class DragRef {
|
|
|
1081
1086
|
else {
|
|
1082
1087
|
placeholder = deepCloneNode(this._rootElement);
|
|
1083
1088
|
}
|
|
1089
|
+
// Stop pointer events on the preview so the user can't
|
|
1090
|
+
// interact with it while the preview is animating.
|
|
1091
|
+
placeholder.style.pointerEvents = 'none';
|
|
1084
1092
|
placeholder.classList.add('cdk-drag-placeholder');
|
|
1085
1093
|
return placeholder;
|
|
1086
1094
|
}
|
|
@@ -1143,11 +1151,11 @@ class DragRef {
|
|
|
1143
1151
|
if (this._boundaryRect) {
|
|
1144
1152
|
const { x: pickupX, y: pickupY } = this._pickupPositionInElement;
|
|
1145
1153
|
const boundaryRect = this._boundaryRect;
|
|
1146
|
-
const
|
|
1154
|
+
const { width: previewWidth, height: previewHeight } = this._getPreviewRect();
|
|
1147
1155
|
const minY = boundaryRect.top + pickupY;
|
|
1148
|
-
const maxY = boundaryRect.bottom - (
|
|
1156
|
+
const maxY = boundaryRect.bottom - (previewHeight - pickupY);
|
|
1149
1157
|
const minX = boundaryRect.left + pickupX;
|
|
1150
|
-
const maxX = boundaryRect.right - (
|
|
1158
|
+
const maxX = boundaryRect.right - (previewWidth - pickupX);
|
|
1151
1159
|
x = clamp$1(x, minX, maxX);
|
|
1152
1160
|
y = clamp$1(y, minY, maxY);
|
|
1153
1161
|
}
|
|
@@ -1190,6 +1198,7 @@ class DragRef {
|
|
|
1190
1198
|
_removeRootElementListeners(element) {
|
|
1191
1199
|
element.removeEventListener('mousedown', this._pointerDown, activeEventListenerOptions);
|
|
1192
1200
|
element.removeEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);
|
|
1201
|
+
element.removeEventListener('dragstart', preventDefault, activeEventListenerOptions);
|
|
1193
1202
|
}
|
|
1194
1203
|
/**
|
|
1195
1204
|
* Applies a `transform` to the root element, taking into account any existing transforms on it.
|
|
@@ -1326,10 +1335,8 @@ class DragRef {
|
|
|
1326
1335
|
}
|
|
1327
1336
|
/** Gets the scroll position of the viewport. */
|
|
1328
1337
|
_getViewportScrollPosition() {
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
? cachedPosition.scrollPosition
|
|
1332
|
-
: this._viewportRuler.getViewportScrollPosition();
|
|
1338
|
+
return (this._parentPositions.positions.get(this._document)?.scrollPosition ||
|
|
1339
|
+
this._parentPositions.getViewportScrollPosition());
|
|
1333
1340
|
}
|
|
1334
1341
|
/**
|
|
1335
1342
|
* Lazily resolves and returns the shadow root of the element. We do this in a function, rather
|
|
@@ -1363,6 +1370,15 @@ class DragRef {
|
|
|
1363
1370
|
}
|
|
1364
1371
|
return coerceElement(previewContainer);
|
|
1365
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
|
+
}
|
|
1366
1382
|
}
|
|
1367
1383
|
/**
|
|
1368
1384
|
* Gets a 3d `transform` that can be applied to an element.
|
|
@@ -1408,6 +1424,10 @@ function matchElementSize(target, sourceRect) {
|
|
|
1408
1424
|
target.style.height = `${sourceRect.height}px`;
|
|
1409
1425
|
target.style.transform = getTransform(sourceRect.left, sourceRect.top);
|
|
1410
1426
|
}
|
|
1427
|
+
/** Utility to prevent the default action of an event. */
|
|
1428
|
+
function preventDefault(event) {
|
|
1429
|
+
event.preventDefault();
|
|
1430
|
+
}
|
|
1411
1431
|
|
|
1412
1432
|
/**
|
|
1413
1433
|
* @license
|
|
@@ -1583,7 +1603,7 @@ class DropListRef {
|
|
|
1583
1603
|
this._document = _document;
|
|
1584
1604
|
this.withScrollableParents([this.element]);
|
|
1585
1605
|
_dragDropRegistry.registerDropContainer(this);
|
|
1586
|
-
this._parentPositions = new ParentPositionTracker(_document
|
|
1606
|
+
this._parentPositions = new ParentPositionTracker(_document);
|
|
1587
1607
|
}
|
|
1588
1608
|
/** Removes the drop list functionality from the DOM element. */
|
|
1589
1609
|
dispose() {
|
|
@@ -1693,8 +1713,11 @@ class DropListRef {
|
|
|
1693
1713
|
* @param isPointerOverContainer Whether the user's pointer was over the
|
|
1694
1714
|
* container when the item was dropped.
|
|
1695
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.
|
|
1696
1719
|
*/
|
|
1697
|
-
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
|
|
1720
|
+
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
|
|
1698
1721
|
this._reset();
|
|
1699
1722
|
this.dropped.next({
|
|
1700
1723
|
item,
|
|
@@ -1705,6 +1728,7 @@ class DropListRef {
|
|
|
1705
1728
|
isPointerOverContainer,
|
|
1706
1729
|
distance,
|
|
1707
1730
|
dropPoint,
|
|
1731
|
+
event,
|
|
1708
1732
|
});
|
|
1709
1733
|
}
|
|
1710
1734
|
/**
|
|
@@ -2509,9 +2533,9 @@ class DragDropRegistry {
|
|
|
2509
2533
|
this._globalListeners.clear();
|
|
2510
2534
|
}
|
|
2511
2535
|
}
|
|
2512
|
-
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2513
|
-
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
2515
2539
|
type: Injectable,
|
|
2516
2540
|
args: [{ providedIn: 'root' }]
|
|
2517
2541
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -2557,9 +2581,9 @@ class DragDrop {
|
|
|
2557
2581
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2558
2582
|
}
|
|
2559
2583
|
}
|
|
2560
|
-
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2561
|
-
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
2563
2587
|
type: Injectable,
|
|
2564
2588
|
args: [{ providedIn: 'root' }]
|
|
2565
2589
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2626,9 +2650,9 @@ class CdkDropListGroup {
|
|
|
2626
2650
|
this._items.clear();
|
|
2627
2651
|
}
|
|
2628
2652
|
}
|
|
2629
|
-
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2630
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
2632
2656
|
type: Directive,
|
|
2633
2657
|
args: [{
|
|
2634
2658
|
selector: '[cdkDropListGroup]',
|
|
@@ -2882,16 +2906,17 @@ class CdkDropList {
|
|
|
2882
2906
|
item: event.item.data,
|
|
2883
2907
|
});
|
|
2884
2908
|
});
|
|
2885
|
-
ref.dropped.subscribe(
|
|
2909
|
+
ref.dropped.subscribe(dropEvent => {
|
|
2886
2910
|
this.dropped.emit({
|
|
2887
|
-
previousIndex:
|
|
2888
|
-
currentIndex:
|
|
2889
|
-
previousContainer:
|
|
2890
|
-
container:
|
|
2891
|
-
item:
|
|
2892
|
-
isPointerOverContainer:
|
|
2893
|
-
distance:
|
|
2894
|
-
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,
|
|
2895
2920
|
});
|
|
2896
2921
|
// Mark for check since all of these events run outside of change
|
|
2897
2922
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2916,13 +2941,13 @@ class CdkDropList {
|
|
|
2916
2941
|
}
|
|
2917
2942
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2918
2943
|
CdkDropList._dropLists = [];
|
|
2919
|
-
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2920
|
-
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
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: [
|
|
2921
2946
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
2922
2947
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2923
2948
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2924
2949
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2926
2951
|
type: Directive,
|
|
2927
2952
|
args: [{
|
|
2928
2953
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3037,9 +3062,9 @@ class CdkDragHandle {
|
|
|
3037
3062
|
this._stateChanges.complete();
|
|
3038
3063
|
}
|
|
3039
3064
|
}
|
|
3040
|
-
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3041
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3043
3068
|
type: Directive,
|
|
3044
3069
|
args: [{
|
|
3045
3070
|
selector: '[cdkDragHandle]',
|
|
@@ -3082,9 +3107,9 @@ class CdkDragPlaceholder {
|
|
|
3082
3107
|
this.templateRef = templateRef;
|
|
3083
3108
|
}
|
|
3084
3109
|
}
|
|
3085
|
-
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3086
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3088
3113
|
type: Directive,
|
|
3089
3114
|
args: [{
|
|
3090
3115
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -3124,9 +3149,9 @@ class CdkDragPreview {
|
|
|
3124
3149
|
this._matchSize = coerceBooleanProperty(value);
|
|
3125
3150
|
}
|
|
3126
3151
|
}
|
|
3127
|
-
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3128
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3130
3155
|
type: Directive,
|
|
3131
3156
|
args: [{
|
|
3132
3157
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3389,48 +3414,50 @@ class CdkDrag {
|
|
|
3389
3414
|
}
|
|
3390
3415
|
/** Handles the events from the underlying `DragRef`. */
|
|
3391
3416
|
_handleEvents(ref) {
|
|
3392
|
-
ref.started.subscribe(
|
|
3393
|
-
this.started.emit({ source: this });
|
|
3417
|
+
ref.started.subscribe(startEvent => {
|
|
3418
|
+
this.started.emit({ source: this, event: startEvent.event });
|
|
3394
3419
|
// Since all of these events run outside of change detection,
|
|
3395
3420
|
// we need to ensure that everything is marked correctly.
|
|
3396
3421
|
this._changeDetectorRef.markForCheck();
|
|
3397
3422
|
});
|
|
3398
|
-
ref.released.subscribe(
|
|
3399
|
-
this.released.emit({ source: this });
|
|
3423
|
+
ref.released.subscribe(releaseEvent => {
|
|
3424
|
+
this.released.emit({ source: this, event: releaseEvent.event });
|
|
3400
3425
|
});
|
|
3401
|
-
ref.ended.subscribe(
|
|
3426
|
+
ref.ended.subscribe(endEvent => {
|
|
3402
3427
|
this.ended.emit({
|
|
3403
3428
|
source: this,
|
|
3404
|
-
distance:
|
|
3405
|
-
dropPoint:
|
|
3429
|
+
distance: endEvent.distance,
|
|
3430
|
+
dropPoint: endEvent.dropPoint,
|
|
3431
|
+
event: endEvent.event,
|
|
3406
3432
|
});
|
|
3407
3433
|
// Since all of these events run outside of change detection,
|
|
3408
3434
|
// we need to ensure that everything is marked correctly.
|
|
3409
3435
|
this._changeDetectorRef.markForCheck();
|
|
3410
3436
|
});
|
|
3411
|
-
ref.entered.subscribe(
|
|
3437
|
+
ref.entered.subscribe(enterEvent => {
|
|
3412
3438
|
this.entered.emit({
|
|
3413
|
-
container:
|
|
3439
|
+
container: enterEvent.container.data,
|
|
3414
3440
|
item: this,
|
|
3415
|
-
currentIndex:
|
|
3441
|
+
currentIndex: enterEvent.currentIndex,
|
|
3416
3442
|
});
|
|
3417
3443
|
});
|
|
3418
|
-
ref.exited.subscribe(
|
|
3444
|
+
ref.exited.subscribe(exitEvent => {
|
|
3419
3445
|
this.exited.emit({
|
|
3420
|
-
container:
|
|
3446
|
+
container: exitEvent.container.data,
|
|
3421
3447
|
item: this,
|
|
3422
3448
|
});
|
|
3423
3449
|
});
|
|
3424
|
-
ref.dropped.subscribe(
|
|
3450
|
+
ref.dropped.subscribe(dropEvent => {
|
|
3425
3451
|
this.dropped.emit({
|
|
3426
|
-
previousIndex:
|
|
3427
|
-
currentIndex:
|
|
3428
|
-
previousContainer:
|
|
3429
|
-
container:
|
|
3430
|
-
isPointerOverContainer:
|
|
3452
|
+
previousIndex: dropEvent.previousIndex,
|
|
3453
|
+
currentIndex: dropEvent.currentIndex,
|
|
3454
|
+
previousContainer: dropEvent.previousContainer.data,
|
|
3455
|
+
container: dropEvent.container.data,
|
|
3456
|
+
isPointerOverContainer: dropEvent.isPointerOverContainer,
|
|
3431
3457
|
item: this,
|
|
3432
|
-
distance:
|
|
3433
|
-
dropPoint:
|
|
3458
|
+
distance: dropEvent.distance,
|
|
3459
|
+
dropPoint: dropEvent.dropPoint,
|
|
3460
|
+
event: dropEvent.event,
|
|
3434
3461
|
});
|
|
3435
3462
|
});
|
|
3436
3463
|
}
|
|
@@ -3491,9 +3518,9 @@ class CdkDrag {
|
|
|
3491
3518
|
}
|
|
3492
3519
|
}
|
|
3493
3520
|
CdkDrag._dragInstances = [];
|
|
3494
|
-
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3495
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3497
3524
|
type: Directive,
|
|
3498
3525
|
args: [{
|
|
3499
3526
|
selector: '[cdkDrag]',
|
|
@@ -3607,8 +3634,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
3607
3634
|
*/
|
|
3608
3635
|
class DragDropModule {
|
|
3609
3636
|
}
|
|
3610
|
-
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3611
|
-
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
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,
|
|
3612
3639
|
CdkDropListGroup,
|
|
3613
3640
|
CdkDrag,
|
|
3614
3641
|
CdkDragHandle,
|
|
@@ -3620,8 +3647,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
3620
3647
|
CdkDragHandle,
|
|
3621
3648
|
CdkDragPreview,
|
|
3622
3649
|
CdkDragPlaceholder] });
|
|
3623
|
-
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
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: [{
|
|
3625
3652
|
type: NgModule,
|
|
3626
3653
|
args: [{
|
|
3627
3654
|
declarations: [
|