@syncfusion/ej2-filemanager 34.1.31 → 34.1.33
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 +40 -13
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +40 -13
- 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 +5 -5
- package/src/file-manager/layout/details-view.js +17 -5
- package/src/file-manager/layout/large-icons-view.js +16 -6
- package/src/file-manager/pop-up/dialog.js +7 -2
|
@@ -4383,6 +4383,7 @@ function onFolderDialogOpen(parent) {
|
|
|
4383
4383
|
createInput(ele, getLocaleText(parent, 'Content-NewFolder'));
|
|
4384
4384
|
}
|
|
4385
4385
|
ele.parentElement.nextElementSibling.innerHTML = '';
|
|
4386
|
+
ele.setAttribute('aria-invalid', 'false');
|
|
4386
4387
|
ele.oninput = function () {
|
|
4387
4388
|
onValidate(parent, ele);
|
|
4388
4389
|
};
|
|
@@ -4407,6 +4408,7 @@ function onRenameDialogOpen(parent) {
|
|
|
4407
4408
|
createInput(inputEle, getLocaleText(parent, 'Content-Rename'));
|
|
4408
4409
|
}
|
|
4409
4410
|
inputEle.parentElement.nextElementSibling.innerHTML = '';
|
|
4411
|
+
inputEle.setAttribute('aria-invalid', 'false');
|
|
4410
4412
|
inputEle.oninput = function () {
|
|
4411
4413
|
onValidate(parent, inputEle);
|
|
4412
4414
|
};
|
|
@@ -4486,7 +4488,7 @@ function getOptions(parent, text, e, details) {
|
|
|
4486
4488
|
case 'NewFolder':
|
|
4487
4489
|
options.dialogName = 'Create Folder';
|
|
4488
4490
|
options.header = getLocaleText(parent, 'Header-NewFolder');
|
|
4489
|
-
options.content = '<input type="text" value="New folder" id="newname"><div class="e-fe-error"></div>';
|
|
4491
|
+
options.content = '<input type="text" value="New folder" id="newname" aria-invalid="false" aria-describedby="newname_error"><div id="newname_error" class="e-fe-error" role="alert"></div>';
|
|
4490
4492
|
options.buttons = [
|
|
4491
4493
|
{
|
|
4492
4494
|
buttonModel: { isPrimary: true, content: getLocaleText(parent, 'Button-Create') },
|
|
@@ -4529,7 +4531,7 @@ function getOptions(parent, text, e, details) {
|
|
|
4529
4531
|
case 'Rename':
|
|
4530
4532
|
options.dialogName = 'Rename';
|
|
4531
4533
|
options.header = getLocaleText(parent, 'Header-Rename');
|
|
4532
|
-
options.content = '<input type="text" class="e-input" id="rename"><div class="e-fe-error"></div>';
|
|
4534
|
+
options.content = '<input type="text" class="e-input" id="rename" aria-invalid="false" aria-describedby="rename_error"><div id="rename_error" class="e-fe-error" role="alert"></div>';
|
|
4533
4535
|
options.buttons = [
|
|
4534
4536
|
{
|
|
4535
4537
|
buttonModel: { isPrimary: true, content: getLocaleText(parent, 'Button-Save') },
|
|
@@ -4783,9 +4785,11 @@ function onValidate(parent, ele) {
|
|
|
4783
4785
|
addInvalid(parent, ele);
|
|
4784
4786
|
}
|
|
4785
4787
|
else if (ele.value === '') {
|
|
4788
|
+
ele.setAttribute('aria-invalid', 'true');
|
|
4786
4789
|
ele.parentElement.nextElementSibling.innerHTML = getLocaleText(parent, 'Validation-Empty');
|
|
4787
4790
|
}
|
|
4788
4791
|
else {
|
|
4792
|
+
ele.setAttribute('aria-invalid', 'false');
|
|
4789
4793
|
ele.parentElement.nextElementSibling.innerHTML = '';
|
|
4790
4794
|
}
|
|
4791
4795
|
}
|
|
@@ -4813,6 +4817,7 @@ function onSubmitValidate(parent, ele) {
|
|
|
4813
4817
|
*/
|
|
4814
4818
|
function addInvalid(parent, ele) {
|
|
4815
4819
|
var error = getLocaleText(parent, 'Validation-Invalid').replace('{0}', '"' + ele.value + '"');
|
|
4820
|
+
ele.setAttribute('aria-invalid', 'true');
|
|
4816
4821
|
if (parent.enableHtmlSanitizer) {
|
|
4817
4822
|
ele.parentElement.nextElementSibling.textContent = error;
|
|
4818
4823
|
}
|
|
@@ -6246,12 +6251,22 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
|
6246
6251
|
}
|
|
6247
6252
|
};
|
|
6248
6253
|
LargeIconsView.prototype.spaceKey = function (fItem) {
|
|
6249
|
-
if (!isNullOrUndefined(fItem)
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6254
|
+
if (!isNullOrUndefined(fItem)) {
|
|
6255
|
+
if (!fItem.classList.contains(ACTIVE)) {
|
|
6256
|
+
var fileSelectionArgs = this.triggerSelection('select', fItem);
|
|
6257
|
+
if (fileSelectionArgs.cancel !== true) {
|
|
6258
|
+
this.addActive(fItem);
|
|
6259
|
+
this.parent.notify(selectionChanged, {});
|
|
6260
|
+
this.triggerSelect('select', fItem);
|
|
6261
|
+
}
|
|
6262
|
+
}
|
|
6263
|
+
else {
|
|
6264
|
+
var fileSelectionArgs = this.triggerSelection('unselect', fItem);
|
|
6265
|
+
if (fileSelectionArgs.cancel !== true) {
|
|
6266
|
+
this.removeActive(fItem);
|
|
6267
|
+
this.parent.notify(selectionChanged, {});
|
|
6268
|
+
this.triggerSelect('unselect', fItem);
|
|
6269
|
+
}
|
|
6255
6270
|
}
|
|
6256
6271
|
}
|
|
6257
6272
|
};
|
|
@@ -12842,11 +12857,15 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
|
12842
12857
|
case 'enter':
|
|
12843
12858
|
if (this.gridObj.selectedRowIndex === -1 && this.gridObj.allowSorting === true) {
|
|
12844
12859
|
if (!e.target.classList.contains('e-fe-grid-icon')) {
|
|
12845
|
-
var
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
this.
|
|
12860
|
+
var headerDiv = e.target.querySelector('.e-headercelldiv');
|
|
12861
|
+
if (headerDiv) {
|
|
12862
|
+
var mappingUid = headerDiv.getAttribute('data-mappinguid');
|
|
12863
|
+
var direction = !e.target.getElementsByClassName('e-ascending').length ? 'Ascending' : 'Descending';
|
|
12864
|
+
var currentField = this.gridObj.getColumnByUid(mappingUid).field;
|
|
12865
|
+
this.gridObj.sortColumn(currentField, direction);
|
|
12866
|
+
if (!isNullOrUndefined(this.getFocusedItem().nextSibling)) {
|
|
12867
|
+
this.getFocusedItem().nextSibling.setAttribute('tabindex', '0');
|
|
12868
|
+
}
|
|
12850
12869
|
}
|
|
12851
12870
|
}
|
|
12852
12871
|
break;
|
|
@@ -13078,6 +13097,14 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
|
13078
13097
|
this.gridObj.selectRows(selRowIndeces);
|
|
13079
13098
|
this.addFocus(lItem);
|
|
13080
13099
|
}
|
|
13100
|
+
else if (e.action === 'space' && this.isSelected(selRowIndeces, focIndex)) {
|
|
13101
|
+
var indexToRemove = selRowIndeces.indexOf(focIndex);
|
|
13102
|
+
if (indexToRemove > -1) {
|
|
13103
|
+
selRowIndeces.splice(indexToRemove, 1);
|
|
13104
|
+
this.gridObj.selectRows(selRowIndeces);
|
|
13105
|
+
this.addFocus(focIndex);
|
|
13106
|
+
}
|
|
13107
|
+
}
|
|
13081
13108
|
else if (e.action === 'shiftSpace') {
|
|
13082
13109
|
this.gridObj.selectRow(selIndex);
|
|
13083
13110
|
}
|