@syncfusion/ej2-filemanager 21.1.39 → 21.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.
@@ -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 = this.getItemObject(item);
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 = this.getItemObject(item);
5303
- this.parent.visitedData = data;
5304
- var eventArgs = { action: action, fileDetails: data, isInteracted: this.isInteracted };
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
  };
@@ -8822,7 +8847,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8822
8847
  }
8823
8848
  }
8824
8849
  else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
8825
- var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: args.isInteracted };
8850
+ var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: this.isNodeClickCalled };
8826
8851
  this.parent.trigger('fileSelect', selecEventArgs);
8827
8852
  }
8828
8853
  }
@@ -8872,11 +8897,11 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8872
8897
  this.parent.pathId = getPathId(args.node);
8873
8898
  this.parent.visitedItem = args.node;
8874
8899
  }
8900
+ this.expandNodeTarget = null;
8901
+ if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
8902
+ this.expandNodeTarget = 'add';
8903
+ }
8875
8904
  if (previousPath !== this.parent.path) {
8876
- this.expandNodeTarget = null;
8877
- if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
8878
- this.expandNodeTarget = 'add';
8879
- }
8880
8905
  if (!this.isRightClick && this.isSameNodeClicked) {
8881
8906
  read(this.parent, this.isPathDragged ? pasteEnd : pathChanged, this.parent.path);
8882
8907
  this.isNodeClickCalled = true;
@@ -9770,7 +9795,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
9770
9795
  var columns = this.parent.detailsViewSettings.columns;
9771
9796
  for (var i = 0; i < columns.length; i++) {
9772
9797
  if (columns[i].field === 'size') {
9773
- sizeFormat = columns[i].format.toString();
9798
+ sizeFormat = !isNullOrUndefined(columns[i].format) ? columns[i].format.toString() : 'n';
9774
9799
  break;
9775
9800
  }
9776
9801
  }
@@ -10013,6 +10038,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
10013
10038
  }
10014
10039
  else if (!isNullOrUndefined(this.gridObj)) {
10015
10040
  this.gridObj.clearSelection();
10041
+ this.interaction = true;
10016
10042
  }
10017
10043
  break;
10018
10044
  case 'showFileExtension':