@syncfusion/ej2-dropdowns 20.1.56 → 20.1.59

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.59
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.58",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-g214RNBPi745vj8rFCbtCIhyTt8n4l135Kx9VDsIzI55uvvBN+0bjGaE2FwI/9EHlYdP6PCBXajFfcxo9a8w2A==",
5
+ "_integrity": "sha512-b+3vAE6HiHsoj9Moq7e19gX1/m9G91tT75u7JVDr2qhfIILIQAy+h9kzxExMmi8kgnUPpxJJ+EFIjiZGFAnAHg==",
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.58.tgz",
37
+ "_shasum": "61079a5ebce377dddca23c0e6e9cea1430daa1ec",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
40
  "author": {
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "bundleDependencies": false,
44
44
  "dependencies": {
45
- "@syncfusion/ej2-base": "~20.1.56",
45
+ "@syncfusion/ej2-base": "~20.1.57",
46
46
  "@syncfusion/ej2-data": "~20.1.55",
47
- "@syncfusion/ej2-inputs": "~20.1.55",
47
+ "@syncfusion/ej2-inputs": "~20.1.59",
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.58",
50
+ "@syncfusion/ej2-popups": "~20.1.58"
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.59",
76
76
  "sideEffects": false
77
77
  }
@@ -252,7 +252,7 @@ export declare class AutoComplete extends ComboBox {
252
252
  *
253
253
  * @returns {void}
254
254
  */
255
- hidePopup(): void;
255
+ hidePopup(e?: KeyboardEventArgs): void;
256
256
  /**
257
257
  * Dynamically change the value of properties.
258
258
  *
@@ -285,8 +285,8 @@ var AutoComplete = /** @class */ (function (_super) {
285
285
  *
286
286
  * @returns {void}
287
287
  */
288
- AutoComplete.prototype.hidePopup = function () {
289
- _super.prototype.hidePopup.call(this);
288
+ AutoComplete.prototype.hidePopup = function (e) {
289
+ _super.prototype.hidePopup.call(this, e);
290
290
  this.activeIndex = -1;
291
291
  };
292
292
  /**
@@ -472,7 +472,7 @@ var ComboBox = /** @class */ (function (_super) {
472
472
  else if (this.isTyped && !this.isSelected && isNullOrUndefined(li)) {
473
473
  this.customValue(e);
474
474
  }
475
- this.hidePopup();
475
+ this.hidePopup(e);
476
476
  };
477
477
  ComboBox.prototype.setHoverList = function (li) {
478
478
  this.removeSelection();
@@ -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
  }
@@ -1048,13 +1048,21 @@ var DropDownList = /** @class */ (function (_super) {
1048
1048
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1049
1049
  if (this.isReact) {
1050
1050
  this.clearTemplate(['valueTemplate']);
1051
+ if (this.valueTempElement) {
1052
+ detach(this.valueTempElement);
1053
+ this.inputElement.style.display = 'block';
1054
+ this.valueTempElement = null;
1055
+ }
1051
1056
  }
1052
1057
  if (!this.valueTempElement) {
1053
1058
  this.valueTempElement = this.createElement('span', { className: dropDownListClasses.value });
1054
1059
  this.inputElement.parentElement.insertBefore(this.valueTempElement, this.inputElement);
1055
1060
  this.inputElement.style.display = 'none';
1056
1061
  }
1057
- this.valueTempElement.innerHTML = '';
1062
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1063
+ if (!this.isReact) {
1064
+ this.valueTempElement.innerHTML = '';
1065
+ }
1058
1066
  var valuecheck = this.dropdownCompiler(this.valueTemplate);
1059
1067
  if (valuecheck) {
1060
1068
  compiledString = compile(document.querySelector(this.valueTemplate).innerHTML.trim());
@@ -1543,7 +1551,7 @@ var DropDownList = /** @class */ (function (_super) {
1543
1551
  };
1544
1552
  DropDownList.prototype.updateActionCompleteDataValues = function (ulElement, list) {
1545
1553
  this.actionCompleteData = { ulElement: ulElement.cloneNode(true), list: list, isUpdated: true };
1546
- if (isNullOrUndefined(this.actionData.ulElement) && isNullOrUndefined(this.actionData.list)) {
1554
+ if (this.actionData.list !== this.actionCompleteData.list && this.actionCompleteData.ulElement && this.actionCompleteData.list) {
1547
1555
  this.actionData = this.actionCompleteData;
1548
1556
  }
1549
1557
  };
@@ -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
  }
@@ -637,6 +637,9 @@ var MultiSelect = /** @class */ (function (_super) {
637
637
  };
638
638
  MultiSelect.prototype.getQuery = function (query) {
639
639
  var filterQuery = query ? query.clone() : this.query ? this.query.clone() : new Query();
640
+ if (this.isFiltered) {
641
+ return filterQuery;
642
+ }
640
643
  if (this.filterAction) {
641
644
  if (this.targetElement() !== null) {
642
645
  var dataType = this.typeOfData(this.dataSource).typeof;