@syncfusion/ej2-filemanager 27.1.55 → 27.2.3
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 +12 -12
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +12 -12
- 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/actions/virtualization.js +1 -1
- package/src/file-manager/layout/details-view.js +1 -1
- package/src/file-manager/layout/navigation-pane.js +8 -8
- package/src/file-manager/pop-up/context-menu.js +2 -2
- package/styles/file-manager/fluent2.css +1 -2
- package/styles/fluent2-lite.css +1 -2
- package/styles/fluent2.css +1 -2
@@ -6669,7 +6669,7 @@ class ContextMenu {
|
|
6669
6669
|
}
|
6670
6670
|
}
|
6671
6671
|
this.parent.pathId.push(parentKey[parentKey.length - 1]);
|
6672
|
-
this.parent.navigationpaneModule.treeObj.selectedNodes
|
6672
|
+
this.parent.navigationpaneModule.treeObj.setProperties({ selectedNodes: [this.parent.pathId[this.parent.pathId.length - 1]] });
|
6673
6673
|
}
|
6674
6674
|
this.isMenuItemClicked = false;
|
6675
6675
|
}
|
@@ -6730,7 +6730,7 @@ class ContextMenu {
|
|
6730
6730
|
else if (closest(target, '#' + this.parent.element.id + TREE_ID)) {
|
6731
6731
|
uid = closest(target, 'li').getAttribute('data-uid');
|
6732
6732
|
if (!isNullOrUndefined(uid)) {
|
6733
|
-
this.parent.navigationpaneModule.treeObj.selectedNodes
|
6733
|
+
this.parent.navigationpaneModule.treeObj.setProperties({ selectedNodes: [uid] });
|
6734
6734
|
}
|
6735
6735
|
treeFolder = true;
|
6736
6736
|
}
|
@@ -9502,7 +9502,7 @@ class Virtualization {
|
|
9502
9502
|
let itemCount = this.rowItemCount *
|
9503
9503
|
(Math.round(parseFloat(formatUnit(this.largeIconInstance.element.clientHeight)) / this.itemList[0].offsetHeight));
|
9504
9504
|
// If the calculated item count is greater than the data source length, set the item count to the data source length
|
9505
|
-
if (itemCount > dataSourceLength) {
|
9505
|
+
if (itemCount > dataSourceLength || itemCount === 0) {
|
9506
9506
|
itemCount = dataSourceLength;
|
9507
9507
|
}
|
9508
9508
|
return itemCount;
|
@@ -9891,7 +9891,7 @@ class NavigationPane {
|
|
9891
9891
|
this.isNodeClickCalled = true;
|
9892
9892
|
this.isSameNodeClicked = false;
|
9893
9893
|
this.previousSelected = this.treeObj.selectedNodes;
|
9894
|
-
this.treeObj.selectedNodes
|
9894
|
+
this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
|
9895
9895
|
}
|
9896
9896
|
}
|
9897
9897
|
else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
|
@@ -9915,7 +9915,7 @@ class NavigationPane {
|
|
9915
9915
|
read(this.parent, this.isPathDragged ? pasteEnd : pathChanged, this.parent.path);
|
9916
9916
|
this.parent.visitedItem = node;
|
9917
9917
|
this.isPathDragged = this.isRenameParent = this.isRightClick = false;
|
9918
|
-
this.treeObj.selectedNodes
|
9918
|
+
this.treeObj.setProperties({ selectedNodes: [node.getAttribute('data-uid')] });
|
9919
9919
|
}
|
9920
9920
|
}
|
9921
9921
|
onNodeSelected(args) {
|
@@ -9991,7 +9991,7 @@ class NavigationPane {
|
|
9991
9991
|
if ((args.event.which === 3) && (args.node.getAttribute('data-uid') !== this.treeObj.selectedNodes[0])) {
|
9992
9992
|
this.isRightClick = true;
|
9993
9993
|
this.isNodeClickCalled = true;
|
9994
|
-
this.treeObj.selectedNodes
|
9994
|
+
this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
|
9995
9995
|
}
|
9996
9996
|
else if (args.node.getAttribute('data-uid') === this.treeObj.selectedNodes[0] && this.parent.selectedItems.length !== 0) {
|
9997
9997
|
this.parent.setProperties({ selectedItems: [] }, true);
|
@@ -10004,7 +10004,7 @@ class NavigationPane {
|
|
10004
10004
|
}
|
10005
10005
|
this.isSameNodeClicked = true;
|
10006
10006
|
this.isNodeClickCalled = true;
|
10007
|
-
this.treeObj.selectedNodes
|
10007
|
+
this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
|
10008
10008
|
}
|
10009
10009
|
}
|
10010
10010
|
/* istanbul ignore next */
|
@@ -10054,7 +10054,7 @@ class NavigationPane {
|
|
10054
10054
|
onOpenEnd(args) {
|
10055
10055
|
const sleId = this.parent.pathId[this.parent.pathId.length - 1];
|
10056
10056
|
this.treeObj.expandAll(this.treeObj.selectedNodes);
|
10057
|
-
this.treeObj.selectedNodes
|
10057
|
+
this.treeObj.setProperties({ selectedNodes: [sleId] });
|
10058
10058
|
this.expandNodeTarget = 'add';
|
10059
10059
|
this.onPathChanged(args);
|
10060
10060
|
}
|
@@ -10073,7 +10073,7 @@ class NavigationPane {
|
|
10073
10073
|
this.onInit();
|
10074
10074
|
const id = getValue('_fm_id', args.cwd);
|
10075
10075
|
this.addChild(args.files, id, false);
|
10076
|
-
this.treeObj.selectedNodes
|
10076
|
+
this.treeObj.setProperties({ selectedNodes: [this.parent.pathId[this.parent.pathId.length - 1]] });
|
10077
10077
|
}
|
10078
10078
|
onCreateEnd(args) {
|
10079
10079
|
this.updateTree(args);
|
@@ -10178,7 +10178,7 @@ class NavigationPane {
|
|
10178
10178
|
this.addDragDrop();
|
10179
10179
|
break;
|
10180
10180
|
case 'navigationPaneSettings':
|
10181
|
-
read(this.parent, finalizeEnd,
|
10181
|
+
read(this.parent, finalizeEnd, this.parent.path);
|
10182
10182
|
if (e.oldProp.navigationPaneSettings.sortOrder !== e.newProp.navigationPaneSettings.sortOrder) {
|
10183
10183
|
this.treeObj.sortOrder = e.newProp.navigationPaneSettings.sortOrder;
|
10184
10184
|
}
|
@@ -10191,7 +10191,7 @@ class NavigationPane {
|
|
10191
10191
|
this.doDownload();
|
10192
10192
|
}
|
10193
10193
|
onSelectionChanged(e) {
|
10194
|
-
this.treeObj.selectedNodes
|
10194
|
+
this.treeObj.setProperties({ selectedNodes: [e.selectedNode] });
|
10195
10195
|
}
|
10196
10196
|
onClearPathInit(e) {
|
10197
10197
|
this.removeChildNodes(e.selectedNode);
|
@@ -10935,7 +10935,7 @@ class DetailsView {
|
|
10935
10935
|
this.element.querySelector('.e-content').scrollTop === 0))) {
|
10936
10936
|
this.selectRecords(this.parent.selectedItems);
|
10937
10937
|
}
|
10938
|
-
if (this.isPasteOperation === true) {
|
10938
|
+
if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
|
10939
10939
|
if (!this.isColumnRefresh) {
|
10940
10940
|
this.selectRecords(this.parent.pasteNodes);
|
10941
10941
|
this.isPasteOperation = false;
|