@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.39
3
+ * version : 21.2.3
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.37",
3
+ "_id": "@syncfusion/ej2-filemanager@21.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-qIZ+ACsxbmH7pk4hUbOjqSBaa2pTpdhknvGSIXfsyVXA5S5wgWACAGQqyUu52UEHDgNuM3cDpVjAiHeHY8nBJw==",
5
+ "_integrity": "sha512-JJlmdBbW9+9GtqQp3HUI6GuhDAvbfej0r+qJlyEzoR4SdlHDBnYZPlzqe3riJgV/m6nt4AeRhy8uyL+jH84Jpw==",
6
6
  "_location": "/@syncfusion/ej2-filemanager",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,14 +19,11 @@
19
19
  "_requiredBy": [
20
20
  "/",
21
21
  "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-filemanager",
23
22
  "/@syncfusion/ej2-pdfviewer",
24
- "/@syncfusion/ej2-react-filemanager",
25
- "/@syncfusion/ej2-richtexteditor",
26
- "/@syncfusion/ej2-vue-filemanager"
23
+ "/@syncfusion/ej2-richtexteditor"
27
24
  ],
28
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-21.1.37.tgz",
29
- "_shasum": "e9ac521b654f440cfe8dc0b83e465cc564bf44b3",
25
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-21.1.41.tgz",
26
+ "_shasum": "294db32c4ba33961fc58e360e9c682d8044ba0ad",
30
27
  "_spec": "@syncfusion/ej2-filemanager@*",
31
28
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
32
29
  "author": {
@@ -37,16 +34,16 @@
37
34
  },
38
35
  "bundleDependencies": false,
39
36
  "dependencies": {
40
- "@syncfusion/ej2-base": "~21.1.39",
41
- "@syncfusion/ej2-buttons": "~21.1.37",
42
- "@syncfusion/ej2-data": "~21.1.38",
43
- "@syncfusion/ej2-grids": "~21.1.39",
44
- "@syncfusion/ej2-inputs": "~21.1.39",
45
- "@syncfusion/ej2-layouts": "~21.1.37",
46
- "@syncfusion/ej2-lists": "~21.1.39",
47
- "@syncfusion/ej2-navigations": "~21.1.39",
48
- "@syncfusion/ej2-popups": "~21.1.37",
49
- "@syncfusion/ej2-splitbuttons": "~21.1.37"
37
+ "@syncfusion/ej2-base": "~21.2.3",
38
+ "@syncfusion/ej2-buttons": "~21.2.3",
39
+ "@syncfusion/ej2-data": "~21.2.3",
40
+ "@syncfusion/ej2-grids": "~21.2.3",
41
+ "@syncfusion/ej2-inputs": "~21.2.3",
42
+ "@syncfusion/ej2-layouts": "~21.2.3",
43
+ "@syncfusion/ej2-lists": "~21.2.3",
44
+ "@syncfusion/ej2-navigations": "~21.2.3",
45
+ "@syncfusion/ej2-popups": "~21.2.3",
46
+ "@syncfusion/ej2-splitbuttons": "~21.2.3"
50
47
  },
51
48
  "deprecated": false,
52
49
  "description": "Essential JS 2 FileManager Component",
@@ -76,6 +73,6 @@
76
73
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
77
74
  },
78
75
  "typings": "index.d.ts",
79
- "version": "21.1.39",
76
+ "version": "21.2.3",
80
77
  "sideEffects": false
81
78
  }
@@ -286,7 +286,7 @@ var DetailsView = /** @class */ (function () {
286
286
  var columns = this.parent.detailsViewSettings.columns;
287
287
  for (var i = 0; i < columns.length; i++) {
288
288
  if (columns[i].field === 'size') {
289
- sizeFormat = columns[i].format.toString();
289
+ sizeFormat = !isNullOrUndefined(columns[i].format) ? columns[i].format.toString() : 'n';
290
290
  break;
291
291
  }
292
292
  }
@@ -529,6 +529,7 @@ var DetailsView = /** @class */ (function () {
529
529
  }
530
530
  else if (!isNOU(this.gridObj)) {
531
531
  this.gridObj.clearSelection();
532
+ this.interaction = true;
532
533
  }
533
534
  break;
534
535
  case 'showFileExtension':
@@ -24,6 +24,7 @@ export declare class LargeIconsView {
24
24
  private count;
25
25
  private isRendered;
26
26
  private tapCount;
27
+ private isSelectAllCalled;
27
28
  private tapEvent;
28
29
  private isPasteOperation;
29
30
  private dragObj;
@@ -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 = this.getItemObject(item);
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 = this.getItemObject(item);
1406
- this.parent.visitedData = data;
1407
- var eventArgs = { action: action, fileDetails: data, isInteracted: this.isInteracted };
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
  };
@@ -216,7 +216,7 @@ var NavigationPane = /** @class */ (function () {
216
216
  }
217
217
  }
218
218
  else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
219
- var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: args.isInteracted };
219
+ var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: this.isNodeClickCalled };
220
220
  this.parent.trigger('fileSelect', selecEventArgs);
221
221
  }
222
222
  }
@@ -266,11 +266,11 @@ var NavigationPane = /** @class */ (function () {
266
266
  this.parent.pathId = getPathId(args.node);
267
267
  this.parent.visitedItem = args.node;
268
268
  }
269
+ this.expandNodeTarget = null;
270
+ if (args.node.querySelector('.' + CLS.ICONS) && args.node.querySelector('.' + CLS.LIST_ITEM) === null) {
271
+ this.expandNodeTarget = 'add';
272
+ }
269
273
  if (previousPath !== this.parent.path) {
270
- this.expandNodeTarget = null;
271
- if (args.node.querySelector('.' + CLS.ICONS) && args.node.querySelector('.' + CLS.LIST_ITEM) === null) {
272
- this.expandNodeTarget = 'add';
273
- }
274
274
  if (!this.isRightClick && this.isSameNodeClicked) {
275
275
  read(this.parent, this.isPathDragged ? events.pasteEnd : events.pathChanged, this.parent.path);
276
276
  this.isNodeClickCalled = true;