@syncfusion/ej2-filemanager 29.2.10 → 30.1.38
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/.eslintrc.json +2 -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 +186 -21
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +186 -20
- 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 +11 -11
- package/src/file-manager/base/interface.d.ts +10 -0
- package/src/file-manager/common/operations.d.ts +18 -1
- package/src/file-manager/common/operations.js +59 -0
- package/src/file-manager/common/utility.d.ts +3 -3
- package/src/file-manager/common/utility.js +23 -6
- package/src/file-manager/layout/details-view.js +4 -3
- package/src/file-manager/layout/large-icons-view.d.ts +3 -0
- package/src/file-manager/layout/large-icons-view.js +67 -9
- package/src/file-manager/layout/navigation-pane.js +3 -0
- package/src/file-manager/pop-up/dialog.d.ts +3 -3
- package/src/file-manager/pop-up/dialog.js +34 -6
- package/styles/bds-lite.css +50 -1
- package/styles/bds.css +50 -1
- package/styles/bootstrap-dark-lite.css +50 -0
- package/styles/bootstrap-dark.css +50 -0
- package/styles/bootstrap-lite.css +50 -0
- package/styles/bootstrap.css +50 -0
- package/styles/bootstrap4-lite.css +50 -0
- package/styles/bootstrap4.css +50 -0
- package/styles/bootstrap5-dark-lite.css +50 -1
- package/styles/bootstrap5-dark.css +50 -1
- package/styles/bootstrap5-lite.css +50 -1
- package/styles/bootstrap5.3-lite.css +50 -0
- package/styles/bootstrap5.3.css +50 -0
- package/styles/bootstrap5.css +50 -1
- package/styles/fabric-dark-lite.css +50 -0
- package/styles/fabric-dark.css +50 -0
- package/styles/fabric-lite.css +50 -0
- package/styles/fabric.css +50 -0
- package/styles/file-manager/_bds-definition.scss +1 -0
- package/styles/file-manager/_bootstrap5-definition.scss +1 -0
- package/styles/file-manager/_layout.scss +46 -4
- package/styles/file-manager/_material3-definition.scss +2 -2
- package/styles/file-manager/_tailwind-definition.scss +1 -0
- package/styles/file-manager/_tailwind3-definition.scss +1 -0
- package/styles/file-manager/bds.css +50 -1
- package/styles/file-manager/bootstrap-dark.css +50 -0
- package/styles/file-manager/bootstrap.css +50 -0
- package/styles/file-manager/bootstrap4.css +50 -0
- package/styles/file-manager/bootstrap5-dark.css +50 -1
- package/styles/file-manager/bootstrap5.3.css +50 -0
- package/styles/file-manager/bootstrap5.css +50 -1
- package/styles/file-manager/fabric-dark.css +50 -0
- package/styles/file-manager/fabric.css +50 -0
- package/styles/file-manager/fluent-dark.css +50 -0
- package/styles/file-manager/fluent.css +50 -0
- package/styles/file-manager/fluent2.css +50 -0
- package/styles/file-manager/highcontrast-light.css +50 -0
- package/styles/file-manager/highcontrast.css +50 -0
- package/styles/file-manager/material-dark.css +50 -0
- package/styles/file-manager/material.css +50 -0
- package/styles/file-manager/material3-dark.css +52 -2
- package/styles/file-manager/material3.css +52 -2
- package/styles/file-manager/tailwind-dark.css +50 -1
- package/styles/file-manager/tailwind.css +50 -1
- package/styles/file-manager/tailwind3.css +50 -0
- package/styles/fluent-dark-lite.css +50 -0
- package/styles/fluent-dark.css +50 -0
- package/styles/fluent-lite.css +50 -0
- package/styles/fluent.css +50 -0
- package/styles/fluent2-lite.css +50 -0
- package/styles/fluent2.css +50 -0
- package/styles/highcontrast-light-lite.css +50 -0
- package/styles/highcontrast-light.css +50 -0
- package/styles/highcontrast-lite.css +50 -0
- package/styles/highcontrast.css +50 -0
- package/styles/material-dark-lite.css +50 -0
- package/styles/material-dark.css +50 -0
- package/styles/material-lite.css +50 -0
- package/styles/material.css +50 -0
- package/styles/material3-dark-lite.css +50 -0
- package/styles/material3-dark.css +52 -2
- package/styles/material3-lite.css +50 -0
- package/styles/material3.css +52 -2
- package/styles/tailwind-dark-lite.css +50 -1
- package/styles/tailwind-dark.css +50 -1
- package/styles/tailwind-lite.css +50 -1
- package/styles/tailwind.css +50 -1
- package/styles/tailwind3-lite.css +50 -0
- package/styles/tailwind3.css +50 -0
@@ -1349,7 +1349,7 @@ function fileType(file) {
|
|
1349
1349
|
*
|
1350
1350
|
* @param {IFileManager} parent - specifies the parent element.
|
1351
1351
|
* @param {Object} item - specifies the item.
|
1352
|
-
* @returns {
|
1352
|
+
* @returns {BeforeImageLoadEventArgs} - returns the eventargs.
|
1353
1353
|
* @private
|
1354
1354
|
*/
|
1355
1355
|
function getImageUrl(parent, item) {
|
@@ -1357,10 +1357,11 @@ function getImageUrl(parent, item) {
|
|
1357
1357
|
if (isFileSystemData(parent)) {
|
1358
1358
|
var eventArgs_1 = {
|
1359
1359
|
fileDetails: [item],
|
1360
|
-
imageUrl: imgUrl
|
1360
|
+
imageUrl: imgUrl,
|
1361
|
+
useImageAsUrl: true
|
1361
1362
|
};
|
1362
1363
|
parent.trigger('beforeImageLoad', eventArgs_1);
|
1363
|
-
return eventArgs_1
|
1364
|
+
return eventArgs_1;
|
1364
1365
|
}
|
1365
1366
|
var baseUrl = parent.ajaxSettings.getImageUrl ? parent.ajaxSettings.getImageUrl : parent.ajaxSettings.url;
|
1366
1367
|
var pathUrl = (baseUrl.indexOf('?') !== -1) ? '&path=' : '?path=';
|
@@ -1377,12 +1378,25 @@ function getImageUrl(parent, item) {
|
|
1377
1378
|
imgUrl = baseUrl + pathUrl + parent.path + fileName;
|
1378
1379
|
}
|
1379
1380
|
imgUrl = imgUrl + '&time=' + (new Date().getTime()).toString();
|
1381
|
+
var data = { 'action': 'getImage', 'path': parent.path + fileName, 'id': getValue('id', item) };
|
1382
|
+
var ajaxSettings = {
|
1383
|
+
url: baseUrl,
|
1384
|
+
type: 'POST',
|
1385
|
+
contentType: 'application/json',
|
1386
|
+
responseType: 'blob',
|
1387
|
+
data: JSON.stringify(data),
|
1388
|
+
onSuccess: null,
|
1389
|
+
onFailure: null,
|
1390
|
+
beforeSend: null
|
1391
|
+
};
|
1380
1392
|
var eventArgs = {
|
1381
1393
|
fileDetails: [item],
|
1382
|
-
imageUrl: imgUrl
|
1394
|
+
imageUrl: imgUrl,
|
1395
|
+
useImageAsUrl: true,
|
1396
|
+
ajaxSettings: ajaxSettings
|
1383
1397
|
};
|
1384
1398
|
parent.trigger('beforeImageLoad', eventArgs);
|
1385
|
-
return eventArgs
|
1399
|
+
return eventArgs;
|
1386
1400
|
}
|
1387
1401
|
/* istanbul ignore next */
|
1388
1402
|
/**
|
@@ -1504,7 +1518,7 @@ function createEmptyElement(parent, element, args) {
|
|
1504
1518
|
}
|
1505
1519
|
else {
|
1506
1520
|
element.querySelector('.' + EMPTY_CONTENT).innerHTML = getLocaleText(parent, 'Folder-Empty');
|
1507
|
-
element.querySelector('.' + EMPTY_INNER_CONTENT).innerHTML = getLocaleText(parent, 'File-Upload');
|
1521
|
+
element.querySelector('.' + EMPTY_INNER_CONTENT).innerHTML = parent.uploadObj.dropArea == null ? getLocaleText(parent, '') : getLocaleText(parent, 'File-Upload');
|
1508
1522
|
}
|
1509
1523
|
}
|
1510
1524
|
var eDiv = select('.' + EMPTY, element);
|
@@ -1853,6 +1867,9 @@ function getParentPath(oldPath) {
|
|
1853
1867
|
function getDirectoryPath(parent, args) {
|
1854
1868
|
var filePath = getValue(parent.hasId ? 'id' : 'name', args.cwd) + '/';
|
1855
1869
|
var fPath = getValue(parent.hasId && !isNullOrUndefined(parent.ajaxSettings.url) ? 'filterId' : 'filterPath', args.cwd);
|
1870
|
+
if (!isNullOrUndefined(fPath) && isFileSystemData(parent) && fPath !== '' && fPath !== '\\') {
|
1871
|
+
fPath = '\\' + args.cwd.parentId + '\\';
|
1872
|
+
}
|
1856
1873
|
if (!isNullOrUndefined(fPath)) {
|
1857
1874
|
if (fPath === '') {
|
1858
1875
|
return '/';
|
@@ -2754,6 +2771,11 @@ function createNewItem(data, target, itemName, isCopy) {
|
|
2754
2771
|
size: isCopy ? data.size : 0,
|
2755
2772
|
type: isCopy ? data.type : ''
|
2756
2773
|
});
|
2774
|
+
if (!isNullOrUndefined(target.filterId)) {
|
2775
|
+
Object.assign(newItem, {
|
2776
|
+
filterId: target.filterId + target.id + '/'
|
2777
|
+
});
|
2778
|
+
}
|
2757
2779
|
return newItem;
|
2758
2780
|
}
|
2759
2781
|
/**
|
@@ -2995,6 +3017,12 @@ function triggerMoveOrCopyOperation(parent, data, eventArgs) {
|
|
2995
3017
|
}
|
2996
3018
|
fileData.parentId = target_1.id;
|
2997
3019
|
fileData.filterPath = target_1.id === 0 ? '\\' : target_1.filterPath + target_1.name + '\\';
|
3020
|
+
if (!isNullOrUndefined(target_1.filterId)) {
|
3021
|
+
fileData.filterId = target_1.filterId + target_1.id + '/';
|
3022
|
+
}
|
3023
|
+
if (!currItem.isFile) {
|
3024
|
+
updateMovedItemChildren(parent, fileData);
|
3025
|
+
}
|
2998
3026
|
}
|
2999
3027
|
else {
|
3000
3028
|
file_1.push(currItem.name);
|
@@ -3314,6 +3342,26 @@ function copyFolderItems(parent, data, target, itemName) {
|
|
3314
3342
|
copyFolderItems(parent, copiedItems[i], newObject, null);
|
3315
3343
|
}
|
3316
3344
|
}
|
3345
|
+
/**
|
3346
|
+
* Function to move operation.
|
3347
|
+
*
|
3348
|
+
* @param {IFileManager} parent - specifies the parent element.
|
3349
|
+
* @param {Object} itemData - specifies the data.
|
3350
|
+
* @returns {void}
|
3351
|
+
* @private
|
3352
|
+
*/
|
3353
|
+
function updateMovedItemChildren(parent, itemData) {
|
3354
|
+
var childItems = filterByParent(parent, itemData.id);
|
3355
|
+
childItems.forEach(function (childItem) {
|
3356
|
+
childItem.filterPath = itemData.filterPath + itemData.name + '\\';
|
3357
|
+
if (!isNullOrUndefined(itemData.filterId)) {
|
3358
|
+
childItem.filterId = itemData.filterId + itemData.id + '/';
|
3359
|
+
}
|
3360
|
+
if (!childItem.isFile) {
|
3361
|
+
updateMovedItemChildren(parent, childItem);
|
3362
|
+
}
|
3363
|
+
});
|
3364
|
+
}
|
3317
3365
|
/**
|
3318
3366
|
* Function for trigger Ajax failure in File Manager.
|
3319
3367
|
*
|
@@ -3828,6 +3876,34 @@ function handleCatchError(parent, error, action) {
|
|
3828
3876
|
};
|
3829
3877
|
onFailure(parent, errorResult, action);
|
3830
3878
|
}
|
3879
|
+
/**
|
3880
|
+
* Function for trigger Fetch success in File Manager.
|
3881
|
+
*
|
3882
|
+
* @param {IFileManager} parent - specifies the parent element.
|
3883
|
+
* @param {Object} ajaxSettings - specifies the ajax settings.
|
3884
|
+
* @returns {void}
|
3885
|
+
*/
|
3886
|
+
function triggerFetchSuccess(parent, ajaxSettings) {
|
3887
|
+
parent.notify(afterRequest, { action: 'success' });
|
3888
|
+
if (ajaxSettings && typeof getValue('onSuccess', ajaxSettings) === 'function') {
|
3889
|
+
getValue('onSuccess', ajaxSettings)();
|
3890
|
+
}
|
3891
|
+
}
|
3892
|
+
/**
|
3893
|
+
* Function for trigger Fetch failure in File Manager.
|
3894
|
+
*
|
3895
|
+
* @param {IFileManager} parent - specifies the parent element.
|
3896
|
+
* @param {Object} ajaxSettings - specifies the ajax settings.
|
3897
|
+
* @param {ReadArgs} result - specifies the result.
|
3898
|
+
* @returns {void}
|
3899
|
+
*/
|
3900
|
+
function triggerFetchFailure(parent, ajaxSettings, result) {
|
3901
|
+
parent.notify(afterRequest, { action: 'failure' });
|
3902
|
+
createDialog(parent, 'Error', result);
|
3903
|
+
if (typeof getValue('onFailure', ajaxSettings) === 'function') {
|
3904
|
+
getValue('onFailure', ajaxSettings)();
|
3905
|
+
}
|
3906
|
+
}
|
3831
3907
|
|
3832
3908
|
/**
|
3833
3909
|
*
|
@@ -4738,14 +4814,42 @@ function getKeyCode(e) {
|
|
4738
4814
|
*
|
4739
4815
|
* @param {IFileManager} parent - specifies the parent element.
|
4740
4816
|
* @param {string} header - specifies the header element.
|
4741
|
-
* @param {
|
4817
|
+
* @param {BeforeImageLoadEventArgs} imageData - specifies the image eventargs.
|
4742
4818
|
* @returns {void}
|
4743
4819
|
* @private
|
4744
4820
|
*/
|
4745
|
-
function createImageDialog(parent, header,
|
4821
|
+
function createImageDialog(parent, header, imageData) {
|
4746
4822
|
var content = createElement('div', { className: 'e-image-wrap' });
|
4747
|
-
|
4748
|
-
|
4823
|
+
if (imageData.useImageAsUrl) {
|
4824
|
+
var image = createElement('img', { className: 'e-image', attrs: { src: imageData.imageUrl, alt: header } });
|
4825
|
+
content.appendChild(image);
|
4826
|
+
}
|
4827
|
+
else {
|
4828
|
+
var fetch_1 = new Fetch({
|
4829
|
+
url: getValue('url', imageData.ajaxSettings),
|
4830
|
+
type: getValue('type', imageData.ajaxSettings),
|
4831
|
+
contentType: getValue('contentType', imageData.ajaxSettings),
|
4832
|
+
responseType: getValue('responseType', imageData.ajaxSettings),
|
4833
|
+
beforeSend: getValue('beforeSend', imageData.ajaxSettings),
|
4834
|
+
onSuccess: function (e) {
|
4835
|
+
var blobUrl = URL.createObjectURL(e);
|
4836
|
+
var image = createElement('img', { className: 'e-image', attrs: { src: blobUrl, alt: header } });
|
4837
|
+
content.appendChild(image);
|
4838
|
+
triggerFetchSuccess(parent, imageData.ajaxSettings);
|
4839
|
+
},
|
4840
|
+
onFailure: function (e) {
|
4841
|
+
var result = {
|
4842
|
+
error: {
|
4843
|
+
code: e.status.toString(),
|
4844
|
+
message: getLocaleText(parent, 'Network-Error') + ' ' + getValue('url', imageData.ajaxSettings)
|
4845
|
+
}
|
4846
|
+
};
|
4847
|
+
triggerFetchFailure(parent, imageData.ajaxSettings, result);
|
4848
|
+
}
|
4849
|
+
});
|
4850
|
+
var data = getValue('data', imageData.ajaxSettings);
|
4851
|
+
fetch_1.send(data);
|
4852
|
+
}
|
4749
4853
|
if (isNullOrUndefined(parent.viewerObj)) {
|
4750
4854
|
parent.viewerObj = new Dialog({
|
4751
4855
|
header: header,
|
@@ -4838,6 +4942,8 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4838
4942
|
this.isSelectAllCalled = false;
|
4839
4943
|
this.isPasteOperation = false;
|
4840
4944
|
this.isInteracted = true;
|
4945
|
+
this.imageEventArgsMap = new Map();
|
4946
|
+
this.imageUrlCache = new Map();
|
4841
4947
|
this.parent = parent;
|
4842
4948
|
this.element = select('#' + this.parent.element.id + LARGEICON_ID, this.parent.element);
|
4843
4949
|
addClass([this.element], LARGE_ICONS);
|
@@ -4909,7 +5015,7 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4909
5015
|
groupItemRole: 'group', wrapperRole: ''
|
4910
5016
|
},
|
4911
5017
|
showIcon: true,
|
4912
|
-
fields: { text: 'name', iconCss: '_fm_icon', imageUrl: '_fm_imageUrl', htmlAttributes: '_fm_htmlAttr' },
|
5018
|
+
fields: { text: 'name', iconCss: '_fm_icon', imageUrl: '_fm_imageUrl', imageAttributes: '_fm_imageAttr', htmlAttributes: '_fm_htmlAttr' },
|
4913
5019
|
sortOrder: this.parent.sortOrder,
|
4914
5020
|
itemCreated: this.onItemCreated.bind(this),
|
4915
5021
|
enableHtmlSanitizer: this.parent.enableHtmlSanitizer
|
@@ -4929,6 +5035,9 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4929
5035
|
this.listElements = ListBase.createListFromJson(createElement, this.items, this.listObj);
|
4930
5036
|
this.itemList = Array.prototype.slice.call(selectAll('.' + LIST_ITEM, this.listElements));
|
4931
5037
|
this.element.appendChild(this.listElements);
|
5038
|
+
if (this.imageEventArgsMap.size > 0) {
|
5039
|
+
this.loadImages();
|
5040
|
+
}
|
4932
5041
|
this.listElements.setAttribute('aria-label', 'listbox');
|
4933
5042
|
this.preventImgDrag();
|
4934
5043
|
this.createDragObj();
|
@@ -4976,6 +5085,51 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4976
5085
|
}
|
4977
5086
|
}
|
4978
5087
|
};
|
5088
|
+
LargeIconsView.prototype.loadImages = function () {
|
5089
|
+
var _this = this;
|
5090
|
+
var imageEle = this.parent.element.querySelectorAll('.e-list-img');
|
5091
|
+
imageEle.forEach(function (imgElement) {
|
5092
|
+
var imageKey = imgElement.getAttribute('data-image-key');
|
5093
|
+
if (!imageKey) {
|
5094
|
+
return;
|
5095
|
+
}
|
5096
|
+
if (_this.imageUrlCache.has(imageKey)) {
|
5097
|
+
imgElement.setAttribute('src', _this.imageUrlCache.get(imageKey));
|
5098
|
+
imgElement.classList.remove('image-blur');
|
5099
|
+
return;
|
5100
|
+
}
|
5101
|
+
var imageDetails = _this.imageEventArgsMap.get(imageKey);
|
5102
|
+
if (!imageDetails) {
|
5103
|
+
return;
|
5104
|
+
}
|
5105
|
+
var fetch = new Fetch({
|
5106
|
+
url: getValue('url', imageDetails.ajaxSettings),
|
5107
|
+
type: getValue('type', imageDetails.ajaxSettings),
|
5108
|
+
contentType: getValue('contentType', imageDetails.ajaxSettings),
|
5109
|
+
responseType: getValue('responseType', imageDetails.ajaxSettings),
|
5110
|
+
beforeSend: getValue('beforeSend', imageDetails.ajaxSettings),
|
5111
|
+
onSuccess: function (blob) {
|
5112
|
+
var blobUrl = URL.createObjectURL(blob);
|
5113
|
+
_this.imageUrlCache.set(imageKey, blobUrl);
|
5114
|
+
imgElement.setAttribute('src', blobUrl);
|
5115
|
+
imgElement.classList.remove('image-blur');
|
5116
|
+
triggerFetchSuccess(_this.parent, imageDetails.ajaxSettings);
|
5117
|
+
},
|
5118
|
+
onFailure: function (response) {
|
5119
|
+
var result = {
|
5120
|
+
files: null,
|
5121
|
+
error: {
|
5122
|
+
code: response.status ? response.status.toString() : '404',
|
5123
|
+
message: getLocaleText(_this.parent, 'Network-Error') + ' ' + getValue('url', imageDetails.ajaxSettings),
|
5124
|
+
fileExists: null
|
5125
|
+
}
|
5126
|
+
};
|
5127
|
+
triggerFetchFailure(_this.parent, imageDetails.ajaxSettings, result);
|
5128
|
+
}
|
5129
|
+
});
|
5130
|
+
fetch.send(getValue('data', imageDetails.ajaxSettings));
|
5131
|
+
});
|
5132
|
+
};
|
4979
5133
|
LargeIconsView.prototype.comparer = function (x, y) {
|
4980
5134
|
if (this.parent.sortOrder === 'Descending') {
|
4981
5135
|
var z = x;
|
@@ -5150,9 +5304,17 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
5150
5304
|
className += ' ' + getAccessClass(items[i]);
|
5151
5305
|
}
|
5152
5306
|
if (icon === ICON_IMAGE && this.parent.showThumbnail && hasReadAccess(items[i])) {
|
5153
|
-
var
|
5154
|
-
|
5155
|
-
|
5307
|
+
var imageData = getImageUrl(this.parent, items[i]);
|
5308
|
+
if (imageData.useImageAsUrl) {
|
5309
|
+
setValue('_fm_imageUrl', imageData.imageUrl, items[i]);
|
5310
|
+
setValue('_fm_imageAttr', { alt: name_1 }, items[i]);
|
5311
|
+
}
|
5312
|
+
else {
|
5313
|
+
var uniqueKey = "img_" + name_1 + "_" + i;
|
5314
|
+
this.imageEventArgsMap.set(uniqueKey, imageData);
|
5315
|
+
setValue('_fm_imageUrl', '', items[i]);
|
5316
|
+
setValue('_fm_imageAttr', { alt: name_1, class: 'e-list-img image-blur', 'data-image-key': uniqueKey }, items[i]);
|
5317
|
+
}
|
5156
5318
|
}
|
5157
5319
|
else {
|
5158
5320
|
setValue('_fm_icon', icon, items[i]);
|
@@ -5698,8 +5860,8 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
5698
5860
|
else {
|
5699
5861
|
var icon = fileType(details_1);
|
5700
5862
|
if (icon === ICON_IMAGE) {
|
5701
|
-
var
|
5702
|
-
createImageDialog(_this.parent, text,
|
5863
|
+
var imageData = getImageUrl(_this.parent, details_1);
|
5864
|
+
createImageDialog(_this.parent, text, imageData);
|
5703
5865
|
}
|
5704
5866
|
}
|
5705
5867
|
}
|
@@ -10657,6 +10819,9 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
10657
10819
|
}
|
10658
10820
|
this.moveNames = [];
|
10659
10821
|
var obj = this.parent.isDragDrop ? this.parent.dragData : this.parent.actionRecords;
|
10822
|
+
if (!obj || !Array.isArray(obj)) {
|
10823
|
+
return;
|
10824
|
+
}
|
10660
10825
|
for (var i = 0; i < obj.length; i++) {
|
10661
10826
|
if (getValue('isFile', obj[i]) === false) {
|
10662
10827
|
this.moveNames.push(getValue('_fm_id', obj[i]));
|
@@ -11307,7 +11472,8 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
11307
11472
|
if (this.parent.layoutSelectedItems.length) {
|
11308
11473
|
this.selectRecords(this.parent.layoutSelectedItems);
|
11309
11474
|
}
|
11310
|
-
if (this.parent.renamedItem) {
|
11475
|
+
if (this.parent.renamedItem && this.parent.selectedItems.length === 0) {
|
11476
|
+
this.gridObj.clearSelection();
|
11311
11477
|
this.addSelection(this.parent.renamedItem);
|
11312
11478
|
this.parent.renamedItem = null;
|
11313
11479
|
}
|
@@ -11557,8 +11723,8 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
11557
11723
|
if (getValue('isFile', data)) {
|
11558
11724
|
var icon = fileType(data);
|
11559
11725
|
if (icon === ICON_IMAGE) {
|
11560
|
-
var
|
11561
|
-
createImageDialog(_this.parent, name_2,
|
11726
|
+
var imageData = getImageUrl(_this.parent, data);
|
11727
|
+
createImageDialog(_this.parent, name_2, imageData);
|
11562
11728
|
}
|
11563
11729
|
}
|
11564
11730
|
else {
|
@@ -12853,5 +13019,5 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
12853
13019
|
return DetailsView;
|
12854
13020
|
}());
|
12855
13021
|
|
12856
|
-
export { ACTIVE, ALT_DIALOG_ID, AjaxSettings, BLUR, BREADCRUMBBAR_ID, BREADCRUMBS, BreadCrumbBar, CB_WRAP, CHECK, CHECK_SELECT, CLONE, COLLAPSED, CONTENT_ID, CONTEXT_MENU_ID, CONTROL, Column, ContextMenu, ContextMenuSettings, DETAILS_LABEL, DIALOG_ID, DISPLAY_NONE, DROP_FILE, DROP_FOLDER, Delete, DetailsView, DetailsViewSettings, Download, EMPTY, EMPTY_CONTENT, EMPTY_INNER_CONTENT, ERROR_CONTENT, EXTN_DIALOG_ID, FILTER, FOCUS, FOCUSED, FOLDER, FRAME, FULLROW, FileManager, GRID_CONTENT, GRID_HEADER, GRID_ID, GRID_VIEW, GetDetails, HEADER_CHECK, HOVER, ICONS, ICON_BREADCRUMB, ICON_CLEAR, ICON_COLLAPSIBLE, ICON_COPY, ICON_CUT, ICON_DELETE, ICON_DETAILS, ICON_DOWNLOAD, ICON_DROP_IN, ICON_DROP_OUT, ICON_GRID, ICON_IMAGE, ICON_LARGE, ICON_MUSIC, ICON_NEWFOLDER, ICON_NO_DROP, ICON_OPEN, ICON_OPTIONS, ICON_PASTE, ICON_REFRESH, ICON_RENAME, ICON_SELECTALL, ICON_SHORTBY, ICON_UPLOAD, ICON_VIDEO, ICON_VIEW, IMG_DIALOG_ID, LARGEICON_ID, LARGE_EMPTY_FOLDER, LARGE_EMPTY_FOLDER_TWO, LARGE_ICON, LARGE_ICONS, LARGE_ICON_FOLDER, LAYOUT, LAYOUT_CONTENT, LAYOUT_ID, LIST_ITEM, LIST_PARENT, LIST_TEXT, LargeIconsView, MENU_ICON, MENU_ITEM, MOBILE, MOB_POPUP, MULTI_SELECT, NAVIGATION, NAVIGATION_ID, NavigationPane, NavigationPaneSettings, OVERLAY, RETRY_DIALOG_ID, RETRY_ID, ROOT, ROOT_POPUP, ROW, ROWCELL, RTL, SEARCH_ID, SELECTED_ITEMS, SORTBY_ID, SPLITTER_ID, SPLIT_BAR, STATUS, SUBMENU_ICON, Search, SearchSettings, TB_ITEM, TB_OPTION_DOT, TB_OPTION_TICK, TEMPLATE_CELL, TEXT_CONTENT, TOOLBAR_ID, TREE_ID, TREE_VIEW, Toolbar, ToolbarItem, ToolbarSettings, UPLOAD_DIALOG_ID, UPLOAD_ID, UploadSettings, VALUE, VIEW_ID, Virtualization, actionFailure, activeElement, addBlur, afterRequest, beforeDelete, beforeDownload, beforeRequest, clearAllInit, clearPathInit, closePopup, columnArray, copyFiles, createDeniedDialog, createDialog, createEmptyElement, createEnd, createExtDialog, createFolder, createImageDialog, createNewFolder, createVirtualDragElement, cutCopyInit, cutEnd, cutFiles, defaultToolbarItems, deleteEnd, deleteInit, destroy, detailsInit, doDeleteFiles, doDownload, doDownloadFiles, doPasteUpdate, doRename, download, downloadInit, dragCancel, dragEnd, dragHelper, dragStartHandler, dragStopHandler, dragging, draggingHandler, dropHandler, dropInit, dropPath, fileItems, fileType, filter, filterEnd, finalizeEnd, folderItems, generatePath, getAccessClass, getAccessDetails, getAllChildItems, getCssClass, getDirectories, getDirectoryPath, getDuplicateData, getFullPath, getImageUrl, getItemName, getLocaleText, getModule, getName, getObject, getParentPath, getParents, getPath, getPathId, getPathNames, getPathObject, getSortField, getSortedData, getTargetModule, getTargetPath, hasContentAccess, hasDownloadAccess, hasEditAccess, hasReadAccess, hasUploadAccess, hideLayout, hidePaste, initialEnd, isFile, isFileSystemData, layoutChange, layoutItems, layoutRefresh, menuItemData, methodCall, modelChanged, nodeExpand, objectToString, openAction, openEnd, openInit, openSearchFolder, paste, pasteEnd, pasteHandler, pasteInit, pathChanged, pathColumn, pathDrag, permissionCopy, permissionDownload, permissionEdit, permissionEditContents, permissionRead, permissionUpload, read, readDropPath, refresh, refreshEnd, removeActive, removeBlur, removeDropTarget, removeItemClass, rename, renameEnd, renameEndParent, renameInit, resizeEnd, scrollHandler, search, searchTextChange, searchWordHandler, selectAllInit, selectedData, selectionChanged, setDateObject, setNextPath, setNodeId, showPaste, skipUpload, sortByChange, sortColumn, sortComparer, sortbyClickHandler, splitterResize, treeSelect, updateLayout, updatePath, updateRenamingData, updateSelectionData, updateTreeSelection, upload, uploadItem, validateSubFolder };
|
13022
|
+
export { ACTIVE, ALT_DIALOG_ID, AjaxSettings, BLUR, BREADCRUMBBAR_ID, BREADCRUMBS, BreadCrumbBar, CB_WRAP, CHECK, CHECK_SELECT, CLONE, COLLAPSED, CONTENT_ID, CONTEXT_MENU_ID, CONTROL, Column, ContextMenu, ContextMenuSettings, DETAILS_LABEL, DIALOG_ID, DISPLAY_NONE, DROP_FILE, DROP_FOLDER, Delete, DetailsView, DetailsViewSettings, Download, EMPTY, EMPTY_CONTENT, EMPTY_INNER_CONTENT, ERROR_CONTENT, EXTN_DIALOG_ID, FILTER, FOCUS, FOCUSED, FOLDER, FRAME, FULLROW, FileManager, GRID_CONTENT, GRID_HEADER, GRID_ID, GRID_VIEW, GetDetails, HEADER_CHECK, HOVER, ICONS, ICON_BREADCRUMB, ICON_CLEAR, ICON_COLLAPSIBLE, ICON_COPY, ICON_CUT, ICON_DELETE, ICON_DETAILS, ICON_DOWNLOAD, ICON_DROP_IN, ICON_DROP_OUT, ICON_GRID, ICON_IMAGE, ICON_LARGE, ICON_MUSIC, ICON_NEWFOLDER, ICON_NO_DROP, ICON_OPEN, ICON_OPTIONS, ICON_PASTE, ICON_REFRESH, ICON_RENAME, ICON_SELECTALL, ICON_SHORTBY, ICON_UPLOAD, ICON_VIDEO, ICON_VIEW, IMG_DIALOG_ID, LARGEICON_ID, LARGE_EMPTY_FOLDER, LARGE_EMPTY_FOLDER_TWO, LARGE_ICON, LARGE_ICONS, LARGE_ICON_FOLDER, LAYOUT, LAYOUT_CONTENT, LAYOUT_ID, LIST_ITEM, LIST_PARENT, LIST_TEXT, LargeIconsView, MENU_ICON, MENU_ITEM, MOBILE, MOB_POPUP, MULTI_SELECT, NAVIGATION, NAVIGATION_ID, NavigationPane, NavigationPaneSettings, OVERLAY, RETRY_DIALOG_ID, RETRY_ID, ROOT, ROOT_POPUP, ROW, ROWCELL, RTL, SEARCH_ID, SELECTED_ITEMS, SORTBY_ID, SPLITTER_ID, SPLIT_BAR, STATUS, SUBMENU_ICON, Search, SearchSettings, TB_ITEM, TB_OPTION_DOT, TB_OPTION_TICK, TEMPLATE_CELL, TEXT_CONTENT, TOOLBAR_ID, TREE_ID, TREE_VIEW, Toolbar, ToolbarItem, ToolbarSettings, UPLOAD_DIALOG_ID, UPLOAD_ID, UploadSettings, VALUE, VIEW_ID, Virtualization, actionFailure, activeElement, addBlur, afterRequest, beforeDelete, beforeDownload, beforeRequest, clearAllInit, clearPathInit, closePopup, columnArray, copyFiles, createDeniedDialog, createDialog, createEmptyElement, createEnd, createExtDialog, createFolder, createImageDialog, createNewFolder, createVirtualDragElement, cutCopyInit, cutEnd, cutFiles, defaultToolbarItems, deleteEnd, deleteInit, destroy, detailsInit, doDeleteFiles, doDownload, doDownloadFiles, doPasteUpdate, doRename, download, downloadInit, dragCancel, dragEnd, dragHelper, dragStartHandler, dragStopHandler, dragging, draggingHandler, dropHandler, dropInit, dropPath, fileItems, fileType, filter, filterEnd, finalizeEnd, folderItems, generatePath, getAccessClass, getAccessDetails, getAllChildItems, getCssClass, getDirectories, getDirectoryPath, getDuplicateData, getFullPath, getImageUrl, getItemName, getLocaleText, getModule, getName, getObject, getParentPath, getParents, getPath, getPathId, getPathNames, getPathObject, getSortField, getSortedData, getTargetModule, getTargetPath, hasContentAccess, hasDownloadAccess, hasEditAccess, hasReadAccess, hasUploadAccess, hideLayout, hidePaste, initialEnd, isFile, isFileSystemData, layoutChange, layoutItems, layoutRefresh, menuItemData, methodCall, modelChanged, nodeExpand, objectToString, openAction, openEnd, openInit, openSearchFolder, paste, pasteEnd, pasteHandler, pasteInit, pathChanged, pathColumn, pathDrag, permissionCopy, permissionDownload, permissionEdit, permissionEditContents, permissionRead, permissionUpload, read, readDropPath, refresh, refreshEnd, removeActive, removeBlur, removeDropTarget, removeItemClass, rename, renameEnd, renameEndParent, renameInit, resizeEnd, scrollHandler, search, searchTextChange, searchWordHandler, selectAllInit, selectedData, selectionChanged, setDateObject, setNextPath, setNodeId, showPaste, skipUpload, sortByChange, sortColumn, sortComparer, sortbyClickHandler, splitterResize, treeSelect, triggerFetchFailure, triggerFetchSuccess, updateLayout, updatePath, updateRenamingData, updateSelectionData, updateTreeSelection, upload, uploadItem, validateSubFolder };
|
12857
13023
|
//# sourceMappingURL=ej2-filemanager.es5.js.map
|