@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
|
@@ -415,7 +415,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
415
415
|
if (this.component === 'combobox') {
|
|
416
416
|
var totalData = 0;
|
|
417
417
|
if (this.parent.dataSource instanceof DataManager) {
|
|
418
|
-
totalData = this.parent.
|
|
418
|
+
totalData = this.parent.remoteDataCount;
|
|
419
419
|
}
|
|
420
420
|
else if (this.parent.dataSource && this.parent.dataSource.length > 0) {
|
|
421
421
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -744,6 +744,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
744
744
|
this.parent.isVirtualScrolling = true;
|
|
745
745
|
setTimeout(function () {
|
|
746
746
|
_this.parent.pageCount = _this.parent.getPageCount();
|
|
747
|
+
_this.parent.isRequesting = false;
|
|
747
748
|
_this.virtualScrollRefreshAsync().then(function () {
|
|
748
749
|
if (_this.parent.popupObj) {
|
|
749
750
|
_this.parent.list = _this.parent.popupObj.element.querySelector('.' + 'e-content') || select('.' + 'e-content');
|
|
@@ -1589,11 +1590,12 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1589
1590
|
_this.emptyDataRequest(fields);
|
|
1590
1591
|
return;
|
|
1591
1592
|
}
|
|
1592
|
-
|
|
1593
|
+
var query_1 = _this.getQuery(eventArgs.query);
|
|
1594
|
+
eventArgs.data.executeQuery(query_1).then(function (e) {
|
|
1593
1595
|
_this.isPreventChange = _this.isAngular && _this.preventChange ? true : _this.isPreventChange;
|
|
1594
1596
|
var isReOrder = true;
|
|
1595
1597
|
if (!_this.virtualSelectAll) {
|
|
1596
|
-
var newQuery =
|
|
1598
|
+
var newQuery = query_1.clone();
|
|
1597
1599
|
for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
|
|
1598
1600
|
if (newQuery.queries[queryElements].fn === 'onWhere') {
|
|
1599
1601
|
isWhereExist_1 = true;
|
|
@@ -8302,7 +8304,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8302
8304
|
if (this.isPopupOpen) {
|
|
8303
8305
|
this.hidePopup();
|
|
8304
8306
|
}
|
|
8305
|
-
else if (
|
|
8307
|
+
else if (e.type === 'touchstart' || ('button' in e && e.button !== 2)) {
|
|
8306
8308
|
this.focusIn(e);
|
|
8307
8309
|
this.renderPopup();
|
|
8308
8310
|
}
|
|
@@ -11367,8 +11369,8 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11367
11369
|
var dataItem = _this.getItemData();
|
|
11368
11370
|
var value = _this.allowObjectBinding ?
|
|
11369
11371
|
_this.getDataByValue(dataItem.value) : dataItem.value;
|
|
11370
|
-
if ((_this.value === dataItem.value && _this.text !== dataItem.text) ||
|
|
11371
|
-
(_this.value !== dataItem.value && _this.text === dataItem.text)) {
|
|
11372
|
+
if ((_this.value === dataItem.value && _this.text !== dataItem.text.toString()) ||
|
|
11373
|
+
(_this.value !== dataItem.value && _this.text === dataItem.text.toString())) {
|
|
11372
11374
|
_this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11373
11375
|
}
|
|
11374
11376
|
}
|
|
@@ -17103,6 +17105,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17103
17105
|
removeClass(selectedItems, className);
|
|
17104
17106
|
while (temp > 0) {
|
|
17105
17107
|
selectedItems[temp - 1].setAttribute('aria-selected', 'false');
|
|
17108
|
+
if (this.mode === 'CheckBox') {
|
|
17109
|
+
if (selectedItems && (selectedItems.length > (temp - 1))) {
|
|
17110
|
+
removeClass([selectedItems[temp - 1].firstElementChild.lastElementChild], 'e-check');
|
|
17111
|
+
}
|
|
17112
|
+
}
|
|
17106
17113
|
temp--;
|
|
17107
17114
|
}
|
|
17108
17115
|
}
|