@syncfusion/ej2-filemanager 25.1.40 → 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.
@@ -216,7 +216,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
216
216
  */
217
217
  var columnArray = [
218
218
  {
219
- field: 'name', headerText: 'Name', minWidth: 120, isPrimaryKey: true,
219
+ field: 'name', headerText: 'Name', minWidth: 120,
220
220
  template: '<span class=\"e-fe-text\">${name}</span>',
221
221
  customAttributes: { class: 'e-fe-grid-name' }
222
222
  },
@@ -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
  };
@@ -6446,6 +6460,9 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
6446
6460
  (closest(target, '#' + this.parent.element.id + GRID_ID).getElementsByClassName(EMPTY).length !== 0)))) {
6447
6461
  this.disabledItems.push('SelectAll');
6448
6462
  }
6463
+ else {
6464
+ this.disabledItems = this.disabledItems.filter(function (item) { return item !== 'SelectAll'; });
6465
+ }
6449
6466
  if (this.parent.selectedNodes.length === 0) {
6450
6467
  if (this.disabledItems.indexOf('Paste') === -1) {
6451
6468
  this.disabledItems.push('Paste');
@@ -8944,6 +8961,7 @@ var Virtualization = /** @__PURE__ @class */ (function () {
8944
8961
  this.scrollPosition = scroll;
8945
8962
  // Update the list of items and the items property of the largeIconInstance
8946
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;
8947
8965
  this.largeIconInstance.items = this.largeIconInstance.allItems.slice(this.renderedCount -
8948
8966
  this.itemCount, this.renderedCount);
8949
8967
  };
@@ -10044,8 +10062,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10044
10062
  allowResizing: this.parent.detailsViewSettings.columnResizing,
10045
10063
  selectionSettings: {
10046
10064
  type: this.parent.allowMultiSelection ? 'Multiple' : 'Single',
10047
- checkboxMode: 'ResetOnRowClick',
10048
- persistSelection: (this.parent.enableVirtualization) ? true : false
10065
+ checkboxMode: 'ResetOnRowClick'
10049
10066
  },
10050
10067
  enableRtl: this.parent.enableRtl,
10051
10068
  pageSettings: { pageSize: 20 },