@syncfusion/ej2-filemanager 28.2.9 → 28.2.11

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.
@@ -1398,7 +1398,7 @@ function getFullPath(parent, data, path) {
1398
1398
  var filePath = getValue(parent.hasId ? 'id' : 'name', data) + '/';
1399
1399
  var fPath = getValue(parent.hasId ? 'filterId' : 'filterPath', data);
1400
1400
  if (!isNullOrUndefined(fPath)) {
1401
- return fPath.replace(/\\/g, '/') + filePath;
1401
+ return fPath.replace(/\\/g, '/').replace(/^.*?(?=\/)/, '') + filePath;
1402
1402
  }
1403
1403
  else {
1404
1404
  return path + filePath;
@@ -7211,7 +7211,9 @@ var ContextMenu = /** @__PURE__ @class */ (function () {
7211
7211
  this.parent.trigger('menuClick', eventArgs, function (menuClickArgs) {
7212
7212
  var sItems;
7213
7213
  if (!menuClickArgs.cancel) {
7214
- _this.isMenuItemClicked = true;
7214
+ if (itemText !== 'cut' && itemText !== 'copy') {
7215
+ _this.isMenuItemClicked = true;
7216
+ }
7215
7217
  switch (itemText) {
7216
7218
  case 'cut':
7217
7219
  cutFiles(_this.parent);
@@ -10654,7 +10656,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
10654
10656
  this.updateItemData();
10655
10657
  }
10656
10658
  this.moveNames = [];
10657
- var obj = this.parent.isDragDrop || isFileSystemData(this.parent) ? this.parent.dragData : this.parent.actionRecords;
10659
+ var obj = this.parent.isDragDrop ? this.parent.dragData : this.parent.actionRecords;
10658
10660
  for (var i = 0; i < obj.length; i++) {
10659
10661
  if (getValue('isFile', obj[i]) === false) {
10660
10662
  this.moveNames.push(getValue('_fm_id', obj[i]));
@@ -11025,6 +11027,9 @@ var DetailsView = /** @__PURE__ @class */ (function () {
11025
11027
  }
11026
11028
  this.gridObj.isStringTemplate = true;
11027
11029
  this.gridObj.appendTo('#' + this.parent.element.id + GRID_ID);
11030
+ if (this.parent.selectedItems.length !== 0 && this.parent.enableVirtualization && this.parent.enablePersistence) {
11031
+ this.isLoaded = true;
11032
+ }
11028
11033
  this.wireEvents();
11029
11034
  this.adjustHeight();
11030
11035
  this.emptyArgs = args;
@@ -11283,7 +11288,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
11283
11288
  /* istanbul ignore next */
11284
11289
  DetailsView.prototype.onDataBound = function () {
11285
11290
  this.createDragObj();
11286
- if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization)) {
11291
+ if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization) || this.isLoaded) {
11287
11292
  this.selectRecords(this.parent.selectedItems);
11288
11293
  }
11289
11294
  if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
@@ -11356,7 +11361,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
11356
11361
  this.isLoaded = false;
11357
11362
  };
11358
11363
  DetailsView.prototype.selectRecords = function (nodes) {
11359
- var gridRecords = this.gridObj.getCurrentViewRecords();
11364
+ var gridRecords = this.gridObj.dataSource;
11360
11365
  var sRecords = [];
11361
11366
  for (var i = 0, len = gridRecords.length; i < len; i++) {
11362
11367
  var node = this.parent.hasId ? getValue('id', gridRecords[i]) : getName(this.parent, gridRecords[i]);