@syncfusion/ej2-dropdowns 20.2.36 → 20.2.40
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 +16 -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 +40 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +40 -6
- 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 +22 -1
- package/src/drop-down-tree/drop-down-tree.js +2 -1
- package/src/list-box/list-box.js +13 -1
- package/src/multi-select/multi-select.js +3 -3
- package/styles/bootstrap-dark.css +33 -11
- package/styles/bootstrap.css +33 -11
- package/styles/bootstrap4.css +33 -11
- package/styles/bootstrap5-dark.css +34 -12
- package/styles/bootstrap5.css +34 -12
- package/styles/fabric-dark.css +33 -11
- package/styles/fabric.css +33 -11
- package/styles/fluent-dark.css +37 -15
- package/styles/fluent.css +34 -12
- package/styles/highcontrast-light.css +33 -11
- package/styles/highcontrast.css +33 -11
- package/styles/list-box/_bootstrap5-definition.scss +0 -2
- package/styles/list-box/_fluent-definition.scss +0 -2
- package/styles/list-box/_layout.scss +9 -0
- package/styles/list-box/_tailwind-definition.scss +0 -2
- package/styles/list-box/_theme.scss +23 -10
- package/styles/list-box/bootstrap-dark.css +33 -11
- package/styles/list-box/bootstrap.css +33 -11
- package/styles/list-box/bootstrap4.css +33 -11
- package/styles/list-box/bootstrap5-dark.css +34 -12
- package/styles/list-box/bootstrap5.css +34 -12
- package/styles/list-box/fabric-dark.css +33 -11
- package/styles/list-box/fabric.css +33 -11
- package/styles/list-box/fluent-dark.css +37 -15
- package/styles/list-box/fluent.css +34 -12
- package/styles/list-box/highcontrast-light.css +33 -11
- package/styles/list-box/highcontrast.css +33 -11
- package/styles/list-box/material-dark.css +33 -11
- package/styles/list-box/material.css +33 -11
- package/styles/list-box/tailwind-dark.css +34 -12
- package/styles/list-box/tailwind.css +34 -12
- package/styles/material-dark.css +33 -11
- package/styles/material.css +33 -11
- package/styles/tailwind-dark.css +34 -12
- package/styles/tailwind.css +34 -12
|
@@ -2909,7 +2909,6 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2909
2909
|
this.initial = true;
|
|
2910
2910
|
this.activeIndex = this.index;
|
|
2911
2911
|
this.initRemoteRender = false;
|
|
2912
|
-
this.initial = false;
|
|
2913
2912
|
if (this.value && this.dataSource instanceof DataManager) {
|
|
2914
2913
|
const checkField = isNullOrUndefined(this.fields.value) ? this.fields.text : this.fields.value;
|
|
2915
2914
|
const checkVal = list.some((x) => x[checkField] === this.value);
|
|
@@ -2932,6 +2931,28 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2932
2931
|
else {
|
|
2933
2932
|
this.updateValues();
|
|
2934
2933
|
}
|
|
2934
|
+
this.initial = false;
|
|
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
|
+
}
|
|
2935
2956
|
}
|
|
2936
2957
|
if (this.getModuleName() !== 'autocomplete' && this.isFiltering() && !this.isTyped) {
|
|
2937
2958
|
if (!this.actionCompleteData.isUpdated || ((!this.isCustomFilter
|
|
@@ -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;
|
|
@@ -10269,7 +10291,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
10269
10291
|
});
|
|
10270
10292
|
this.invokeCheckboxSelection(element, eve, isClearAll);
|
|
10271
10293
|
}
|
|
10272
|
-
if (this.hideSelectedItem && this.fields.groupBy) {
|
|
10294
|
+
if (this.hideSelectedItem && this.fields.groupBy && element) {
|
|
10273
10295
|
this.hideGroupItem(value);
|
|
10274
10296
|
}
|
|
10275
10297
|
if (this.hideSelectedItem && this.fixedHeaderElement && this.fields.groupBy && this.mode !== 'CheckBox' &&
|
|
@@ -11108,7 +11130,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11108
11130
|
}
|
|
11109
11131
|
}
|
|
11110
11132
|
updateDataList() {
|
|
11111
|
-
if (this.mainList && this.ulElement) {
|
|
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));
|
|
@@ -12306,7 +12328,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
12306
12328
|
const mainLiLength = this.ulElement.querySelectorAll('li.' + 'e-list-item').length;
|
|
12307
12329
|
const liLength = this.ulElement.querySelectorAll('li.'
|
|
12308
12330
|
+ dropDownBaseClasses.li + '.' + HIDE_LIST).length;
|
|
12309
|
-
if (mainLiLength > 0 && (mainLiLength === liLength) && (liLength === this.mainData.length)) {
|
|
12331
|
+
if (mainLiLength > 0 && (mainLiLength === liLength) && (liLength === this.mainData.length) && !(this.targetElement() !== '' && this.allowCustomValue)) {
|
|
12310
12332
|
this.beforePopupOpen = false;
|
|
12311
12333
|
return;
|
|
12312
12334
|
}
|
|
@@ -14795,7 +14817,19 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
14795
14817
|
.filter((data) => data.isHeader !== true);
|
|
14796
14818
|
tListBox.listData = listData;
|
|
14797
14819
|
tListBox.jsonData = jsonData;
|
|
14798
|
-
|
|
14820
|
+
if (this.listData.length == this.jsonData.length) {
|
|
14821
|
+
fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
|
|
14822
|
+
}
|
|
14823
|
+
else if (this.allowFiltering) {
|
|
14824
|
+
for (let i = 0; i < fListBox.listData.length; i++) {
|
|
14825
|
+
for (let j = 0; j < fListBox.jsonData.length; j++) {
|
|
14826
|
+
if (fListBox.listData[i] === fListBox.jsonData[j]) {
|
|
14827
|
+
fListBox.jsonData.splice(j, 1);
|
|
14828
|
+
}
|
|
14829
|
+
}
|
|
14830
|
+
}
|
|
14831
|
+
fListBox.listData = fListBox.sortedData = [];
|
|
14832
|
+
}
|
|
14799
14833
|
if (isRefresh) {
|
|
14800
14834
|
let sourceElem = tListBox.renderItems(listData, tListBox.fields);
|
|
14801
14835
|
tListBox.updateListItems(sourceElem, tListBox.ulElement);
|