@syncfusion/ej2-lists 20.3.47 → 20.3.51
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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/ej2-lists.min.js +1 -10
- package/dist/ej2-lists.umd.min.js +1 -10
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +14 -5
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +14 -5
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +1 -10
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +89 -89
- package/src/list-view/list-view-model.d.ts +3 -3
- package/src/list-view/list-view.d.ts +4 -3
- package/src/list-view/list-view.js +10 -5
- package/src/sortable/sortable.js +4 -0
|
@@ -1642,6 +1642,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
1642
1642
|
};
|
|
1643
1643
|
ListView.prototype.clickHandler = function (e) {
|
|
1644
1644
|
var target = e.target;
|
|
1645
|
+
this.targetElement = target;
|
|
1645
1646
|
var classList = target.classList;
|
|
1646
1647
|
var closestElement;
|
|
1647
1648
|
if (classList.contains(classNames.backIcon) || classList.contains(classNames.headerText)) {
|
|
@@ -1689,10 +1690,18 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
1689
1690
|
}
|
|
1690
1691
|
else {
|
|
1691
1692
|
this.setCheckboxLI(li, e);
|
|
1693
|
+
if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
|
|
1694
|
+
target.classList.add('e-focused');
|
|
1695
|
+
this.targetElement = target;
|
|
1696
|
+
}
|
|
1692
1697
|
}
|
|
1693
1698
|
}
|
|
1694
1699
|
else {
|
|
1695
1700
|
this.setSelectLI(li, e);
|
|
1701
|
+
if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
|
|
1702
|
+
target.classList.add('e-focused');
|
|
1703
|
+
this.targetElement = target;
|
|
1704
|
+
}
|
|
1696
1705
|
}
|
|
1697
1706
|
closestElement = closest(e.target, 'li');
|
|
1698
1707
|
if (!isNullOrUndefined(closestElement)) {
|
|
@@ -1920,11 +1929,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
|
|
|
1920
1929
|
this.back();
|
|
1921
1930
|
break;
|
|
1922
1931
|
case 32:
|
|
1923
|
-
|
|
1924
|
-
if (!isNullOrUndefined(this.curUL)) {
|
|
1925
|
-
textAreaFocus = this.curUL.querySelector('textarea') || this.curUL.querySelector('input');
|
|
1926
|
-
}
|
|
1927
|
-
if (isNullOrUndefined(textAreaFocus) || !(textAreaFocus.classList.contains('e-focused'))) {
|
|
1932
|
+
if (isNullOrUndefined(this.targetElement) || !(this.targetElement.classList.contains('e-focused'))) {
|
|
1928
1933
|
this.spaceKeyHandler(e);
|
|
1929
1934
|
}
|
|
1930
1935
|
break;
|
|
@@ -4351,6 +4356,10 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
|
|
|
4351
4356
|
});
|
|
4352
4357
|
}
|
|
4353
4358
|
}
|
|
4359
|
+
else if (_this.curTarget !== _this.target && _this.scope && _this.curTarget !== target && !isNullOrUndefined(newInst.placeHolder)) {
|
|
4360
|
+
remove(_this.getSortableInstance(_this.curTarget).placeHolderElement);
|
|
4361
|
+
_this.curTarget = _this.target;
|
|
4362
|
+
}
|
|
4354
4363
|
newInst = _this.getSortableInstance(_this.curTarget);
|
|
4355
4364
|
if (isNullOrUndefined(target) && e.target !== newInst.placeHolderElement) {
|
|
4356
4365
|
if (_this.isPlaceHolderPresent(newInst)) {
|