@syncfusion/ej2-filemanager 25.2.3 → 25.2.6

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.
@@ -6424,15 +6424,29 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
6424
6424
  this.disabledItems.push('Open');
6425
6425
  }
6426
6426
  }
6427
- else if (this.parent.selectedItems.length !== 1 && this.parent.activeModule !== 'navigationpane') {
6428
- this.disabledItems.push('Rename', 'Paste');
6427
+ else if (this.parent.activeModule !== 'navigationpane') {
6428
+ if (this.parent.selectedItems.length === 1) {
6429
+ var renameIndex = this.disabledItems.indexOf('Rename');
6430
+ if (renameIndex !== -1) {
6431
+ this.disabledItems.splice(renameIndex, 1);
6432
+ }
6433
+ }
6434
+ else {
6435
+ this.disabledItems.push('Rename', 'Paste');
6436
+ }
6429
6437
  }
6430
6438
  };
6431
6439
  ContextMenu$$1.prototype.setFileItem = function () {
6432
6440
  this.menuType = 'file';
6433
6441
  this.contextMenu.items = this.getItemData(this.parent.contextMenuSettings.file.map(function (item) { return item.trim(); }));
6434
6442
  this.contextMenu.dataBind();
6435
- if (this.parent.selectedItems.length !== 1) {
6443
+ if (this.parent.selectedItems.length === 1) {
6444
+ var renameIndex = this.disabledItems.indexOf('Rename');
6445
+ if (renameIndex !== -1) {
6446
+ this.disabledItems.splice(renameIndex, 1);
6447
+ }
6448
+ }
6449
+ else {
6436
6450
  this.disabledItems.push('Rename');
6437
6451
  }
6438
6452
  };
@@ -8947,6 +8961,7 @@ var Virtualization = /** @__PURE__ @class */ (function () {
8947
8961
  this.scrollPosition = scroll;
8948
8962
  // Update the list of items and the items property of the largeIconInstance
8949
8963
  this.largeIconInstance.itemList = Array.prototype.slice.call(selectAll('.' + LIST_ITEM, this.largeIconInstance.element));
8964
+ this.itemCount = this.itemCount != this.largeIconInstance.itemList.length ? this.largeIconInstance.itemList.length : this.itemCount;
8950
8965
  this.largeIconInstance.items = this.largeIconInstance.allItems.slice(this.renderedCount -
8951
8966
  this.itemCount, this.renderedCount);
8952
8967
  };