@syncfusion/ej2-lists 33.1.44 → 33.2.3

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.44
3
+ * version : 33.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-lists",
3
- "version": "33.1.44",
3
+ "version": "33.2.3",
4
4
  "description": "The listview control allows you to select an item or multiple items from a list-like interface and represents the data in interactive hierarchical structure across different layouts or views.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,10 +8,10 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-lists.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~33.1.44",
12
- "@syncfusion/ej2-buttons": "~33.1.44",
13
- "@syncfusion/ej2-data": "~33.1.44",
14
- "@syncfusion/ej2-popups": "~33.1.44"
11
+ "@syncfusion/ej2-base": "~33.2.3",
12
+ "@syncfusion/ej2-buttons": "~33.2.3",
13
+ "@syncfusion/ej2-data": "~33.2.3",
14
+ "@syncfusion/ej2-popups": "~33.2.3"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -207,17 +207,19 @@ var Sortable = /** @class */ (function (_super) {
207
207
  if (dropInst.element.querySelector('.e-list-nrt')) {
208
208
  curIdx = curIdx - 1;
209
209
  }
210
- if (_this.curTarget === _this.target && e.target === _this.curTarget) {
210
+ var sortableTargetElement = _this.getSortableElement(e.target, dropInst) || e.target.querySelector('.e-grabbed');
211
+ var isDroppedOnContainer = dropInst.element === e.target && !sortableTargetElement;
212
+ if (_this.curTarget === _this.target && sortableTargetElement === _this.curTarget) {
211
213
  curIdx = prevIdx;
212
214
  }
213
- if (dropInst.element === e.target || (!isPlaceHolderPresent && _this.curTarget === _this.target)) {
215
+ if (isDroppedOnContainer || (!isPlaceHolderPresent && _this.curTarget === _this.target)) {
214
216
  var beforeDropArgs = {
215
217
  previousIndex: prevIdx, currentIndex: curIdx,
216
218
  target: e.target, droppedElement: _this.target, helper: e.helper, cancel: false
217
219
  };
218
220
  _this.trigger('beforeDrop', beforeDropArgs, function (observedArgs) {
219
- if ((dropInst.element === e.target || (typeof e.target.className === 'string' && e.target.className.indexOf('e-list-nrt') > -1) || (typeof e.target.className === 'string' && e.target.className.indexOf('e-list-nr-template') > -1)
220
- || e.target.closest('.e-list-nr-template')) && !observedArgs.cancel) {
221
+ if ((isDroppedOnContainer || (typeof sortableTargetElement.className === 'string' && sortableTargetElement.className.indexOf('e-list-nrt') > -1) || (typeof sortableTargetElement.className === 'string' && sortableTargetElement.className.indexOf('e-list-nr-template') > -1)
222
+ || sortableTargetElement.closest('.e-list-nr-template')) && !observedArgs.cancel) {
221
223
  _this.updateItemClass(dropInst);
222
224
  dropInst.element.appendChild(_this.target);
223
225
  _this.trigger('drop', {