@syncfusion/ej2-filemanager 25.1.35 → 25.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/CHANGELOG.md +16 -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 +50 -21
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +50 -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/layout/details-view.d.ts +1 -1
- package/src/file-manager/layout/details-view.js +50 -20
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 25.1.
|
3
|
+
* version : 25.1.38
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@
|
3
|
+
"_id": "@syncfusion/ej2-filemanager@25.1.37",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-E1C2uMBrLbHmWH7u6iECQldBwNpGb9Y/bbviwBWKb9VCw3lZzpTQCJ3rYq3Ek5iLJrvTYQ59AonoF/F3RAdSMA==",
|
6
6
|
"_location": "/@syncfusion/ej2-filemanager",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"/@syncfusion/ej2-richtexteditor",
|
25
25
|
"/@syncfusion/ej2-vue-filemanager"
|
26
26
|
],
|
27
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
28
|
-
"_shasum": "
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-25.1.37.tgz",
|
28
|
+
"_shasum": "cf782a89b485d61d55101285fe5e01c7b2e094a0",
|
29
29
|
"_spec": "@syncfusion/ej2-filemanager@*",
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
31
31
|
"author": {
|
@@ -39,13 +39,13 @@
|
|
39
39
|
"@syncfusion/ej2-base": "~25.1.35",
|
40
40
|
"@syncfusion/ej2-buttons": "~25.1.35",
|
41
41
|
"@syncfusion/ej2-data": "~25.1.35",
|
42
|
-
"@syncfusion/ej2-grids": "~25.1.
|
43
|
-
"@syncfusion/ej2-inputs": "~25.1.
|
44
|
-
"@syncfusion/ej2-layouts": "~25.1.
|
42
|
+
"@syncfusion/ej2-grids": "~25.1.38",
|
43
|
+
"@syncfusion/ej2-inputs": "~25.1.38",
|
44
|
+
"@syncfusion/ej2-layouts": "~25.1.37",
|
45
45
|
"@syncfusion/ej2-lists": "~25.1.35",
|
46
|
-
"@syncfusion/ej2-navigations": "~25.1.
|
47
|
-
"@syncfusion/ej2-popups": "~25.1.
|
48
|
-
"@syncfusion/ej2-splitbuttons": "~25.1.
|
46
|
+
"@syncfusion/ej2-navigations": "~25.1.38",
|
47
|
+
"@syncfusion/ej2-popups": "~25.1.38",
|
48
|
+
"@syncfusion/ej2-splitbuttons": "~25.1.38"
|
49
49
|
},
|
50
50
|
"deprecated": false,
|
51
51
|
"description": "Essential JS 2 FileManager Component",
|
@@ -75,6 +75,6 @@
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
76
76
|
},
|
77
77
|
"typings": "index.d.ts",
|
78
|
-
"version": "25.1.
|
78
|
+
"version": "25.1.38",
|
79
79
|
"sideEffects": false
|
80
80
|
}
|
@@ -121,9 +121,9 @@ export declare class DetailsView {
|
|
121
121
|
private wireClickEvent;
|
122
122
|
private removeSelection;
|
123
123
|
private removeFocus;
|
124
|
+
private onBlur;
|
124
125
|
private getFocusedItemIndex;
|
125
126
|
private keydownHandler;
|
126
|
-
actionDivert: boolean;
|
127
127
|
private keyupHandler;
|
128
128
|
gridSelectNodes(): Object[];
|
129
129
|
private doDownload;
|
@@ -40,9 +40,6 @@ var DetailsView = /** @class */ (function () {
|
|
40
40
|
this.isNameWidth = false;
|
41
41
|
this.pasteOperation = false;
|
42
42
|
this.uploadOperation = false;
|
43
|
-
/* istanbul ignore next */
|
44
|
-
// eslint:disable-next-line
|
45
|
-
this.actionDivert = false;
|
46
43
|
Grid.Inject(Resize, ContextMenu, Sort, VirtualScroll);
|
47
44
|
this.parent = parent;
|
48
45
|
this.element = select('#' + this.parent.element.id + CLS.GRID_ID, this.parent.element);
|
@@ -210,7 +207,7 @@ var DetailsView = /** @class */ (function () {
|
|
210
207
|
field: 'name', headerText: getLocaleText(this.parent, 'Name'), width: 'auto', minWidth: 120, headerTextAlign: 'Left',
|
211
208
|
template: initializeCSPTemplate(function (data) {
|
212
209
|
var name = enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(data.name) : data.name;
|
213
|
-
return "<div class=\"e-fe-text\">" + name + "</div><div class=\"e-fe-date\">" + data._fm_modified + "</div
|
210
|
+
return "<div class=\"e-fe-text\">" + name + "</div><div class=\"e-fe-date\">" + data._fm_modified + "</div><span class=\"e-fe-size\">" + data.size + "</span>";
|
214
211
|
})
|
215
212
|
}
|
216
213
|
];
|
@@ -220,7 +217,7 @@ var DetailsView = /** @class */ (function () {
|
|
220
217
|
this.adjustWidth(columns, 'name');
|
221
218
|
var _loop_1 = function (i, len) {
|
222
219
|
columns[i].headerText = getLocaleText(this_1.parent, columns[i].headerText);
|
223
|
-
if (columns[i].field === 'name' && !isNOU(columns[i].template)) {
|
220
|
+
if (columns[i].field === 'name' && !isNOU(columns[i].template) && !(typeof columns[i].template === 'function')) {
|
224
221
|
var template_1 = columns[i].template;
|
225
222
|
columns[i].template = initializeCSPTemplate(function (data) {
|
226
223
|
var name = enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(data.name) : data.name;
|
@@ -1271,12 +1268,14 @@ var DetailsView = /** @class */ (function () {
|
|
1271
1268
|
eventName: 'keydown'
|
1272
1269
|
});
|
1273
1270
|
EventHandler.add(this.gridObj.element, 'blur', this.removeFocus, this);
|
1271
|
+
EventHandler.add(this.parent.element, 'focusout', this.onBlur, this);
|
1274
1272
|
};
|
1275
1273
|
DetailsView.prototype.unWireEvents = function () {
|
1276
1274
|
this.wireClickEvent(false);
|
1277
1275
|
this.keyboardModule.destroy();
|
1278
1276
|
this.keyboardDownModule.destroy();
|
1279
1277
|
EventHandler.remove(this.gridObj.element, 'blur', this.removeFocus);
|
1278
|
+
EventHandler.remove(this.parent.element, 'focusout', this.onBlur);
|
1280
1279
|
};
|
1281
1280
|
DetailsView.prototype.wireClickEvent = function (toBind) {
|
1282
1281
|
if (toBind) {
|
@@ -1326,6 +1325,19 @@ var DetailsView = /** @class */ (function () {
|
|
1326
1325
|
DetailsView.prototype.removeFocus = function () {
|
1327
1326
|
this.addFocus(null);
|
1328
1327
|
};
|
1328
|
+
DetailsView.prototype.onBlur = function (e) {
|
1329
|
+
if ((e.relatedTarget !== null && closest(e.relatedTarget, '.e-grid') !== e.relatedTarget)) {
|
1330
|
+
return;
|
1331
|
+
}
|
1332
|
+
if (!isNOU(this.gridObj.element)) {
|
1333
|
+
var thElements = this.gridObj.element.querySelectorAll('th');
|
1334
|
+
for (var i = 0; i < thElements.length; i++) {
|
1335
|
+
if (thElements[i].classList.contains('e-focus')) {
|
1336
|
+
this.addFocus(null);
|
1337
|
+
}
|
1338
|
+
}
|
1339
|
+
}
|
1340
|
+
};
|
1329
1341
|
DetailsView.prototype.getFocusedItemIndex = function () {
|
1330
1342
|
return (!isNOU(this.getFocusedItem())) ?
|
1331
1343
|
parseInt(this.getFocusedItem().getAttribute('data-rowindex'), 10) : null;
|
@@ -1374,6 +1386,8 @@ var DetailsView = /** @class */ (function () {
|
|
1374
1386
|
break;
|
1375
1387
|
}
|
1376
1388
|
};
|
1389
|
+
/* istanbul ignore next */
|
1390
|
+
// eslint:disable-next-line
|
1377
1391
|
DetailsView.prototype.keyupHandler = function (e) {
|
1378
1392
|
if (!this.isRendered) {
|
1379
1393
|
return;
|
@@ -1404,7 +1418,15 @@ var DetailsView = /** @class */ (function () {
|
|
1404
1418
|
this.performDelete();
|
1405
1419
|
break;
|
1406
1420
|
case 'enter':
|
1407
|
-
if (this.gridObj.selectedRowIndex === -1) {
|
1421
|
+
if (this.gridObj.selectedRowIndex === -1 && this.gridObj.allowSorting === true) {
|
1422
|
+
if (!e.target.classList.contains('e-fe-grid-icon')) {
|
1423
|
+
var direction = !e.target.getElementsByClassName('e-ascending').length ? 'Ascending' : 'Descending';
|
1424
|
+
var currentField = this.gridObj.getColumnByUid(e.target.querySelector('.e-headercelldiv').getAttribute('e-mappinguid')).field;
|
1425
|
+
this.gridObj.sortColumn(currentField, direction);
|
1426
|
+
if (!isNOU(this.getFocusedItem().nextSibling)) {
|
1427
|
+
this.getFocusedItem().nextSibling.setAttribute('tabindex', '0');
|
1428
|
+
}
|
1429
|
+
}
|
1408
1430
|
break;
|
1409
1431
|
}
|
1410
1432
|
rowData = this.gridObj.getRowsObject()[this.gridObj.selectedRowIndex].data;
|
@@ -1451,13 +1473,8 @@ var DetailsView = /** @class */ (function () {
|
|
1451
1473
|
else if (this.gridObj.selectedRowIndex !== -1 && e.action === 'tab') {
|
1452
1474
|
return;
|
1453
1475
|
}
|
1454
|
-
else if (!this.actionDivert) {
|
1455
|
-
this.addHeaderFocus();
|
1456
|
-
this.actionDivert = true;
|
1457
|
-
}
|
1458
1476
|
else {
|
1459
|
-
this.
|
1460
|
-
this.actionDivert = false;
|
1477
|
+
this.addHeaderFocus(e);
|
1461
1478
|
}
|
1462
1479
|
}
|
1463
1480
|
break;
|
@@ -1744,16 +1761,29 @@ var DetailsView = /** @class */ (function () {
|
|
1744
1761
|
addClass([itemElement], [CLS.FOCUS, CLS.FOCUSED]);
|
1745
1762
|
}
|
1746
1763
|
};
|
1747
|
-
DetailsView.prototype.addHeaderFocus = function () {
|
1764
|
+
DetailsView.prototype.addHeaderFocus = function (e) {
|
1748
1765
|
var treeFocus = select('.e-row', this.element);
|
1749
1766
|
this.gridObj.element.setAttribute('tabindex', '-1');
|
1750
|
-
var nameFocus
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
if (
|
1756
|
-
|
1767
|
+
var nameFocus;
|
1768
|
+
if (!isNOU(e.target) && e.target.classList.contains('e-defaultcursor')) {
|
1769
|
+
this.addFocus(0);
|
1770
|
+
nameFocus = e.target.nextElementSibling;
|
1771
|
+
}
|
1772
|
+
else if (!isNOU(this.gridObj.element.querySelector('.e-focus')) && (this.gridObj.element.querySelector('.e-focus').tagName === 'TH')) {
|
1773
|
+
nameFocus = this.gridObj.element.querySelector('.e-focus').nextElementSibling;
|
1774
|
+
this.addFocus(0);
|
1775
|
+
}
|
1776
|
+
else {
|
1777
|
+
nameFocus = select('th.e-fe-grid-icon', this.element);
|
1778
|
+
}
|
1779
|
+
if (!isNOU(nameFocus)) {
|
1780
|
+
nameFocus.setAttribute('tabindex', '0');
|
1781
|
+
nameFocus.focus();
|
1782
|
+
addClass([nameFocus], [CLS.FOCUS, CLS.FOCUSED]);
|
1783
|
+
treeFocus.setAttribute('tabindex', '0');
|
1784
|
+
if (treeFocus.tabIndex === 0 && nameFocus.tabIndex === 0) {
|
1785
|
+
removeClass([treeFocus], [CLS.FOCUS, CLS.FOCUSED]);
|
1786
|
+
}
|
1757
1787
|
}
|
1758
1788
|
};
|
1759
1789
|
DetailsView.prototype.getFocusedItem = function () {
|