@progress/kendo-angular-utils 13.0.0-develop.2 → 13.0.0-develop.20
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-and-drop/dragtarget-container.directive.d.ts +10 -10
- package/drag-and-drop/dragtarget.directive.d.ts +7 -7
- package/drag-and-drop/droptarget-container.directive.d.ts +5 -5
- package/drag-and-drop/droptarget.directive.d.ts +6 -6
- package/esm2020/drag-and-drop/draghandle.directive.mjs +2 -2
- package/esm2020/drag-and-drop/dragtarget-container.directive.mjs +33 -32
- package/esm2020/drag-and-drop/dragtarget.directive.mjs +30 -28
- package/esm2020/drag-and-drop/droptarget-container.directive.mjs +14 -14
- package/esm2020/drag-and-drop/droptarget.directive.mjs +17 -23
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-utils.mjs +100 -103
- package/fesm2020/progress-kendo-angular-utils.mjs +98 -101
- package/package.json +3 -3
|
@@ -30,19 +30,19 @@ export class DropTargetContainerDirective {
|
|
|
30
30
|
/**
|
|
31
31
|
* Fires when a DragTarget element enters the DropTarget.
|
|
32
32
|
*/
|
|
33
|
-
this.
|
|
33
|
+
this.onDragEnter = new EventEmitter();
|
|
34
34
|
/**
|
|
35
35
|
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
36
36
|
*/
|
|
37
|
-
this.
|
|
37
|
+
this.onDragOver = new EventEmitter();
|
|
38
38
|
/**
|
|
39
39
|
* Fires when a DragTarget element leaves the DropTarget.
|
|
40
40
|
*/
|
|
41
|
-
this.
|
|
41
|
+
this.onDragLeave = new EventEmitter();
|
|
42
42
|
/**
|
|
43
43
|
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
44
44
|
*/
|
|
45
|
-
this.
|
|
45
|
+
this.onDrop = new EventEmitter();
|
|
46
46
|
this.currentDropTarget = null;
|
|
47
47
|
this.currentDropTargetElement = null;
|
|
48
48
|
this.previousDropTargets = [];
|
|
@@ -109,7 +109,7 @@ export class DropTargetContainerDirective {
|
|
|
109
109
|
this.currentDropTarget = this.service.dropTargets.find(dt => dt.element === this.currentDropTargetElement);
|
|
110
110
|
this.service.dropTarget = this.currentDropTarget;
|
|
111
111
|
this.service.dropIndex = this.getDropIndex();
|
|
112
|
-
this.emitZoneAwareEvent('
|
|
112
|
+
this.emitZoneAwareEvent('onDragEnter', event);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* @hidden
|
|
@@ -119,7 +119,7 @@ export class DropTargetContainerDirective {
|
|
|
119
119
|
if (!this.service.dragTarget) {
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
this.emitZoneAwareEvent('
|
|
122
|
+
this.emitZoneAwareEvent('onDragLeave', event);
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* @hidden
|
|
@@ -128,7 +128,7 @@ export class DropTargetContainerDirective {
|
|
|
128
128
|
if (!this.service.dragTarget) {
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
this.emitZoneAwareEvent('
|
|
131
|
+
this.emitZoneAwareEvent('onDragOver', event);
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* @hidden
|
|
@@ -137,7 +137,7 @@ export class DropTargetContainerDirective {
|
|
|
137
137
|
if (!this.service.dragTarget) {
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
this.emitZoneAwareEvent('
|
|
140
|
+
this.emitZoneAwareEvent('onDrop', event);
|
|
141
141
|
this.currentDropTarget = null;
|
|
142
142
|
this.currentDropTargetElement = null;
|
|
143
143
|
this.service.dropIndex = null;
|
|
@@ -174,7 +174,7 @@ export class DropTargetContainerDirective {
|
|
|
174
174
|
}
|
|
175
175
|
emitZoneAwareEvent(event, normalizedEvent) {
|
|
176
176
|
const eventProps = {
|
|
177
|
-
dragTarget: this.service.dragTarget,
|
|
177
|
+
dragTarget: this.service.dragTarget?.element,
|
|
178
178
|
dropTarget: this.currentDropTargetElement,
|
|
179
179
|
dragData: this.service.dragData,
|
|
180
180
|
dragEvent: normalizedEvent,
|
|
@@ -203,7 +203,7 @@ export class DropTargetContainerDirective {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
DropTargetContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetContainerDirective, deps: [{ token: i1.DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
206
|
-
DropTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DropTargetContainerDirective, selector: "[kendoDropTargetContainer]", inputs: { dropTargetFilter: "dropTargetFilter", dropDisabled: "dropDisabled" }, outputs: {
|
|
206
|
+
DropTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DropTargetContainerDirective, selector: "[kendoDropTargetContainer]", inputs: { dropTargetFilter: "dropTargetFilter", dropDisabled: "dropDisabled" }, outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTargetContainer"], ngImport: i0 });
|
|
207
207
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetContainerDirective, decorators: [{
|
|
208
208
|
type: Directive,
|
|
209
209
|
args: [{
|
|
@@ -214,12 +214,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
214
214
|
type: Input
|
|
215
215
|
}], dropDisabled: [{
|
|
216
216
|
type: Input
|
|
217
|
-
}],
|
|
217
|
+
}], onDragEnter: [{
|
|
218
218
|
type: Output
|
|
219
|
-
}],
|
|
219
|
+
}], onDragOver: [{
|
|
220
220
|
type: Output
|
|
221
|
-
}],
|
|
221
|
+
}], onDragLeave: [{
|
|
222
222
|
type: Output
|
|
223
|
-
}],
|
|
223
|
+
}], onDrop: [{
|
|
224
224
|
type: Output
|
|
225
225
|
}] } });
|
|
@@ -21,19 +21,19 @@ export class DropTargetDirective {
|
|
|
21
21
|
/**
|
|
22
22
|
* Fires when a DragTarget element enters the DropTarget.
|
|
23
23
|
*/
|
|
24
|
-
this.
|
|
24
|
+
this.onDragEnter = new EventEmitter();
|
|
25
25
|
/**
|
|
26
26
|
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
27
27
|
*/
|
|
28
|
-
this.
|
|
28
|
+
this.onDragOver = new EventEmitter();
|
|
29
29
|
/**
|
|
30
30
|
* Fires when a DragTarget element leaves the DropTarget.
|
|
31
31
|
*/
|
|
32
|
-
this.
|
|
32
|
+
this.onDragLeave = new EventEmitter();
|
|
33
33
|
/**
|
|
34
34
|
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
35
35
|
*/
|
|
36
|
-
this.
|
|
36
|
+
this.onDrop = new EventEmitter();
|
|
37
37
|
validatePackage(packageMetadata);
|
|
38
38
|
}
|
|
39
39
|
ngOnInit() {
|
|
@@ -48,9 +48,7 @@ export class DropTargetDirective {
|
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
this.service.dropTarget = this.dropTarget;
|
|
51
|
-
this.
|
|
52
|
-
this.emitEvent('dragEnter', event);
|
|
53
|
-
});
|
|
51
|
+
this.emitZoneAwareEvent('onDragEnter', event);
|
|
54
52
|
}
|
|
55
53
|
/**
|
|
56
54
|
* @hidden
|
|
@@ -60,9 +58,7 @@ export class DropTargetDirective {
|
|
|
60
58
|
if (!this.service.dragTarget) {
|
|
61
59
|
return;
|
|
62
60
|
}
|
|
63
|
-
this.
|
|
64
|
-
this.emitEvent('dragLeave', event);
|
|
65
|
-
});
|
|
61
|
+
this.emitZoneAwareEvent('onDragLeave', event);
|
|
66
62
|
}
|
|
67
63
|
/**
|
|
68
64
|
* @hidden
|
|
@@ -71,17 +67,13 @@ export class DropTargetDirective {
|
|
|
71
67
|
if (!this.service.dragTarget) {
|
|
72
68
|
return;
|
|
73
69
|
}
|
|
74
|
-
this.
|
|
75
|
-
this.emitEvent('dragOver', event);
|
|
76
|
-
});
|
|
70
|
+
this.emitZoneAwareEvent('onDragOver', event);
|
|
77
71
|
}
|
|
78
72
|
/**
|
|
79
73
|
* @hidden
|
|
80
74
|
*/
|
|
81
75
|
handleDrop(event) {
|
|
82
|
-
this.
|
|
83
|
-
this.emitEvent('drop', event);
|
|
84
|
-
});
|
|
76
|
+
this.emitZoneAwareEvent('onDrop', event);
|
|
85
77
|
}
|
|
86
78
|
initializeDropTarget() {
|
|
87
79
|
this.dropTarget = {
|
|
@@ -92,7 +84,7 @@ export class DropTargetDirective {
|
|
|
92
84
|
onDrop: this.handleDrop.bind(this)
|
|
93
85
|
};
|
|
94
86
|
}
|
|
95
|
-
|
|
87
|
+
emitZoneAwareEvent(event, normalizedEvent) {
|
|
96
88
|
const eventProps = {
|
|
97
89
|
dropTarget: this.element.nativeElement,
|
|
98
90
|
dragTarget: this.service.dragTarget?.element,
|
|
@@ -103,23 +95,25 @@ export class DropTargetDirective {
|
|
|
103
95
|
eventProps.hintElement = this.service.dragTarget.element;
|
|
104
96
|
}
|
|
105
97
|
const eventArgs = new DropTargetEvent(eventProps);
|
|
106
|
-
this
|
|
98
|
+
this.ngZone.run(() => {
|
|
99
|
+
this[event].emit(eventArgs);
|
|
100
|
+
});
|
|
107
101
|
}
|
|
108
102
|
}
|
|
109
103
|
DropTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetDirective, deps: [{ token: i1.DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
110
|
-
DropTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DropTargetDirective, selector: "[kendoDropTarget]", outputs: {
|
|
104
|
+
DropTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DropTargetDirective, selector: "[kendoDropTarget]", outputs: { onDragEnter: "onDragEnter", onDragOver: "onDragOver", onDragLeave: "onDragLeave", onDrop: "onDrop" }, exportAs: ["kendoDropTarget"], ngImport: i0 });
|
|
111
105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetDirective, decorators: [{
|
|
112
106
|
type: Directive,
|
|
113
107
|
args: [{
|
|
114
108
|
selector: '[kendoDropTarget]',
|
|
115
109
|
exportAs: 'kendoDropTarget'
|
|
116
110
|
}]
|
|
117
|
-
}], ctorParameters: function () { return [{ type: i1.DragStateService }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: {
|
|
111
|
+
}], ctorParameters: function () { return [{ type: i1.DragStateService }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { onDragEnter: [{
|
|
118
112
|
type: Output
|
|
119
|
-
}],
|
|
113
|
+
}], onDragOver: [{
|
|
120
114
|
type: Output
|
|
121
|
-
}],
|
|
115
|
+
}], onDragLeave: [{
|
|
122
116
|
type: Output
|
|
123
|
-
}],
|
|
117
|
+
}], onDrop: [{
|
|
124
118
|
type: Output
|
|
125
119
|
}] } });
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-utils',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '13.0.0-develop.
|
|
12
|
+
publishDate: 1685960940,
|
|
13
|
+
version: '13.0.0-develop.20',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|