@angular/cdk 14.0.0-next.4 → 14.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/esm2020/a11y/a11y-module.mjs +5 -5
- 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 +4 -4
- 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 +19 -16
- package/esm2020/drag-drop/drop-list-ref.mjs +6 -2
- 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 +9 -9
- 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 +7 -7
- 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 -5
- 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 +44 -41
- 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 +83 -73
- 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 +26 -26
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/stepper.mjs +22 -22
- 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 +13 -13
- 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 +44 -41
- 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 +83 -73
- 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 +26 -26
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/stepper.mjs +22 -22
- 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 +13 -13
- 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/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/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/fesm2015/drag-drop.mjs
CHANGED
|
@@ -457,14 +457,6 @@ class DragRef {
|
|
|
457
457
|
}
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
// We only need the preview dimensions if we have a boundary element.
|
|
461
|
-
if (this._boundaryElement) {
|
|
462
|
-
// Cache the preview element rect if we haven't cached it already or if
|
|
463
|
-
// we cached it too early before the element dimensions were computed.
|
|
464
|
-
if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {
|
|
465
|
-
this._previewRect = (this._preview || this._rootElement).getBoundingClientRect();
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
460
|
// We prevent the default action down here so that we know that dragging has started. This is
|
|
469
461
|
// important for touch devices where doing this too early can unnecessarily block scrolling,
|
|
470
462
|
// if there's a dragging delay.
|
|
@@ -769,7 +761,7 @@ class DragRef {
|
|
|
769
761
|
if (!this._hasStartedDragging) {
|
|
770
762
|
return;
|
|
771
763
|
}
|
|
772
|
-
this.released.next({ source: this });
|
|
764
|
+
this.released.next({ source: this, event });
|
|
773
765
|
if (this._dropContainer) {
|
|
774
766
|
// Stop scrolling immediately, instead of waiting for the animation to finish.
|
|
775
767
|
this._dropContainer._stopScrolling();
|
|
@@ -791,6 +783,7 @@ class DragRef {
|
|
|
791
783
|
source: this,
|
|
792
784
|
distance: this._getDragDistance(pointerPosition),
|
|
793
785
|
dropPoint: pointerPosition,
|
|
786
|
+
event,
|
|
794
787
|
});
|
|
795
788
|
});
|
|
796
789
|
this._cleanupCachedDimensions();
|
|
@@ -825,13 +818,13 @@ class DragRef {
|
|
|
825
818
|
toggleVisibility(element, false, dragImportantProperties);
|
|
826
819
|
this._document.body.appendChild(parent.replaceChild(placeholder, element));
|
|
827
820
|
this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
|
|
828
|
-
this.started.next({ source: this }); // Emit before notifying the container.
|
|
821
|
+
this.started.next({ source: this, event }); // Emit before notifying the container.
|
|
829
822
|
dropContainer.start();
|
|
830
823
|
this._initialContainer = dropContainer;
|
|
831
824
|
this._initialIndex = dropContainer.getItemIndex(this);
|
|
832
825
|
}
|
|
833
826
|
else {
|
|
834
|
-
this.started.next({ source: this });
|
|
827
|
+
this.started.next({ source: this, event });
|
|
835
828
|
this._initialContainer = this._initialIndex = undefined;
|
|
836
829
|
}
|
|
837
830
|
// Important to run after we've called `start` on the parent container
|
|
@@ -928,7 +921,7 @@ class DragRef {
|
|
|
928
921
|
const pointerPosition = this._getPointerPositionOnPage(event);
|
|
929
922
|
const distance = this._getDragDistance(pointerPosition);
|
|
930
923
|
const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
|
|
931
|
-
this.ended.next({ source: this, distance, dropPoint: pointerPosition });
|
|
924
|
+
this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
|
|
932
925
|
this.dropped.next({
|
|
933
926
|
item: this,
|
|
934
927
|
currentIndex,
|
|
@@ -938,6 +931,7 @@ class DragRef {
|
|
|
938
931
|
isPointerOverContainer,
|
|
939
932
|
distance,
|
|
940
933
|
dropPoint: pointerPosition,
|
|
934
|
+
event,
|
|
941
935
|
});
|
|
942
936
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
943
937
|
this._dropContainer = this._initialContainer;
|
|
@@ -1161,11 +1155,11 @@ class DragRef {
|
|
|
1161
1155
|
if (this._boundaryRect) {
|
|
1162
1156
|
const { x: pickupX, y: pickupY } = this._pickupPositionInElement;
|
|
1163
1157
|
const boundaryRect = this._boundaryRect;
|
|
1164
|
-
const
|
|
1158
|
+
const { width: previewWidth, height: previewHeight } = this._getPreviewRect();
|
|
1165
1159
|
const minY = boundaryRect.top + pickupY;
|
|
1166
|
-
const maxY = boundaryRect.bottom - (
|
|
1160
|
+
const maxY = boundaryRect.bottom - (previewHeight - pickupY);
|
|
1167
1161
|
const minX = boundaryRect.left + pickupX;
|
|
1168
|
-
const maxX = boundaryRect.right - (
|
|
1162
|
+
const maxX = boundaryRect.right - (previewWidth - pickupX);
|
|
1169
1163
|
x = clamp$1(x, minX, maxX);
|
|
1170
1164
|
y = clamp$1(y, minY, maxY);
|
|
1171
1165
|
}
|
|
@@ -1382,6 +1376,15 @@ class DragRef {
|
|
|
1382
1376
|
}
|
|
1383
1377
|
return coerceElement(previewContainer);
|
|
1384
1378
|
}
|
|
1379
|
+
/** Lazily resolves and returns the dimensions of the preview. */
|
|
1380
|
+
_getPreviewRect() {
|
|
1381
|
+
// Cache the preview element rect if we haven't cached it already or if
|
|
1382
|
+
// we cached it too early before the element dimensions were computed.
|
|
1383
|
+
if (!this._previewRect || (!this._previewRect.width && !this._previewRect.height)) {
|
|
1384
|
+
this._previewRect = (this._preview || this._rootElement).getBoundingClientRect();
|
|
1385
|
+
}
|
|
1386
|
+
return this._previewRect;
|
|
1387
|
+
}
|
|
1385
1388
|
}
|
|
1386
1389
|
/**
|
|
1387
1390
|
* Gets a 3d `transform` that can be applied to an element.
|
|
@@ -1716,8 +1719,11 @@ class DropListRef {
|
|
|
1716
1719
|
* @param isPointerOverContainer Whether the user's pointer was over the
|
|
1717
1720
|
* container when the item was dropped.
|
|
1718
1721
|
* @param distance Distance the user has dragged since the start of the dragging sequence.
|
|
1722
|
+
* @param event Event that triggered the dropping sequence.
|
|
1723
|
+
*
|
|
1724
|
+
* @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
|
|
1719
1725
|
*/
|
|
1720
|
-
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
|
|
1726
|
+
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
|
|
1721
1727
|
this._reset();
|
|
1722
1728
|
this.dropped.next({
|
|
1723
1729
|
item,
|
|
@@ -1728,6 +1734,7 @@ class DropListRef {
|
|
|
1728
1734
|
isPointerOverContainer,
|
|
1729
1735
|
distance,
|
|
1730
1736
|
dropPoint,
|
|
1737
|
+
event,
|
|
1731
1738
|
});
|
|
1732
1739
|
}
|
|
1733
1740
|
/**
|
|
@@ -2533,9 +2540,9 @@ class DragDropRegistry {
|
|
|
2533
2540
|
this._globalListeners.clear();
|
|
2534
2541
|
}
|
|
2535
2542
|
}
|
|
2536
|
-
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2537
|
-
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2538
|
-
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: [{
|
|
2539
2546
|
type: Injectable,
|
|
2540
2547
|
args: [{ providedIn: 'root' }]
|
|
2541
2548
|
}], ctorParameters: function () {
|
|
@@ -2583,9 +2590,9 @@ class DragDrop {
|
|
|
2583
2590
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2584
2591
|
}
|
|
2585
2592
|
}
|
|
2586
|
-
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2587
|
-
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2588
|
-
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: [{
|
|
2589
2596
|
type: Injectable,
|
|
2590
2597
|
args: [{ providedIn: 'root' }]
|
|
2591
2598
|
}], ctorParameters: function () {
|
|
@@ -2646,9 +2653,9 @@ class CdkDropListGroup {
|
|
|
2646
2653
|
this._items.clear();
|
|
2647
2654
|
}
|
|
2648
2655
|
}
|
|
2649
|
-
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2650
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2651
|
-
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: [{
|
|
2652
2659
|
type: Directive,
|
|
2653
2660
|
args: [{
|
|
2654
2661
|
selector: '[cdkDropListGroup]',
|
|
@@ -2902,16 +2909,17 @@ class CdkDropList {
|
|
|
2902
2909
|
item: event.item.data,
|
|
2903
2910
|
});
|
|
2904
2911
|
});
|
|
2905
|
-
ref.dropped.subscribe(
|
|
2912
|
+
ref.dropped.subscribe(dropEvent => {
|
|
2906
2913
|
this.dropped.emit({
|
|
2907
|
-
previousIndex:
|
|
2908
|
-
currentIndex:
|
|
2909
|
-
previousContainer:
|
|
2910
|
-
container:
|
|
2911
|
-
item:
|
|
2912
|
-
isPointerOverContainer:
|
|
2913
|
-
distance:
|
|
2914
|
-
dropPoint:
|
|
2914
|
+
previousIndex: dropEvent.previousIndex,
|
|
2915
|
+
currentIndex: dropEvent.currentIndex,
|
|
2916
|
+
previousContainer: dropEvent.previousContainer.data,
|
|
2917
|
+
container: dropEvent.container.data,
|
|
2918
|
+
item: dropEvent.item.data,
|
|
2919
|
+
isPointerOverContainer: dropEvent.isPointerOverContainer,
|
|
2920
|
+
distance: dropEvent.distance,
|
|
2921
|
+
dropPoint: dropEvent.dropPoint,
|
|
2922
|
+
event: dropEvent.event,
|
|
2915
2923
|
});
|
|
2916
2924
|
// Mark for check since all of these events run outside of change
|
|
2917
2925
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2936,13 +2944,13 @@ class CdkDropList {
|
|
|
2936
2944
|
}
|
|
2937
2945
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2938
2946
|
CdkDropList._dropLists = [];
|
|
2939
|
-
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2940
|
-
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: [
|
|
2941
2949
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
2942
2950
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2943
2951
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2944
2952
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.4", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2946
2954
|
type: Directive,
|
|
2947
2955
|
args: [{
|
|
2948
2956
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3059,9 +3067,9 @@ class CdkDragHandle {
|
|
|
3059
3067
|
this._stateChanges.complete();
|
|
3060
3068
|
}
|
|
3061
3069
|
}
|
|
3062
|
-
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3063
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3064
|
-
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: [{
|
|
3065
3073
|
type: Directive,
|
|
3066
3074
|
args: [{
|
|
3067
3075
|
selector: '[cdkDragHandle]',
|
|
@@ -3106,9 +3114,9 @@ class CdkDragPlaceholder {
|
|
|
3106
3114
|
this.templateRef = templateRef;
|
|
3107
3115
|
}
|
|
3108
3116
|
}
|
|
3109
|
-
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3110
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3111
|
-
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: [{
|
|
3112
3120
|
type: Directive,
|
|
3113
3121
|
args: [{
|
|
3114
3122
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -3148,9 +3156,9 @@ class CdkDragPreview {
|
|
|
3148
3156
|
this._matchSize = coerceBooleanProperty(value);
|
|
3149
3157
|
}
|
|
3150
3158
|
}
|
|
3151
|
-
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3152
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3153
|
-
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: [{
|
|
3154
3162
|
type: Directive,
|
|
3155
3163
|
args: [{
|
|
3156
3164
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3408,48 +3416,50 @@ class CdkDrag {
|
|
|
3408
3416
|
}
|
|
3409
3417
|
/** Handles the events from the underlying `DragRef`. */
|
|
3410
3418
|
_handleEvents(ref) {
|
|
3411
|
-
ref.started.subscribe(
|
|
3412
|
-
this.started.emit({ source: this });
|
|
3419
|
+
ref.started.subscribe(startEvent => {
|
|
3420
|
+
this.started.emit({ source: this, event: startEvent.event });
|
|
3413
3421
|
// Since all of these events run outside of change detection,
|
|
3414
3422
|
// we need to ensure that everything is marked correctly.
|
|
3415
3423
|
this._changeDetectorRef.markForCheck();
|
|
3416
3424
|
});
|
|
3417
|
-
ref.released.subscribe(
|
|
3418
|
-
this.released.emit({ source: this });
|
|
3425
|
+
ref.released.subscribe(releaseEvent => {
|
|
3426
|
+
this.released.emit({ source: this, event: releaseEvent.event });
|
|
3419
3427
|
});
|
|
3420
|
-
ref.ended.subscribe(
|
|
3428
|
+
ref.ended.subscribe(endEvent => {
|
|
3421
3429
|
this.ended.emit({
|
|
3422
3430
|
source: this,
|
|
3423
|
-
distance:
|
|
3424
|
-
dropPoint:
|
|
3431
|
+
distance: endEvent.distance,
|
|
3432
|
+
dropPoint: endEvent.dropPoint,
|
|
3433
|
+
event: endEvent.event,
|
|
3425
3434
|
});
|
|
3426
3435
|
// Since all of these events run outside of change detection,
|
|
3427
3436
|
// we need to ensure that everything is marked correctly.
|
|
3428
3437
|
this._changeDetectorRef.markForCheck();
|
|
3429
3438
|
});
|
|
3430
|
-
ref.entered.subscribe(
|
|
3439
|
+
ref.entered.subscribe(enterEvent => {
|
|
3431
3440
|
this.entered.emit({
|
|
3432
|
-
container:
|
|
3441
|
+
container: enterEvent.container.data,
|
|
3433
3442
|
item: this,
|
|
3434
|
-
currentIndex:
|
|
3443
|
+
currentIndex: enterEvent.currentIndex,
|
|
3435
3444
|
});
|
|
3436
3445
|
});
|
|
3437
|
-
ref.exited.subscribe(
|
|
3446
|
+
ref.exited.subscribe(exitEvent => {
|
|
3438
3447
|
this.exited.emit({
|
|
3439
|
-
container:
|
|
3448
|
+
container: exitEvent.container.data,
|
|
3440
3449
|
item: this,
|
|
3441
3450
|
});
|
|
3442
3451
|
});
|
|
3443
|
-
ref.dropped.subscribe(
|
|
3452
|
+
ref.dropped.subscribe(dropEvent => {
|
|
3444
3453
|
this.dropped.emit({
|
|
3445
|
-
previousIndex:
|
|
3446
|
-
currentIndex:
|
|
3447
|
-
previousContainer:
|
|
3448
|
-
container:
|
|
3449
|
-
isPointerOverContainer:
|
|
3454
|
+
previousIndex: dropEvent.previousIndex,
|
|
3455
|
+
currentIndex: dropEvent.currentIndex,
|
|
3456
|
+
previousContainer: dropEvent.previousContainer.data,
|
|
3457
|
+
container: dropEvent.container.data,
|
|
3458
|
+
isPointerOverContainer: dropEvent.isPointerOverContainer,
|
|
3450
3459
|
item: this,
|
|
3451
|
-
distance:
|
|
3452
|
-
dropPoint:
|
|
3460
|
+
distance: dropEvent.distance,
|
|
3461
|
+
dropPoint: dropEvent.dropPoint,
|
|
3462
|
+
event: dropEvent.event,
|
|
3453
3463
|
});
|
|
3454
3464
|
});
|
|
3455
3465
|
}
|
|
@@ -3510,9 +3520,9 @@ class CdkDrag {
|
|
|
3510
3520
|
}
|
|
3511
3521
|
}
|
|
3512
3522
|
CdkDrag._dragInstances = [];
|
|
3513
|
-
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3514
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3515
|
-
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: [{
|
|
3516
3526
|
type: Directive,
|
|
3517
3527
|
args: [{
|
|
3518
3528
|
selector: '[cdkDrag]',
|
|
@@ -3628,8 +3638,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
3628
3638
|
*/
|
|
3629
3639
|
class DragDropModule {
|
|
3630
3640
|
}
|
|
3631
|
-
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3632
|
-
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,
|
|
3633
3643
|
CdkDropListGroup,
|
|
3634
3644
|
CdkDrag,
|
|
3635
3645
|
CdkDragHandle,
|
|
@@ -3641,8 +3651,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
3641
3651
|
CdkDragHandle,
|
|
3642
3652
|
CdkDragPreview,
|
|
3643
3653
|
CdkDragPlaceholder] });
|
|
3644
|
-
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3645
|
-
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: [{
|
|
3646
3656
|
type: NgModule,
|
|
3647
3657
|
args: [{
|
|
3648
3658
|
declarations: [
|