@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.
- package/CHANGELOG.md +14 -6
- 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 +18 -9
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -9
- 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 +7 -7
- package/src/drop-down-base/drop-down-base.js +1 -1
- package/src/drop-down-list/drop-down-list.js +1 -1
- package/src/drop-down-tree/drop-down-tree.js +9 -7
- package/src/list-box/list-box.js +7 -0
|
@@ -614,10 +614,10 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
614
614
|
this.isDataFetched = true;
|
|
615
615
|
}
|
|
616
616
|
ulElement = this.renderItems(listItems, fields);
|
|
617
|
-
this.onActionComplete(ulElement, listItems, e);
|
|
618
617
|
if (this.groupTemplate) {
|
|
619
618
|
this.renderGroupTemplate(ulElement);
|
|
620
619
|
}
|
|
620
|
+
this.onActionComplete(ulElement, listItems, e);
|
|
621
621
|
this.isRequested = false;
|
|
622
622
|
this.bindChildItems(listItems, ulElement, fields, e);
|
|
623
623
|
}
|
|
@@ -2956,7 +2956,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
updateActionCompleteDataValues(ulElement, list) {
|
|
2958
2958
|
this.actionCompleteData = { ulElement: ulElement.cloneNode(true), list: list, isUpdated: true };
|
|
2959
|
-
if (
|
|
2959
|
+
if (this.actionData.list !== this.actionCompleteData.list && this.actionCompleteData.ulElement && this.actionCompleteData.list) {
|
|
2960
2960
|
this.actionData = this.actionCompleteData;
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
@@ -4597,13 +4597,14 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
4597
4597
|
matchedChildren.push(filteredChild);
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
|
+
let filteredItems = Object.assign({}, node);
|
|
4600
4601
|
if (matchedChildren.length !== 0) {
|
|
4601
|
-
|
|
4602
|
-
return
|
|
4602
|
+
filteredItems[this.fields.child] = matchedChildren;
|
|
4603
|
+
return filteredItems;
|
|
4603
4604
|
}
|
|
4604
4605
|
else {
|
|
4605
|
-
|
|
4606
|
-
return (this.isMatchedNode(value,
|
|
4606
|
+
filteredItems[this.fields.child] = null;
|
|
4607
|
+
return (this.isMatchedNode(value, filteredItems)) ? filteredItems : null;
|
|
4607
4608
|
}
|
|
4608
4609
|
}
|
|
4609
4610
|
}
|
|
@@ -5937,11 +5938,12 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5937
5938
|
}
|
|
5938
5939
|
return 2;
|
|
5939
5940
|
}
|
|
5940
|
-
|
|
5941
|
-
|
|
5941
|
+
this.fields.dataSource = isNullOrUndefined(this.fields.dataSource) ? [] : this.fields.dataSource;
|
|
5942
|
+
for (let i = 0, len = this.fields.dataSource.length; i < len; i++) {
|
|
5943
|
+
if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, this.fields.dataSource[i]))) {
|
|
5942
5944
|
return 2;
|
|
5943
5945
|
}
|
|
5944
|
-
if (!isNullOrUndefined(getValue(field.parentValue,
|
|
5946
|
+
if (!isNullOrUndefined(getValue(field.parentValue, this.fields.dataSource[i])) || !isNullOrUndefined(getValue(field.hasChildren, this.fields.dataSource[i]))) {
|
|
5945
5947
|
return 1;
|
|
5946
5948
|
}
|
|
5947
5949
|
}
|
|
@@ -15282,6 +15284,13 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
15282
15284
|
this.list.parentElement.insertBefore(this.element, this.list);
|
|
15283
15285
|
}
|
|
15284
15286
|
super.destroy();
|
|
15287
|
+
this.enableRtlElements = [];
|
|
15288
|
+
this.liCollections = null;
|
|
15289
|
+
this.list = null;
|
|
15290
|
+
this.ulElement = null;
|
|
15291
|
+
this.mainList = null;
|
|
15292
|
+
this.spinner = null;
|
|
15293
|
+
this.rippleFun = null;
|
|
15285
15294
|
if (this.itemTemplate) {
|
|
15286
15295
|
this.clearTemplate();
|
|
15287
15296
|
}
|