@syncfusion/ej2-dropdowns 30.1.41 → 30.1.42
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/dist/ej2-dropdowns.min.js +2 -2
- 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 +13 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +13 -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 +5 -5
- package/src/combo-box/combo-box.js +2 -2
- package/src/common/interface.d.ts +1 -0
- package/src/common/virtual-scroll.js +2 -1
- package/src/drop-down-base/drop-down-base.js +3 -2
- package/src/drop-down-tree/drop-down-tree.js +1 -1
- package/src/multi-select/multi-select.js +5 -0
|
@@ -367,7 +367,7 @@ class VirtualScroll {
|
|
|
367
367
|
if (this.component === 'combobox') {
|
|
368
368
|
let totalData = 0;
|
|
369
369
|
if (this.parent.dataSource instanceof DataManager) {
|
|
370
|
-
totalData = this.parent.
|
|
370
|
+
totalData = this.parent.remoteDataCount;
|
|
371
371
|
}
|
|
372
372
|
else if (this.parent.dataSource && this.parent.dataSource.length > 0) {
|
|
373
373
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -687,6 +687,7 @@ class VirtualScroll {
|
|
|
687
687
|
this.parent.isVirtualScrolling = true;
|
|
688
688
|
setTimeout(() => {
|
|
689
689
|
this.parent.pageCount = this.parent.getPageCount();
|
|
690
|
+
this.parent.isRequesting = false;
|
|
690
691
|
this.virtualScrollRefreshAsync().then(() => {
|
|
691
692
|
if (this.parent.popupObj) {
|
|
692
693
|
this.parent.list = this.parent.popupObj.element.querySelector('.' + 'e-content') || select('.' + 'e-content');
|
|
@@ -1505,11 +1506,12 @@ let DropDownBase = class DropDownBase extends Component {
|
|
|
1505
1506
|
this.emptyDataRequest(fields);
|
|
1506
1507
|
return;
|
|
1507
1508
|
}
|
|
1508
|
-
|
|
1509
|
+
const query = this.getQuery(eventArgs.query);
|
|
1510
|
+
eventArgs.data.executeQuery(query).then((e) => {
|
|
1509
1511
|
this.isPreventChange = this.isAngular && this.preventChange ? true : this.isPreventChange;
|
|
1510
1512
|
let isReOrder = true;
|
|
1511
1513
|
if (!this.virtualSelectAll) {
|
|
1512
|
-
const newQuery =
|
|
1514
|
+
const newQuery = query.clone();
|
|
1513
1515
|
for (let queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
1514
1516
|
if (newQuery.queries[queryElements].fn === 'onWhere') {
|
|
1515
1517
|
isWhereExist = true;
|
|
@@ -8128,7 +8130,7 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8128
8130
|
if (this.isPopupOpen) {
|
|
8129
8131
|
this.hidePopup();
|
|
8130
8132
|
}
|
|
8131
|
-
else if (
|
|
8133
|
+
else if (e.type === 'touchstart' || ('button' in e && e.button !== 2)) {
|
|
8132
8134
|
this.focusIn(e);
|
|
8133
8135
|
this.renderPopup();
|
|
8134
8136
|
}
|
|
@@ -11155,8 +11157,8 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
11155
11157
|
const dataItem = this.getItemData();
|
|
11156
11158
|
const value = this.allowObjectBinding ?
|
|
11157
11159
|
this.getDataByValue(dataItem.value) : dataItem.value;
|
|
11158
|
-
if ((this.value === dataItem.value && this.text !== dataItem.text) ||
|
|
11159
|
-
(this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
11160
|
+
if ((this.value === dataItem.value && this.text !== dataItem.text.toString()) ||
|
|
11161
|
+
(this.value !== dataItem.value && this.text === dataItem.text.toString())) {
|
|
11160
11162
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11161
11163
|
}
|
|
11162
11164
|
}
|
|
@@ -16820,6 +16822,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
16820
16822
|
removeClass(selectedItems, className);
|
|
16821
16823
|
while (temp > 0) {
|
|
16822
16824
|
selectedItems[temp - 1].setAttribute('aria-selected', 'false');
|
|
16825
|
+
if (this.mode === 'CheckBox') {
|
|
16826
|
+
if (selectedItems && (selectedItems.length > (temp - 1))) {
|
|
16827
|
+
removeClass([selectedItems[temp - 1].firstElementChild.lastElementChild], 'e-check');
|
|
16828
|
+
}
|
|
16829
|
+
}
|
|
16823
16830
|
temp--;
|
|
16824
16831
|
}
|
|
16825
16832
|
}
|