@syncfusion/ej2-dropdowns 23.2.4 → 23.2.5
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 -0
- 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 +17 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +17 -2
- 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/common/virtual-scroll.d.ts +1 -0
- package/src/common/virtual-scroll.js +13 -1
- package/src/mention/mention.js +3 -0
- package/src/multi-select/multi-select.js +1 -1
|
@@ -336,10 +336,22 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
336
336
|
if (isQueryGenerated === void 0) { isQueryGenerated = false; }
|
|
337
337
|
var dataSource = this.parent.dataSource;
|
|
338
338
|
if (!isQueryGenerated) {
|
|
339
|
-
|
|
339
|
+
if (!isNullOrUndefined(this.parent.query)) {
|
|
340
|
+
var newQuery = this.removeSkipAndTakeEvents(this.parent.query.clone());
|
|
341
|
+
query = this.getPageQuery(newQuery, virtualItemStartIndex, virtualItemEndIndex);
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
query = this.getPageQuery(query, virtualItemStartIndex, virtualItemEndIndex);
|
|
345
|
+
}
|
|
340
346
|
}
|
|
341
347
|
this.parent.resetList(dataSource, this.parent.fields, query);
|
|
342
348
|
};
|
|
349
|
+
VirtualScroll.prototype.removeSkipAndTakeEvents = function (query) {
|
|
350
|
+
query.queries = query.queries.filter(function (event) {
|
|
351
|
+
return event.fn !== 'onSkip' && event.fn !== 'onTake';
|
|
352
|
+
});
|
|
353
|
+
return query;
|
|
354
|
+
};
|
|
343
355
|
VirtualScroll.prototype.setCurrentViewDataAsync = function () {
|
|
344
356
|
// eslint-disable-next-line
|
|
345
357
|
var currentData = [];
|
|
@@ -12970,7 +12982,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12970
12982
|
MultiSelect.prototype.updateDataList = function () {
|
|
12971
12983
|
if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction || this.targetElement().trim())) {
|
|
12972
12984
|
var isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
|
|
12973
|
-
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount));
|
|
12985
|
+
var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount)));
|
|
12974
12986
|
var 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));
|
|
12975
12987
|
if (isDynamicGroupItemUpdate || isReactTemplateUpdate || isAngularTemplateUpdate) {
|
|
12976
12988
|
//EJ2-57748 - for this task, we prevent the ul element cloning ( this.mainList = this.ulElement.cloneNode ? <HTMLElement>this.ulElement.cloneNode(true) : this.ulElement;)
|
|
@@ -18168,6 +18180,9 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
18168
18180
|
var value = this.getFormattedValue(focusItem.getAttribute('data-value'));
|
|
18169
18181
|
this.selectEventCallback(focusItem, this.getDataByValue(value), value, true);
|
|
18170
18182
|
}
|
|
18183
|
+
if (this.beforePopupOpen) {
|
|
18184
|
+
this.renderPopup();
|
|
18185
|
+
}
|
|
18171
18186
|
}
|
|
18172
18187
|
};
|
|
18173
18188
|
Mention.prototype.setDataIndex = function () {
|