@syncfusion/ej2-lists 33.1.47 → 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.
- package/dist/ej2-lists.min.js +2 -2
- package/dist/ej2-lists.umd.min.js +2 -2
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +5 -4
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +5 -4
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +2 -2
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/sortable/sortable.js +5 -4
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 33.
|
|
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.
|
|
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.
|
|
12
|
-
"@syncfusion/ej2-buttons": "~33.
|
|
13
|
-
"@syncfusion/ej2-data": "~33.
|
|
14
|
-
"@syncfusion/ej2-popups": "~33.
|
|
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": [
|
package/src/sortable/sortable.js
CHANGED
|
@@ -207,18 +207,19 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
207
207
|
if (dropInst.element.querySelector('.e-list-nrt')) {
|
|
208
208
|
curIdx = curIdx - 1;
|
|
209
209
|
}
|
|
210
|
-
var sortableTargetElement = _this.getSortableElement(e.target, dropInst);
|
|
210
|
+
var sortableTargetElement = _this.getSortableElement(e.target, dropInst) || e.target.querySelector('.e-grabbed');
|
|
211
|
+
var isDroppedOnContainer = dropInst.element === e.target && !sortableTargetElement;
|
|
211
212
|
if (_this.curTarget === _this.target && sortableTargetElement === _this.curTarget) {
|
|
212
213
|
curIdx = prevIdx;
|
|
213
214
|
}
|
|
214
|
-
if (
|
|
215
|
+
if (isDroppedOnContainer || (!isPlaceHolderPresent && _this.curTarget === _this.target)) {
|
|
215
216
|
var beforeDropArgs = {
|
|
216
217
|
previousIndex: prevIdx, currentIndex: curIdx,
|
|
217
218
|
target: e.target, droppedElement: _this.target, helper: e.helper, cancel: false
|
|
218
219
|
};
|
|
219
220
|
_this.trigger('beforeDrop', beforeDropArgs, function (observedArgs) {
|
|
220
|
-
if ((
|
|
221
|
-
||
|
|
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) {
|
|
222
223
|
_this.updateItemClass(dropInst);
|
|
223
224
|
dropInst.element.appendChild(_this.target);
|
|
224
225
|
_this.trigger('drop', {
|