@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.
- package/CHANGELOG.md +14 -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 +37 -11
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +37 -11
- 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 +16 -19
- package/src/file-manager/layout/details-view.js +2 -1
- package/src/file-manager/layout/large-icons-view.d.ts +1 -0
- package/src/file-manager/layout/large-icons-view.js +30 -5
- package/src/file-manager/layout/navigation-pane.js +5 -5
@@ -3781,6 +3781,7 @@ class LargeIconsView {
|
|
3781
3781
|
this.count = 0;
|
3782
3782
|
this.isRendered = true;
|
3783
3783
|
this.tapCount = 0;
|
3784
|
+
this.isSelectAllCalled = false;
|
3784
3785
|
this.isPasteOperation = false;
|
3785
3786
|
this.isInteracted = true;
|
3786
3787
|
this.parent = parent;
|
@@ -4527,6 +4528,9 @@ class LargeIconsView {
|
|
4527
4528
|
&& (e.ctrlKey || target.classList.contains(CHECK))) {
|
4528
4529
|
action = 'unselect';
|
4529
4530
|
}
|
4531
|
+
if (e.ctrlKey && e.shiftKey) {
|
4532
|
+
this.isSelectAllCalled = true;
|
4533
|
+
}
|
4530
4534
|
const fileSelectionArgs = this.triggerSelection(action, item);
|
4531
4535
|
if (fileSelectionArgs.cancel !== true) {
|
4532
4536
|
if ((!this.parent.allowMultiSelection || (!this.multiSelect && (e && !e.ctrlKey)))
|
@@ -4573,9 +4577,13 @@ class LargeIconsView {
|
|
4573
4577
|
}
|
4574
4578
|
}
|
4575
4579
|
else {
|
4580
|
+
if (this.parent.selectedItems.length === this.itemList.length) {
|
4581
|
+
this.isSelectAllCalled = true;
|
4582
|
+
}
|
4576
4583
|
this.clearSelection();
|
4577
4584
|
}
|
4578
4585
|
if (!isNullOrUndefined(item)) {
|
4586
|
+
this.isSelectAllCalled = false;
|
4579
4587
|
this.updateType(item);
|
4580
4588
|
}
|
4581
4589
|
}
|
@@ -5138,9 +5146,17 @@ class LargeIconsView {
|
|
5138
5146
|
}
|
5139
5147
|
triggerSelection(action, item) {
|
5140
5148
|
// eslint-disable-next-line
|
5141
|
-
const data =
|
5149
|
+
const data = [];
|
5150
|
+
if (this.isSelectAllCalled) {
|
5151
|
+
for (let i = 0, len = this.itemList.length; i < len; i++) {
|
5152
|
+
data[i] = this.getItemObject(this.itemList[i]);
|
5153
|
+
}
|
5154
|
+
}
|
5155
|
+
else {
|
5156
|
+
data[0] = this.getItemObject(item);
|
5157
|
+
}
|
5142
5158
|
const eventArgs = {
|
5143
|
-
action: action, fileDetails: data, isInteracted: this.isInteraction, cancel: false, target: item
|
5159
|
+
action: action, fileDetails: data.length > 1 ? data : data[0], isInteracted: this.isInteraction, cancel: false, target: this.isSelectAllCalled ? null : item
|
5144
5160
|
};
|
5145
5161
|
this.parent.trigger('fileSelection', eventArgs);
|
5146
5162
|
this.isInteraction = true;
|
@@ -5148,9 +5164,18 @@ class LargeIconsView {
|
|
5148
5164
|
}
|
5149
5165
|
triggerSelect(action, item) {
|
5150
5166
|
// eslint-disable-next-line
|
5151
|
-
const data =
|
5152
|
-
this.
|
5153
|
-
|
5167
|
+
const data = [];
|
5168
|
+
if (this.isSelectAllCalled) {
|
5169
|
+
for (let i = 0, len = this.itemList.length; i < len; i++) {
|
5170
|
+
data[i] = this.getItemObject(this.itemList[i]);
|
5171
|
+
}
|
5172
|
+
this.isSelectAllCalled = false;
|
5173
|
+
}
|
5174
|
+
else {
|
5175
|
+
data[0] = this.getItemObject(item);
|
5176
|
+
}
|
5177
|
+
this.parent.visitedData = data.length > 1 ? data[data.length - 1] : data[0];
|
5178
|
+
const eventArgs = { action: action, fileDetails: data.length > 1 ? data : data[0], isInteracted: this.isInteracted };
|
5154
5179
|
this.parent.trigger('fileSelect', eventArgs);
|
5155
5180
|
this.isInteracted = true;
|
5156
5181
|
}
|
@@ -8633,7 +8658,7 @@ class NavigationPane {
|
|
8633
8658
|
}
|
8634
8659
|
}
|
8635
8660
|
else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
|
8636
|
-
const selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted:
|
8661
|
+
const selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: this.isNodeClickCalled };
|
8637
8662
|
this.parent.trigger('fileSelect', selecEventArgs);
|
8638
8663
|
}
|
8639
8664
|
}
|
@@ -8683,11 +8708,11 @@ class NavigationPane {
|
|
8683
8708
|
this.parent.pathId = getPathId(args.node);
|
8684
8709
|
this.parent.visitedItem = args.node;
|
8685
8710
|
}
|
8711
|
+
this.expandNodeTarget = null;
|
8712
|
+
if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
|
8713
|
+
this.expandNodeTarget = 'add';
|
8714
|
+
}
|
8686
8715
|
if (previousPath !== this.parent.path) {
|
8687
|
-
this.expandNodeTarget = null;
|
8688
|
-
if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
|
8689
|
-
this.expandNodeTarget = 'add';
|
8690
|
-
}
|
8691
8716
|
if (!this.isRightClick && this.isSameNodeClicked) {
|
8692
8717
|
read(this.parent, this.isPathDragged ? pasteEnd : pathChanged, this.parent.path);
|
8693
8718
|
this.isNodeClickCalled = true;
|
@@ -9579,7 +9604,7 @@ class DetailsView {
|
|
9579
9604
|
const columns = this.parent.detailsViewSettings.columns;
|
9580
9605
|
for (let i = 0; i < columns.length; i++) {
|
9581
9606
|
if (columns[i].field === 'size') {
|
9582
|
-
sizeFormat = columns[i].format.toString();
|
9607
|
+
sizeFormat = !isNullOrUndefined(columns[i].format) ? columns[i].format.toString() : 'n';
|
9583
9608
|
break;
|
9584
9609
|
}
|
9585
9610
|
}
|
@@ -9821,6 +9846,7 @@ class DetailsView {
|
|
9821
9846
|
}
|
9822
9847
|
else if (!isNullOrUndefined(this.gridObj)) {
|
9823
9848
|
this.gridObj.clearSelection();
|
9849
|
+
this.interaction = true;
|
9824
9850
|
}
|
9825
9851
|
break;
|
9826
9852
|
case 'showFileExtension':
|