@angular/cdk 15.0.1 → 15.0.2
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/drag-drop/index.d.ts +7 -7
- package/esm2020/drag-drop/directives/drag-handle.mjs +3 -2
- package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -2
- package/esm2020/drag-drop/directives/drag-preview.mjs +3 -2
- package/esm2020/drag-drop/directives/drag.mjs +3 -2
- package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -2
- package/esm2020/drag-drop/directives/drop-list.mjs +3 -2
- package/esm2020/drag-drop/drag-drop-module.mjs +13 -21
- package/esm2020/listbox/listbox.mjs +45 -14
- package/esm2020/version.mjs +1 -1
- package/fesm2015/cdk.mjs +1 -1
- package/fesm2015/cdk.mjs.map +1 -1
- package/fesm2015/drag-drop.mjs +24 -26
- package/fesm2015/drag-drop.mjs.map +1 -1
- package/fesm2015/listbox.mjs +46 -13
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2020/cdk.mjs +1 -1
- package/fesm2020/cdk.mjs.map +1 -1
- package/fesm2020/drag-drop.mjs +24 -26
- package/fesm2020/drag-drop.mjs.map +1 -1
- package/fesm2020/listbox.mjs +44 -13
- package/fesm2020/listbox.mjs.map +1 -1
- package/listbox/index.d.ts +13 -4
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
package/fesm2015/drag-drop.mjs
CHANGED
|
@@ -2759,12 +2759,13 @@ class CdkDropListGroup {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
CdkDropListGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2762
|
-
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
|
|
2762
|
+
CdkDropListGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled"] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
|
|
2763
2763
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
2764
2764
|
type: Directive,
|
|
2765
2765
|
args: [{
|
|
2766
2766
|
selector: '[cdkDropListGroup]',
|
|
2767
2767
|
exportAs: 'cdkDropListGroup',
|
|
2768
|
+
standalone: true,
|
|
2768
2769
|
providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }],
|
|
2769
2770
|
}]
|
|
2770
2771
|
}], propDecorators: { disabled: [{
|
|
@@ -3050,7 +3051,7 @@ class CdkDropList {
|
|
|
3050
3051
|
/** Keeps track of the drop lists that are currently on the page. */
|
|
3051
3052
|
CdkDropList._dropLists = [];
|
|
3052
3053
|
CdkDropList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDropList, deps: [{ token: i0.ElementRef }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: i1.ScrollDispatcher }, { token: i3.Directionality, optional: true }, { token: CDK_DROP_LIST_GROUP, optional: true, skipSelf: true }, { token: CDK_DRAG_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3053
|
-
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled"], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled"], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled"], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
|
|
3054
|
+
CdkDropList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDropList, isStandalone: true, 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: [
|
|
3054
3055
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
3055
3056
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
3056
3057
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
@@ -3060,6 +3061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
3060
3061
|
args: [{
|
|
3061
3062
|
selector: '[cdkDropList], cdk-drop-list',
|
|
3062
3063
|
exportAs: 'cdkDropList',
|
|
3064
|
+
standalone: true,
|
|
3063
3065
|
providers: [
|
|
3064
3066
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
3065
3067
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
@@ -3173,11 +3175,12 @@ class CdkDragHandle {
|
|
|
3173
3175
|
}
|
|
3174
3176
|
}
|
|
3175
3177
|
CdkDragHandle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3176
|
-
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
|
|
3178
|
+
CdkDragHandle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDragHandle, isStandalone: true, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled"] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
|
|
3177
3179
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3178
3180
|
type: Directive,
|
|
3179
3181
|
args: [{
|
|
3180
3182
|
selector: '[cdkDragHandle]',
|
|
3183
|
+
standalone: true,
|
|
3181
3184
|
host: {
|
|
3182
3185
|
'class': 'cdk-drag-handle',
|
|
3183
3186
|
},
|
|
@@ -3220,11 +3223,12 @@ class CdkDragPlaceholder {
|
|
|
3220
3223
|
}
|
|
3221
3224
|
}
|
|
3222
3225
|
CdkDragPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3223
|
-
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
|
|
3226
|
+
CdkDragPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
|
|
3224
3227
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
3225
3228
|
type: Directive,
|
|
3226
3229
|
args: [{
|
|
3227
3230
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
3231
|
+
standalone: true,
|
|
3228
3232
|
providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
|
|
3229
3233
|
}]
|
|
3230
3234
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
|
|
@@ -3262,11 +3266,12 @@ class CdkDragPreview {
|
|
|
3262
3266
|
}
|
|
3263
3267
|
}
|
|
3264
3268
|
CdkDragPreview.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3265
|
-
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
|
|
3269
|
+
CdkDragPreview.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: "matchSize" }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
|
|
3266
3270
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
3267
3271
|
type: Directive,
|
|
3268
3272
|
args: [{
|
|
3269
3273
|
selector: 'ng-template[cdkDragPreview]',
|
|
3274
|
+
standalone: true,
|
|
3270
3275
|
providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
|
|
3271
3276
|
}]
|
|
3272
3277
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
|
|
@@ -3633,12 +3638,13 @@ class CdkDrag {
|
|
|
3633
3638
|
}
|
|
3634
3639
|
CdkDrag._dragInstances = [];
|
|
3635
3640
|
CdkDrag.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDrag, deps: [{ token: i0.ElementRef }, { token: CDK_DROP_LIST, optional: true, skipSelf: true }, { token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: CDK_DRAG_CONFIG, optional: true }, { token: i3.Directionality, optional: true }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: CDK_DRAG_HANDLE, optional: true, self: true }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3636
|
-
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDrag, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled"], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], queries: [{ propertyName: "_previewTemplate", first: true, predicate: CDK_DRAG_PREVIEW, descendants: true }, { propertyName: "_placeholderTemplate", first: true, predicate: CDK_DRAG_PLACEHOLDER, descendants: true }, { propertyName: "_handles", predicate: CDK_DRAG_HANDLE, descendants: true }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
|
|
3641
|
+
CdkDrag.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.0", type: CdkDrag, isStandalone: true, 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 });
|
|
3637
3642
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3638
3643
|
type: Directive,
|
|
3639
3644
|
args: [{
|
|
3640
3645
|
selector: '[cdkDrag]',
|
|
3641
3646
|
exportAs: 'cdkDrag',
|
|
3647
|
+
standalone: true,
|
|
3642
3648
|
host: {
|
|
3643
3649
|
'class': DRAG_HOST_CLASS,
|
|
3644
3650
|
'[class.cdk-drag-disabled]': 'disabled',
|
|
@@ -3748,16 +3754,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
3748
3754
|
* Use of this source code is governed by an MIT-style license that can be
|
|
3749
3755
|
* found in the LICENSE file at https://angular.io/license
|
|
3750
3756
|
*/
|
|
3757
|
+
const DRAG_DROP_DIRECTIVES = [
|
|
3758
|
+
CdkDropList,
|
|
3759
|
+
CdkDropListGroup,
|
|
3760
|
+
CdkDrag,
|
|
3761
|
+
CdkDragHandle,
|
|
3762
|
+
CdkDragPreview,
|
|
3763
|
+
CdkDragPlaceholder,
|
|
3764
|
+
];
|
|
3751
3765
|
class DragDropModule {
|
|
3752
3766
|
}
|
|
3753
3767
|
DragDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3754
|
-
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: DragDropModule,
|
|
3768
|
+
DragDropModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
|
|
3755
3769
|
CdkDropListGroup,
|
|
3756
3770
|
CdkDrag,
|
|
3757
3771
|
CdkDragHandle,
|
|
3758
3772
|
CdkDragPreview,
|
|
3759
|
-
CdkDragPlaceholder], exports: [CdkScrollableModule,
|
|
3760
|
-
CdkDropList,
|
|
3773
|
+
CdkDragPlaceholder], exports: [CdkScrollableModule, CdkDropList,
|
|
3761
3774
|
CdkDropListGroup,
|
|
3762
3775
|
CdkDrag,
|
|
3763
3776
|
CdkDragHandle,
|
|
@@ -3767,23 +3780,8 @@ DragDropModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
3767
3780
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3768
3781
|
type: NgModule,
|
|
3769
3782
|
args: [{
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
CdkDropListGroup,
|
|
3773
|
-
CdkDrag,
|
|
3774
|
-
CdkDragHandle,
|
|
3775
|
-
CdkDragPreview,
|
|
3776
|
-
CdkDragPlaceholder,
|
|
3777
|
-
],
|
|
3778
|
-
exports: [
|
|
3779
|
-
CdkScrollableModule,
|
|
3780
|
-
CdkDropList,
|
|
3781
|
-
CdkDropListGroup,
|
|
3782
|
-
CdkDrag,
|
|
3783
|
-
CdkDragHandle,
|
|
3784
|
-
CdkDragPreview,
|
|
3785
|
-
CdkDragPlaceholder,
|
|
3786
|
-
],
|
|
3783
|
+
imports: DRAG_DROP_DIRECTIVES,
|
|
3784
|
+
exports: [CdkScrollableModule, ...DRAG_DROP_DIRECTIVES],
|
|
3787
3785
|
providers: [DragDrop],
|
|
3788
3786
|
}]
|
|
3789
3787
|
}] });
|