@syncfusion/ej2-dropdowns 20.4.38 → 20.4.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.
@@ -6057,6 +6057,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6057
6057
  }
6058
6058
  var eventArgs = { data: args.data };
6059
6059
  this.trigger('dataBound', eventArgs);
6060
+ if (this.filterObj === null) {
6061
+ this.isFilteredData = false;
6062
+ }
6060
6063
  if (this.isFilteredData) {
6061
6064
  this.treeObj.expandAll();
6062
6065
  }
@@ -14366,6 +14369,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
14366
14369
  dragArgs = extend(dragArgs, { destination: dragArgs1 });
14367
14370
  }
14368
14371
  this.trigger('drop', dragArgs);
14372
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14369
14373
  var liCollElem = dragArgs.elements;
14370
14374
  if (liCollElem.length) {
14371
14375
  for (var i = 0; i < liCollElem.length; i++) {
@@ -15263,7 +15267,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15263
15267
  var isRefresh = tListBox.sortOrder !== 'None' || (tListBox.selectionSettings.showCheckbox !==
15264
15268
  fListBox.selectionSettings.showCheckbox) || tListBox.fields.groupBy || tListBox.itemTemplate || fListBox.itemTemplate;
15265
15269
  this.removeSelected(fListBox, fListBox.getSelectedItems());
15266
- var tempItems = [].slice.call(fListBox.jsonData);
15270
+ var tempItems = [].slice.call(fListBox.listData);
15267
15271
  var localDataArgs = { cancel: false, items: tempItems, eventName: this.toolbarAction };
15268
15272
  fListBox.trigger('actionBegin', localDataArgs);
15269
15273
  if (localDataArgs.cancel) {
@@ -15308,11 +15312,18 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15308
15312
  fListBox.value = [];
15309
15313
  listData = listData
15310
15314
  .filter(function (data) { return data.isHeader !== true; });
15311
- tListBox.listData = tListBox.jsonData = listData;
15315
+ var sortedData = listData.filter(function (val) {
15316
+ return tListBox.jsonData.indexOf(val) === -1;
15317
+ });
15318
+ for (var i = 0; i < sortedData.length; i++) {
15319
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15320
+ tListBox.jsonData.splice(index + i, 0, sortedData[i]);
15321
+ }
15322
+ tListBox.listData = listData;
15312
15323
  if (fListBox.listData.length === fListBox.jsonData.length) {
15313
15324
  fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
15314
15325
  }
15315
- else if (this.allowFiltering) {
15326
+ else if (fListBox.allowFiltering) {
15316
15327
  for (var i = 0; i < fListBox.listData.length; i++) {
15317
15328
  for (var j = 0; j < fListBox.jsonData.length; j++) {
15318
15329
  if (fListBox.listData[i] === fListBox.jsonData[j]) {