@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
@@ -3928,6 +3928,7 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
3928
3928
|
this.count = 0;
|
3929
3929
|
this.isRendered = true;
|
3930
3930
|
this.tapCount = 0;
|
3931
|
+
this.isSelectAllCalled = false;
|
3931
3932
|
this.isPasteOperation = false;
|
3932
3933
|
this.isInteracted = true;
|
3933
3934
|
this.parent = parent;
|
@@ -4676,6 +4677,9 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4676
4677
|
&& (e.ctrlKey || target.classList.contains(CHECK))) {
|
4677
4678
|
action = 'unselect';
|
4678
4679
|
}
|
4680
|
+
if (e.ctrlKey && e.shiftKey) {
|
4681
|
+
this.isSelectAllCalled = true;
|
4682
|
+
}
|
4679
4683
|
var fileSelectionArgs = this.triggerSelection(action, item);
|
4680
4684
|
if (fileSelectionArgs.cancel !== true) {
|
4681
4685
|
if ((!this.parent.allowMultiSelection || (!this.multiSelect && (e && !e.ctrlKey)))
|
@@ -4722,9 +4726,13 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4722
4726
|
}
|
4723
4727
|
}
|
4724
4728
|
else {
|
4729
|
+
if (this.parent.selectedItems.length === this.itemList.length) {
|
4730
|
+
this.isSelectAllCalled = true;
|
4731
|
+
}
|
4725
4732
|
this.clearSelection();
|
4726
4733
|
}
|
4727
4734
|
if (!isNullOrUndefined(item)) {
|
4735
|
+
this.isSelectAllCalled = false;
|
4728
4736
|
this.updateType(item);
|
4729
4737
|
}
|
4730
4738
|
};
|
@@ -5289,9 +5297,17 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
5289
5297
|
};
|
5290
5298
|
LargeIconsView.prototype.triggerSelection = function (action, item) {
|
5291
5299
|
// eslint-disable-next-line
|
5292
|
-
var data =
|
5300
|
+
var data = [];
|
5301
|
+
if (this.isSelectAllCalled) {
|
5302
|
+
for (var i = 0, len = this.itemList.length; i < len; i++) {
|
5303
|
+
data[i] = this.getItemObject(this.itemList[i]);
|
5304
|
+
}
|
5305
|
+
}
|
5306
|
+
else {
|
5307
|
+
data[0] = this.getItemObject(item);
|
5308
|
+
}
|
5293
5309
|
var eventArgs = {
|
5294
|
-
action: action, fileDetails: data, isInteracted: this.isInteraction, cancel: false, target: item
|
5310
|
+
action: action, fileDetails: data.length > 1 ? data : data[0], isInteracted: this.isInteraction, cancel: false, target: this.isSelectAllCalled ? null : item
|
5295
5311
|
};
|
5296
5312
|
this.parent.trigger('fileSelection', eventArgs);
|
5297
5313
|
this.isInteraction = true;
|
@@ -5299,9 +5315,18 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
5299
5315
|
};
|
5300
5316
|
LargeIconsView.prototype.triggerSelect = function (action, item) {
|
5301
5317
|
// eslint-disable-next-line
|
5302
|
-
var data =
|
5303
|
-
this.
|
5304
|
-
|
5318
|
+
var data = [];
|
5319
|
+
if (this.isSelectAllCalled) {
|
5320
|
+
for (var i = 0, len = this.itemList.length; i < len; i++) {
|
5321
|
+
data[i] = this.getItemObject(this.itemList[i]);
|
5322
|
+
}
|
5323
|
+
this.isSelectAllCalled = false;
|
5324
|
+
}
|
5325
|
+
else {
|
5326
|
+
data[0] = this.getItemObject(item);
|
5327
|
+
}
|
5328
|
+
this.parent.visitedData = data.length > 1 ? data[data.length - 1] : data[0];
|
5329
|
+
var eventArgs = { action: action, fileDetails: data.length > 1 ? data : data[0], isInteracted: this.isInteracted };
|
5305
5330
|
this.parent.trigger('fileSelect', eventArgs);
|
5306
5331
|
this.isInteracted = true;
|
5307
5332
|
};
|