@syncfusion/ej2-filemanager 20.1.58 → 20.1.59
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.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +34 -13
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +34 -13
- 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 +7 -7
- package/src/file-manager/actions/toolbar.js +6 -1
- package/src/file-manager/base/file-manager.d.ts +1 -0
- package/src/file-manager/base/file-manager.js +3 -0
- package/src/file-manager/base/interface.d.ts +3 -0
- package/src/file-manager/common/utility.d.ts +1 -1
- package/src/file-manager/common/utility.js +15 -3
- package/src/file-manager/layout/details-view.js +3 -3
- package/src/file-manager/layout/large-icons-view.js +3 -3
- package/src/file-manager/layout/navigation-pane.js +4 -3
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 20.1.
|
3
|
+
* version : 20.1.59
|
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@20.1.
|
3
|
+
"_id": "@syncfusion/ej2-filemanager@20.1.58",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-u7VgEToiHcTz/x+k292jkdtsOKiCvwBDdD1G8I/XeMpzx6jgTsNf6FeLDQ3pK8nB/J1aEnZpuD1GQIdpXOsBFQ==",
|
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-20.1.
|
29
|
-
"_shasum": "
|
28
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-20.1.58.tgz",
|
29
|
+
"_shasum": "6c8a4ea15887d366f7028e3f994cc5a8c5f61be5",
|
30
30
|
"_spec": "@syncfusion/ej2-filemanager@*",
|
31
31
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
32
32
|
"author": {
|
@@ -40,8 +40,8 @@
|
|
40
40
|
"@syncfusion/ej2-base": "~20.1.57",
|
41
41
|
"@syncfusion/ej2-buttons": "~20.1.55",
|
42
42
|
"@syncfusion/ej2-data": "~20.1.55",
|
43
|
-
"@syncfusion/ej2-grids": "~20.1.
|
44
|
-
"@syncfusion/ej2-inputs": "~20.1.
|
43
|
+
"@syncfusion/ej2-grids": "~20.1.59",
|
44
|
+
"@syncfusion/ej2-inputs": "~20.1.59",
|
45
45
|
"@syncfusion/ej2-layouts": "~20.1.58",
|
46
46
|
"@syncfusion/ej2-lists": "~20.1.55",
|
47
47
|
"@syncfusion/ej2-navigations": "~20.1.58",
|
@@ -67,6 +67,6 @@
|
|
67
67
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
68
68
|
},
|
69
69
|
"typings": "index.d.ts",
|
70
|
-
"version": "20.1.
|
70
|
+
"version": "20.1.59",
|
71
71
|
"sideEffects": false
|
72
72
|
}
|
@@ -232,7 +232,12 @@ var Toolbar = /** @class */ (function () {
|
|
232
232
|
items[itemCount].iconCss = this.parent.sortBy === 'size' ? CLS.TB_OPTION_DOT : '';
|
233
233
|
}
|
234
234
|
else if (items[itemCount].id === this.getPupupId('date')) {
|
235
|
-
|
235
|
+
if (this.parent.sortBy === 'dateModified' || this.parent.sortBy === 'dateCreated') {
|
236
|
+
items[itemCount].iconCss = this.parent.sortBy === this.parent.sortBy ? CLS.TB_OPTION_DOT : '';
|
237
|
+
}
|
238
|
+
else {
|
239
|
+
items[itemCount].iconCss = this.parent.sortBy === '_fm_modified' ? CLS.TB_OPTION_DOT : '';
|
240
|
+
}
|
236
241
|
}
|
237
242
|
else if (items[itemCount].id === this.getPupupId('ascending')) {
|
238
243
|
items[itemCount].iconCss = this.parent.sortOrder === 'Ascending' ? CLS.TB_OPTION_TICK : '';
|
@@ -102,6 +102,8 @@ var FileManager = /** @class */ (function (_super) {
|
|
102
102
|
_this.droppedObjects = [];
|
103
103
|
_this.uploadingCount = 0;
|
104
104
|
_this.uploadedCount = 0;
|
105
|
+
//Specifies whether the operating system is MAC or not
|
106
|
+
_this.isMac = false;
|
105
107
|
FileManager_1.Inject(BreadCrumbBar, LargeIconsView, ContextMenu);
|
106
108
|
return _this;
|
107
109
|
}
|
@@ -211,6 +213,7 @@ var FileManager = /** @class */ (function (_super) {
|
|
211
213
|
this.allowMultiSelection ? this.selectedItems : this.selectedItems.slice(this.selectedItems.length - 1);
|
212
214
|
this.setProperties({ selectedItems: slItems }, true);
|
213
215
|
this.fileView = this.view;
|
216
|
+
this.isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
|
214
217
|
this.setRtl(this.enableRtl);
|
215
218
|
this.addEventListeners();
|
216
219
|
read(this, (this.path !== this.originalPath) ? events.initialEnd : events.finalizeEnd, this.path);
|
@@ -2,6 +2,7 @@ import { Component, EmitType, L10n } from '@syncfusion/ej2-base';
|
|
2
2
|
import { Dialog, ButtonPropsModel } from '@syncfusion/ej2-popups';
|
3
3
|
import { FileManagerModel } from '../base/file-manager-model';
|
4
4
|
import { ToolbarSettingsModel, AjaxSettingsModel } from '../models/index';
|
5
|
+
import { DetailsViewSettingsModel } from '../models/details-view-settings-model';
|
5
6
|
import { TreeView, ContextMenu, MenuItemModel, ItemModel } from '@syncfusion/ej2-navigations';
|
6
7
|
import { DetailsView } from '../layout/details-view';
|
7
8
|
import { Toolbar } from '../actions/toolbar';
|
@@ -493,6 +494,7 @@ export interface IFileManager extends Component<HTMLElement> {
|
|
493
494
|
feFiles: Object[];
|
494
495
|
ajaxSettings: AjaxSettingsModel;
|
495
496
|
toolbarSettings: ToolbarSettingsModel;
|
497
|
+
detailsViewSettings: DetailsViewSettingsModel;
|
496
498
|
dialogObj: Dialog;
|
497
499
|
viewerObj: Dialog;
|
498
500
|
extDialogObj: Dialog;
|
@@ -593,6 +595,7 @@ export interface IFileManager extends Component<HTMLElement> {
|
|
593
595
|
destinationPath: string;
|
594
596
|
enableHtmlSanitizer: boolean;
|
595
597
|
refreshLayout(): void;
|
598
|
+
isMac: boolean;
|
596
599
|
}
|
597
600
|
/** @hidden */
|
598
601
|
export interface ITreeView extends Component<HTMLElement> {
|
@@ -293,7 +293,7 @@ export declare function sortbyClickHandler(parent: IFileManager, args: MenuEvent
|
|
293
293
|
* @returns {string} - returns the sorted fields
|
294
294
|
* @private
|
295
295
|
*/
|
296
|
-
export declare function getSortField(id: string): string;
|
296
|
+
export declare function getSortField(id: string, parent?: IFileManager): string;
|
297
297
|
/**
|
298
298
|
* Sets the next path
|
299
299
|
*
|
@@ -692,7 +692,7 @@ export function sortbyClickHandler(parent, args) {
|
|
692
692
|
tick = false;
|
693
693
|
}
|
694
694
|
if (!tick) {
|
695
|
-
parent.sortBy = getSortField(args.item.id);
|
695
|
+
parent.sortBy = getSortField(args.item.id, parent);
|
696
696
|
}
|
697
697
|
else {
|
698
698
|
parent.sortOrder = getSortField(args.item.id);
|
@@ -718,12 +718,24 @@ export function sortbyClickHandler(parent, args) {
|
|
718
718
|
* @returns {string} - returns the sorted fields
|
719
719
|
* @private
|
720
720
|
*/
|
721
|
-
export function getSortField(id) {
|
721
|
+
export function getSortField(id, parent) {
|
722
722
|
var text = id.substring(id.lastIndexOf('_') + 1);
|
723
723
|
var field = text;
|
724
|
+
var column;
|
725
|
+
if (parent) {
|
726
|
+
column = parent.detailsViewSettings.columns;
|
727
|
+
}
|
724
728
|
switch (text) {
|
725
729
|
case 'date':
|
726
|
-
|
730
|
+
for (var i = 0; i < column.length; i++) {
|
731
|
+
if (column[i].field === 'dateModified' || column[i].field === 'dateCreated') {
|
732
|
+
field = column[i].field;
|
733
|
+
break;
|
734
|
+
}
|
735
|
+
else {
|
736
|
+
field = '_fm_modified';
|
737
|
+
}
|
738
|
+
}
|
727
739
|
break;
|
728
740
|
case 'ascending':
|
729
741
|
field = 'Ascending';
|
@@ -71,9 +71,9 @@ var DetailsView = /** @class */ (function () {
|
|
71
71
|
home: 'home',
|
72
72
|
moveUp: 'uparrow',
|
73
73
|
del: 'delete',
|
74
|
-
ctrlX: 'ctrl+x',
|
75
|
-
ctrlC: 'ctrl+c',
|
76
|
-
ctrlV: 'ctrl+v',
|
74
|
+
ctrlX: this.parent.isMac ? 'cmd+x' : 'ctrl+x',
|
75
|
+
ctrlC: this.parent.isMac ? 'cmd+c' : 'ctrl+c',
|
76
|
+
ctrlV: this.parent.isMac ? 'cmd+v' : 'ctrl+v',
|
77
77
|
ctrlShiftN: 'ctrl+shift+n',
|
78
78
|
shiftdel: 'shift+delete',
|
79
79
|
ctrlD: 'ctrl+d',
|
@@ -72,9 +72,9 @@ var LargeIconsView = /** @class */ (function () {
|
|
72
72
|
altEnter: 'alt+enter',
|
73
73
|
esc: 'escape',
|
74
74
|
del: 'delete',
|
75
|
-
ctrlX: 'ctrl+x',
|
76
|
-
ctrlC: 'ctrl+c',
|
77
|
-
ctrlV: 'ctrl+v',
|
75
|
+
ctrlX: this.parent.isMac ? 'cmd+x' : 'ctrl+x',
|
76
|
+
ctrlC: this.parent.isMac ? 'cmd+c' : 'ctrl+c',
|
77
|
+
ctrlV: this.parent.isMac ? 'cmd+v' : 'ctrl+v',
|
78
78
|
f2: 'f2',
|
79
79
|
shiftdel: 'shift+delete',
|
80
80
|
back: 'backspace',
|
@@ -20,6 +20,7 @@ var NavigationPane = /** @class */ (function () {
|
|
20
20
|
* @param {IFileManager} parent - specifies the parent element.
|
21
21
|
* @hidden
|
22
22
|
*/
|
23
|
+
/* istanbul ignore next */
|
23
24
|
function NavigationPane(parent) {
|
24
25
|
this.removeNodes = [];
|
25
26
|
this.moveNames = [];
|
@@ -41,9 +42,9 @@ var NavigationPane = /** @class */ (function () {
|
|
41
42
|
altEnter: 'alt+enter',
|
42
43
|
esc: 'escape',
|
43
44
|
del: 'delete',
|
44
|
-
ctrlX: 'ctrl+x',
|
45
|
-
ctrlC: 'ctrl+c',
|
46
|
-
ctrlV: 'ctrl+v',
|
45
|
+
ctrlX: this.parent.isMac ? 'cmd+x' : 'ctrl+x',
|
46
|
+
ctrlC: this.parent.isMac ? 'cmd+c' : 'ctrl+c',
|
47
|
+
ctrlV: this.parent.isMac ? 'cmd+v' : 'ctrl+v',
|
47
48
|
ctrlShiftN: 'ctrl+shift+n',
|
48
49
|
shiftF10: 'shift+F10',
|
49
50
|
f2: 'f2'
|