@syncfusion/ej2-dropdowns 28.1.35 → 28.1.36

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.
@@ -1315,7 +1315,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1315
1315
  for (var i = 0; i < totalSkeletonCount; i++) {
1316
1316
  var liElement = this.createElement('li', { className: dropDownBaseClasses.virtualList, styles: 'overflow: inherit' });
1317
1317
  if (this.isVirtualizationEnabled && this.itemTemplate) {
1318
- liElement.style.height = this.listItemHeight + 'px';
1318
+ liElement.style.height = (this.listItemHeight - parseInt(window.getComputedStyle(this.getItems()[1]).marginBottom, 10)) + 'px';
1319
1319
  }
1320
1320
  var skeleton = new Skeleton({
1321
1321
  shape: 'Text',
@@ -7761,6 +7761,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
7761
7761
  }
7762
7762
  else if (args.preventDefaultAction) {
7763
7763
  fields = args.fields;
7764
+ _this.treeObj.element.classList.add('e-filtering');
7764
7765
  }
7765
7766
  else {
7766
7767
  if (_this.treeDataType === 1) {
@@ -9184,7 +9185,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
9184
9185
  }
9185
9186
  if (this.isFilterRestore) {
9186
9187
  this.restoreFilterSelection();
9187
- this.isFilterRestore = false;
9188
+ if (!this.showSelectAll) {
9189
+ this.isFilterRestore = false;
9190
+ }
9188
9191
  }
9189
9192
  };
9190
9193
  DropDownTree.prototype.restoreFilterSelection = function () {
@@ -9447,15 +9450,18 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
9447
9450
  this.ensurePlaceHolder();
9448
9451
  }
9449
9452
  if (this.showSelectAll && this.checkBoxElement) {
9453
+ var nodes = this.treeObj.element.querySelectorAll('li');
9450
9454
  var checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
9451
9455
  var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
9452
- if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) {
9456
+ if ((wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 ||
9457
+ (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) || !args.isInteracted && this.isFilterRestore) {
9458
+ this.isFilterRestore = false;
9453
9459
  this.isReverseUpdate = true;
9454
9460
  this.changeState(wrap, 'uncheck');
9455
9461
  this.isReverseUpdate = false;
9456
9462
  }
9457
9463
  else if (wrap && args.action === 'check'
9458
- && checkedNodes.length === this.fields.dataSource.length
9464
+ && checkedNodes.length === nodes.length
9459
9465
  && (args.isInteracted || this.isCheckAllCalled || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'true'))) {
9460
9466
  this.isReverseUpdate = true;
9461
9467
  this.isCheckAllCalled = false;
@@ -15886,7 +15892,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15886
15892
  this.list.scrollTop = 0;
15887
15893
  this.virtualListInfo = null;
15888
15894
  this.previousStartIndex = 0;
15889
- this.previousEndIndex = 0;
15895
+ this.previousEndIndex = this.itemCount;
15890
15896
  }
15891
15897
  this.isClearAllAction = false;
15892
15898
  }
@@ -18078,7 +18084,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
18078
18084
  _this.viewPortInfo.endIndex : _this.itemCount;
18079
18085
  _this.virtualListInfo = _this.viewPortInfo;
18080
18086
  _this.previousStartIndex = 0;
18081
- _this.previousEndIndex = 0;
18087
+ _this.previousEndIndex = _this.itemCount;
18082
18088
  }
18083
18089
  var dataSourceCount = void 0;
18084
18090
  if (_this.dataSource instanceof DataManager) {
@@ -21562,7 +21568,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
21562
21568
  ctrlKey: e.ctrlKey, shiftKey: e.shiftKey
21563
21569
  });
21564
21570
  }
21565
- else if (e.keyCode === 65 && e.ctrlKey) {
21571
+ else if (e.keyCode === 65 && e.ctrlKey && this.selectionSettings.mode === 'Multiple') {
21566
21572
  this.selectAll();
21567
21573
  }
21568
21574
  else if ((e.keyCode === 38 || e.keyCode === 40) && e.ctrlKey && e.shiftKey) {