@syncfusion/ej2-filemanager 20.2.38 → 20.2.44
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 +32 -0
- package/dist/ej2-filemanager.umd.min.js +2 -11
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +25 -9
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +23 -7
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -11
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -10
- package/package.json +16 -16
- 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/layout/navigation-pane.js +1 -1
- package/src/file-manager/pop-up/context-menu.js +1 -1
- package/src/file-manager/pop-up/dialog.js +10 -3
- package/styles/file-manager/fluent-dark.css +3 -3
- package/styles/fluent-dark.css +3 -3
@@ -1219,7 +1219,7 @@ function getImageUrl(parent, item) {
|
|
1219
1219
|
imgUrl = baseUrl + '?path=' + parent.path + '&id=' + imgId;
|
1220
1220
|
}
|
1221
1221
|
else if (!isNullOrUndefined(fPath)) {
|
1222
|
-
imgUrl = baseUrl + '?path=' + fPath.replace(/\\/g, '/') + fileName;
|
1222
|
+
imgUrl = baseUrl + '?path=' + encodeURIComponent(fPath.replace(/\\/g, '/')) + fileName;
|
1223
1223
|
}
|
1224
1224
|
else {
|
1225
1225
|
imgUrl = baseUrl + '?path=' + parent.path + fileName;
|
@@ -1750,6 +1750,11 @@ function readDropPath(parent) {
|
|
1750
1750
|
else {
|
1751
1751
|
if (parent.navigationpaneModule) {
|
1752
1752
|
var node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
|
1753
|
+
if (!node) {
|
1754
|
+
var liElement = document.querySelector('[data-id = "' + getValue('id', parent.dropData) + '"]');
|
1755
|
+
pathId = liElement.getAttribute("data-uid");
|
1756
|
+
node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
|
1757
|
+
}
|
1753
1758
|
updatePath(node, parent.dropData, parent);
|
1754
1759
|
}
|
1755
1760
|
read(parent, dropPath, parent.dropPath);
|
@@ -2576,6 +2581,8 @@ function readSuccess(parent, result, event) {
|
|
2576
2581
|
parent.notify(selectionChanged, {});
|
2577
2582
|
}
|
2578
2583
|
onFailure(parent, result, 'read');
|
2584
|
+
parent.setProperties({ path: parent.oldPath }, true);
|
2585
|
+
parent.pathNames.pop();
|
2579
2586
|
}
|
2580
2587
|
if (parent.isDragDrop && parent.isDropEnd) {
|
2581
2588
|
if (parent.droppedObjects.length !== 0) {
|
@@ -3529,11 +3536,18 @@ function getOptions(parent, text, e, details, replaceItems) {
|
|
3529
3536
|
];
|
3530
3537
|
break;
|
3531
3538
|
case 'MultipleFileDetails':
|
3539
|
+
var index_1;
|
3532
3540
|
options.dialogName = 'File Details';
|
3533
|
-
strArr =
|
3534
|
-
|
3535
|
-
return (
|
3541
|
+
strArr = parent.itemData.map(function (val) {
|
3542
|
+
index_1 = val.name.indexOf('.') + 1;
|
3543
|
+
return (index_1 === 0 && (!val.isFile)) ? 'Folder' : ((index_1 !== 0) ? val.name.substr(index_1).replace(' ', '') : 'undetermined');
|
3536
3544
|
});
|
3545
|
+
if (strArr[0] == undefined) {
|
3546
|
+
strArr = details.name.split(',').map(function (val) {
|
3547
|
+
index_1 = val.indexOf('.') + 1;
|
3548
|
+
return (index_1 === 0) ? 'Folder' : val.substr(index_1).replace(' ', '');
|
3549
|
+
});
|
3550
|
+
}
|
3537
3551
|
fileType$$1 = strArr.every(function (val, i, arr) { return val === arr[0]; }) ?
|
3538
3552
|
((strArr[0] === 'Folder') ? 'Folder' : strArr[0].toLocaleUpperCase() + ' Type') : 'Multiple Types';
|
3539
3553
|
location = details.location;
|
@@ -4712,6 +4726,7 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4712
4726
|
var val = _this.parent.breadcrumbbarModule.searchObj.element.value;
|
4713
4727
|
if (val === '' && !_this.parent.isFiltered) {
|
4714
4728
|
var id = getValue('id', details_1);
|
4729
|
+
_this.parent.oldPath = _this.parent.path;
|
4715
4730
|
var newPath = _this.parent.path + (isNullOrUndefined(id) ? text : id) + '/';
|
4716
4731
|
_this.parent.setProperties({ path: newPath }, true);
|
4717
4732
|
_this.parent.pathNames.push(text);
|
@@ -5922,7 +5937,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
|
|
5922
5937
|
data = this.parent.detailsviewModule.gridObj.getRowObjectFromUID(uid).data;
|
5923
5938
|
if (isNullOrUndefined(this.targetElement.getAttribute('aria-selected'))) {
|
5924
5939
|
/* istanbul ignore next */
|
5925
|
-
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('
|
5940
|
+
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('data-rowindex'), 10)]);
|
5926
5941
|
}
|
5927
5942
|
selected = true;
|
5928
5943
|
/* istanbul ignore next */
|
@@ -8557,7 +8572,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
8557
8572
|
var currFiles = getValue(this.parent.pathId[this.parent.pathId.length - 1], this.parent.feFiles);
|
8558
8573
|
if (this.expandNodeTarget === 'add') {
|
8559
8574
|
var sNode = select('[data-uid="' + this.treeObj.selectedNodes[0] + '"]', this.treeObj.element);
|
8560
|
-
var ul = select('.' + LIST_PARENT, sNode);
|
8575
|
+
var ul = (!isNullOrUndefined(sNode)) ? select('.' + LIST_PARENT, sNode) : null;
|
8561
8576
|
if (isNullOrUndefined(ul)) {
|
8562
8577
|
this.addChild(args.files, this.treeObj.selectedNodes[0], !this.expandTree);
|
8563
8578
|
}
|
@@ -9687,6 +9702,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
9687
9702
|
var val = _this.parent.breadcrumbbarModule.searchObj.element.value;
|
9688
9703
|
if (val === '' && !_this.parent.isFiltered) {
|
9689
9704
|
var id = getValue('id', data);
|
9705
|
+
_this.parent.oldPath = _this.parent.path;
|
9690
9706
|
var newPath = _this.parent.path + (isNullOrUndefined(id) ? name_2 : id) + '/';
|
9691
9707
|
_this.parent.setProperties({ path: newPath }, true);
|
9692
9708
|
_this.parent.pathNames.push(name_2);
|
@@ -10322,7 +10338,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10322
10338
|
};
|
10323
10339
|
DetailsView.prototype.getFocusedItemIndex = function () {
|
10324
10340
|
return (!isNullOrUndefined(this.getFocusedItem())) ?
|
10325
|
-
parseInt(this.getFocusedItem().getAttribute('
|
10341
|
+
parseInt(this.getFocusedItem().getAttribute('data-rowindex'), 10) : null;
|
10326
10342
|
};
|
10327
10343
|
/* istanbul ignore next */
|
10328
10344
|
// eslint:disable-next-line
|