@syncfusion/ej2-filemanager 26.2.5 → 26.2.10
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 +36 -18
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +36 -18
- 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/operations.js +32 -12
- package/src/file-manager/pop-up/context-menu.js +4 -6
- package/styles/file-manager/fluent2.css +3 -1031
- package/styles/file-manager/material3-dark.css +1 -54
- package/styles/file-manager/material3.css +2 -109
- package/styles/fluent2.css +3 -1031
- package/styles/material3-dark.css +1 -54
- package/styles/material3.css +2 -109
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 26.2.
|
3
|
+
* version : 26.2.10
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@26.
|
3
|
+
"_id": "@syncfusion/ej2-filemanager@26.2.7",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-WBLVyIiVrlyLJO0YbLcMYkHc+eJvQSwHeUsr5JWhapUTSo3L0u5Z6Mb0K3BV5q7X6VesEExXXqYXH+OKL4FUaw==",
|
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-26.
|
28
|
-
"_shasum": "
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-26.2.7.tgz",
|
28
|
+
"_shasum": "823145120e2b236a4907d250a101ac8e1da431f6",
|
29
29
|
"_spec": "@syncfusion/ej2-filemanager@*",
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
31
31
|
"author": {
|
@@ -36,16 +36,16 @@
|
|
36
36
|
},
|
37
37
|
"bundleDependencies": false,
|
38
38
|
"dependencies": {
|
39
|
-
"@syncfusion/ej2-base": "~26.2.
|
40
|
-
"@syncfusion/ej2-buttons": "~26.2.
|
41
|
-
"@syncfusion/ej2-data": "~26.2.
|
42
|
-
"@syncfusion/ej2-grids": "~26.2.
|
43
|
-
"@syncfusion/ej2-inputs": "~26.2.
|
44
|
-
"@syncfusion/ej2-layouts": "~26.2.
|
45
|
-
"@syncfusion/ej2-lists": "~26.2.
|
46
|
-
"@syncfusion/ej2-navigations": "~26.2.
|
47
|
-
"@syncfusion/ej2-popups": "~26.2.
|
48
|
-
"@syncfusion/ej2-splitbuttons": "~26.2.
|
39
|
+
"@syncfusion/ej2-base": "~26.2.10",
|
40
|
+
"@syncfusion/ej2-buttons": "~26.2.10",
|
41
|
+
"@syncfusion/ej2-data": "~26.2.10",
|
42
|
+
"@syncfusion/ej2-grids": "~26.2.10",
|
43
|
+
"@syncfusion/ej2-inputs": "~26.2.10",
|
44
|
+
"@syncfusion/ej2-layouts": "~26.2.10",
|
45
|
+
"@syncfusion/ej2-lists": "~26.2.10",
|
46
|
+
"@syncfusion/ej2-navigations": "~26.2.10",
|
47
|
+
"@syncfusion/ej2-popups": "~26.2.10",
|
48
|
+
"@syncfusion/ej2-splitbuttons": "~26.2.10"
|
49
49
|
},
|
50
50
|
"deprecated": false,
|
51
51
|
"description": "Essential JS 2 FileManager Component",
|
@@ -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": "26.2.
|
78
|
+
"version": "26.2.10",
|
79
79
|
"sideEffects": false
|
80
80
|
}
|
@@ -569,11 +569,17 @@ function createAjax(parent, data, fn, event, operation, targetPath) {
|
|
569
569
|
var action = getValue('action', data);
|
570
570
|
var isFileOperation = (action === 'move' || action === 'rename' || action === 'copy' || action === 'delete' || action === 'search') && event !== 'rename-end';
|
571
571
|
if (action === 'read' || action === 'create' || event === 'rename-end') {
|
572
|
+
var rootId = parent.fileSystemData
|
573
|
+
.filter(function (item) { return isNOU(item.parentId); })
|
574
|
+
.length > 0
|
575
|
+
? parent.fileSystemData
|
576
|
+
.filter(function (item) { return isNOU(item.parentId); })[0].id
|
577
|
+
: 0;
|
572
578
|
parent.responseData = {
|
573
|
-
cwd: filterById(parent, parent.path === '/' && event !== 'node-expand' && event !== 'rename-end-parent' ?
|
579
|
+
cwd: filterById(parent, parent.path === '/' && event !== 'node-expand' && event !== 'rename-end-parent' ? rootId : idValue),
|
574
580
|
details: null,
|
575
581
|
error: null,
|
576
|
-
files: filterByParent(parent, parent.path === '/' && event !== 'node-expand' && event !== 'rename-end-parent' ?
|
582
|
+
files: filterByParent(parent, parent.path === '/' && event !== 'node-expand' && event !== 'rename-end-parent' ? rootId : idValue)
|
577
583
|
};
|
578
584
|
if (isNOU(parent.responseData.cwd)) {
|
579
585
|
var message = 'Cannot load empty data within the File Manager.';
|
@@ -797,19 +803,33 @@ function triggerAjaxFailure(parent, beforeSendArgs, fn, result, event, operation
|
|
797
803
|
* @private
|
798
804
|
*/
|
799
805
|
function readSuccess(parent, result, event) {
|
800
|
-
|
801
|
-
|
802
|
-
parent.notify(events.selectionChanged, {});
|
803
|
-
var args = { action: 'read', result: result };
|
804
|
-
parent.trigger('success', args);
|
805
|
-
}
|
806
|
-
else {
|
807
|
-
if (result.error.code === '401') {
|
808
|
-
result.files = [];
|
806
|
+
try {
|
807
|
+
if (!isNOU(result.files)) {
|
809
808
|
parent.notify(event, result);
|
810
809
|
parent.notify(events.selectionChanged, {});
|
810
|
+
var args = { action: 'read', result: result };
|
811
|
+
parent.trigger('success', args);
|
811
812
|
}
|
812
|
-
|
813
|
+
else {
|
814
|
+
if (!isNOU(result.error) && result.error.code === '401') {
|
815
|
+
result.files = [];
|
816
|
+
parent.notify(event, result);
|
817
|
+
parent.notify(events.selectionChanged, {});
|
818
|
+
}
|
819
|
+
onFailure(parent, result, 'read');
|
820
|
+
parent.setProperties({ path: parent.oldPath }, true);
|
821
|
+
parent.pathNames.pop();
|
822
|
+
}
|
823
|
+
}
|
824
|
+
catch (error) {
|
825
|
+
var errorResult = {
|
826
|
+
files: null,
|
827
|
+
error: {
|
828
|
+
message: error.message,
|
829
|
+
fileExists: null
|
830
|
+
}
|
831
|
+
};
|
832
|
+
onFailure(parent, errorResult, 'read');
|
813
833
|
parent.setProperties({ path: parent.oldPath }, true);
|
814
834
|
parent.pathNames.pop();
|
815
835
|
}
|
@@ -137,6 +137,9 @@ var ContextMenu = /** @class */ (function () {
|
|
137
137
|
}
|
138
138
|
else if (closest(target, '#' + this.parent.element.id + CLS.TREE_ID)) {
|
139
139
|
uid = closest(target, 'li').getAttribute('data-uid');
|
140
|
+
if (!isNOU(uid)) {
|
141
|
+
this.parent.navigationpaneModule.treeObj.selectedNodes = [uid];
|
142
|
+
}
|
140
143
|
treeFolder = true;
|
141
144
|
}
|
142
145
|
/* istanbul ignore next */
|
@@ -395,12 +398,7 @@ var ContextMenu = /** @class */ (function () {
|
|
395
398
|
break;
|
396
399
|
case 'paste':
|
397
400
|
if (_this.menuType === 'folder') {
|
398
|
-
|
399
|
-
_this.parent.folderPath = getFullPath(_this.parent, _this.menuItemData, _this.parent.path);
|
400
|
-
}
|
401
|
-
else {
|
402
|
-
_this.parent.folderPath = '';
|
403
|
-
}
|
401
|
+
_this.parent.folderPath = getFullPath(_this.parent, _this.menuItemData, _this.parent.path);
|
404
402
|
}
|
405
403
|
else {
|
406
404
|
_this.parent.folderPath = '';
|