@syncfusion/ej2-dropdowns 20.1.56 → 20.1.57

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.1.56
3
+ * version : 20.1.57
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.1.55",
3
+ "_id": "@syncfusion/ej2-dropdowns@20.1.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-g214RNBPi745vj8rFCbtCIhyTt8n4l135Kx9VDsIzI55uvvBN+0bjGaE2FwI/9EHlYdP6PCBXajFfcxo9a8w2A==",
5
+ "_integrity": "sha512-In0wEvT1i7Ix8cwjr9i5DqPsUXGhjXAP14hxxFgEWCfSUAmtD0PYlt7HMcT9yldBNRYDbT+ajm8ouhTuxqd6pg==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.1.55.tgz",
37
- "_shasum": "419731acc345965a34b619b56e650f7241c52284",
36
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.1.56.tgz",
37
+ "_shasum": "2863338809c7a7578df8277bf92660180b110519",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
40
  "author": {
@@ -46,8 +46,8 @@
46
46
  "@syncfusion/ej2-data": "~20.1.55",
47
47
  "@syncfusion/ej2-inputs": "~20.1.55",
48
48
  "@syncfusion/ej2-lists": "~20.1.55",
49
- "@syncfusion/ej2-navigations": "~20.1.56",
50
- "@syncfusion/ej2-popups": "~20.1.55"
49
+ "@syncfusion/ej2-navigations": "~20.1.57",
50
+ "@syncfusion/ej2-popups": "~20.1.57"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 DropDown Components",
@@ -72,6 +72,6 @@
72
72
  "module": "./index.js",
73
73
  "name": "@syncfusion/ej2-dropdowns",
74
74
  "typings": "index.d.ts",
75
- "version": "20.1.56",
75
+ "version": "20.1.57",
76
76
  "sideEffects": false
77
77
  }
@@ -467,10 +467,10 @@ var DropDownBase = /** @class */ (function (_super) {
467
467
  _this.isDataFetched = true;
468
468
  }
469
469
  ulElement = _this.renderItems(listItems, fields);
470
- _this.onActionComplete(ulElement, listItems, e);
471
470
  if (_this.groupTemplate) {
472
471
  _this.renderGroupTemplate(ulElement);
473
472
  }
473
+ _this.onActionComplete(ulElement, listItems, e);
474
474
  _this.isRequested = false;
475
475
  _this.bindChildItems(listItems, ulElement, fields, e);
476
476
  }
@@ -1543,7 +1543,7 @@ var DropDownList = /** @class */ (function (_super) {
1543
1543
  };
1544
1544
  DropDownList.prototype.updateActionCompleteDataValues = function (ulElement, list) {
1545
1545
  this.actionCompleteData = { ulElement: ulElement.cloneNode(true), list: list, isUpdated: true };
1546
- if (isNullOrUndefined(this.actionData.ulElement) && isNullOrUndefined(this.actionData.list)) {
1546
+ if (this.actionData.list !== this.actionCompleteData.list && this.actionCompleteData.ulElement && this.actionCompleteData.list) {
1547
1547
  this.actionData = this.actionCompleteData;
1548
1548
  }
1549
1549
  };
@@ -454,13 +454,14 @@ var DropDownTree = /** @class */ (function (_super) {
454
454
  matchedChildren.push(filteredChild);
455
455
  }
456
456
  }
457
+ var filteredItems = Object.assign({}, node);
457
458
  if (matchedChildren.length !== 0) {
458
- node[this.fields.child] = matchedChildren;
459
- return node;
459
+ filteredItems[this.fields.child] = matchedChildren;
460
+ return filteredItems;
460
461
  }
461
462
  else {
462
- node[this.fields.child] = null;
463
- return (this.isMatchedNode(value, node)) ? node : null;
463
+ filteredItems[this.fields.child] = null;
464
+ return (this.isMatchedNode(value, filteredItems)) ? filteredItems : null;
464
465
  }
465
466
  }
466
467
  };
@@ -1802,11 +1803,12 @@ var DropDownTree = /** @class */ (function (_super) {
1802
1803
  }
1803
1804
  return 2;
1804
1805
  }
1805
- for (var i = 0, len = ds.length; i < len; i++) {
1806
- if ((typeof field.child === 'string') && !isNOU(getValue(field.child, ds[i]))) {
1806
+ this.fields.dataSource = isNOU(this.fields.dataSource) ? [] : this.fields.dataSource;
1807
+ for (var i = 0, len = this.fields.dataSource.length; i < len; i++) {
1808
+ if ((typeof field.child === 'string') && !isNOU(getValue(field.child, this.fields.dataSource[i]))) {
1807
1809
  return 2;
1808
1810
  }
1809
- if (!isNOU(getValue(field.parentValue, ds[i])) || !isNOU(getValue(field.hasChildren, ds[i]))) {
1811
+ if (!isNOU(getValue(field.parentValue, this.fields.dataSource[i])) || !isNOU(getValue(field.hasChildren, this.fields.dataSource[i]))) {
1810
1812
  return 1;
1811
1813
  }
1812
1814
  }
@@ -2052,6 +2052,13 @@ var ListBox = /** @class */ (function (_super) {
2052
2052
  this.list.parentElement.insertBefore(this.element, this.list);
2053
2053
  }
2054
2054
  _super.prototype.destroy.call(this);
2055
+ this.enableRtlElements = [];
2056
+ this.liCollections = null;
2057
+ this.list = null;
2058
+ this.ulElement = null;
2059
+ this.mainList = null;
2060
+ this.spinner = null;
2061
+ this.rippleFun = null;
2055
2062
  if (this.itemTemplate) {
2056
2063
  this.clearTemplate();
2057
2064
  }