@syncfusion/ej2-filemanager 26.2.10 → 26.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.
- package/dist/ej2-filemanager.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +28 -3
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +28 -3
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -2
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/file-manager/base/file-manager-model.d.ts +8 -1
- package/src/file-manager/base/file-manager.d.ts +7 -1
- package/src/file-manager/base/file-manager.js +3 -0
- package/src/file-manager/base/interface.d.ts +37 -0
- package/src/file-manager/common/utility.js +3 -0
- package/src/file-manager/layout/details-view.js +1 -1
- package/src/file-manager/layout/large-icons-view.js +1 -1
- package/src/file-manager/pop-up/context-menu.d.ts +1 -1
- package/src/file-manager/pop-up/context-menu.js +20 -1
@@ -1559,6 +1559,9 @@ function pasteHandler(parent) {
|
|
1559
1559
|
parent.isDragDrop = false;
|
1560
1560
|
if (parent.selectedNodes.length !== 0 && parent.enablePaste) {
|
1561
1561
|
const path = (parent.folderPath === '') ? parent.path : parent.folderPath;
|
1562
|
+
if (parent.activeModule === 'navigationpane' && !parent.selectedNodes[0].includes('/')) {
|
1563
|
+
parent.targetPath = getValue('filterPath', parent.actionRecords[0]).replace(/\\/g, '/');
|
1564
|
+
}
|
1562
1565
|
const subFolder = validateSubFolder(parent, parent.actionRecords, path, parent.path);
|
1563
1566
|
if (!subFolder) {
|
1564
1567
|
if ((parent.fileAction === 'move' && parent.targetPath !== path) || parent.fileAction === 'copy') {
|
@@ -5131,7 +5134,7 @@ class LargeIconsView {
|
|
5131
5134
|
onpasteEnd(args) {
|
5132
5135
|
if (this.parent.view === 'LargeIcons') {
|
5133
5136
|
this.isPasteOperation = true;
|
5134
|
-
if (this.parent.path === this.parent.destinationPath || this.parent.path === getDirectoryPath(this.parent, args)) {
|
5137
|
+
if (this.parent.path === this.parent.destinationPath || this.parent.path === getDirectoryPath(this.parent, args) || this.parent.hasId) {
|
5135
5138
|
this.onPathChanged(args);
|
5136
5139
|
}
|
5137
5140
|
}
|
@@ -6588,7 +6591,23 @@ class ContextMenu {
|
|
6588
6591
|
iconSpan.setAttribute('class', ICON_GRID + ' ' + MENU_ICON);
|
6589
6592
|
}
|
6590
6593
|
}
|
6591
|
-
onBeforeClose() {
|
6594
|
+
onBeforeClose(args) {
|
6595
|
+
const eventArgs = {
|
6596
|
+
cancel: false,
|
6597
|
+
element: args.element,
|
6598
|
+
event: args.event,
|
6599
|
+
isFocused: args.isFocused,
|
6600
|
+
fileDetails: [this.menuItemData],
|
6601
|
+
items: args.items,
|
6602
|
+
parentItem: args.parentItem,
|
6603
|
+
menuType: this.menuType
|
6604
|
+
};
|
6605
|
+
this.parent.trigger('menuClose', eventArgs, (menuCloseArgs) => {
|
6606
|
+
if (menuCloseArgs.cancel) {
|
6607
|
+
args.cancel = menuCloseArgs.cancel;
|
6608
|
+
return;
|
6609
|
+
}
|
6610
|
+
});
|
6592
6611
|
this.menuTarget = null;
|
6593
6612
|
if (!this.isMenuItemClicked && this.parent.pathId.length > 1 && this.parent.activeModule === 'navigationpane') {
|
6594
6613
|
this.parent.pathId.pop();
|
@@ -6922,6 +6941,9 @@ class ContextMenu {
|
|
6922
6941
|
break;
|
6923
6942
|
case 'paste':
|
6924
6943
|
if (this.menuType === 'folder') {
|
6944
|
+
if (this.parent.activeModule === 'navigationpane') {
|
6945
|
+
this.parent.navigationpaneModule.openFileOnContextMenuClick(closest(this.targetNodeElement, 'li'));
|
6946
|
+
}
|
6925
6947
|
this.parent.folderPath = getFullPath(this.parent, this.menuItemData, this.parent.path);
|
6926
6948
|
}
|
6927
6949
|
else {
|
@@ -8558,6 +8580,9 @@ __decorate$8([
|
|
8558
8580
|
__decorate$8([
|
8559
8581
|
Event()
|
8560
8582
|
], FileManager.prototype, "menuOpen", void 0);
|
8583
|
+
__decorate$8([
|
8584
|
+
Event()
|
8585
|
+
], FileManager.prototype, "menuClose", void 0);
|
8561
8586
|
__decorate$8([
|
8562
8587
|
Event()
|
8563
8588
|
], FileManager.prototype, "failure", void 0);
|
@@ -11368,7 +11393,7 @@ class DetailsView {
|
|
11368
11393
|
onpasteEnd(args) {
|
11369
11394
|
if (this.parent.view === 'Details') {
|
11370
11395
|
this.isPasteOperation = true;
|
11371
|
-
if (this.parent.path === this.parent.destinationPath || this.parent.path === getDirectoryPath(this.parent, args)) {
|
11396
|
+
if (this.parent.path === this.parent.destinationPath || this.parent.path === getDirectoryPath(this.parent, args) || this.parent.hasId) {
|
11372
11397
|
this.onPathChanged(args);
|
11373
11398
|
}
|
11374
11399
|
}
|