@progress/kendo-angular-utils 24.2.0-develop.5 → 24.2.0-develop.7
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.
|
@@ -148,6 +148,7 @@ export declare class DragTargetContainerDirective implements AfterViewInit, OnDe
|
|
|
148
148
|
private onTouchMove;
|
|
149
149
|
private onPointerUp;
|
|
150
150
|
private onContextMenu;
|
|
151
|
+
private onNativeDragStart;
|
|
151
152
|
private handlePress;
|
|
152
153
|
private handleDragStart;
|
|
153
154
|
private handleDrag;
|
|
@@ -118,6 +118,7 @@ export declare class DragTargetDirective implements OnInit, AfterContentInit, On
|
|
|
118
118
|
private onTouchMove;
|
|
119
119
|
private onPointerUp;
|
|
120
120
|
private onContextMenu;
|
|
121
|
+
private onNativeDragStart;
|
|
121
122
|
dragHandles: QueryList<DragHandleDirective>;
|
|
122
123
|
constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone, service: DragStateService, viewContainer: ViewContainerRef);
|
|
123
124
|
ngOnInit(): void;
|
|
@@ -63,8 +63,8 @@ const packageMetadata = {
|
|
|
63
63
|
productName: 'Kendo UI for Angular',
|
|
64
64
|
productCode: 'KENDOUIANGULAR',
|
|
65
65
|
productCodes: ['KENDOUIANGULAR'],
|
|
66
|
-
publishDate:
|
|
67
|
-
version: '24.2.0-develop.
|
|
66
|
+
publishDate: 1782230436,
|
|
67
|
+
version: '24.2.0-develop.7',
|
|
68
68
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
69
69
|
};
|
|
70
70
|
|
|
@@ -831,6 +831,9 @@ class DragTargetContainerDirective {
|
|
|
831
831
|
this.service.handleDragAndDrop(action);
|
|
832
832
|
this.subscribe();
|
|
833
833
|
}
|
|
834
|
+
onNativeDragStart(event) {
|
|
835
|
+
event.preventDefault();
|
|
836
|
+
}
|
|
834
837
|
handlePress(event) {
|
|
835
838
|
if (this.dragDelay > 0) {
|
|
836
839
|
this.dragTimeout = window.setTimeout(() => {
|
|
@@ -974,6 +977,7 @@ class DragTargetContainerDirective {
|
|
|
974
977
|
element.removeEventListener('pointerdown', this.onPointerDown);
|
|
975
978
|
element.removeEventListener('mousedown', this.onPointerDown);
|
|
976
979
|
element.removeEventListener('touchstart', this.onTouchStart);
|
|
980
|
+
element.removeEventListener('dragstart', this.onNativeDragStart);
|
|
977
981
|
}
|
|
978
982
|
get supportPointerEvent() {
|
|
979
983
|
return Boolean(typeof window !== 'undefined' && window.PointerEvent);
|
|
@@ -990,7 +994,9 @@ class DragTargetContainerDirective {
|
|
|
990
994
|
this.onContextMenu = this.onContextMenu.bind(this);
|
|
991
995
|
this.onPointerDown = this.onPointerDown.bind(this);
|
|
992
996
|
this.onTouchStart = this.onTouchStart.bind(this);
|
|
997
|
+
this.onNativeDragStart = this.onNativeDragStart.bind(this);
|
|
993
998
|
const element = this.nativeElement;
|
|
999
|
+
element.addEventListener('dragstart', this.onNativeDragStart);
|
|
994
1000
|
if (this.supportPointerEvent) {
|
|
995
1001
|
if (isPresent(this.scrollableParent)) {
|
|
996
1002
|
this.scrollableParent.addEventListener('scroll', this.onPointerMove, { passive: true });
|
|
@@ -1443,6 +1449,9 @@ class DragTargetDirective {
|
|
|
1443
1449
|
this.service.handleDragAndDrop(action);
|
|
1444
1450
|
this.attachDomHandlers();
|
|
1445
1451
|
}
|
|
1452
|
+
onNativeDragStart(event) {
|
|
1453
|
+
event.preventDefault();
|
|
1454
|
+
}
|
|
1446
1455
|
dragHandles;
|
|
1447
1456
|
constructor(element, renderer, ngZone, service, viewContainer) {
|
|
1448
1457
|
this.element = element;
|
|
@@ -1494,6 +1503,18 @@ class DragTargetDirective {
|
|
|
1494
1503
|
return;
|
|
1495
1504
|
}
|
|
1496
1505
|
if (!this.dragReady) {
|
|
1506
|
+
if (this.dragTimeout) {
|
|
1507
|
+
window.clearTimeout(this.dragTimeout);
|
|
1508
|
+
this.dragTimeout = null;
|
|
1509
|
+
}
|
|
1510
|
+
this.pressed = false;
|
|
1511
|
+
if (this.prevUserSelect) {
|
|
1512
|
+
this.renderer.setStyle(this.dragTarget.element, 'user-select', this.prevUserSelect);
|
|
1513
|
+
}
|
|
1514
|
+
else {
|
|
1515
|
+
this.renderer.removeStyle(this.dragTarget.element, 'user-select');
|
|
1516
|
+
}
|
|
1517
|
+
this.prevUserSelect = null;
|
|
1497
1518
|
return;
|
|
1498
1519
|
}
|
|
1499
1520
|
isDragStartPrevented = this.emitZoneAwareEvent('onDragStart', event).isDefaultPrevented();
|
|
@@ -1616,6 +1637,7 @@ class DragTargetDirective {
|
|
|
1616
1637
|
element.removeEventListener('pointerdown', this.onPointerDown);
|
|
1617
1638
|
element.removeEventListener('mousedown', this.onPointerDown);
|
|
1618
1639
|
element.removeEventListener('touchstart', this.onTouchStart);
|
|
1640
|
+
element.removeEventListener('dragstart', this.onNativeDragStart);
|
|
1619
1641
|
}
|
|
1620
1642
|
attachDomHandlers() {
|
|
1621
1643
|
this.ngZone.runOutsideAngular(() => {
|
|
@@ -1629,7 +1651,9 @@ class DragTargetDirective {
|
|
|
1629
1651
|
this.onContextMenu = this.onContextMenu.bind(this);
|
|
1630
1652
|
this.onPointerDown = this.onPointerDown.bind(this);
|
|
1631
1653
|
this.onTouchStart = this.onTouchStart.bind(this);
|
|
1654
|
+
this.onNativeDragStart = this.onNativeDragStart.bind(this);
|
|
1632
1655
|
const element = this.nativeElement;
|
|
1656
|
+
element.addEventListener('dragstart', this.onNativeDragStart);
|
|
1633
1657
|
if (this.supportPointerEvent) {
|
|
1634
1658
|
if (isPresent(this.scrollableParent)) {
|
|
1635
1659
|
if (this.scrollableParent === document.getElementsByTagName('html')[0]) {
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.2.0-develop.
|
|
10
|
+
"publishDate": 1782230436,
|
|
11
|
+
"version": "24.2.0-develop.7",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-utils",
|
|
3
|
-
"version": "24.2.0-develop.
|
|
3
|
+
"version": "24.2.0-develop.7",
|
|
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": 1782230436,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@angular/core": "19 - 22",
|
|
30
30
|
"@angular/platform-browser": "19 - 22",
|
|
31
31
|
"@progress/kendo-licensing": "^1.11.0",
|
|
32
|
-
"@progress/kendo-angular-common": "24.2.0-develop.
|
|
32
|
+
"@progress/kendo-angular-common": "24.2.0-develop.7",
|
|
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": "24.2.0-develop.
|
|
37
|
+
"@progress/kendo-angular-schematics": "24.2.0-develop.7",
|
|
38
38
|
"@progress/kendo-draggable-common": "^0.2.3"
|
|
39
39
|
},
|
|
40
40
|
"schematics": "./schematics/collection.json",
|