@progress/kendo-angular-utils 19.0.0-develop.15 → 19.0.0-develop.17
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.
|
@@ -116,6 +116,7 @@ export class DragTargetDirective {
|
|
|
116
116
|
hintComponent = null;
|
|
117
117
|
dragStarted = false;
|
|
118
118
|
pressed = false;
|
|
119
|
+
dragReady = false;
|
|
119
120
|
dragTimeout = null;
|
|
120
121
|
initialPosition = { x: 0, y: 0 };
|
|
121
122
|
position = { x: 0, y: 0 };
|
|
@@ -202,14 +203,15 @@ export class DragTargetDirective {
|
|
|
202
203
|
this.service.dragTargets.splice(currentDragTargetIndex, 1);
|
|
203
204
|
}
|
|
204
205
|
handlePress(event) {
|
|
206
|
+
this.pressed = true;
|
|
205
207
|
if (this.dragDelay > 0) {
|
|
206
208
|
this.dragTimeout = window.setTimeout(() => {
|
|
207
|
-
this.
|
|
209
|
+
this.dragReady = true;
|
|
208
210
|
this.emitZoneAwareEvent('onDragReady', event);
|
|
209
211
|
}, this.dragDelay);
|
|
210
212
|
}
|
|
211
213
|
else {
|
|
212
|
-
this.
|
|
214
|
+
this.dragReady = true;
|
|
213
215
|
}
|
|
214
216
|
this.scrollableParent = this.dragTarget.element ? getScrollableParent(this.dragTarget.element) : null;
|
|
215
217
|
this.prevUserSelect = this.dragTarget.element.style.userSelect;
|
|
@@ -224,6 +226,9 @@ export class DragTargetDirective {
|
|
|
224
226
|
}
|
|
225
227
|
return;
|
|
226
228
|
}
|
|
229
|
+
if (!this.dragReady) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
227
232
|
isDragStartPrevented = this.emitZoneAwareEvent('onDragStart', event).isDefaultPrevented();
|
|
228
233
|
if (isDragStartPrevented) {
|
|
229
234
|
return;
|
|
@@ -244,7 +249,7 @@ export class DragTargetDirective {
|
|
|
244
249
|
this.service.dragData = this.dragData({ dragTarget: this.dragTarget.element, dragTargetId: this.dragTargetIdResult, dragTargetIndex: null });
|
|
245
250
|
}
|
|
246
251
|
handleDrag(event) {
|
|
247
|
-
if (!this.pressed || isDragStartPrevented) {
|
|
252
|
+
if (!this.pressed || !this.dragReady || isDragStartPrevented) {
|
|
248
253
|
return;
|
|
249
254
|
}
|
|
250
255
|
const elem = this.hint ? this.hintElem : this.nativeElement;
|
|
@@ -273,6 +278,7 @@ export class DragTargetDirective {
|
|
|
273
278
|
this.dragTimeout = null;
|
|
274
279
|
}
|
|
275
280
|
this.pressed = false;
|
|
281
|
+
this.dragReady = false;
|
|
276
282
|
this.prevUserSelect ? this.renderer.setStyle(this.dragTarget.element, 'user-select', this.prevUserSelect) :
|
|
277
283
|
this.renderer.removeStyle(this.dragTarget.element, 'user-select');
|
|
278
284
|
this.prevUserSelect = null;
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.0.0-develop.
|
|
13
|
+
publishDate: 1747240080,
|
|
14
|
+
version: '19.0.0-develop.17',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -55,8 +55,8 @@ const packageMetadata = {
|
|
|
55
55
|
productName: 'Kendo UI for Angular',
|
|
56
56
|
productCode: 'KENDOUIANGULAR',
|
|
57
57
|
productCodes: ['KENDOUIANGULAR'],
|
|
58
|
-
publishDate:
|
|
59
|
-
version: '19.0.0-develop.
|
|
58
|
+
publishDate: 1747240080,
|
|
59
|
+
version: '19.0.0-develop.17',
|
|
60
60
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -1367,6 +1367,7 @@ class DragTargetDirective {
|
|
|
1367
1367
|
hintComponent = null;
|
|
1368
1368
|
dragStarted = false;
|
|
1369
1369
|
pressed = false;
|
|
1370
|
+
dragReady = false;
|
|
1370
1371
|
dragTimeout = null;
|
|
1371
1372
|
initialPosition = { x: 0, y: 0 };
|
|
1372
1373
|
position = { x: 0, y: 0 };
|
|
@@ -1453,14 +1454,15 @@ class DragTargetDirective {
|
|
|
1453
1454
|
this.service.dragTargets.splice(currentDragTargetIndex, 1);
|
|
1454
1455
|
}
|
|
1455
1456
|
handlePress(event) {
|
|
1457
|
+
this.pressed = true;
|
|
1456
1458
|
if (this.dragDelay > 0) {
|
|
1457
1459
|
this.dragTimeout = window.setTimeout(() => {
|
|
1458
|
-
this.
|
|
1460
|
+
this.dragReady = true;
|
|
1459
1461
|
this.emitZoneAwareEvent('onDragReady', event);
|
|
1460
1462
|
}, this.dragDelay);
|
|
1461
1463
|
}
|
|
1462
1464
|
else {
|
|
1463
|
-
this.
|
|
1465
|
+
this.dragReady = true;
|
|
1464
1466
|
}
|
|
1465
1467
|
this.scrollableParent = this.dragTarget.element ? getScrollableParent(this.dragTarget.element) : null;
|
|
1466
1468
|
this.prevUserSelect = this.dragTarget.element.style.userSelect;
|
|
@@ -1475,6 +1477,9 @@ class DragTargetDirective {
|
|
|
1475
1477
|
}
|
|
1476
1478
|
return;
|
|
1477
1479
|
}
|
|
1480
|
+
if (!this.dragReady) {
|
|
1481
|
+
return;
|
|
1482
|
+
}
|
|
1478
1483
|
isDragStartPrevented = this.emitZoneAwareEvent('onDragStart', event).isDefaultPrevented();
|
|
1479
1484
|
if (isDragStartPrevented) {
|
|
1480
1485
|
return;
|
|
@@ -1495,7 +1500,7 @@ class DragTargetDirective {
|
|
|
1495
1500
|
this.service.dragData = this.dragData({ dragTarget: this.dragTarget.element, dragTargetId: this.dragTargetIdResult, dragTargetIndex: null });
|
|
1496
1501
|
}
|
|
1497
1502
|
handleDrag(event) {
|
|
1498
|
-
if (!this.pressed || isDragStartPrevented) {
|
|
1503
|
+
if (!this.pressed || !this.dragReady || isDragStartPrevented) {
|
|
1499
1504
|
return;
|
|
1500
1505
|
}
|
|
1501
1506
|
const elem = this.hint ? this.hintElem : this.nativeElement;
|
|
@@ -1524,6 +1529,7 @@ class DragTargetDirective {
|
|
|
1524
1529
|
this.dragTimeout = null;
|
|
1525
1530
|
}
|
|
1526
1531
|
this.pressed = false;
|
|
1532
|
+
this.dragReady = false;
|
|
1527
1533
|
this.prevUserSelect ? this.renderer.setStyle(this.dragTarget.element, 'user-select', this.prevUserSelect) :
|
|
1528
1534
|
this.renderer.removeStyle(this.dragTarget.element, 'user-select');
|
|
1529
1535
|
this.prevUserSelect = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-utils",
|
|
3
|
-
"version": "19.0.0-develop.
|
|
3
|
+
"version": "19.0.0-develop.17",
|
|
4
4
|
"description": "Kendo UI Angular utils component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1747240080,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@angular/core": "16 - 19",
|
|
30
30
|
"@angular/platform-browser": "16 - 19",
|
|
31
31
|
"@progress/kendo-licensing": "^1.5.0",
|
|
32
|
-
"@progress/kendo-angular-common": "19.0.0-develop.
|
|
32
|
+
"@progress/kendo-angular-common": "19.0.0-develop.17",
|
|
33
33
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.3.1",
|
|
37
|
-
"@progress/kendo-angular-schematics": "19.0.0-develop.
|
|
37
|
+
"@progress/kendo-angular-schematics": "19.0.0-develop.17",
|
|
38
38
|
"@progress/kendo-draggable-common": "^0.2.3"
|
|
39
39
|
},
|
|
40
40
|
"schematics": "./schematics/collection.json",
|