@progress/kendo-angular-utils 14.0.0-develop.9 → 14.0.1-develop.1
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 +1 -1
- package/esm2020/drag-and-drop/dragtarget-container.directive.mjs +1 -1
- package/esm2020/drag-and-drop/droptarget-container.directive.mjs +5 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-utils.mjs +8 -3
- package/fesm2020/progress-kendo-angular-utils.mjs +7 -3
- package/package.json +3 -3
|
@@ -50,7 +50,7 @@ export declare class DragTargetContainerDirective implements AfterViewInit {
|
|
|
50
50
|
*/
|
|
51
51
|
dragDelay: number;
|
|
52
52
|
/**
|
|
53
|
-
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug
|
|
53
|
+
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug minimum_distance %})).
|
|
54
54
|
*
|
|
55
55
|
* @default 0
|
|
56
56
|
*/
|
|
@@ -49,7 +49,7 @@ export class DragTargetContainerDirective {
|
|
|
49
49
|
*/
|
|
50
50
|
this.dragDelay = 0;
|
|
51
51
|
/**
|
|
52
|
-
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug
|
|
52
|
+
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug minimum_distance %})).
|
|
53
53
|
*
|
|
54
54
|
* @default 0
|
|
55
55
|
*/
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ChangeDetectorRef, Directive, ElementRef, EventEmitter, Input, NgZone, Output } from '@angular/core';
|
|
6
|
+
import { contains } from '@progress/kendo-angular-common';
|
|
6
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
7
8
|
import { packageMetadata } from '../package-metadata';
|
|
8
9
|
import { DragStateService } from './drag-state.service';
|
|
@@ -115,6 +116,10 @@ export class DropTargetContainerDirective {
|
|
|
115
116
|
* @hidden
|
|
116
117
|
*/
|
|
117
118
|
handleDragLeave(event) {
|
|
119
|
+
const containsEventTarget = isPresent(this.service.dropTarget) && contains(this.service.dropTarget?.element, event.originalEvent.target, false);
|
|
120
|
+
if (containsEventTarget) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
118
123
|
this.service.dropTarget = null;
|
|
119
124
|
if (!this.service.dragTarget) {
|
|
120
125
|
return;
|
|
@@ -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: '14.0.
|
|
12
|
+
publishDate: 1697447313,
|
|
13
|
+
version: '14.0.1-develop.1',
|
|
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: '14.0.
|
|
22
|
+
publishDate: 1697447313,
|
|
23
|
+
version: '14.0.1-develop.1',
|
|
24
24
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -1101,7 +1101,7 @@ class DragTargetContainerDirective {
|
|
|
1101
1101
|
*/
|
|
1102
1102
|
this.dragDelay = 0;
|
|
1103
1103
|
/**
|
|
1104
|
-
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug
|
|
1104
|
+
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug minimum_distance %})).
|
|
1105
1105
|
*
|
|
1106
1106
|
* @default 0
|
|
1107
1107
|
*/
|
|
@@ -1788,6 +1788,11 @@ class DropTargetContainerDirective {
|
|
|
1788
1788
|
* @hidden
|
|
1789
1789
|
*/
|
|
1790
1790
|
handleDragLeave(event) {
|
|
1791
|
+
var _a;
|
|
1792
|
+
const containsEventTarget = isPresent(this.service.dropTarget) && contains((_a = this.service.dropTarget) === null || _a === void 0 ? void 0 : _a.element, event.originalEvent.target, false);
|
|
1793
|
+
if (containsEventTarget) {
|
|
1794
|
+
return;
|
|
1795
|
+
}
|
|
1791
1796
|
this.service.dropTarget = null;
|
|
1792
1797
|
if (!this.service.dragTarget) {
|
|
1793
1798
|
return;
|
|
@@ -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: '14.0.
|
|
22
|
+
publishDate: 1697447313,
|
|
23
|
+
version: '14.0.1-develop.1',
|
|
24
24
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -1099,7 +1099,7 @@ class DragTargetContainerDirective {
|
|
|
1099
1099
|
*/
|
|
1100
1100
|
this.dragDelay = 0;
|
|
1101
1101
|
/**
|
|
1102
|
-
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug
|
|
1102
|
+
* The number of pixels the pointer moves in any direction before the dragging starts ([see example]({% slug minimum_distance %})).
|
|
1103
1103
|
*
|
|
1104
1104
|
* @default 0
|
|
1105
1105
|
*/
|
|
@@ -1785,6 +1785,10 @@ class DropTargetContainerDirective {
|
|
|
1785
1785
|
* @hidden
|
|
1786
1786
|
*/
|
|
1787
1787
|
handleDragLeave(event) {
|
|
1788
|
+
const containsEventTarget = isPresent(this.service.dropTarget) && contains(this.service.dropTarget?.element, event.originalEvent.target, false);
|
|
1789
|
+
if (containsEventTarget) {
|
|
1790
|
+
return;
|
|
1791
|
+
}
|
|
1788
1792
|
this.service.dropTarget = null;
|
|
1789
1793
|
if (!this.service.dragTarget) {
|
|
1790
1794
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-utils",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.1-develop.1",
|
|
4
4
|
"description": "Kendo UI Angular utils component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@angular/core": "13 - 16",
|
|
24
24
|
"@angular/platform-browser": "13 - 16",
|
|
25
25
|
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
-
"@progress/kendo-angular-common": "14.0.
|
|
26
|
+
"@progress/kendo-angular-common": "14.0.1-develop.1",
|
|
27
27
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.3.1",
|
|
31
|
-
"@progress/kendo-angular-schematics": "14.0.
|
|
31
|
+
"@progress/kendo-angular-schematics": "14.0.1-develop.1",
|
|
32
32
|
"@progress/kendo-draggable-common": "^0.2.3"
|
|
33
33
|
},
|
|
34
34
|
"schematics": "./schematics/collection.json",
|