@angular/cdk 13.3.3 → 14.0.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/live-announcer/live-announcer.d.ts +3 -1
- package/a11y-prebuilt.css +1 -1
- package/drag-drop/drag-events.d.ts +8 -0
- package/drag-drop/drag-ref.d.ts +4 -0
- 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 +13 -11
- 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 +7 -5
- 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 +4 -4
- package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
- 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-ref.mjs +11 -3
- package/esm2020/overlay/overlay.mjs +14 -8
- package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +13 -1
- package/esm2020/overlay/position/global-position-strategy.mjs +64 -30
- package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2020/overlay/public-api.mjs +2 -2
- 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/dom-portal-outlet.mjs +4 -2
- package/esm2020/portal/portal-directives.mjs +20 -18
- package/esm2020/portal/portal.mjs +12 -3
- 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 +6 -6
- 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 +21 -21
- package/esm2020/table/text-column.mjs +4 -4
- package/esm2020/testing/component-harness.mjs +7 -1
- package/esm2020/testing/harness-environment.mjs +9 -1
- 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 +53 -53
- 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 +71 -62
- 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 +132 -72
- package/fesm2015/overlay.mjs.map +1 -1
- package/fesm2015/platform.mjs +7 -7
- package/fesm2015/platform.mjs.map +1 -1
- package/fesm2015/portal.mjs +33 -20
- 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 +78 -78
- package/fesm2015/table.mjs.map +1 -1
- package/fesm2015/testing.mjs +20 -0
- 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 +53 -53
- 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 +71 -62
- 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 +132 -72
- package/fesm2020/overlay.mjs.map +1 -1
- package/fesm2020/platform.mjs +7 -7
- package/fesm2020/platform.mjs.map +1 -1
- package/fesm2020/portal.mjs +33 -20
- 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 +78 -78
- package/fesm2020/table.mjs.map +1 -1
- package/fesm2020/testing.mjs +14 -0
- 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/_index.scss +4 -0
- package/overlay/overlay-ref.d.ts +2 -1
- package/overlay/overlay.d.ts +3 -2
- package/overlay/position/flexible-connected-position-strategy.d.ts +2 -0
- package/overlay/position/global-position-strategy.d.ts +14 -3
- package/overlay/public-api.d.ts +1 -1
- package/overlay-prebuilt.css +1 -1
- package/package.json +3 -11
- package/portal/dom-portal-outlet.d.ts +2 -2
- package/portal/portal.d.ts +12 -2
- 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-generate/drag-drop/index.js +5 -14
- package/schematics/ng-generate/drag-drop/index.mjs +5 -14
- package/schematics/ng-update/data/constructor-checks.js +7 -1
- package/schematics/ng-update/data/constructor-checks.mjs +7 -1
- package/schematics/ng-update/devkit-migration-rule.js +4 -13
- package/schematics/ng-update/devkit-migration-rule.mjs +4 -13
- package/schematics/ng-update/html-parsing/elements.js +2 -3
- package/schematics/ng-update/html-parsing/elements.mjs +2 -3
- 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/ng-update/migrations/symbol-removal.js +2 -3
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -3
- 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/schematics/utils/ast.js +11 -22
- package/schematics/utils/ast.mjs +11 -22
- package/schematics/utils/build-component.js +10 -15
- package/schematics/utils/build-component.mjs +10 -15
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +7 -2
- package/schematics/utils/get-project.mjs +7 -2
- package/schematics/utils/project-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- package/schematics/utils/project-targets.js +3 -4
- package/schematics/utils/project-targets.mjs +3 -4
- package/schematics/utils/project-tsconfig-paths.js +16 -28
- package/schematics/utils/project-tsconfig-paths.mjs +16 -28
- package/stepper/stepper.d.ts +3 -12
- package/table/text-column.d.ts +1 -1
- package/testing/component-harness.d.ts +18 -0
- package/testing/harness-environment.d.ts +2 -0
- package/text-field-prebuilt.css +1 -1
- package/esm2020/testing/protractor/index.mjs +0 -9
- package/esm2020/testing/protractor/protractor-element.mjs +0 -239
- package/esm2020/testing/protractor/protractor-harness-environment.mjs +0 -73
- package/esm2020/testing/protractor/public-api.mjs +0 -10
- package/fesm2015/testing/protractor.mjs +0 -361
- package/fesm2015/testing/protractor.mjs.map +0 -1
- package/fesm2020/testing/protractor.mjs +0 -328
- package/fesm2020/testing/protractor.mjs.map +0 -1
- package/testing/protractor/index.d.ts +0 -8
- package/testing/protractor/package.json +0 -9
- package/testing/protractor/protractor-element.d.ts +0 -90
- package/testing/protractor/protractor-harness-environment.d.ts +0 -51
- package/testing/protractor/public-api.d.ts +0 -9
package/fesm2020/drag-drop.mjs
CHANGED
|
@@ -768,7 +768,7 @@ class DragRef {
|
|
|
768
768
|
if (!this._hasStartedDragging) {
|
|
769
769
|
return;
|
|
770
770
|
}
|
|
771
|
-
this.released.next({ source: this });
|
|
771
|
+
this.released.next({ source: this, event });
|
|
772
772
|
if (this._dropContainer) {
|
|
773
773
|
// Stop scrolling immediately, instead of waiting for the animation to finish.
|
|
774
774
|
this._dropContainer._stopScrolling();
|
|
@@ -790,6 +790,7 @@ class DragRef {
|
|
|
790
790
|
source: this,
|
|
791
791
|
distance: this._getDragDistance(pointerPosition),
|
|
792
792
|
dropPoint: pointerPosition,
|
|
793
|
+
event,
|
|
793
794
|
});
|
|
794
795
|
});
|
|
795
796
|
this._cleanupCachedDimensions();
|
|
@@ -824,13 +825,13 @@ class DragRef {
|
|
|
824
825
|
toggleVisibility(element, false, dragImportantProperties);
|
|
825
826
|
this._document.body.appendChild(parent.replaceChild(placeholder, element));
|
|
826
827
|
this._getPreviewInsertionPoint(parent, shadowRoot).appendChild(this._preview);
|
|
827
|
-
this.started.next({ source: this }); // Emit before notifying the container.
|
|
828
|
+
this.started.next({ source: this, event }); // Emit before notifying the container.
|
|
828
829
|
dropContainer.start();
|
|
829
830
|
this._initialContainer = dropContainer;
|
|
830
831
|
this._initialIndex = dropContainer.getItemIndex(this);
|
|
831
832
|
}
|
|
832
833
|
else {
|
|
833
|
-
this.started.next({ source: this });
|
|
834
|
+
this.started.next({ source: this, event });
|
|
834
835
|
this._initialContainer = this._initialIndex = undefined;
|
|
835
836
|
}
|
|
836
837
|
// Important to run after we've called `start` on the parent container
|
|
@@ -927,7 +928,7 @@ class DragRef {
|
|
|
927
928
|
const pointerPosition = this._getPointerPositionOnPage(event);
|
|
928
929
|
const distance = this._getDragDistance(pointerPosition);
|
|
929
930
|
const isPointerOverContainer = container._isOverContainer(pointerPosition.x, pointerPosition.y);
|
|
930
|
-
this.ended.next({ source: this, distance, dropPoint: pointerPosition });
|
|
931
|
+
this.ended.next({ source: this, distance, dropPoint: pointerPosition, event });
|
|
931
932
|
this.dropped.next({
|
|
932
933
|
item: this,
|
|
933
934
|
currentIndex,
|
|
@@ -937,6 +938,7 @@ class DragRef {
|
|
|
937
938
|
isPointerOverContainer,
|
|
938
939
|
distance,
|
|
939
940
|
dropPoint: pointerPosition,
|
|
941
|
+
event,
|
|
940
942
|
});
|
|
941
943
|
container.drop(this, currentIndex, this._initialIndex, this._initialContainer, isPointerOverContainer, distance, pointerPosition);
|
|
942
944
|
this._dropContainer = this._initialContainer;
|
|
@@ -1723,8 +1725,11 @@ class DropListRef {
|
|
|
1723
1725
|
* @param isPointerOverContainer Whether the user's pointer was over the
|
|
1724
1726
|
* container when the item was dropped.
|
|
1725
1727
|
* @param distance Distance the user has dragged since the start of the dragging sequence.
|
|
1728
|
+
* @param event Event that triggered the dropping sequence.
|
|
1729
|
+
*
|
|
1730
|
+
* @breaking-change 15.0.0 `previousIndex` and `event` parameters to become required.
|
|
1726
1731
|
*/
|
|
1727
|
-
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint) {
|
|
1732
|
+
drop(item, currentIndex, previousIndex, previousContainer, isPointerOverContainer, distance, dropPoint, event = {}) {
|
|
1728
1733
|
this._reset();
|
|
1729
1734
|
this.dropped.next({
|
|
1730
1735
|
item,
|
|
@@ -1735,6 +1740,7 @@ class DropListRef {
|
|
|
1735
1740
|
isPointerOverContainer,
|
|
1736
1741
|
distance,
|
|
1737
1742
|
dropPoint,
|
|
1743
|
+
event,
|
|
1738
1744
|
});
|
|
1739
1745
|
}
|
|
1740
1746
|
/**
|
|
@@ -2539,9 +2545,9 @@ class DragDropRegistry {
|
|
|
2539
2545
|
this._globalListeners.clear();
|
|
2540
2546
|
}
|
|
2541
2547
|
}
|
|
2542
|
-
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2543
|
-
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2548
|
+
DragDropRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2549
|
+
DragDropRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
|
|
2550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
2545
2551
|
type: Injectable,
|
|
2546
2552
|
args: [{ providedIn: 'root' }]
|
|
2547
2553
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -2587,9 +2593,9 @@ class DragDrop {
|
|
|
2587
2593
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2588
2594
|
}
|
|
2589
2595
|
}
|
|
2590
|
-
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2591
|
-
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2596
|
+
DragDrop.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2597
|
+
DragDrop.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, providedIn: 'root' });
|
|
2598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDrop, decorators: [{
|
|
2593
2599
|
type: Injectable,
|
|
2594
2600
|
args: [{ providedIn: 'root' }]
|
|
2595
2601
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2656,9 +2662,9 @@ class CdkDropListGroup {
|
|
|
2656
2662
|
this._items.clear();
|
|
2657
2663
|
}
|
|
2658
2664
|
}
|
|
2659
|
-
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2660
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2665
|
+
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2666
|
+
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
|
|
2667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
2662
2668
|
type: Directive,
|
|
2663
2669
|
args: [{
|
|
2664
2670
|
selector: '[cdkDropListGroup]',
|
|
@@ -2912,16 +2918,17 @@ class CdkDropList {
|
|
|
2912
2918
|
item: event.item.data,
|
|
2913
2919
|
});
|
|
2914
2920
|
});
|
|
2915
|
-
ref.dropped.subscribe(
|
|
2921
|
+
ref.dropped.subscribe(dropEvent => {
|
|
2916
2922
|
this.dropped.emit({
|
|
2917
|
-
previousIndex:
|
|
2918
|
-
currentIndex:
|
|
2919
|
-
previousContainer:
|
|
2920
|
-
container:
|
|
2921
|
-
item:
|
|
2922
|
-
isPointerOverContainer:
|
|
2923
|
-
distance:
|
|
2924
|
-
dropPoint:
|
|
2923
|
+
previousIndex: dropEvent.previousIndex,
|
|
2924
|
+
currentIndex: dropEvent.currentIndex,
|
|
2925
|
+
previousContainer: dropEvent.previousContainer.data,
|
|
2926
|
+
container: dropEvent.container.data,
|
|
2927
|
+
item: dropEvent.item.data,
|
|
2928
|
+
isPointerOverContainer: dropEvent.isPointerOverContainer,
|
|
2929
|
+
distance: dropEvent.distance,
|
|
2930
|
+
dropPoint: dropEvent.dropPoint,
|
|
2931
|
+
event: dropEvent.event,
|
|
2925
2932
|
});
|
|
2926
2933
|
// Mark for check since all of these events run outside of change
|
|
2927
2934
|
// detection and we're not guaranteed for something else to have triggered it.
|
|
@@ -2946,13 +2953,13 @@ class CdkDropList {
|
|
|
2946
2953
|
}
|
|
2947
2954
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
2948
2955
|
CdkDropList._dropLists = [];
|
|
2949
|
-
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2950
|
-
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
2956
|
+
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropList, deps: [{ token: i0.ElementRef }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: i1.ScrollDispatcher }, { token: i3.Directionality, optional: true }, { token: CDK_DROP_LIST_GROUP, optional: true, skipSelf: true }, { token: CDK_DRAG_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2957
|
+
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled"], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled"], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled"], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
|
|
2951
2958
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
2952
2959
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
2953
2960
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
2954
2961
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
2955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDropList, decorators: [{
|
|
2956
2963
|
type: Directive,
|
|
2957
2964
|
args: [{
|
|
2958
2965
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3067,9 +3074,9 @@ class CdkDragHandle {
|
|
|
3067
3074
|
this._stateChanges.complete();
|
|
3068
3075
|
}
|
|
3069
3076
|
}
|
|
3070
|
-
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3071
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3077
|
+
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3078
|
+
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
|
|
3079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3073
3080
|
type: Directive,
|
|
3074
3081
|
args: [{
|
|
3075
3082
|
selector: '[cdkDragHandle]',
|
|
@@ -3112,9 +3119,9 @@ class CdkDragPlaceholder {
|
|
|
3112
3119
|
this.templateRef = templateRef;
|
|
3113
3120
|
}
|
|
3114
3121
|
}
|
|
3115
|
-
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3116
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3122
|
+
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3123
|
+
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
|
|
3124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
3118
3125
|
type: Directive,
|
|
3119
3126
|
args: [{
|
|
3120
3127
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -3154,9 +3161,9 @@ class CdkDragPreview {
|
|
|
3154
3161
|
this._matchSize = coerceBooleanProperty(value);
|
|
3155
3162
|
}
|
|
3156
3163
|
}
|
|
3157
|
-
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3158
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3164
|
+
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3165
|
+
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
|
|
3166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
3160
3167
|
type: Directive,
|
|
3161
3168
|
args: [{
|
|
3162
3169
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3419,48 +3426,50 @@ class CdkDrag {
|
|
|
3419
3426
|
}
|
|
3420
3427
|
/** Handles the events from the underlying `DragRef`. */
|
|
3421
3428
|
_handleEvents(ref) {
|
|
3422
|
-
ref.started.subscribe(
|
|
3423
|
-
this.started.emit({ source: this });
|
|
3429
|
+
ref.started.subscribe(startEvent => {
|
|
3430
|
+
this.started.emit({ source: this, event: startEvent.event });
|
|
3424
3431
|
// Since all of these events run outside of change detection,
|
|
3425
3432
|
// we need to ensure that everything is marked correctly.
|
|
3426
3433
|
this._changeDetectorRef.markForCheck();
|
|
3427
3434
|
});
|
|
3428
|
-
ref.released.subscribe(
|
|
3429
|
-
this.released.emit({ source: this });
|
|
3435
|
+
ref.released.subscribe(releaseEvent => {
|
|
3436
|
+
this.released.emit({ source: this, event: releaseEvent.event });
|
|
3430
3437
|
});
|
|
3431
|
-
ref.ended.subscribe(
|
|
3438
|
+
ref.ended.subscribe(endEvent => {
|
|
3432
3439
|
this.ended.emit({
|
|
3433
3440
|
source: this,
|
|
3434
|
-
distance:
|
|
3435
|
-
dropPoint:
|
|
3441
|
+
distance: endEvent.distance,
|
|
3442
|
+
dropPoint: endEvent.dropPoint,
|
|
3443
|
+
event: endEvent.event,
|
|
3436
3444
|
});
|
|
3437
3445
|
// Since all of these events run outside of change detection,
|
|
3438
3446
|
// we need to ensure that everything is marked correctly.
|
|
3439
3447
|
this._changeDetectorRef.markForCheck();
|
|
3440
3448
|
});
|
|
3441
|
-
ref.entered.subscribe(
|
|
3449
|
+
ref.entered.subscribe(enterEvent => {
|
|
3442
3450
|
this.entered.emit({
|
|
3443
|
-
container:
|
|
3451
|
+
container: enterEvent.container.data,
|
|
3444
3452
|
item: this,
|
|
3445
|
-
currentIndex:
|
|
3453
|
+
currentIndex: enterEvent.currentIndex,
|
|
3446
3454
|
});
|
|
3447
3455
|
});
|
|
3448
|
-
ref.exited.subscribe(
|
|
3456
|
+
ref.exited.subscribe(exitEvent => {
|
|
3449
3457
|
this.exited.emit({
|
|
3450
|
-
container:
|
|
3458
|
+
container: exitEvent.container.data,
|
|
3451
3459
|
item: this,
|
|
3452
3460
|
});
|
|
3453
3461
|
});
|
|
3454
|
-
ref.dropped.subscribe(
|
|
3462
|
+
ref.dropped.subscribe(dropEvent => {
|
|
3455
3463
|
this.dropped.emit({
|
|
3456
|
-
previousIndex:
|
|
3457
|
-
currentIndex:
|
|
3458
|
-
previousContainer:
|
|
3459
|
-
container:
|
|
3460
|
-
isPointerOverContainer:
|
|
3464
|
+
previousIndex: dropEvent.previousIndex,
|
|
3465
|
+
currentIndex: dropEvent.currentIndex,
|
|
3466
|
+
previousContainer: dropEvent.previousContainer.data,
|
|
3467
|
+
container: dropEvent.container.data,
|
|
3468
|
+
isPointerOverContainer: dropEvent.isPointerOverContainer,
|
|
3461
3469
|
item: this,
|
|
3462
|
-
distance:
|
|
3463
|
-
dropPoint:
|
|
3470
|
+
distance: dropEvent.distance,
|
|
3471
|
+
dropPoint: dropEvent.dropPoint,
|
|
3472
|
+
event: dropEvent.event,
|
|
3464
3473
|
});
|
|
3465
3474
|
});
|
|
3466
3475
|
}
|
|
@@ -3521,9 +3530,9 @@ class CdkDrag {
|
|
|
3521
3530
|
}
|
|
3522
3531
|
}
|
|
3523
3532
|
CdkDrag._dragInstances = [];
|
|
3524
|
-
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3525
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
3526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3533
|
+
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDrag, deps: [{ token: i0.ElementRef }, { token: CDK_DROP_LIST, optional: true, skipSelf: true }, { token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: CDK_DRAG_CONFIG, optional: true }, { token: i3.Directionality, optional: true }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: CDK_DRAG_HANDLE, optional: true, self: true }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3534
|
+
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "14.0.0-next.9", type: CdkDrag, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled"], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], queries: [{ propertyName: "_previewTemplate", first: true, predicate: CDK_DRAG_PREVIEW, descendants: true }, { propertyName: "_placeholderTemplate", first: true, predicate: CDK_DRAG_PLACEHOLDER, descendants: true }, { propertyName: "_handles", predicate: CDK_DRAG_HANDLE, descendants: true }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
|
|
3535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3527
3536
|
type: Directive,
|
|
3528
3537
|
args: [{
|
|
3529
3538
|
selector: '[cdkDrag]',
|
|
@@ -3637,8 +3646,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
3637
3646
|
*/
|
|
3638
3647
|
class DragDropModule {
|
|
3639
3648
|
}
|
|
3640
|
-
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3641
|
-
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
3649
|
+
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3650
|
+
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, declarations: [CdkDropList,
|
|
3642
3651
|
CdkDropListGroup,
|
|
3643
3652
|
CdkDrag,
|
|
3644
3653
|
CdkDragHandle,
|
|
@@ -3650,8 +3659,8 @@ DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
3650
3659
|
CdkDragHandle,
|
|
3651
3660
|
CdkDragPreview,
|
|
3652
3661
|
CdkDragPlaceholder] });
|
|
3653
|
-
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3662
|
+
DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
|
|
3663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3655
3664
|
type: NgModule,
|
|
3656
3665
|
args: [{
|
|
3657
3666
|
declarations: [
|