@syncfusion/ej2-filemanager 28.1.39 → 28.2.4
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/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 +6 -35
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +6 -35
- 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 +15 -15
- package/src/file-manager/common/operations.js +2 -26
- package/src/file-manager/common/utility.d.ts +2 -4
- package/src/file-manager/common/utility.js +4 -9
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ChildProperty, Property, initializeCSPTemplate, getValue, isNullOrUndefined, matches, select, closest, createElement, setValue, detach, extend, Ajax,
|
1
|
+
import { ChildProperty, Property, initializeCSPTemplate, getValue, isNullOrUndefined, matches, select, closest, createElement, setValue, detach, extend, Ajax, Fetch, remove, Internationalization, selectAll, addClass, Draggable, KeyboardEvents, EventHandler, Touch, removeClass, isVisible, Component, getUniqueID, setStyleAttribute, formatUnit, Browser, L10n, Complex, Collection, Event, NotifyPropertyChanges, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
2
2
|
import { Splitter } from '@syncfusion/ej2-layouts';
|
3
3
|
import { Dialog, showSpinner, hideSpinner, createSpinner } from '@syncfusion/ej2-popups';
|
4
4
|
import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';
|
@@ -986,7 +986,7 @@ function searchWordHandler(parent, value, isLayoutChange) {
|
|
986
986
|
if (isFileSystemData(parent)) {
|
987
987
|
if (value === '') {
|
988
988
|
parent.itemData = parent.fileSystemData;
|
989
|
-
read(parent, layoutChange, parent.path);
|
989
|
+
read(parent, isLayoutChange ? layoutChange : search, parent.path);
|
990
990
|
}
|
991
991
|
else {
|
992
992
|
parent.searchSettings.filterType = isNullOrUndefined(parent.searchSettings.filterType) ? 'contains' : parent.searchSettings.filterType;
|
@@ -1388,20 +1388,15 @@ function setNodeId(result, rootId) {
|
|
1388
1388
|
* set the date object
|
1389
1389
|
*
|
1390
1390
|
* @param {Object[]} args - specifies the file object.
|
1391
|
-
* @param {Internationalization} localeString - The internationalization object for formatting dates.
|
1392
|
-
* @param {string} dateFormat - The date format string.
|
1393
1391
|
* @returns {void}
|
1394
1392
|
* @private
|
1395
1393
|
*/
|
1396
|
-
function setDateObject(args
|
1394
|
+
function setDateObject(args) {
|
1397
1395
|
for (let i = 0; i < args.length; i++) {
|
1398
1396
|
const createdDate = new Date(getValue('dateCreated', args[i]));
|
1399
1397
|
const modifiedDate = new Date(getValue('dateModified', args[i]));
|
1400
|
-
|
1401
|
-
|
1402
|
-
}
|
1403
|
-
setValue('_fm_created', localeString.formatDate(createdDate, { format: dateFormat }), args[i]);
|
1404
|
-
setValue('_fm_modified', localeString.formatDate(modifiedDate, { format: dateFormat }), args[i]);
|
1398
|
+
setValue('_fm_created', createdDate, args[i]);
|
1399
|
+
setValue('_fm_modified', modifiedDate, args[i]);
|
1405
1400
|
}
|
1406
1401
|
}
|
1407
1402
|
/**
|
@@ -2519,29 +2514,6 @@ function GetDetails(parent, names, path, operation) {
|
|
2519
2514
|
const data = { action: operation, path: path, names: names, data: parent.itemData };
|
2520
2515
|
createAjax(parent, data, detailsSuccess, path, operation);
|
2521
2516
|
}
|
2522
|
-
/**
|
2523
|
-
* Function for getDateFormat in File Manager.
|
2524
|
-
*
|
2525
|
-
* @param {IFileManager} parent - specifies the parent element.
|
2526
|
-
* @returns {void}
|
2527
|
-
* @private
|
2528
|
-
*/
|
2529
|
-
function getDateFormat(parent) {
|
2530
|
-
const columns = parent.detailsViewSettings.columns;
|
2531
|
-
let dateFormat;
|
2532
|
-
if (!columns) {
|
2533
|
-
return null;
|
2534
|
-
}
|
2535
|
-
for (let i = 0; i < columns.length; i++) {
|
2536
|
-
if (columns[i].field === '_fm_modified') {
|
2537
|
-
if (!isNullOrUndefined(columns[i].format)) {
|
2538
|
-
dateFormat = columns[i].format.toString();
|
2539
|
-
}
|
2540
|
-
break;
|
2541
|
-
}
|
2542
|
-
}
|
2543
|
-
return dateFormat;
|
2544
|
-
}
|
2545
2517
|
/**
|
2546
2518
|
* Checks whether fileSystemData is enabled.
|
2547
2519
|
*
|
@@ -3135,9 +3107,8 @@ function performReadOperation(parent, result, fn, data, event, operation, target
|
|
3135
3107
|
}
|
3136
3108
|
}
|
3137
3109
|
}
|
3138
|
-
const intl = new Internationalization(parent.locale);
|
3139
3110
|
if (!isNullOrUndefined(result.files)) {
|
3140
|
-
setDateObject(result.files
|
3111
|
+
setDateObject(result.files);
|
3141
3112
|
for (let i = 0, len = result.files.length; i < len; i++) {
|
3142
3113
|
const item = result.files[i];
|
3143
3114
|
setValue('_fm_iconClass', fileType(item), item);
|