@progress/kendo-angular-utils 13.0.0-develop.1 → 13.0.0-develop.11
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 +7 -7
- 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/dragtarget-container.directive.mjs +25 -26
- package/esm2020/drag-and-drop/dragtarget.directive.mjs +25 -25
- package/esm2020/drag-and-drop/droptarget-container.directive.mjs +13 -13
- package/esm2020/drag-and-drop/droptarget.directive.mjs +17 -23
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-utils.mjs +82 -89
- package/fesm2020/progress-kendo-angular-utils.mjs +82 -89
- package/package.json +3 -3
|
@@ -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: 1685351755,
|
|
13
|
+
version: '13.0.0-develop.11',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -19,8 +19,8 @@ const packageMetadata = {
|
|
|
19
19
|
name: '@progress/kendo-angular-utils',
|
|
20
20
|
productName: 'Kendo UI for Angular',
|
|
21
21
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
22
|
-
publishDate:
|
|
23
|
-
version: '13.0.0-develop.
|
|
22
|
+
publishDate: 1685351755,
|
|
23
|
+
version: '13.0.0-develop.11',
|
|
24
24
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -489,27 +489,27 @@ class DragTargetDirective {
|
|
|
489
489
|
/**
|
|
490
490
|
* Fires when the user presses the DragTarget element.
|
|
491
491
|
*/
|
|
492
|
-
this.
|
|
492
|
+
this.onPress = new EventEmitter();
|
|
493
493
|
/**
|
|
494
494
|
* Fires when the dragging of the DragTarget element begins.
|
|
495
495
|
*/
|
|
496
|
-
this.
|
|
496
|
+
this.onDragStart = new EventEmitter();
|
|
497
497
|
/**
|
|
498
498
|
* Fires while the user drags the DragTarget element.
|
|
499
499
|
*/
|
|
500
|
-
this.
|
|
500
|
+
this.onDrag = new EventEmitter();
|
|
501
501
|
/**
|
|
502
502
|
* Fires when the DragTarget's `dragDelay` has passed and the user is able to drag the element.
|
|
503
503
|
*/
|
|
504
|
-
this.
|
|
504
|
+
this.onDragReady = new EventEmitter();
|
|
505
505
|
/**
|
|
506
506
|
* Fires when the user releases the DragTarget element after being pressed.
|
|
507
507
|
*/
|
|
508
|
-
this.
|
|
508
|
+
this.onRelease = new EventEmitter();
|
|
509
509
|
/**
|
|
510
510
|
* Fires when the dragging of the DragTarget ends and the element is released.
|
|
511
511
|
*/
|
|
512
|
-
this.
|
|
512
|
+
this.onDragEnd = new EventEmitter();
|
|
513
513
|
this.dragTarget = null;
|
|
514
514
|
this.domSubscriptions = [];
|
|
515
515
|
this.hintComponent = null;
|
|
@@ -588,14 +588,14 @@ class DragTargetDirective {
|
|
|
588
588
|
if (this.dragDelay > 0) {
|
|
589
589
|
this.dragTimeout = window.setTimeout(() => {
|
|
590
590
|
this.pressed = true;
|
|
591
|
-
this.emitZoneAwareEvent('
|
|
591
|
+
this.emitZoneAwareEvent('onDragReady', event);
|
|
592
592
|
}, this.dragDelay);
|
|
593
593
|
}
|
|
594
594
|
else {
|
|
595
595
|
this.pressed = true;
|
|
596
596
|
}
|
|
597
597
|
this.scrollableParent = this.dragTarget.element ? getScrollableParent(this.dragTarget.element) : null;
|
|
598
|
-
this.emitZoneAwareEvent('
|
|
598
|
+
this.emitZoneAwareEvent('onPress', event);
|
|
599
599
|
}
|
|
600
600
|
handleDragStart(event) {
|
|
601
601
|
if (!this.pressed) {
|
|
@@ -605,7 +605,7 @@ class DragTargetDirective {
|
|
|
605
605
|
}
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
isDragStartPrevented$1 = this.emitZoneAwareEvent('
|
|
608
|
+
isDragStartPrevented$1 = this.emitZoneAwareEvent('onDragStart', event).isDefaultPrevented();
|
|
609
609
|
if (isDragStartPrevented$1) {
|
|
610
610
|
return;
|
|
611
611
|
}
|
|
@@ -628,7 +628,7 @@ class DragTargetDirective {
|
|
|
628
628
|
if (!this.pressed || isDragStartPrevented$1) {
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
|
-
isDragPrevented$1 = this.emitZoneAwareEvent('
|
|
631
|
+
isDragPrevented$1 = this.emitZoneAwareEvent('onDrag', event).isDefaultPrevented();
|
|
632
632
|
if (isDragPrevented$1) {
|
|
633
633
|
return;
|
|
634
634
|
}
|
|
@@ -645,7 +645,7 @@ class DragTargetDirective {
|
|
|
645
645
|
this.dragTimeout = null;
|
|
646
646
|
this.pressed = false;
|
|
647
647
|
}
|
|
648
|
-
this.emitZoneAwareEvent('
|
|
648
|
+
this.emitZoneAwareEvent('onRelease', event);
|
|
649
649
|
}
|
|
650
650
|
handleDragEnd(event) {
|
|
651
651
|
var _a, _b;
|
|
@@ -671,7 +671,7 @@ class DragTargetDirective {
|
|
|
671
671
|
if (!this.dragStarted || isDragStartPrevented$1 || isDragPrevented$1) {
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
|
-
this.emitZoneAwareEvent('
|
|
674
|
+
this.emitZoneAwareEvent('onDragEnd', event);
|
|
675
675
|
this.dragStarted = false;
|
|
676
676
|
}
|
|
677
677
|
initializeDragTarget() {
|
|
@@ -807,22 +807,22 @@ class DragTargetDirective {
|
|
|
807
807
|
}
|
|
808
808
|
let eventArgs;
|
|
809
809
|
switch (event) {
|
|
810
|
-
case '
|
|
810
|
+
case 'onDragReady':
|
|
811
811
|
eventArgs = new DragTargetDragReadyEvent(eventProps);
|
|
812
812
|
break;
|
|
813
|
-
case '
|
|
813
|
+
case 'onPress':
|
|
814
814
|
eventArgs = new DragTargetPressEvent(eventProps);
|
|
815
815
|
break;
|
|
816
|
-
case '
|
|
816
|
+
case 'onDragStart':
|
|
817
817
|
eventArgs = new DragTargetDragStartEvent(eventProps);
|
|
818
818
|
break;
|
|
819
|
-
case '
|
|
819
|
+
case 'onDrag':
|
|
820
820
|
eventArgs = new DragTargetDragEvent(eventProps);
|
|
821
821
|
break;
|
|
822
|
-
case '
|
|
822
|
+
case 'onRelease':
|
|
823
823
|
eventArgs = new DragTargetReleaseEvent(eventProps);
|
|
824
824
|
break;
|
|
825
|
-
case '
|
|
825
|
+
case 'onDragEnd':
|
|
826
826
|
eventArgs = new DragTargetDragEndEvent(eventProps);
|
|
827
827
|
break;
|
|
828
828
|
default:
|
|
@@ -888,7 +888,7 @@ class DragTargetDirective {
|
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
DragTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DragTargetDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: DragStateService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
891
|
-
DragTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DragTargetDirective, selector: "[kendoDragTarget]", inputs: { hint: "hint", threshold: "threshold", autoScroll: "autoScroll", dragTargetId: "dragTargetId", dragDelay: "dragDelay", restrictByAxis: "restrictByAxis", mode: "mode", dragData: "dragData" }, outputs: {
|
|
891
|
+
DragTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DragTargetDirective, selector: "[kendoDragTarget]", inputs: { hint: "hint", threshold: "threshold", autoScroll: "autoScroll", dragTargetId: "dragTargetId", dragDelay: "dragDelay", restrictByAxis: "restrictByAxis", mode: "mode", dragData: "dragData" }, outputs: { onPress: "onPress", onDragStart: "onDragStart", onDrag: "onDrag", onDragReady: "onDragReady", onRelease: "onRelease", onDragEnd: "onDragEnd" }, queries: [{ propertyName: "dragHandles", predicate: DragHandleDirective }], exportAs: ["kendoDragTarget"], ngImport: i0 });
|
|
892
892
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DragTargetDirective, decorators: [{
|
|
893
893
|
type: Directive,
|
|
894
894
|
args: [{
|
|
@@ -911,17 +911,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
911
911
|
type: Input
|
|
912
912
|
}], dragData: [{
|
|
913
913
|
type: Input
|
|
914
|
-
}],
|
|
914
|
+
}], onPress: [{
|
|
915
915
|
type: Output
|
|
916
|
-
}],
|
|
916
|
+
}], onDragStart: [{
|
|
917
917
|
type: Output
|
|
918
|
-
}],
|
|
918
|
+
}], onDrag: [{
|
|
919
919
|
type: Output
|
|
920
|
-
}],
|
|
920
|
+
}], onDragReady: [{
|
|
921
921
|
type: Output
|
|
922
|
-
}],
|
|
922
|
+
}], onRelease: [{
|
|
923
923
|
type: Output
|
|
924
|
-
}],
|
|
924
|
+
}], onDragEnd: [{
|
|
925
925
|
type: Output
|
|
926
926
|
}], dragHandles: [{
|
|
927
927
|
type: ContentChildren,
|
|
@@ -965,19 +965,19 @@ class DropTargetDirective {
|
|
|
965
965
|
/**
|
|
966
966
|
* Fires when a DragTarget element enters the DropTarget.
|
|
967
967
|
*/
|
|
968
|
-
this.
|
|
968
|
+
this.onDragEnter = new EventEmitter();
|
|
969
969
|
/**
|
|
970
970
|
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
971
971
|
*/
|
|
972
|
-
this.
|
|
972
|
+
this.onDragOver = new EventEmitter();
|
|
973
973
|
/**
|
|
974
974
|
* Fires when a DragTarget element leaves the DropTarget.
|
|
975
975
|
*/
|
|
976
|
-
this.
|
|
976
|
+
this.onDragLeave = new EventEmitter();
|
|
977
977
|
/**
|
|
978
978
|
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
979
979
|
*/
|
|
980
|
-
this.
|
|
980
|
+
this.onDrop = new EventEmitter();
|
|
981
981
|
validatePackage(packageMetadata);
|
|
982
982
|
}
|
|
983
983
|
ngOnInit() {
|
|
@@ -992,9 +992,7 @@ class DropTargetDirective {
|
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
994
|
this.service.dropTarget = this.dropTarget;
|
|
995
|
-
this.
|
|
996
|
-
this.emitEvent('dragEnter', event);
|
|
997
|
-
});
|
|
995
|
+
this.emitZoneAwareEvent('onDragEnter', event);
|
|
998
996
|
}
|
|
999
997
|
/**
|
|
1000
998
|
* @hidden
|
|
@@ -1004,9 +1002,7 @@ class DropTargetDirective {
|
|
|
1004
1002
|
if (!this.service.dragTarget) {
|
|
1005
1003
|
return;
|
|
1006
1004
|
}
|
|
1007
|
-
this.
|
|
1008
|
-
this.emitEvent('dragLeave', event);
|
|
1009
|
-
});
|
|
1005
|
+
this.emitZoneAwareEvent('onDragLeave', event);
|
|
1010
1006
|
}
|
|
1011
1007
|
/**
|
|
1012
1008
|
* @hidden
|
|
@@ -1015,17 +1011,13 @@ class DropTargetDirective {
|
|
|
1015
1011
|
if (!this.service.dragTarget) {
|
|
1016
1012
|
return;
|
|
1017
1013
|
}
|
|
1018
|
-
this.
|
|
1019
|
-
this.emitEvent('dragOver', event);
|
|
1020
|
-
});
|
|
1014
|
+
this.emitZoneAwareEvent('onDragOver', event);
|
|
1021
1015
|
}
|
|
1022
1016
|
/**
|
|
1023
1017
|
* @hidden
|
|
1024
1018
|
*/
|
|
1025
1019
|
handleDrop(event) {
|
|
1026
|
-
this.
|
|
1027
|
-
this.emitEvent('drop', event);
|
|
1028
|
-
});
|
|
1020
|
+
this.emitZoneAwareEvent('onDrop', event);
|
|
1029
1021
|
}
|
|
1030
1022
|
initializeDropTarget() {
|
|
1031
1023
|
this.dropTarget = {
|
|
@@ -1036,7 +1028,7 @@ class DropTargetDirective {
|
|
|
1036
1028
|
onDrop: this.handleDrop.bind(this)
|
|
1037
1029
|
};
|
|
1038
1030
|
}
|
|
1039
|
-
|
|
1031
|
+
emitZoneAwareEvent(event, normalizedEvent) {
|
|
1040
1032
|
var _a, _b;
|
|
1041
1033
|
const eventProps = {
|
|
1042
1034
|
dropTarget: this.element.nativeElement,
|
|
@@ -1048,24 +1040,26 @@ class DropTargetDirective {
|
|
|
1048
1040
|
eventProps.hintElement = this.service.dragTarget.element;
|
|
1049
1041
|
}
|
|
1050
1042
|
const eventArgs = new DropTargetEvent(eventProps);
|
|
1051
|
-
this
|
|
1043
|
+
this.ngZone.run(() => {
|
|
1044
|
+
this[event].emit(eventArgs);
|
|
1045
|
+
});
|
|
1052
1046
|
}
|
|
1053
1047
|
}
|
|
1054
1048
|
DropTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetDirective, deps: [{ token: DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1055
|
-
DropTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DropTargetDirective, selector: "[kendoDropTarget]", outputs: {
|
|
1049
|
+
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 });
|
|
1056
1050
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetDirective, decorators: [{
|
|
1057
1051
|
type: Directive,
|
|
1058
1052
|
args: [{
|
|
1059
1053
|
selector: '[kendoDropTarget]',
|
|
1060
1054
|
exportAs: 'kendoDropTarget'
|
|
1061
1055
|
}]
|
|
1062
|
-
}], ctorParameters: function () { return [{ type: DragStateService }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: {
|
|
1056
|
+
}], ctorParameters: function () { return [{ type: DragStateService }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { onDragEnter: [{
|
|
1063
1057
|
type: Output
|
|
1064
|
-
}],
|
|
1058
|
+
}], onDragOver: [{
|
|
1065
1059
|
type: Output
|
|
1066
|
-
}],
|
|
1060
|
+
}], onDragLeave: [{
|
|
1067
1061
|
type: Output
|
|
1068
|
-
}],
|
|
1062
|
+
}], onDrop: [{
|
|
1069
1063
|
type: Output
|
|
1070
1064
|
}] } });
|
|
1071
1065
|
|
|
@@ -1117,27 +1111,27 @@ class DragTargetContainerDirective {
|
|
|
1117
1111
|
/**
|
|
1118
1112
|
* Fires when a DragTarget's `dragDelay` has passed and the user is able to drag the element.
|
|
1119
1113
|
*/
|
|
1120
|
-
this.
|
|
1114
|
+
this.onDragReady = new EventEmitter();
|
|
1121
1115
|
/**
|
|
1122
1116
|
* Fires when the user presses a DragTarget element.
|
|
1123
1117
|
*/
|
|
1124
|
-
this.
|
|
1118
|
+
this.onPress = new EventEmitter();
|
|
1125
1119
|
/**
|
|
1126
1120
|
* Fires when the dragging of a DragTarget element begins.
|
|
1127
1121
|
*/
|
|
1128
|
-
this.
|
|
1122
|
+
this.onDragStart = new EventEmitter();
|
|
1129
1123
|
/**
|
|
1130
1124
|
* Fires while the user drags a DragTarget element.
|
|
1131
1125
|
*/
|
|
1132
|
-
this.
|
|
1126
|
+
this.onDrag = new EventEmitter();
|
|
1133
1127
|
/**
|
|
1134
1128
|
* Fires when the user releases a DragTarget element after being pressed.
|
|
1135
1129
|
*/
|
|
1136
|
-
this.
|
|
1130
|
+
this.onRelease = new EventEmitter();
|
|
1137
1131
|
/**
|
|
1138
1132
|
* Fires when the dragging of a DragTarget ends and the element is released.
|
|
1139
1133
|
*/
|
|
1140
|
-
this.
|
|
1134
|
+
this.onDragEnd = new EventEmitter();
|
|
1141
1135
|
this.currentDragTarget = null;
|
|
1142
1136
|
this.dragTimeout = null;
|
|
1143
1137
|
this.pressed = false;
|
|
@@ -1268,7 +1262,7 @@ class DragTargetContainerDirective {
|
|
|
1268
1262
|
if (this.dragDelay > 0) {
|
|
1269
1263
|
this.dragTimeout = window.setTimeout(() => {
|
|
1270
1264
|
this.pressed = true;
|
|
1271
|
-
this.emitZoneAwareEvent('
|
|
1265
|
+
this.emitZoneAwareEvent('onDragReady', event);
|
|
1272
1266
|
}, this.dragDelay);
|
|
1273
1267
|
}
|
|
1274
1268
|
else {
|
|
@@ -1279,7 +1273,7 @@ class DragTargetContainerDirective {
|
|
|
1279
1273
|
this.currentDragTarget.element = this.currentDragTargetElement;
|
|
1280
1274
|
this.service.dragIndex = this.getDragIndex();
|
|
1281
1275
|
this.scrollableParent = this.hintTemplate ? document.body : this.currentDragTargetElement ? getScrollableParent(this.currentDragTargetElement) : null;
|
|
1282
|
-
this.emitZoneAwareEvent('
|
|
1276
|
+
this.emitZoneAwareEvent('onPress', event);
|
|
1283
1277
|
}
|
|
1284
1278
|
handleDragStart(event) {
|
|
1285
1279
|
if (!this.pressed) {
|
|
@@ -1289,7 +1283,7 @@ class DragTargetContainerDirective {
|
|
|
1289
1283
|
}
|
|
1290
1284
|
return;
|
|
1291
1285
|
}
|
|
1292
|
-
isDragStartPrevented = this.emitZoneAwareEvent('
|
|
1286
|
+
isDragStartPrevented = this.emitZoneAwareEvent('onDragStart', event).isDefaultPrevented();
|
|
1293
1287
|
if (isDragStartPrevented) {
|
|
1294
1288
|
return;
|
|
1295
1289
|
}
|
|
@@ -1312,7 +1306,7 @@ class DragTargetContainerDirective {
|
|
|
1312
1306
|
if (!this.pressed || isDragStartPrevented) {
|
|
1313
1307
|
return;
|
|
1314
1308
|
}
|
|
1315
|
-
isDragPrevented = this.emitZoneAwareEvent('
|
|
1309
|
+
isDragPrevented = this.emitZoneAwareEvent('onDrag', event).isDefaultPrevented();
|
|
1316
1310
|
if (isDragPrevented) {
|
|
1317
1311
|
return;
|
|
1318
1312
|
}
|
|
@@ -1322,7 +1316,6 @@ class DragTargetContainerDirective {
|
|
|
1322
1316
|
else {
|
|
1323
1317
|
this.dragStarted = true;
|
|
1324
1318
|
}
|
|
1325
|
-
this.dragStarted && this.emitZoneAwareEvent('drag', event);
|
|
1326
1319
|
}
|
|
1327
1320
|
handleRelease(event) {
|
|
1328
1321
|
if (this.dragStarted) {
|
|
@@ -1333,7 +1326,7 @@ class DragTargetContainerDirective {
|
|
|
1333
1326
|
this.dragTimeout = null;
|
|
1334
1327
|
this.pressed = false;
|
|
1335
1328
|
}
|
|
1336
|
-
this.emitZoneAwareEvent('
|
|
1329
|
+
this.emitZoneAwareEvent('onRelease', event);
|
|
1337
1330
|
}
|
|
1338
1331
|
handleDragEnd(event) {
|
|
1339
1332
|
var _a, _b;
|
|
@@ -1360,7 +1353,7 @@ class DragTargetContainerDirective {
|
|
|
1360
1353
|
this.service.dragTarget = null;
|
|
1361
1354
|
this.service.dragIndex = null;
|
|
1362
1355
|
this.currentDragTarget.element = null;
|
|
1363
|
-
this.emitZoneAwareEvent('
|
|
1356
|
+
this.emitZoneAwareEvent('onDragEnd', event);
|
|
1364
1357
|
if (isDragStartPrevented || isDragPrevented) {
|
|
1365
1358
|
return;
|
|
1366
1359
|
}
|
|
@@ -1431,22 +1424,22 @@ class DragTargetContainerDirective {
|
|
|
1431
1424
|
}
|
|
1432
1425
|
let eventArgs;
|
|
1433
1426
|
switch (event) {
|
|
1434
|
-
case '
|
|
1427
|
+
case 'onDragReady':
|
|
1435
1428
|
eventArgs = new DragTargetDragReadyEvent(eventProps);
|
|
1436
1429
|
break;
|
|
1437
|
-
case '
|
|
1430
|
+
case 'onPress':
|
|
1438
1431
|
eventArgs = new DragTargetPressEvent(eventProps);
|
|
1439
1432
|
break;
|
|
1440
|
-
case '
|
|
1433
|
+
case 'onDragStart':
|
|
1441
1434
|
eventArgs = new DragTargetDragStartEvent(eventProps);
|
|
1442
1435
|
break;
|
|
1443
|
-
case '
|
|
1436
|
+
case 'onDrag':
|
|
1444
1437
|
eventArgs = new DragTargetDragEvent(eventProps);
|
|
1445
1438
|
break;
|
|
1446
|
-
case '
|
|
1439
|
+
case 'onRelease':
|
|
1447
1440
|
eventArgs = new DragTargetReleaseEvent(eventProps);
|
|
1448
1441
|
break;
|
|
1449
|
-
case '
|
|
1442
|
+
case 'onDragEnd':
|
|
1450
1443
|
eventArgs = new DragTargetDragEndEvent(eventProps);
|
|
1451
1444
|
break;
|
|
1452
1445
|
default:
|
|
@@ -1638,7 +1631,7 @@ class DragTargetContainerDirective {
|
|
|
1638
1631
|
}
|
|
1639
1632
|
}
|
|
1640
1633
|
DragTargetContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DragTargetContainerDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: DragStateService }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1641
|
-
DragTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DragTargetContainerDirective, selector: "[kendoDragTargetContainer]", inputs: { hint: "hint", dragTargetFilter: "dragTargetFilter", dragHandle: "dragHandle", dragDelay: "dragDelay", threshold: "threshold", dragTargetId: "dragTargetId", dragData: "dragData", dragDisabled: "dragDisabled", mode: "mode" }, outputs: {
|
|
1634
|
+
DragTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DragTargetContainerDirective, selector: "[kendoDragTargetContainer]", inputs: { hint: "hint", dragTargetFilter: "dragTargetFilter", dragHandle: "dragHandle", dragDelay: "dragDelay", threshold: "threshold", dragTargetId: "dragTargetId", dragData: "dragData", dragDisabled: "dragDisabled", mode: "mode" }, outputs: { onDragReady: "onDragReady", onPress: "onPress", onDragStart: "onDragStart", onDrag: "onDrag", onRelease: "onRelease", onDragEnd: "onDragEnd" }, exportAs: ["kendoDragTargetContainer"], ngImport: i0 });
|
|
1642
1635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DragTargetContainerDirective, decorators: [{
|
|
1643
1636
|
type: Directive,
|
|
1644
1637
|
args: [{
|
|
@@ -1663,17 +1656,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1663
1656
|
type: Input
|
|
1664
1657
|
}], mode: [{
|
|
1665
1658
|
type: Input
|
|
1666
|
-
}],
|
|
1659
|
+
}], onDragReady: [{
|
|
1667
1660
|
type: Output
|
|
1668
|
-
}],
|
|
1661
|
+
}], onPress: [{
|
|
1669
1662
|
type: Output
|
|
1670
|
-
}],
|
|
1663
|
+
}], onDragStart: [{
|
|
1671
1664
|
type: Output
|
|
1672
|
-
}],
|
|
1665
|
+
}], onDrag: [{
|
|
1673
1666
|
type: Output
|
|
1674
|
-
}],
|
|
1667
|
+
}], onRelease: [{
|
|
1675
1668
|
type: Output
|
|
1676
|
-
}],
|
|
1669
|
+
}], onDragEnd: [{
|
|
1677
1670
|
type: Output
|
|
1678
1671
|
}] } });
|
|
1679
1672
|
|
|
@@ -1697,19 +1690,19 @@ class DropTargetContainerDirective {
|
|
|
1697
1690
|
/**
|
|
1698
1691
|
* Fires when a DragTarget element enters the DropTarget.
|
|
1699
1692
|
*/
|
|
1700
|
-
this.
|
|
1693
|
+
this.onDragEnter = new EventEmitter();
|
|
1701
1694
|
/**
|
|
1702
1695
|
* Fires when a DragTarget element is being dragged over the DropTarget.
|
|
1703
1696
|
*/
|
|
1704
|
-
this.
|
|
1697
|
+
this.onDragOver = new EventEmitter();
|
|
1705
1698
|
/**
|
|
1706
1699
|
* Fires when a DragTarget element leaves the DropTarget.
|
|
1707
1700
|
*/
|
|
1708
|
-
this.
|
|
1701
|
+
this.onDragLeave = new EventEmitter();
|
|
1709
1702
|
/**
|
|
1710
1703
|
* Fires when a DragTarget element is dropped over the DropTarget.
|
|
1711
1704
|
*/
|
|
1712
|
-
this.
|
|
1705
|
+
this.onDrop = new EventEmitter();
|
|
1713
1706
|
this.currentDropTarget = null;
|
|
1714
1707
|
this.currentDropTargetElement = null;
|
|
1715
1708
|
this.previousDropTargets = [];
|
|
@@ -1776,7 +1769,7 @@ class DropTargetContainerDirective {
|
|
|
1776
1769
|
this.currentDropTarget = this.service.dropTargets.find(dt => dt.element === this.currentDropTargetElement);
|
|
1777
1770
|
this.service.dropTarget = this.currentDropTarget;
|
|
1778
1771
|
this.service.dropIndex = this.getDropIndex();
|
|
1779
|
-
this.emitZoneAwareEvent('
|
|
1772
|
+
this.emitZoneAwareEvent('onDragEnter', event);
|
|
1780
1773
|
}
|
|
1781
1774
|
/**
|
|
1782
1775
|
* @hidden
|
|
@@ -1786,7 +1779,7 @@ class DropTargetContainerDirective {
|
|
|
1786
1779
|
if (!this.service.dragTarget) {
|
|
1787
1780
|
return;
|
|
1788
1781
|
}
|
|
1789
|
-
this.emitZoneAwareEvent('
|
|
1782
|
+
this.emitZoneAwareEvent('onDragLeave', event);
|
|
1790
1783
|
}
|
|
1791
1784
|
/**
|
|
1792
1785
|
* @hidden
|
|
@@ -1795,7 +1788,7 @@ class DropTargetContainerDirective {
|
|
|
1795
1788
|
if (!this.service.dragTarget) {
|
|
1796
1789
|
return;
|
|
1797
1790
|
}
|
|
1798
|
-
this.emitZoneAwareEvent('
|
|
1791
|
+
this.emitZoneAwareEvent('onDragOver', event);
|
|
1799
1792
|
}
|
|
1800
1793
|
/**
|
|
1801
1794
|
* @hidden
|
|
@@ -1804,7 +1797,7 @@ class DropTargetContainerDirective {
|
|
|
1804
1797
|
if (!this.service.dragTarget) {
|
|
1805
1798
|
return;
|
|
1806
1799
|
}
|
|
1807
|
-
this.emitZoneAwareEvent('
|
|
1800
|
+
this.emitZoneAwareEvent('onDrop', event);
|
|
1808
1801
|
this.currentDropTarget = null;
|
|
1809
1802
|
this.currentDropTargetElement = null;
|
|
1810
1803
|
this.service.dropIndex = null;
|
|
@@ -1871,7 +1864,7 @@ class DropTargetContainerDirective {
|
|
|
1871
1864
|
}
|
|
1872
1865
|
}
|
|
1873
1866
|
DropTargetContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetContainerDirective, deps: [{ token: DragStateService }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1874
|
-
DropTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: DropTargetContainerDirective, selector: "[kendoDropTargetContainer]", inputs: { dropTargetFilter: "dropTargetFilter", dropDisabled: "dropDisabled" }, outputs: {
|
|
1867
|
+
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 });
|
|
1875
1868
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DropTargetContainerDirective, decorators: [{
|
|
1876
1869
|
type: Directive,
|
|
1877
1870
|
args: [{
|
|
@@ -1882,13 +1875,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1882
1875
|
type: Input
|
|
1883
1876
|
}], dropDisabled: [{
|
|
1884
1877
|
type: Input
|
|
1885
|
-
}],
|
|
1878
|
+
}], onDragEnter: [{
|
|
1886
1879
|
type: Output
|
|
1887
|
-
}],
|
|
1880
|
+
}], onDragOver: [{
|
|
1888
1881
|
type: Output
|
|
1889
|
-
}],
|
|
1882
|
+
}], onDragLeave: [{
|
|
1890
1883
|
type: Output
|
|
1891
|
-
}],
|
|
1884
|
+
}], onDrop: [{
|
|
1892
1885
|
type: Output
|
|
1893
1886
|
}] } });
|
|
1894
1887
|
|