@syncfusion/ej2-lists 20.3.50 → 20.3.56

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 : 20.3.50
3
+ * version : 20.3.56
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-lists@*",
3
- "_id": "@syncfusion/ej2-lists@20.3.47",
3
+ "_id": "@syncfusion/ej2-lists@20.3.50",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-YfsxlVZSwlmJPLDKEg2X0IdRZJV+4LKeWsENgUchVKQoZDSclRcK6JHte/t81/Dt0s5Wo/ft1/7dXapc/hDyDQ==",
5
+ "_integrity": "sha512-lC7Tp5ffJRoD7Q9nOSGL54cJoUUPMQA6IE7Md6f5mCvoTqQWSY+a0p93CnS1JdGHPDka+yEiJbFM4TFGHErrdA==",
6
6
  "_location": "/@syncfusion/ej2-lists",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -34,18 +34,18 @@
34
34
  "/@syncfusion/ej2-schedule",
35
35
  "/@syncfusion/ej2-vue-lists"
36
36
  ],
37
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.3.47.tgz",
38
- "_shasum": "3c2ab01c399234ebc5a481d88296a08b991f7591",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.3.50.tgz",
38
+ "_shasum": "9b54f37a1b3eede8258af771002403ca544ea26a",
39
39
  "_spec": "@syncfusion/ej2-lists@*",
40
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
41
41
  "author": {
42
42
  "name": "Syncfusion Inc."
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~20.3.50",
47
- "@syncfusion/ej2-buttons": "~20.3.50",
48
- "@syncfusion/ej2-data": "~20.3.50"
46
+ "@syncfusion/ej2-base": "~20.3.56",
47
+ "@syncfusion/ej2-buttons": "~20.3.56",
48
+ "@syncfusion/ej2-data": "~20.3.56"
49
49
  },
50
50
  "deprecated": false,
51
51
  "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.",
@@ -85,6 +85,6 @@
85
85
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
86
86
  },
87
87
  "typings": "index.d.ts",
88
- "version": "20.3.50",
88
+ "version": "20.3.56",
89
89
  "sideEffects": false
90
90
  }
@@ -417,6 +417,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
417
417
  * Refresh the height of the list item only on enabling the virtualization property.
418
418
  */
419
419
  refreshItemHeight(): void;
420
+ targetElement: any;
420
421
  private clickHandler;
421
422
  private removeElement;
422
423
  private hoverHandler;
@@ -624,6 +624,7 @@ var ListView = /** @class */ (function (_super) {
624
624
  };
625
625
  ListView.prototype.clickHandler = function (e) {
626
626
  var target = e.target;
627
+ this.targetElement = target;
627
628
  var classList = target.classList;
628
629
  var closestElement;
629
630
  if (classList.contains(classNames.backIcon) || classList.contains(classNames.headerText)) {
@@ -671,10 +672,18 @@ var ListView = /** @class */ (function (_super) {
671
672
  }
672
673
  else {
673
674
  this.setCheckboxLI(li, e);
675
+ if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
676
+ target.classList.add('e-focused');
677
+ this.targetElement = target;
678
+ }
674
679
  }
675
680
  }
676
681
  else {
677
682
  this.setSelectLI(li, e);
683
+ if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
684
+ target.classList.add('e-focused');
685
+ this.targetElement = target;
686
+ }
678
687
  }
679
688
  closestElement = closest(e.target, 'li');
680
689
  if (!isNullOrUndefined(closestElement)) {
@@ -902,11 +911,7 @@ var ListView = /** @class */ (function (_super) {
902
911
  this.back();
903
912
  break;
904
913
  case 32:
905
- var textAreaFocus = void 0;
906
- if (!isNullOrUndefined(this.curUL)) {
907
- textAreaFocus = this.curUL.querySelector('textarea') || this.curUL.querySelector('input');
908
- }
909
- if (isNullOrUndefined(textAreaFocus) || !(textAreaFocus.classList.contains('e-focused'))) {
914
+ if (isNullOrUndefined(this.targetElement) || !(this.targetElement.classList.contains('e-focused'))) {
910
915
  this.spaceKeyHandler(e);
911
916
  }
912
917
  break;
@@ -119,6 +119,10 @@ var Sortable = /** @class */ (function (_super) {
119
119
  });
120
120
  }
121
121
  }
122
+ else if (_this.curTarget !== _this.target && _this.scope && _this.curTarget !== target && !isNullOrUndefined(newInst.placeHolder)) {
123
+ remove(_this.getSortableInstance(_this.curTarget).placeHolderElement);
124
+ _this.curTarget = _this.target;
125
+ }
122
126
  newInst = _this.getSortableInstance(_this.curTarget);
123
127
  if (isNullOrUndefined(target) && e.target !== newInst.placeHolderElement) {
124
128
  if (_this.isPlaceHolderPresent(newInst)) {