@syncfusion/ej2-filemanager 20.2.36 → 20.2.43
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 +20 -0
- 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 +20 -8
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +18 -6
- 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/common/utility.js +5 -0
- package/src/file-manager/layout/details-view.js +1 -1
- 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
@@ -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);
|
@@ -3529,11 +3534,18 @@ function getOptions(parent, text, e, details, replaceItems) {
|
|
3529
3534
|
];
|
3530
3535
|
break;
|
3531
3536
|
case 'MultipleFileDetails':
|
3537
|
+
var index_1;
|
3532
3538
|
options.dialogName = 'File Details';
|
3533
|
-
strArr =
|
3534
|
-
|
3535
|
-
return (
|
3539
|
+
strArr = parent.itemData.map(function (val) {
|
3540
|
+
index_1 = val.name.indexOf('.') + 1;
|
3541
|
+
return (index_1 === 0 && (!val.isFile)) ? 'Folder' : ((index_1 !== 0) ? val.name.substr(index_1).replace(' ', '') : 'undetermined');
|
3536
3542
|
});
|
3543
|
+
if (strArr[0] == undefined) {
|
3544
|
+
strArr = details.name.split(',').map(function (val) {
|
3545
|
+
index_1 = val.indexOf('.') + 1;
|
3546
|
+
return (index_1 === 0) ? 'Folder' : val.substr(index_1).replace(' ', '');
|
3547
|
+
});
|
3548
|
+
}
|
3537
3549
|
fileType$$1 = strArr.every(function (val, i, arr) { return val === arr[0]; }) ?
|
3538
3550
|
((strArr[0] === 'Folder') ? 'Folder' : strArr[0].toLocaleUpperCase() + ' Type') : 'Multiple Types';
|
3539
3551
|
location = details.location;
|
@@ -5922,7 +5934,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
|
|
5922
5934
|
data = this.parent.detailsviewModule.gridObj.getRowObjectFromUID(uid).data;
|
5923
5935
|
if (isNullOrUndefined(this.targetElement.getAttribute('aria-selected'))) {
|
5924
5936
|
/* istanbul ignore next */
|
5925
|
-
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('
|
5937
|
+
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('data-rowindex'), 10)]);
|
5926
5938
|
}
|
5927
5939
|
selected = true;
|
5928
5940
|
/* istanbul ignore next */
|
@@ -8557,7 +8569,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
8557
8569
|
var currFiles = getValue(this.parent.pathId[this.parent.pathId.length - 1], this.parent.feFiles);
|
8558
8570
|
if (this.expandNodeTarget === 'add') {
|
8559
8571
|
var sNode = select('[data-uid="' + this.treeObj.selectedNodes[0] + '"]', this.treeObj.element);
|
8560
|
-
var ul = select('.' + LIST_PARENT, sNode);
|
8572
|
+
var ul = (!isNullOrUndefined(sNode)) ? select('.' + LIST_PARENT, sNode) : null;
|
8561
8573
|
if (isNullOrUndefined(ul)) {
|
8562
8574
|
this.addChild(args.files, this.treeObj.selectedNodes[0], !this.expandTree);
|
8563
8575
|
}
|
@@ -10322,7 +10334,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10322
10334
|
};
|
10323
10335
|
DetailsView.prototype.getFocusedItemIndex = function () {
|
10324
10336
|
return (!isNullOrUndefined(this.getFocusedItem())) ?
|
10325
|
-
parseInt(this.getFocusedItem().getAttribute('
|
10337
|
+
parseInt(this.getFocusedItem().getAttribute('data-rowindex'), 10) : null;
|
10326
10338
|
};
|
10327
10339
|
/* istanbul ignore next */
|
10328
10340
|
// eslint:disable-next-line
|