@syncfusion/ej2-filemanager 20.2.39 → 20.2.45
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/CHANGELOG.md +8 -1
- 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 +14 -5
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +12 -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 +15 -15
- package/src/file-manager/base/file-manager.d.ts +1 -0
- package/src/file-manager/base/interface.d.ts +1 -0
- package/src/file-manager/common/operations.js +2 -0
- package/src/file-manager/common/utility.js +6 -1
- package/src/file-manager/layout/details-view.js +2 -1
- package/src/file-manager/layout/large-icons-view.js +1 -0
- package/src/file-manager/pop-up/context-menu.js +1 -1
@@ -1075,7 +1075,7 @@ function getImageUrl(parent, item) {
|
|
1075
1075
|
imgUrl = baseUrl + '?path=' + parent.path + '&id=' + imgId;
|
1076
1076
|
}
|
1077
1077
|
else if (!isNullOrUndefined(fPath)) {
|
1078
|
-
imgUrl = baseUrl + '?path=' + fPath.replace(/\\/g, '/') + fileName;
|
1078
|
+
imgUrl = baseUrl + '?path=' + encodeURIComponent(fPath.replace(/\\/g, '/')) + fileName;
|
1079
1079
|
}
|
1080
1080
|
else {
|
1081
1081
|
imgUrl = baseUrl + '?path=' + parent.path + fileName;
|
@@ -1597,7 +1597,7 @@ function doPasteUpdate(parent, operation, result) {
|
|
1597
1597
|
* @private
|
1598
1598
|
*/
|
1599
1599
|
function readDropPath(parent) {
|
1600
|
-
|
1600
|
+
let pathId = getValue('_fm_id', parent.dropData);
|
1601
1601
|
parent.expandedId = pathId;
|
1602
1602
|
parent.itemData = [parent.dropData];
|
1603
1603
|
if (parent.isPathDrag) {
|
@@ -1605,7 +1605,12 @@ function readDropPath(parent) {
|
|
1605
1605
|
}
|
1606
1606
|
else {
|
1607
1607
|
if (parent.navigationpaneModule) {
|
1608
|
-
|
1608
|
+
let node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
|
1609
|
+
if (!node) {
|
1610
|
+
let liElement = document.querySelector('[data-id = "' + getValue('id', parent.dropData) + '"]');
|
1611
|
+
pathId = liElement.getAttribute("data-uid");
|
1612
|
+
node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
|
1613
|
+
}
|
1609
1614
|
updatePath(node, parent.dropData, parent);
|
1610
1615
|
}
|
1611
1616
|
read(parent, dropPath, parent.dropPath);
|
@@ -2432,6 +2437,8 @@ function readSuccess(parent, result, event) {
|
|
2432
2437
|
parent.notify(selectionChanged, {});
|
2433
2438
|
}
|
2434
2439
|
onFailure(parent, result, 'read');
|
2440
|
+
parent.setProperties({ path: parent.oldPath }, true);
|
2441
|
+
parent.pathNames.pop();
|
2435
2442
|
}
|
2436
2443
|
if (parent.isDragDrop && parent.isDropEnd) {
|
2437
2444
|
if (parent.droppedObjects.length !== 0) {
|
@@ -4569,6 +4576,7 @@ class LargeIconsView {
|
|
4569
4576
|
const val = this.parent.breadcrumbbarModule.searchObj.element.value;
|
4570
4577
|
if (val === '' && !this.parent.isFiltered) {
|
4571
4578
|
const id = getValue('id', details);
|
4579
|
+
this.parent.oldPath = this.parent.path;
|
4572
4580
|
const newPath = this.parent.path + (isNullOrUndefined(id) ? text : id) + '/';
|
4573
4581
|
this.parent.setProperties({ path: newPath }, true);
|
4574
4582
|
this.parent.pathNames.push(text);
|
@@ -5774,7 +5782,7 @@ class ContextMenu$2 {
|
|
5774
5782
|
data = this.parent.detailsviewModule.gridObj.getRowObjectFromUID(uid).data;
|
5775
5783
|
if (isNullOrUndefined(this.targetElement.getAttribute('aria-selected'))) {
|
5776
5784
|
/* istanbul ignore next */
|
5777
|
-
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('
|
5785
|
+
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('data-rowindex'), 10)]);
|
5778
5786
|
}
|
5779
5787
|
selected = true;
|
5780
5788
|
/* istanbul ignore next */
|
@@ -9505,6 +9513,7 @@ class DetailsView {
|
|
9505
9513
|
const val = this.parent.breadcrumbbarModule.searchObj.element.value;
|
9506
9514
|
if (val === '' && !this.parent.isFiltered) {
|
9507
9515
|
const id = getValue('id', data);
|
9516
|
+
this.parent.oldPath = this.parent.path;
|
9508
9517
|
const newPath = this.parent.path + (isNullOrUndefined(id) ? name : id) + '/';
|
9509
9518
|
this.parent.setProperties({ path: newPath }, true);
|
9510
9519
|
this.parent.pathNames.push(name);
|
@@ -10139,7 +10148,7 @@ class DetailsView {
|
|
10139
10148
|
}
|
10140
10149
|
getFocusedItemIndex() {
|
10141
10150
|
return (!isNullOrUndefined(this.getFocusedItem())) ?
|
10142
|
-
parseInt(this.getFocusedItem().getAttribute('
|
10151
|
+
parseInt(this.getFocusedItem().getAttribute('data-rowindex'), 10) : null;
|
10143
10152
|
}
|
10144
10153
|
/* istanbul ignore next */
|
10145
10154
|
// eslint:disable-next-line
|