@syncfusion/ej2-filemanager 20.1.60 → 20.2.36
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 +0 -56
- 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 +10 -24
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +10 -24
- 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/helpers/e2e/filemanagerHelper.js +183 -166
- package/package.json +15 -15
- package/src/file-manager/actions/toolbar.js +1 -6
- package/src/file-manager/base/file-manager.d.ts +1 -0
- package/src/file-manager/base/file-manager.js +1 -1
- package/src/file-manager/base/interface.d.ts +1 -2
- package/src/file-manager/common/utility.d.ts +1 -1
- package/src/file-manager/common/utility.js +8 -17
- package/styles/file-manager/_fusionnew-definition.scss +237 -0
- package/styles/file-manager/_material3-definition.scss +237 -0
- package/styles/file-manager/icons/_fusionnew.scss +235 -0
- package/styles/file-manager/icons/_material3.scss +235 -0
@@ -881,7 +881,7 @@ function searchWordHandler(parent, value, isLayoutChange) {
|
|
881
881
|
else {
|
882
882
|
if (!parent.isFiltered) {
|
883
883
|
if (parent.isSortByClicked) {
|
884
|
-
parent.notify(layoutChange, { files: parent.largeiconsviewModule.items });
|
884
|
+
parent.notify(layoutChange, { files: (parent.oldView === 'Details') ? parent.detailsviewModule.gridObj.dataSource : parent.largeiconsviewModule.items });
|
885
885
|
parent.isSortByClicked = false;
|
886
886
|
}
|
887
887
|
else {
|
@@ -902,6 +902,7 @@ function searchWordHandler(parent, value, isLayoutChange) {
|
|
902
902
|
* @private
|
903
903
|
*/
|
904
904
|
function updateLayout(parent, view) {
|
905
|
+
parent.oldView = parent.view;
|
905
906
|
parent.setProperties({ view: view }, true);
|
906
907
|
if (parent.breadcrumbbarModule.searchObj.element.value !== '' || parent.isFiltered) {
|
907
908
|
parent.layoutSelectedItems = parent.selectedItems;
|
@@ -1305,7 +1306,7 @@ function sortbyClickHandler(parent, args) {
|
|
1305
1306
|
tick = false;
|
1306
1307
|
}
|
1307
1308
|
if (!tick) {
|
1308
|
-
parent.sortBy = getSortField(args.item.id
|
1309
|
+
parent.sortBy = getSortField(args.item.id);
|
1309
1310
|
}
|
1310
1311
|
else {
|
1311
1312
|
parent.sortOrder = getSortField(args.item.id);
|
@@ -1319,7 +1320,9 @@ function sortbyClickHandler(parent, args) {
|
|
1319
1320
|
parent.notify(sortColumn, { module: 'detailsview' });
|
1320
1321
|
}
|
1321
1322
|
}
|
1322
|
-
|
1323
|
+
if (parent.view === 'LargeIcons') {
|
1324
|
+
updateLayout(parent, 'LargeIcons');
|
1325
|
+
}
|
1323
1326
|
parent.notify(sortByChange, {});
|
1324
1327
|
}
|
1325
1328
|
/**
|
@@ -1329,24 +1332,12 @@ function sortbyClickHandler(parent, args) {
|
|
1329
1332
|
* @returns {string} - returns the sorted fields
|
1330
1333
|
* @private
|
1331
1334
|
*/
|
1332
|
-
function getSortField(id
|
1335
|
+
function getSortField(id) {
|
1333
1336
|
const text = id.substring(id.lastIndexOf('_') + 1);
|
1334
1337
|
let field = text;
|
1335
|
-
let column;
|
1336
|
-
if (parent) {
|
1337
|
-
column = parent.detailsViewSettings.columns;
|
1338
|
-
}
|
1339
1338
|
switch (text) {
|
1340
1339
|
case 'date':
|
1341
|
-
|
1342
|
-
if (column[i].field === 'dateModified' || column[i].field === 'dateCreated') {
|
1343
|
-
field = column[i].field;
|
1344
|
-
break;
|
1345
|
-
}
|
1346
|
-
else {
|
1347
|
-
field = '_fm_modified';
|
1348
|
-
}
|
1349
|
-
}
|
1340
|
+
field = '_fm_modified';
|
1350
1341
|
break;
|
1351
1342
|
case 'ascending':
|
1352
1343
|
field = 'Ascending';
|
@@ -6433,7 +6424,7 @@ let FileManager = FileManager_1 = class FileManager extends Component {
|
|
6433
6424
|
this.droppedObjects = [];
|
6434
6425
|
this.uploadingCount = 0;
|
6435
6426
|
this.uploadedCount = 0;
|
6436
|
-
//Specifies whether the operating system is MAC or not
|
6427
|
+
//Specifies whether the operating system is MAC or not
|
6437
6428
|
this.isMac = false;
|
6438
6429
|
FileManager_1.Inject(BreadCrumbBar, LargeIconsView, ContextMenu$2);
|
6439
6430
|
}
|
@@ -7821,12 +7812,7 @@ class Toolbar$1 {
|
|
7821
7812
|
items[itemCount].iconCss = this.parent.sortBy === 'size' ? TB_OPTION_DOT : '';
|
7822
7813
|
}
|
7823
7814
|
else if (items[itemCount].id === this.getPupupId('date')) {
|
7824
|
-
|
7825
|
-
items[itemCount].iconCss = this.parent.sortBy === this.parent.sortBy ? TB_OPTION_DOT : '';
|
7826
|
-
}
|
7827
|
-
else {
|
7828
|
-
items[itemCount].iconCss = this.parent.sortBy === '_fm_modified' ? TB_OPTION_DOT : '';
|
7829
|
-
}
|
7815
|
+
items[itemCount].iconCss = this.parent.sortBy === '_fm_modified' ? TB_OPTION_DOT : '';
|
7830
7816
|
}
|
7831
7817
|
else if (items[itemCount].id === this.getPupupId('ascending')) {
|
7832
7818
|
items[itemCount].iconCss = this.parent.sortOrder === 'Ascending' ? TB_OPTION_TICK : '';
|