@progress/kendo-angular-utils 14.0.0 → 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.
@@ -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: 1696935689,
13
- version: '14.0.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: 1696935689,
23
- version: '14.0.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
 
@@ -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: 1696935689,
23
- version: '14.0.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
 
@@ -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.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.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.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",