@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.9
3
+ * version : 28.2.11
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-filemanager@*",
3
- "_id": "@syncfusion/ej2-filemanager@28.2.6",
3
+ "_id": "@syncfusion/ej2-filemanager@28.2.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Vj/ANSTSJsO0hvFeltMV8i+3aC4HHQ7K4cAZoVxWFsdVPqy3Kqn/nL1x4gtsAIz+MUNwcv+hXYqYpF8FOmTa7A==",
5
+ "_integrity": "sha512-vlsS5yPhBcMTA8/G+gitT5U18yPvNqDcEV5bcaPn5OwiPnIwcpiBOb3KPomyIH6swFbBXqOHmDa1DTQwE/7/sg==",
6
6
  "_location": "/@syncfusion/ej2-filemanager",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-richtexteditor",
25
25
  "/@syncfusion/ej2-vue-filemanager"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-28.2.6.tgz",
28
- "_shasum": "7fe1c94778e26d74003e80758a8512b39ae1e131",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-28.2.9.tgz",
28
+ "_shasum": "d967eacde7594518dff99b5946de33a1476598a5",
29
29
  "_spec": "@syncfusion/ej2-filemanager@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
31
31
  "author": {
@@ -38,12 +38,12 @@
38
38
  "dependencies": {
39
39
  "@syncfusion/ej2-base": "~28.2.9",
40
40
  "@syncfusion/ej2-buttons": "~28.2.7",
41
- "@syncfusion/ej2-data": "~28.2.3",
42
- "@syncfusion/ej2-grids": "~28.2.9",
43
- "@syncfusion/ej2-inputs": "~28.2.9",
41
+ "@syncfusion/ej2-data": "~28.2.11",
42
+ "@syncfusion/ej2-grids": "~28.2.11",
43
+ "@syncfusion/ej2-inputs": "~28.2.11",
44
44
  "@syncfusion/ej2-layouts": "~28.2.5",
45
45
  "@syncfusion/ej2-lists": "~28.2.3",
46
- "@syncfusion/ej2-navigations": "~28.2.6",
46
+ "@syncfusion/ej2-navigations": "~28.2.11",
47
47
  "@syncfusion/ej2-popups": "~28.2.9",
48
48
  "@syncfusion/ej2-splitbuttons": "~28.2.3"
49
49
  },
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "28.2.9",
78
+ "version": "28.2.11",
79
79
  "sideEffects": false
80
80
  }
@@ -567,7 +567,7 @@ export function getFullPath(parent, data, path) {
567
567
  var filePath = getValue(parent.hasId ? 'id' : 'name', data) + '/';
568
568
  var fPath = getValue(parent.hasId ? 'filterId' : 'filterPath', data);
569
569
  if (!isNOU(fPath)) {
570
- return fPath.replace(/\\/g, '/') + filePath;
570
+ return fPath.replace(/\\/g, '/').replace(/^.*?(?=\/)/, '') + filePath;
571
571
  }
572
572
  else {
573
573
  return path + filePath;
@@ -155,6 +155,9 @@ var DetailsView = /** @class */ (function () {
155
155
  }
156
156
  this.gridObj.isStringTemplate = true;
157
157
  this.gridObj.appendTo('#' + this.parent.element.id + CLS.GRID_ID);
158
+ if (this.parent.selectedItems.length !== 0 && this.parent.enableVirtualization && this.parent.enablePersistence) {
159
+ this.isLoaded = true;
160
+ }
158
161
  this.wireEvents();
159
162
  this.adjustHeight();
160
163
  this.emptyArgs = args;
@@ -413,7 +416,7 @@ var DetailsView = /** @class */ (function () {
413
416
  /* istanbul ignore next */
414
417
  DetailsView.prototype.onDataBound = function () {
415
418
  this.createDragObj();
416
- if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization)) {
419
+ if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization) || this.isLoaded) {
417
420
  this.selectRecords(this.parent.selectedItems);
418
421
  }
419
422
  if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
@@ -486,7 +489,7 @@ var DetailsView = /** @class */ (function () {
486
489
  this.isLoaded = false;
487
490
  };
488
491
  DetailsView.prototype.selectRecords = function (nodes) {
489
- var gridRecords = this.gridObj.getCurrentViewRecords();
492
+ var gridRecords = this.gridObj.dataSource;
490
493
  var sRecords = [];
491
494
  for (var i = 0, len = gridRecords.length; i < len; i++) {
492
495
  var node = this.parent.hasId ? getValue('id', gridRecords[i]) : getName(this.parent, gridRecords[i]);
@@ -649,7 +649,7 @@ var NavigationPane = /** @class */ (function () {
649
649
  this.updateItemData();
650
650
  }
651
651
  this.moveNames = [];
652
- var obj = this.parent.isDragDrop || isFileSystemData(this.parent) ? this.parent.dragData : this.parent.actionRecords;
652
+ var obj = this.parent.isDragDrop ? this.parent.dragData : this.parent.actionRecords;
653
653
  for (var i = 0; i < obj.length; i++) {
654
654
  if (getValue('isFile', obj[i]) === false) {
655
655
  this.moveNames.push(getValue('_fm_id', obj[i]));
@@ -409,7 +409,9 @@ var ContextMenu = /** @class */ (function () {
409
409
  this.parent.trigger('menuClick', eventArgs, function (menuClickArgs) {
410
410
  var sItems;
411
411
  if (!menuClickArgs.cancel) {
412
- _this.isMenuItemClicked = true;
412
+ if (itemText !== 'cut' && itemText !== 'copy') {
413
+ _this.isMenuItemClicked = true;
414
+ }
413
415
  switch (itemText) {
414
416
  case 'cut':
415
417
  cutFiles(_this.parent);