@syncfusion/ej2-filemanager 28.2.6 → 28.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/README.md +1 -1
- 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 +34 -12
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +34 -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 +12 -12
- package/src/file-manager/base/file-manager.d.ts +1 -0
- package/src/file-manager/base/file-manager.js +11 -0
- package/src/file-manager/common/utility.js +1 -1
- package/src/file-manager/layout/details-view.js +16 -7
- package/src/file-manager/layout/large-icons-view.js +2 -2
- package/src/file-manager/layout/navigation-pane.js +1 -1
- package/src/file-manager/pop-up/context-menu.js +3 -1
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 28.2.
|
3
|
+
* version : 28.2.11
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
5
5
|
* Use of this code is subject to the terms of our license.
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "@syncfusion/ej2-filemanager@*",
|
3
|
-
"_id": "@syncfusion/ej2-filemanager@28.2.
|
3
|
+
"_id": "@syncfusion/ej2-filemanager@28.2.9",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-vlsS5yPhBcMTA8/G+gitT5U18yPvNqDcEV5bcaPn5OwiPnIwcpiBOb3KPomyIH6swFbBXqOHmDa1DTQwE/7/sg==",
|
6
6
|
"_location": "/@syncfusion/ej2-filemanager",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"/@syncfusion/ej2-richtexteditor",
|
25
25
|
"/@syncfusion/ej2-vue-filemanager"
|
26
26
|
],
|
27
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-28.2.
|
28
|
-
"_shasum": "
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-28.2.9.tgz",
|
28
|
+
"_shasum": "d967eacde7594518dff99b5946de33a1476598a5",
|
29
29
|
"_spec": "@syncfusion/ej2-filemanager@*",
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
31
31
|
"author": {
|
@@ -36,15 +36,15 @@
|
|
36
36
|
},
|
37
37
|
"bundleDependencies": false,
|
38
38
|
"dependencies": {
|
39
|
-
"@syncfusion/ej2-base": "~28.2.
|
40
|
-
"@syncfusion/ej2-buttons": "~28.2.
|
41
|
-
"@syncfusion/ej2-data": "~28.2.
|
42
|
-
"@syncfusion/ej2-grids": "~28.2.
|
43
|
-
"@syncfusion/ej2-inputs": "~28.2.
|
39
|
+
"@syncfusion/ej2-base": "~28.2.9",
|
40
|
+
"@syncfusion/ej2-buttons": "~28.2.7",
|
41
|
+
"@syncfusion/ej2-data": "~28.2.11",
|
42
|
+
"@syncfusion/ej2-grids": "~28.2.11",
|
43
|
+
"@syncfusion/ej2-inputs": "~28.2.11",
|
44
44
|
"@syncfusion/ej2-layouts": "~28.2.5",
|
45
45
|
"@syncfusion/ej2-lists": "~28.2.3",
|
46
|
-
"@syncfusion/ej2-navigations": "~28.2.
|
47
|
-
"@syncfusion/ej2-popups": "~28.2.
|
46
|
+
"@syncfusion/ej2-navigations": "~28.2.11",
|
47
|
+
"@syncfusion/ej2-popups": "~28.2.9",
|
48
48
|
"@syncfusion/ej2-splitbuttons": "~28.2.3"
|
49
49
|
},
|
50
50
|
"deprecated": false,
|
@@ -75,6 +75,6 @@
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
76
76
|
},
|
77
77
|
"typings": "index.d.ts",
|
78
|
-
"version": "28.2.
|
78
|
+
"version": "28.2.11",
|
79
79
|
"sideEffects": false
|
80
80
|
}
|
@@ -680,6 +680,7 @@ export declare class FileManager extends Component<HTMLElement> implements INoti
|
|
680
680
|
private wireSelectOnDragEvent;
|
681
681
|
private wireEvents;
|
682
682
|
private unWireEvents;
|
683
|
+
private onScrollHandler;
|
683
684
|
private onDragStart;
|
684
685
|
private onDrag;
|
685
686
|
private onDragStop;
|
@@ -102,6 +102,11 @@ var FileManager = /** @class */ (function (_super) {
|
|
102
102
|
//Specifies whether the operating system is MAC or not
|
103
103
|
_this.isMac = false;
|
104
104
|
_this.dragSelectedItems = [];
|
105
|
+
_this.onScrollHandler = function () {
|
106
|
+
if (!isNOU(_this.contextmenuModule) && !isNOU(_this.contextmenuModule.contextMenu)) {
|
107
|
+
_this.contextmenuModule.contextMenu.close();
|
108
|
+
}
|
109
|
+
};
|
105
110
|
FileManager_1.Inject(BreadCrumbBar, LargeIconsView, ContextMenu);
|
106
111
|
return _this;
|
107
112
|
}
|
@@ -728,6 +733,9 @@ var FileManager = /** @class */ (function (_super) {
|
|
728
733
|
this.wireSelectOnDragEvent(true);
|
729
734
|
}
|
730
735
|
EventHandler.add(window, 'resize', this.resizeHandler, this);
|
736
|
+
if (this.contextMenuSettings.visible) {
|
737
|
+
this.element.addEventListener('scroll', this.onScrollHandler, true);
|
738
|
+
}
|
731
739
|
this.keyboardModule = new KeyboardEvents(this.element, {
|
732
740
|
keyAction: this.keyActionHandler.bind(this),
|
733
741
|
keyConfigs: this.keyConfigs,
|
@@ -737,6 +745,9 @@ var FileManager = /** @class */ (function (_super) {
|
|
737
745
|
FileManager.prototype.unWireEvents = function () {
|
738
746
|
this.wireSelectOnDragEvent(false);
|
739
747
|
EventHandler.remove(window, 'resize', this.resizeHandler);
|
748
|
+
if (this.contextMenuSettings.visible) {
|
749
|
+
this.element.removeEventListener('scroll', this.onScrollHandler, true);
|
750
|
+
}
|
740
751
|
this.keyboardModule.destroy();
|
741
752
|
};
|
742
753
|
FileManager.prototype.onDragStart = function (event) {
|
@@ -567,7 +567,7 @@ export function getFullPath(parent, data, path) {
|
|
567
567
|
var filePath = getValue(parent.hasId ? 'id' : 'name', data) + '/';
|
568
568
|
var fPath = getValue(parent.hasId ? 'filterId' : 'filterPath', data);
|
569
569
|
if (!isNOU(fPath)) {
|
570
|
-
return fPath.replace(/\\/g, '/') + filePath;
|
570
|
+
return fPath.replace(/\\/g, '/').replace(/^.*?(?=\/)/, '') + filePath;
|
571
571
|
}
|
572
572
|
else {
|
573
573
|
return path + filePath;
|
@@ -155,6 +155,9 @@ var DetailsView = /** @class */ (function () {
|
|
155
155
|
}
|
156
156
|
this.gridObj.isStringTemplate = true;
|
157
157
|
this.gridObj.appendTo('#' + this.parent.element.id + CLS.GRID_ID);
|
158
|
+
if (this.parent.selectedItems.length !== 0 && this.parent.enableVirtualization && this.parent.enablePersistence) {
|
159
|
+
this.isLoaded = true;
|
160
|
+
}
|
158
161
|
this.wireEvents();
|
159
162
|
this.adjustHeight();
|
160
163
|
this.emptyArgs = args;
|
@@ -413,9 +416,7 @@ var DetailsView = /** @class */ (function () {
|
|
413
416
|
/* istanbul ignore next */
|
414
417
|
DetailsView.prototype.onDataBound = function () {
|
415
418
|
this.createDragObj();
|
416
|
-
if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization) ||
|
417
|
-
((this.parent.selectedItems.length !== 0 && this.parent.enableVirtualization &&
|
418
|
-
this.element.querySelector('.e-content').scrollTop === 0))) {
|
419
|
+
if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization) || this.isLoaded) {
|
419
420
|
this.selectRecords(this.parent.selectedItems);
|
420
421
|
}
|
421
422
|
if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
|
@@ -488,7 +489,7 @@ var DetailsView = /** @class */ (function () {
|
|
488
489
|
this.isLoaded = false;
|
489
490
|
};
|
490
491
|
DetailsView.prototype.selectRecords = function (nodes) {
|
491
|
-
var gridRecords = this.gridObj.
|
492
|
+
var gridRecords = this.gridObj.dataSource;
|
492
493
|
var sRecords = [];
|
493
494
|
for (var i = 0, len = gridRecords.length; i < len; i++) {
|
494
495
|
var node = this.parent.hasId ? getValue('id', gridRecords[i]) : getName(this.parent, gridRecords[i]);
|
@@ -1178,7 +1179,9 @@ var DetailsView = /** @class */ (function () {
|
|
1178
1179
|
if (this.gridObj.getSelectedRowIndexes().length !== 1) {
|
1179
1180
|
var lastItemIndex = this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length - 2];
|
1180
1181
|
var lastItem = this.gridObj.getRowByIndex(lastItemIndex);
|
1181
|
-
lastItem
|
1182
|
+
if (!isNOU(lastItem)) {
|
1183
|
+
lastItem.querySelector('.e-checkselect').setAttribute('tabindex', '-1');
|
1184
|
+
}
|
1182
1185
|
}
|
1183
1186
|
item.querySelector('.e-rowcell.e-fe-checkbox').removeAttribute('tabindex');
|
1184
1187
|
}
|
@@ -1243,11 +1246,17 @@ var DetailsView = /** @class */ (function () {
|
|
1243
1246
|
DetailsView.prototype.onDeSelection = function (args) {
|
1244
1247
|
/* istanbul ignore next */
|
1245
1248
|
if (!this.parent.allowMultiSelection && isNOU(args.data)) {
|
1246
|
-
this.gridObj.getRowByIndex(args.rowIndex)
|
1249
|
+
var item = this.gridObj.getRowByIndex(args.rowIndex);
|
1250
|
+
if (!isNOU(item)) {
|
1251
|
+
item.removeAttribute('tabindex');
|
1252
|
+
}
|
1247
1253
|
}
|
1248
1254
|
else if (this.gridObj.getSelectedRowIndexes().length > 1) {
|
1249
1255
|
var lastItemIndex = this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length - 2];
|
1250
|
-
this.gridObj.getRowByIndex(lastItemIndex)
|
1256
|
+
var lastItem = this.gridObj.getRowByIndex(lastItemIndex);
|
1257
|
+
if (!isNOU(lastItem)) {
|
1258
|
+
lastItem.querySelector('.e-checkselect').removeAttribute('tabindex');
|
1259
|
+
}
|
1251
1260
|
}
|
1252
1261
|
if (this.gridObj.selectedRowIndex === -1) {
|
1253
1262
|
this.gridObj.element.setAttribute('tabindex', '0');
|
@@ -119,7 +119,7 @@ var LargeIconsView = /** @class */ (function () {
|
|
119
119
|
this.items = this.allItems = getSortedData(this.parent, this.items);
|
120
120
|
}
|
121
121
|
iconsView.classList.remove(CLS.DISPLAY_NONE);
|
122
|
-
if (this.parent.enableVirtualization && this.allItems.length > 0) {
|
122
|
+
if (this.parent.enableVirtualization && this.allItems.length > 0 && !isNOU(this.parent.virtualizationModule)) {
|
123
123
|
this.parent.virtualizationModule.setUIVirtualization();
|
124
124
|
}
|
125
125
|
this.listElements = ListBase.createListFromJson(createElement, this.items, this.listObj);
|
@@ -161,7 +161,7 @@ var LargeIconsView = /** @class */ (function () {
|
|
161
161
|
this.getItemCount();
|
162
162
|
this.addEventListener();
|
163
163
|
this.wireEvents();
|
164
|
-
if (this.parent.enableVirtualization && this.allItems.length > 0) {
|
164
|
+
if (this.parent.enableVirtualization && this.allItems.length > 0 && !isNOU(this.parent.virtualizationModule)) {
|
165
165
|
this.parent.virtualizationModule.setUlElementHeight();
|
166
166
|
this.parent.virtualizationModule.wireScrollEvent(false);
|
167
167
|
}
|
@@ -649,7 +649,7 @@ var NavigationPane = /** @class */ (function () {
|
|
649
649
|
this.updateItemData();
|
650
650
|
}
|
651
651
|
this.moveNames = [];
|
652
|
-
var obj = this.parent.isDragDrop
|
652
|
+
var obj = this.parent.isDragDrop ? this.parent.dragData : this.parent.actionRecords;
|
653
653
|
for (var i = 0; i < obj.length; i++) {
|
654
654
|
if (getValue('isFile', obj[i]) === false) {
|
655
655
|
this.moveNames.push(getValue('_fm_id', obj[i]));
|
@@ -409,7 +409,9 @@ var ContextMenu = /** @class */ (function () {
|
|
409
409
|
this.parent.trigger('menuClick', eventArgs, function (menuClickArgs) {
|
410
410
|
var sItems;
|
411
411
|
if (!menuClickArgs.cancel) {
|
412
|
-
|
412
|
+
if (itemText !== 'cut' && itemText !== 'copy') {
|
413
|
+
_this.isMenuItemClicked = true;
|
414
|
+
}
|
413
415
|
switch (itemText) {
|
414
416
|
case 'cut':
|
415
417
|
cutFiles(_this.parent);
|