@syncfusion/ej2-filemanager 21.1.39 → 21.1.41
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 +6 -0
- 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 +30 -5
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +30 -5
- 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 +10 -10
- package/src/file-manager/layout/large-icons-view.d.ts +1 -0
- package/src/file-manager/layout/large-icons-view.js +30 -5
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 21.1.
|
3
|
+
* version : 21.1.41
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@21.1.
|
3
|
+
"_id": "@syncfusion/ej2-filemanager@21.1.39",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-AfUJAG9clB2hStgQ2IUVojPADrEa3e8Jmf+Mlg5+0BCKeCzDmHBBLTQeW0LHP9qhaPqZNevkgUmlluIDlrS+Qw==",
|
6
6
|
"_location": "/@syncfusion/ej2-filemanager",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -25,8 +25,8 @@
|
|
25
25
|
"/@syncfusion/ej2-richtexteditor",
|
26
26
|
"/@syncfusion/ej2-vue-filemanager"
|
27
27
|
],
|
28
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-21.1.
|
29
|
-
"_shasum": "
|
28
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-21.1.39.tgz",
|
29
|
+
"_shasum": "af6dba133104dd8f57bc190b55d0c55642eab717",
|
30
30
|
"_spec": "@syncfusion/ej2-filemanager@*",
|
31
31
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
32
32
|
"author": {
|
@@ -37,16 +37,16 @@
|
|
37
37
|
},
|
38
38
|
"bundleDependencies": false,
|
39
39
|
"dependencies": {
|
40
|
-
"@syncfusion/ej2-base": "~21.1.
|
40
|
+
"@syncfusion/ej2-base": "~21.1.40",
|
41
41
|
"@syncfusion/ej2-buttons": "~21.1.37",
|
42
42
|
"@syncfusion/ej2-data": "~21.1.38",
|
43
|
-
"@syncfusion/ej2-grids": "~21.1.
|
43
|
+
"@syncfusion/ej2-grids": "~21.1.41",
|
44
44
|
"@syncfusion/ej2-inputs": "~21.1.39",
|
45
45
|
"@syncfusion/ej2-layouts": "~21.1.37",
|
46
|
-
"@syncfusion/ej2-lists": "~21.1.
|
46
|
+
"@syncfusion/ej2-lists": "~21.1.41",
|
47
47
|
"@syncfusion/ej2-navigations": "~21.1.39",
|
48
|
-
"@syncfusion/ej2-popups": "~21.1.
|
49
|
-
"@syncfusion/ej2-splitbuttons": "~21.1.
|
48
|
+
"@syncfusion/ej2-popups": "~21.1.41",
|
49
|
+
"@syncfusion/ej2-splitbuttons": "~21.1.41"
|
50
50
|
},
|
51
51
|
"deprecated": false,
|
52
52
|
"description": "Essential JS 2 FileManager Component",
|
@@ -76,6 +76,6 @@
|
|
76
76
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
77
77
|
},
|
78
78
|
"typings": "index.d.ts",
|
79
|
-
"version": "21.1.
|
79
|
+
"version": "21.1.41",
|
80
80
|
"sideEffects": false
|
81
81
|
}
|
@@ -31,6 +31,7 @@ var LargeIconsView = /** @class */ (function () {
|
|
31
31
|
this.count = 0;
|
32
32
|
this.isRendered = true;
|
33
33
|
this.tapCount = 0;
|
34
|
+
this.isSelectAllCalled = false;
|
34
35
|
this.isPasteOperation = false;
|
35
36
|
this.isInteracted = true;
|
36
37
|
this.parent = parent;
|
@@ -779,6 +780,9 @@ var LargeIconsView = /** @class */ (function () {
|
|
779
780
|
&& (e.ctrlKey || target.classList.contains(CLS.CHECK))) {
|
780
781
|
action = 'unselect';
|
781
782
|
}
|
783
|
+
if (e.ctrlKey && e.shiftKey) {
|
784
|
+
this.isSelectAllCalled = true;
|
785
|
+
}
|
782
786
|
var fileSelectionArgs = this.triggerSelection(action, item);
|
783
787
|
if (fileSelectionArgs.cancel !== true) {
|
784
788
|
if ((!this.parent.allowMultiSelection || (!this.multiSelect && (e && !e.ctrlKey)))
|
@@ -825,9 +829,13 @@ var LargeIconsView = /** @class */ (function () {
|
|
825
829
|
}
|
826
830
|
}
|
827
831
|
else {
|
832
|
+
if (this.parent.selectedItems.length === this.itemList.length) {
|
833
|
+
this.isSelectAllCalled = true;
|
834
|
+
}
|
828
835
|
this.clearSelection();
|
829
836
|
}
|
830
837
|
if (!isNOU(item)) {
|
838
|
+
this.isSelectAllCalled = false;
|
831
839
|
this.updateType(item);
|
832
840
|
}
|
833
841
|
};
|
@@ -1392,9 +1400,17 @@ var LargeIconsView = /** @class */ (function () {
|
|
1392
1400
|
};
|
1393
1401
|
LargeIconsView.prototype.triggerSelection = function (action, item) {
|
1394
1402
|
// eslint-disable-next-line
|
1395
|
-
var data =
|
1403
|
+
var data = [];
|
1404
|
+
if (this.isSelectAllCalled) {
|
1405
|
+
for (var i = 0, len = this.itemList.length; i < len; i++) {
|
1406
|
+
data[i] = this.getItemObject(this.itemList[i]);
|
1407
|
+
}
|
1408
|
+
}
|
1409
|
+
else {
|
1410
|
+
data[0] = this.getItemObject(item);
|
1411
|
+
}
|
1396
1412
|
var eventArgs = {
|
1397
|
-
action: action, fileDetails: data, isInteracted: this.isInteraction, cancel: false, target: item
|
1413
|
+
action: action, fileDetails: data.length > 1 ? data : data[0], isInteracted: this.isInteraction, cancel: false, target: this.isSelectAllCalled ? null : item
|
1398
1414
|
};
|
1399
1415
|
this.parent.trigger('fileSelection', eventArgs);
|
1400
1416
|
this.isInteraction = true;
|
@@ -1402,9 +1418,18 @@ var LargeIconsView = /** @class */ (function () {
|
|
1402
1418
|
};
|
1403
1419
|
LargeIconsView.prototype.triggerSelect = function (action, item) {
|
1404
1420
|
// eslint-disable-next-line
|
1405
|
-
var data =
|
1406
|
-
this.
|
1407
|
-
|
1421
|
+
var data = [];
|
1422
|
+
if (this.isSelectAllCalled) {
|
1423
|
+
for (var i = 0, len = this.itemList.length; i < len; i++) {
|
1424
|
+
data[i] = this.getItemObject(this.itemList[i]);
|
1425
|
+
}
|
1426
|
+
this.isSelectAllCalled = false;
|
1427
|
+
}
|
1428
|
+
else {
|
1429
|
+
data[0] = this.getItemObject(item);
|
1430
|
+
}
|
1431
|
+
this.parent.visitedData = data.length > 1 ? data[data.length - 1] : data[0];
|
1432
|
+
var eventArgs = { action: action, fileDetails: data.length > 1 ? data : data[0], isInteracted: this.isInteracted };
|
1408
1433
|
this.parent.trigger('fileSelect', eventArgs);
|
1409
1434
|
this.isInteracted = true;
|
1410
1435
|
};
|