@syncfusion/ej2-dropdowns 20.4.49 → 20.4.50

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.4.49
3
+ * version : 20.4.50
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-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@20.4.48",
3
+ "_id": "@syncfusion/ej2-dropdowns@20.4.49",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Khb/UF5jFyPrtARpcvEhyFB+REWjReXx8IUGQrfdowWsusMfqab06YnYhYErBYeaLS8Udg07rad2Hw+HmLqEtA==",
5
+ "_integrity": "sha512-0kyVOTb2w3LUnY0asuLT6GIzQpkZDYmQOJbxxzRkY/R+LN6eP0TAoQq7SLu1p5PDEmaJmjRdsVlKDe8oHtIEbg==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -33,8 +33,8 @@
33
33
  "/@syncfusion/ej2-spreadsheet",
34
34
  "/@syncfusion/ej2-vue-dropdowns"
35
35
  ],
36
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.48.tgz",
37
- "_shasum": "4406ad026f994da04dc09ab9c333fd5beb379d27",
36
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.49.tgz",
37
+ "_shasum": "579bc8d85a3577d765f3bad0fea9bfd7873ab367",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
40
40
  "author": {
@@ -45,7 +45,7 @@
45
45
  "@syncfusion/ej2-base": "~20.4.48",
46
46
  "@syncfusion/ej2-data": "~20.4.48",
47
47
  "@syncfusion/ej2-inputs": "~20.4.48",
48
- "@syncfusion/ej2-lists": "~20.4.48",
48
+ "@syncfusion/ej2-lists": "~20.4.50",
49
49
  "@syncfusion/ej2-navigations": "~20.4.49",
50
50
  "@syncfusion/ej2-popups": "~20.4.49"
51
51
  },
@@ -72,7 +72,7 @@
72
72
  "module": "./index.js",
73
73
  "name": "@syncfusion/ej2-dropdowns",
74
74
  "typings": "index.d.ts",
75
- "version": "20.4.49",
75
+ "version": "20.4.50",
76
76
  "sideEffects": false,
77
77
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
78
78
  }
@@ -209,7 +209,7 @@ var DropDownList = /** @class */ (function (_super) {
209
209
  }
210
210
  else {
211
211
  if (this.allowFiltering && this.getModuleName() !== 'autocomplete'
212
- && !isNullOrUndefined(this.actionCompleteData.ulElement) && !isNullOrUndefined(this.actionCompleteData.list)) {
212
+ && !isNullOrUndefined(this.actionCompleteData.ulElement) && !isNullOrUndefined(this.actionCompleteData.list) && this.actionCompleteData.list.length > 0) {
213
213
  this.onActionComplete(this.actionCompleteData.ulElement.cloneNode(true), this.actionCompleteData.list);
214
214
  }
215
215
  this.resetFocusElement();
@@ -949,6 +949,9 @@ var DropDownList = /** @class */ (function (_super) {
949
949
  };
950
950
  DropDownList.prototype.selectEventCallback = function (li, e, preventSelect, selectedData, value) {
951
951
  this.previousItemData = (!isNullOrUndefined(this.itemData)) ? this.itemData : null;
952
+ if (this.itemData != selectedData) {
953
+ this.previousValue = (!isNullOrUndefined(this.itemData)) ? typeof this.itemData == "object" ? this.checkFieldValue(this.itemData, this.fields.value.split('.')) : this.itemData : null;
954
+ }
952
955
  this.item = li;
953
956
  this.itemData = selectedData;
954
957
  var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
@@ -3027,7 +3027,7 @@ var MultiSelect = /** @class */ (function (_super) {
3027
3027
  overAllContainer = this.componentWrapper.offsetWidth -
3028
3028
  parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
3029
3029
  parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
3030
- if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
3030
+ if ((wrapperleng + downIconWidth + this.clearIconWidth) >= overAllContainer) {
3031
3031
  if (tempData !== undefined && tempData !== '') {
3032
3032
  temp = tempData;
3033
3033
  index = tempIndex + 1;
@@ -3036,7 +3036,7 @@ var MultiSelect = /** @class */ (function (_super) {
3036
3036
  remaining = this.value.length - index;
3037
3037
  wrapperleng = this.viewWrapper.offsetWidth +
3038
3038
  parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10);
3039
- while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
3039
+ while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) >= overAllContainer) && wrapperleng !== 0
3040
3040
  && this.viewWrapper.innerHTML !== '') {
3041
3041
  var textArr = [];
3042
3042
  this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
@@ -3046,7 +3046,7 @@ var MultiSelect = /** @class */ (function (_super) {
3046
3046
  }
3047
3047
  break;
3048
3048
  }
3049
- else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) <= overAllContainer) {
3049
+ else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) < overAllContainer) {
3050
3050
  tempData = data;
3051
3051
  tempIndex = index;
3052
3052
  }
@@ -3239,6 +3239,7 @@ var MultiSelect = /** @class */ (function (_super) {
3239
3239
  else {
3240
3240
  this.updateValue(event, li, state);
3241
3241
  }
3242
+ this.addValidInputClass();
3242
3243
  };
3243
3244
  MultiSelect.prototype.updateValue = function (event, li, state) {
3244
3245
  var _this = this;