@syncfusion/ej2-filemanager 21.1.41 → 21.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.
@@ -6152,9 +6152,11 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
6152
6152
  this.menuType = 'folder';
6153
6153
  this.contextMenu.items = this.getItemData(this.parent.contextMenuSettings.folder.map(function (item) { return item.trim(); }));
6154
6154
  this.contextMenu.dataBind();
6155
- var selectedTreeNode = select('[data-uid="' + this.parent.navigationpaneModule.treeObj.selectedNodes[0] + '"]', this.parent.navigationpaneModule.treeObj.element);
6156
- if (this.parent.pathNames[this.parent.pathNames.length - 1] === selectedTreeNode.querySelector('.e-list-text').innerHTML && this.parent.activeModule === 'navigationpane') {
6157
- this.disabledItems.push('Open');
6155
+ if (isTree) {
6156
+ var selectedTreeNode = select('[data-uid="' + this.parent.navigationpaneModule.treeObj.selectedNodes[0] + '"]', this.parent.navigationpaneModule.treeObj.element);
6157
+ if (this.parent.pathNames[this.parent.pathNames.length - 1] === selectedTreeNode.querySelector('.e-list-text').innerHTML && this.parent.activeModule === 'navigationpane') {
6158
+ this.disabledItems.push('Open');
6159
+ }
6158
6160
  }
6159
6161
  else if (this.parent.selectedItems.length !== 1 && this.parent.activeModule !== 'navigationpane') {
6160
6162
  this.disabledItems.push('Rename', 'Paste');
@@ -8833,7 +8835,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8833
8835
  var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: args.isInteracted };
8834
8836
  this.parent.trigger('fileSelect', selecEventArgs);
8835
8837
  }
8836
- if (!this.isRightClick && args.node.getAttribute('data-uid') !== this.parent.pathId[this.parent.pathId.length - 1]) {
8838
+ if (!this.isRightClick) {
8837
8839
  var eventArgs = { cancel: false, fileDetails: nodeData[0], module: 'NavigationPane' };
8838
8840
  this.parent.trigger('fileOpen', eventArgs);
8839
8841
  args.cancel = eventArgs.cancel;
@@ -8847,7 +8849,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8847
8849
  }
8848
8850
  }
8849
8851
  else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
8850
- var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: args.isInteracted };
8852
+ var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: this.isNodeClickCalled };
8851
8853
  this.parent.trigger('fileSelect', selecEventArgs);
8852
8854
  }
8853
8855
  }
@@ -8897,11 +8899,11 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8897
8899
  this.parent.pathId = getPathId(args.node);
8898
8900
  this.parent.visitedItem = args.node;
8899
8901
  }
8902
+ this.expandNodeTarget = null;
8903
+ if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
8904
+ this.expandNodeTarget = 'add';
8905
+ }
8900
8906
  if (previousPath !== this.parent.path) {
8901
- this.expandNodeTarget = null;
8902
- if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
8903
- this.expandNodeTarget = 'add';
8904
- }
8905
8907
  if (!this.isRightClick && this.isSameNodeClicked) {
8906
8908
  read(this.parent, this.isPathDragged ? pasteEnd : pathChanged, this.parent.path);
8907
8909
  this.isNodeClickCalled = true;
@@ -9795,7 +9797,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
9795
9797
  var columns = this.parent.detailsViewSettings.columns;
9796
9798
  for (var i = 0; i < columns.length; i++) {
9797
9799
  if (columns[i].field === 'size') {
9798
- sizeFormat = columns[i].format.toString();
9800
+ sizeFormat = !isNullOrUndefined(columns[i].format) ? columns[i].format.toString() : 'n';
9799
9801
  break;
9800
9802
  }
9801
9803
  }
@@ -10038,6 +10040,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10038
10040
  }
10039
10041
  else if (!isNullOrUndefined(this.gridObj)) {
10040
10042
  this.gridObj.clearSelection();
10043
+ this.interaction = true;
10041
10044
  }
10042
10045
  break;
10043
10046
  case 'showFileExtension':