@syncfusion/ej2-dropdowns 20.2.38 → 20.2.43
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 +22 -0
- 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 +41 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +41 -8
- 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 +11 -11
- package/src/drop-down-list/drop-down-list.js +21 -0
- package/src/drop-down-tree/drop-down-tree.js +2 -1
- package/src/list-box/list-box.d.ts +1 -1
- package/src/list-box/list-box.js +17 -6
- package/src/multi-select/multi-select.js +1 -1
- package/styles/bootstrap-dark.css +10 -0
- package/styles/bootstrap.css +10 -0
- package/styles/bootstrap4.css +10 -0
- package/styles/bootstrap5-dark.css +10 -0
- package/styles/bootstrap5.css +10 -0
- package/styles/fabric-dark.css +10 -0
- package/styles/fabric.css +10 -0
- package/styles/fluent-dark.css +10 -0
- package/styles/fluent.css +10 -0
- package/styles/highcontrast-light.css +10 -0
- package/styles/highcontrast.css +10 -0
- package/styles/list-box/_layout.scss +9 -0
- package/styles/list-box/bootstrap-dark.css +10 -0
- package/styles/list-box/bootstrap.css +10 -0
- package/styles/list-box/bootstrap4.css +10 -0
- package/styles/list-box/bootstrap5-dark.css +10 -0
- package/styles/list-box/bootstrap5.css +10 -0
- package/styles/list-box/fabric-dark.css +10 -0
- package/styles/list-box/fabric.css +10 -0
- package/styles/list-box/fluent-dark.css +10 -0
- package/styles/list-box/fluent.css +10 -0
- package/styles/list-box/highcontrast-light.css +10 -0
- package/styles/list-box/highcontrast.css +10 -0
- package/styles/list-box/material-dark.css +10 -0
- package/styles/list-box/material.css +10 -0
- package/styles/list-box/tailwind-dark.css +10 -0
- package/styles/list-box/tailwind.css +10 -0
- package/styles/material-dark.css +10 -0
- package/styles/material.css +10 -0
- package/styles/tailwind-dark.css +10 -0
- package/styles/tailwind.css +10 -0
- package/.eslintrc.json +0 -244
- package/tslint.json +0 -111
|
@@ -2933,6 +2933,27 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
this.initial = false;
|
|
2935
2935
|
}
|
|
2936
|
+
else if (this.getModuleName() === 'autocomplete' && this.value && this.typedString === '' && !(this.dataSource instanceof DataManager)) {
|
|
2937
|
+
const checkFields = this.typeOfData(this.dataSource).typeof === 'string' ? '' : this.fields.value;
|
|
2938
|
+
const checkValue = list.some((x) => x[checkFields] === this.value);
|
|
2939
|
+
let query = new Query();
|
|
2940
|
+
if (!checkValue) {
|
|
2941
|
+
new DataManager(this.dataSource).executeQuery(query.where(new Predicate(checkFields, 'equal', this.value)))
|
|
2942
|
+
.then((e) => {
|
|
2943
|
+
if (e.result.length > 0) {
|
|
2944
|
+
this.value = checkFields !== '' ? e.result[0][this.fields.value].toString() : e.result[0].toString();
|
|
2945
|
+
this.addItem(e.result, list.length);
|
|
2946
|
+
this.updateValues();
|
|
2947
|
+
}
|
|
2948
|
+
else {
|
|
2949
|
+
this.updateValues();
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
else {
|
|
2954
|
+
this.updateValues();
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2936
2957
|
if (this.getModuleName() !== 'autocomplete' && this.isFiltering() && !this.isTyped) {
|
|
2937
2958
|
if (!this.actionCompleteData.isUpdated || ((!this.isCustomFilter
|
|
2938
2959
|
&& !this.isFilterFocus) || (isNullOrUndefined(this.itemData) && this.allowFiltering)
|
|
@@ -5942,7 +5963,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5942
5963
|
}
|
|
5943
5964
|
return 2;
|
|
5944
5965
|
}
|
|
5945
|
-
|
|
5966
|
+
if (isNullOrUndefined(this.fields.dataSource))
|
|
5967
|
+
this.fields.dataSource = [];
|
|
5946
5968
|
for (let i = 0, len = this.fields.dataSource.length; i < len; i++) {
|
|
5947
5969
|
if ((typeof field.child === 'string') && !isNullOrUndefined(getValue(field.child, this.fields.dataSource[i]))) {
|
|
5948
5970
|
return 2;
|
|
@@ -11108,7 +11130,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11108
11130
|
}
|
|
11109
11131
|
}
|
|
11110
11132
|
updateDataList() {
|
|
11111
|
-
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction)) {
|
|
11133
|
+
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction || this.targetElement().trim())) {
|
|
11112
11134
|
let isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
|
|
11113
11135
|
let isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount));
|
|
11114
11136
|
let isAngularTemplateUpdate = this.itemTemplate && this.ulElement.childElementCount > 0 && !(this.ulElement.childElementCount < this.mainList.childElementCount) && (this.ulElement.children[0].childElementCount > 0 || (this.fields.groupBy && this.ulElement.children[1] && this.ulElement.children[1].childElementCount > 0));
|
|
@@ -13481,8 +13503,8 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
13481
13503
|
});
|
|
13482
13504
|
}
|
|
13483
13505
|
}
|
|
13484
|
-
updateActionCompleteData(li, item) {
|
|
13485
|
-
this.jsonData.
|
|
13506
|
+
updateActionCompleteData(li, item, index) {
|
|
13507
|
+
this.jsonData.splice(index, 0, item);
|
|
13486
13508
|
}
|
|
13487
13509
|
initToolbar() {
|
|
13488
13510
|
const pos = this.toolbarSettings.position;
|
|
@@ -14020,7 +14042,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
14020
14042
|
let objValue;
|
|
14021
14043
|
const dupData = [];
|
|
14022
14044
|
let itemIdx;
|
|
14023
|
-
extend(dupData, [], this.
|
|
14045
|
+
extend(dupData, [], this.jsonData);
|
|
14024
14046
|
const removeIdxes = [];
|
|
14025
14047
|
const removeLiIdxes = [];
|
|
14026
14048
|
for (let j = 0; j < items.length; j++) {
|
|
@@ -14793,9 +14815,20 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
14793
14815
|
fListBox.value = [];
|
|
14794
14816
|
listData = listData
|
|
14795
14817
|
.filter((data) => data.isHeader !== true);
|
|
14796
|
-
tListBox.listData = listData;
|
|
14797
|
-
|
|
14798
|
-
|
|
14818
|
+
tListBox.listData = tListBox.jsonData = listData;
|
|
14819
|
+
if (fListBox.listData.length == fListBox.jsonData.length) {
|
|
14820
|
+
fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
|
|
14821
|
+
}
|
|
14822
|
+
else if (this.allowFiltering) {
|
|
14823
|
+
for (let i = 0; i < fListBox.listData.length; i++) {
|
|
14824
|
+
for (let j = 0; j < fListBox.jsonData.length; j++) {
|
|
14825
|
+
if (fListBox.listData[i] === fListBox.jsonData[j]) {
|
|
14826
|
+
fListBox.jsonData.splice(j, 1);
|
|
14827
|
+
}
|
|
14828
|
+
}
|
|
14829
|
+
}
|
|
14830
|
+
fListBox.listData = fListBox.sortedData = [];
|
|
14831
|
+
}
|
|
14799
14832
|
if (isRefresh) {
|
|
14800
14833
|
let sourceElem = tListBox.renderItems(listData, tListBox.fields);
|
|
14801
14834
|
tListBox.updateListItems(sourceElem, tListBox.ulElement);
|