@syncfusion/ej2-filemanager 27.2.2 → 27.2.3

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.
@@ -6831,7 +6831,7 @@ var ContextMenu = /** @__PURE__ @class */ (function () {
6831
6831
  }
6832
6832
  }
6833
6833
  this.parent.pathId.push(parentKey[parentKey.length - 1]);
6834
- this.parent.navigationpaneModule.treeObj.selectedNodes = [this.parent.pathId[this.parent.pathId.length - 1]];
6834
+ this.parent.navigationpaneModule.treeObj.setProperties({ selectedNodes: [this.parent.pathId[this.parent.pathId.length - 1]] });
6835
6835
  }
6836
6836
  this.isMenuItemClicked = false;
6837
6837
  };
@@ -6893,7 +6893,7 @@ var ContextMenu = /** @__PURE__ @class */ (function () {
6893
6893
  else if (closest(target, '#' + this.parent.element.id + TREE_ID)) {
6894
6894
  uid = closest(target, 'li').getAttribute('data-uid');
6895
6895
  if (!isNullOrUndefined(uid)) {
6896
- this.parent.navigationpaneModule.treeObj.selectedNodes = [uid];
6896
+ this.parent.navigationpaneModule.treeObj.setProperties({ selectedNodes: [uid] });
6897
6897
  }
6898
6898
  treeFolder = true;
6899
6899
  }
@@ -10090,7 +10090,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10090
10090
  this.isNodeClickCalled = true;
10091
10091
  this.isSameNodeClicked = false;
10092
10092
  this.previousSelected = this.treeObj.selectedNodes;
10093
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
10093
+ this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
10094
10094
  }
10095
10095
  }
10096
10096
  else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
@@ -10114,7 +10114,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10114
10114
  read(this.parent, this.isPathDragged ? pasteEnd : pathChanged, this.parent.path);
10115
10115
  this.parent.visitedItem = node;
10116
10116
  this.isPathDragged = this.isRenameParent = this.isRightClick = false;
10117
- this.treeObj.selectedNodes = [node.getAttribute('data-uid')];
10117
+ this.treeObj.setProperties({ selectedNodes: [node.getAttribute('data-uid')] });
10118
10118
  }
10119
10119
  };
10120
10120
  NavigationPane.prototype.onNodeSelected = function (args) {
@@ -10190,7 +10190,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10190
10190
  if ((args.event.which === 3) && (args.node.getAttribute('data-uid') !== this.treeObj.selectedNodes[0])) {
10191
10191
  this.isRightClick = true;
10192
10192
  this.isNodeClickCalled = true;
10193
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
10193
+ this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
10194
10194
  }
10195
10195
  else if (args.node.getAttribute('data-uid') === this.treeObj.selectedNodes[0] && this.parent.selectedItems.length !== 0) {
10196
10196
  this.parent.setProperties({ selectedItems: [] }, true);
@@ -10203,7 +10203,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10203
10203
  }
10204
10204
  this.isSameNodeClicked = true;
10205
10205
  this.isNodeClickCalled = true;
10206
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
10206
+ this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
10207
10207
  }
10208
10208
  };
10209
10209
  /* istanbul ignore next */
@@ -10253,7 +10253,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10253
10253
  NavigationPane.prototype.onOpenEnd = function (args) {
10254
10254
  var sleId = this.parent.pathId[this.parent.pathId.length - 1];
10255
10255
  this.treeObj.expandAll(this.treeObj.selectedNodes);
10256
- this.treeObj.selectedNodes = [sleId];
10256
+ this.treeObj.setProperties({ selectedNodes: [sleId] });
10257
10257
  this.expandNodeTarget = 'add';
10258
10258
  this.onPathChanged(args);
10259
10259
  };
@@ -10272,7 +10272,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10272
10272
  this.onInit();
10273
10273
  var id = getValue('_fm_id', args.cwd);
10274
10274
  this.addChild(args.files, id, false);
10275
- this.treeObj.selectedNodes = [this.parent.pathId[this.parent.pathId.length - 1]];
10275
+ this.treeObj.setProperties({ selectedNodes: [this.parent.pathId[this.parent.pathId.length - 1]] });
10276
10276
  };
10277
10277
  NavigationPane.prototype.onCreateEnd = function (args) {
10278
10278
  this.updateTree(args);
@@ -10391,7 +10391,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10391
10391
  this.doDownload();
10392
10392
  };
10393
10393
  NavigationPane.prototype.onSelectionChanged = function (e) {
10394
- this.treeObj.selectedNodes = [e.selectedNode];
10394
+ this.treeObj.setProperties({ selectedNodes: [e.selectedNode] });
10395
10395
  };
10396
10396
  NavigationPane.prototype.onClearPathInit = function (e) {
10397
10397
  this.removeChildNodes(e.selectedNode);
@@ -11142,7 +11142,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
11142
11142
  this.element.querySelector('.e-content').scrollTop === 0))) {
11143
11143
  this.selectRecords(this.parent.selectedItems);
11144
11144
  }
11145
- if (this.isPasteOperation === true) {
11145
+ if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
11146
11146
  if (!this.isColumnRefresh) {
11147
11147
  this.selectRecords(this.parent.pasteNodes);
11148
11148
  this.isPasteOperation = false;