@syncfusion/ej2-filemanager 28.1.36 → 28.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/README.md +1 -1
- package/dist/ej2-filemanager.min.js +10 -1
- package/dist/ej2-filemanager.umd.min.js +10 -1
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +7 -35
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +7 -35
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +10 -1
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +16 -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 +3 -8
- package/src/file-manager/layout/navigation-pane.js +2 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Property, ChildProperty, initializeCSPTemplate, getValue, isNullOrUndefined, matches, select, closest, createElement, setValue, detach, extend, Ajax,
|
1
|
+
import { Property, ChildProperty, initializeCSPTemplate, getValue, isNullOrUndefined, matches, select, closest, createElement, setValue, detach, extend, Ajax, Fetch, remove, Internationalization, selectAll, Draggable, KeyboardEvents, EventHandler, Touch, addClass, removeClass, isVisible, getUniqueID, setStyleAttribute, formatUnit, Browser, L10n, Complex, Collection, Event, NotifyPropertyChanges, Component, 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';
|
@@ -1539,20 +1539,15 @@ function setNodeId(result, rootId) {
|
|
1539
1539
|
* set the date object
|
1540
1540
|
*
|
1541
1541
|
* @param {Object[]} args - specifies the file object.
|
1542
|
-
* @param {Internationalization} localeString - The internationalization object for formatting dates.
|
1543
|
-
* @param {string} dateFormat - The date format string.
|
1544
1542
|
* @returns {void}
|
1545
1543
|
* @private
|
1546
1544
|
*/
|
1547
|
-
function setDateObject(args
|
1545
|
+
function setDateObject(args) {
|
1548
1546
|
for (var i = 0; i < args.length; i++) {
|
1549
1547
|
var createdDate = new Date(getValue('dateCreated', args[i]));
|
1550
1548
|
var modifiedDate = new Date(getValue('dateModified', args[i]));
|
1551
|
-
|
1552
|
-
|
1553
|
-
}
|
1554
|
-
setValue('_fm_created', localeString.formatDate(createdDate, { format: dateFormat }), args[i]);
|
1555
|
-
setValue('_fm_modified', localeString.formatDate(modifiedDate, { format: dateFormat }), args[i]);
|
1549
|
+
setValue('_fm_created', createdDate, args[i]);
|
1550
|
+
setValue('_fm_modified', modifiedDate, args[i]);
|
1556
1551
|
}
|
1557
1552
|
}
|
1558
1553
|
/**
|
@@ -2670,29 +2665,6 @@ function GetDetails(parent, names, path, operation) {
|
|
2670
2665
|
var data = { action: operation, path: path, names: names, data: parent.itemData };
|
2671
2666
|
createAjax(parent, data, detailsSuccess, path, operation);
|
2672
2667
|
}
|
2673
|
-
/**
|
2674
|
-
* Function for getDateFormat in File Manager.
|
2675
|
-
*
|
2676
|
-
* @param {IFileManager} parent - specifies the parent element.
|
2677
|
-
* @returns {void}
|
2678
|
-
* @private
|
2679
|
-
*/
|
2680
|
-
function getDateFormat(parent) {
|
2681
|
-
var columns = parent.detailsViewSettings.columns;
|
2682
|
-
var dateFormat;
|
2683
|
-
if (!columns) {
|
2684
|
-
return null;
|
2685
|
-
}
|
2686
|
-
for (var i = 0; i < columns.length; i++) {
|
2687
|
-
if (columns[i].field === '_fm_modified') {
|
2688
|
-
if (!isNullOrUndefined(columns[i].format)) {
|
2689
|
-
dateFormat = columns[i].format.toString();
|
2690
|
-
}
|
2691
|
-
break;
|
2692
|
-
}
|
2693
|
-
}
|
2694
|
-
return dateFormat;
|
2695
|
-
}
|
2696
2668
|
/**
|
2697
2669
|
* Checks whether fileSystemData is enabled.
|
2698
2670
|
*
|
@@ -3288,9 +3260,8 @@ function performReadOperation(parent, result, fn, data, event, operation, target
|
|
3288
3260
|
}
|
3289
3261
|
}
|
3290
3262
|
}
|
3291
|
-
var intl = new Internationalization(parent.locale);
|
3292
3263
|
if (!isNullOrUndefined(result.files)) {
|
3293
|
-
setDateObject(result.files
|
3264
|
+
setDateObject(result.files);
|
3294
3265
|
for (var i = 0, len = result.files.length; i < len; i++) {
|
3295
3266
|
var item = result.files[i];
|
3296
3267
|
setValue('_fm_iconClass', fileType(item), item);
|
@@ -10201,7 +10172,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
10201
10172
|
if (!this.renameParent) {
|
10202
10173
|
this.parent.activeModule = 'navigationpane';
|
10203
10174
|
var nodeData = this.getTreeData(getValue('id', args.nodeData));
|
10204
|
-
if (args.node.getAttribute('data-uid') !== this.parent.pathId[this.parent.pathId.length - 1] && !this.isRightClick && !this.isNodeClickCalled || this.isSameNodeClicked) {
|
10175
|
+
if (args.node.getAttribute('data-uid') !== this.parent.pathId[this.parent.pathId.length - 1] && !this.isRightClick && !this.isNodeClickCalled || this.isSameNodeClicked || this.isPathDragged) {
|
10205
10176
|
this.isNodeClickCalled = false;
|
10206
10177
|
if (!this.isSameNodeClicked) {
|
10207
10178
|
this.isSameNodeClicked = true;
|
@@ -10217,6 +10188,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
10217
10188
|
this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0] !== args.node.getAttribute('data-uid') : false;
|
10218
10189
|
this.isNodeClickCalled = true;
|
10219
10190
|
this.isSameNodeClicked = false;
|
10191
|
+
this.isPathDragged = false;
|
10220
10192
|
this.previousSelected = this.treeObj.selectedNodes;
|
10221
10193
|
this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
|
10222
10194
|
}
|