@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.
- package/CHANGELOG.md +27 -3
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +33 -13
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +33 -13
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/auto-complete/auto-complete.d.ts +1 -1
- package/src/auto-complete/auto-complete.js +2 -2
- package/src/combo-box/combo-box.js +1 -1
- package/src/drop-down-base/drop-down-base.js +1 -1
- package/src/drop-down-list/drop-down-list.js +10 -2
- package/src/drop-down-tree/drop-down-tree.js +9 -7
- package/src/list-box/list-box.js +7 -0
- package/src/multi-select/multi-select.js +3 -0
|
@@ -638,10 +638,10 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
638
638
|
_this.isDataFetched = true;
|
|
639
639
|
}
|
|
640
640
|
ulElement = _this.renderItems(listItems, fields);
|
|
641
|
-
_this.onActionComplete(ulElement, listItems, e);
|
|
642
641
|
if (_this.groupTemplate) {
|
|
643
642
|
_this.renderGroupTemplate(ulElement);
|
|
644
643
|
}
|
|
644
|
+
_this.onActionComplete(ulElement, listItems, e);
|
|
645
645
|
_this.isRequested = false;
|
|
646
646
|
_this.bindChildItems(listItems, ulElement, fields, e);
|
|
647
647
|
}
|
|
@@ -2511,13 +2511,21 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
2511
2511
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2512
2512
|
if (this.isReact) {
|
|
2513
2513
|
this.clearTemplate(['valueTemplate']);
|
|
2514
|
+
if (this.valueTempElement) {
|
|
2515
|
+
detach(this.valueTempElement);
|
|
2516
|
+
this.inputElement.style.display = 'block';
|
|
2517
|
+
this.valueTempElement = null;
|
|
2518
|
+
}
|
|
2514
2519
|
}
|
|
2515
2520
|
if (!this.valueTempElement) {
|
|
2516
2521
|
this.valueTempElement = this.createElement('span', { className: dropDownListClasses.value });
|
|
2517
2522
|
this.inputElement.parentElement.insertBefore(this.valueTempElement, this.inputElement);
|
|
2518
2523
|
this.inputElement.style.display = 'none';
|
|
2519
2524
|
}
|
|
2520
|
-
|
|
2525
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2526
|
+
if (!this.isReact) {
|
|
2527
|
+
this.valueTempElement.innerHTML = '';
|
|
2528
|
+
}
|
|
2521
2529
|
var valuecheck = this.dropdownCompiler(this.valueTemplate);
|
|
2522
2530
|
if (valuecheck) {
|
|
2523
2531
|
compiledString = compile(document.querySelector(this.valueTemplate).innerHTML.trim());
|
|
@@ -3006,7 +3014,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3006
3014
|
};
|
|
3007
3015
|
DropDownList.prototype.updateActionCompleteDataValues = function (ulElement, list) {
|
|
3008
3016
|
this.actionCompleteData = { ulElement: ulElement.cloneNode(true), list: list, isUpdated: true };
|
|
3009
|
-
if (
|
|
3017
|
+
if (this.actionData.list !== this.actionCompleteData.list && this.actionCompleteData.ulElement && this.actionCompleteData.list) {
|
|
3010
3018
|
this.actionData = this.actionCompleteData;
|
|
3011
3019
|
}
|
|
3012
3020
|
};
|
|
@@ -4689,13 +4697,14 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
4689
4697
|
matchedChildren.push(filteredChild);
|
|
4690
4698
|
}
|
|
4691
4699
|
}
|
|
4700
|
+
var filteredItems = Object.assign({}, node);
|
|
4692
4701
|
if (matchedChildren.length !== 0) {
|
|
4693
|
-
|
|
4694
|
-
return
|
|
4702
|
+
filteredItems[this.fields.child] = matchedChildren;
|
|
4703
|
+
return filteredItems;
|
|
4695
4704
|
}
|
|
4696
4705
|
else {
|
|
4697
|
-
|
|
4698
|
-
return (this.isMatchedNode(value,
|
|
4706
|
+
filteredItems[this.fields.child] = null;
|
|
4707
|
+
return (this.isMatchedNode(value, filteredItems)) ? filteredItems : null;
|
|
4699
4708
|
}
|
|
4700
4709
|
}
|
|
4701
4710
|
};
|
|
@@ -6037,11 +6046,12 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
6037
6046
|
}
|
|
6038
6047
|
return 2;
|
|
6039
6048
|
}
|
|
6040
|
-
|
|
6041
|
-
|
|
6049
|
+
this.fields.dataSource = isNullOrUndefined(this.fields.dataSource) ? [] : this.fields.dataSource;
|
|
6050
|
+
for (var i = 0, len = this.fields.dataSource.length; i < len; i++) {
|
|
6051
|
+
if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, this.fields.dataSource[i]))) {
|
|
6042
6052
|
return 2;
|
|
6043
6053
|
}
|
|
6044
|
-
if (!isNullOrUndefined(getValue(field.parentValue,
|
|
6054
|
+
if (!isNullOrUndefined(getValue(field.parentValue, this.fields.dataSource[i])) || !isNullOrUndefined(getValue(field.hasChildren, this.fields.dataSource[i]))) {
|
|
6045
6055
|
return 1;
|
|
6046
6056
|
}
|
|
6047
6057
|
}
|
|
@@ -7861,7 +7871,7 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
7861
7871
|
else if (this.isTyped && !this.isSelected && isNullOrUndefined(li)) {
|
|
7862
7872
|
this.customValue(e);
|
|
7863
7873
|
}
|
|
7864
|
-
this.hidePopup();
|
|
7874
|
+
this.hidePopup(e);
|
|
7865
7875
|
};
|
|
7866
7876
|
ComboBox.prototype.setHoverList = function (li) {
|
|
7867
7877
|
this.removeSelection();
|
|
@@ -8523,8 +8533,8 @@ var AutoComplete = /** @__PURE__ @class */ (function (_super) {
|
|
|
8523
8533
|
*
|
|
8524
8534
|
* @returns {void}
|
|
8525
8535
|
*/
|
|
8526
|
-
AutoComplete.prototype.hidePopup = function () {
|
|
8527
|
-
_super.prototype.hidePopup.call(this);
|
|
8536
|
+
AutoComplete.prototype.hidePopup = function (e) {
|
|
8537
|
+
_super.prototype.hidePopup.call(this, e);
|
|
8528
8538
|
this.activeIndex = -1;
|
|
8529
8539
|
};
|
|
8530
8540
|
/**
|
|
@@ -9430,6 +9440,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
9430
9440
|
};
|
|
9431
9441
|
MultiSelect.prototype.getQuery = function (query) {
|
|
9432
9442
|
var filterQuery = query ? query.clone() : this.query ? this.query.clone() : new Query();
|
|
9443
|
+
if (this.isFiltered) {
|
|
9444
|
+
return filterQuery;
|
|
9445
|
+
}
|
|
9433
9446
|
if (this.filterAction) {
|
|
9434
9447
|
if (this.targetElement() !== null) {
|
|
9435
9448
|
var dataType = this.typeOfData(this.dataSource).typeof;
|
|
@@ -15517,6 +15530,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
15517
15530
|
this.list.parentElement.insertBefore(this.element, this.list);
|
|
15518
15531
|
}
|
|
15519
15532
|
_super.prototype.destroy.call(this);
|
|
15533
|
+
this.enableRtlElements = [];
|
|
15534
|
+
this.liCollections = null;
|
|
15535
|
+
this.list = null;
|
|
15536
|
+
this.ulElement = null;
|
|
15537
|
+
this.mainList = null;
|
|
15538
|
+
this.spinner = null;
|
|
15539
|
+
this.rippleFun = null;
|
|
15520
15540
|
if (this.itemTemplate) {
|
|
15521
15541
|
this.clearTemplate();
|
|
15522
15542
|
}
|