@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 34.1.31
3
+ * version : 34.1.33
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-filemanager",
3
- "version": "34.1.31",
3
+ "version": "34.1.33",
4
4
  "description": "Essential JS 2 FileManager Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,14 +10,14 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~34.1.30",
12
12
  "@syncfusion/ej2-buttons": "~34.1.30",
13
- "@syncfusion/ej2-data": "~34.1.29",
14
- "@syncfusion/ej2-grids": "~34.1.31",
15
- "@syncfusion/ej2-inputs": "~34.1.30",
13
+ "@syncfusion/ej2-data": "~34.1.32",
14
+ "@syncfusion/ej2-grids": "~34.1.33",
15
+ "@syncfusion/ej2-inputs": "~34.1.32",
16
16
  "@syncfusion/ej2-layouts": "~34.1.29",
17
17
  "@syncfusion/ej2-lists": "~34.1.30",
18
18
  "@syncfusion/ej2-navigations": "~34.1.31",
19
19
  "@syncfusion/ej2-popups": "~34.1.29",
20
- "@syncfusion/ej2-splitbuttons": "~34.1.31"
20
+ "@syncfusion/ej2-splitbuttons": "~34.1.33"
21
21
  },
22
22
  "devDependencies": {},
23
23
  "keywords": [
@@ -1513,11 +1513,15 @@ var DetailsView = /** @class */ (function () {
1513
1513
  case 'enter':
1514
1514
  if (this.gridObj.selectedRowIndex === -1 && this.gridObj.allowSorting === true) {
1515
1515
  if (!e.target.classList.contains('e-fe-grid-icon')) {
1516
- var direction = !e.target.getElementsByClassName('e-ascending').length ? 'Ascending' : 'Descending';
1517
- var currentField = this.gridObj.getColumnByUid(e.target.querySelector('.e-headercelldiv').getAttribute('e-mappinguid')).field;
1518
- this.gridObj.sortColumn(currentField, direction);
1519
- if (!isNOU(this.getFocusedItem().nextSibling)) {
1520
- this.getFocusedItem().nextSibling.setAttribute('tabindex', '0');
1516
+ var headerDiv = e.target.querySelector('.e-headercelldiv');
1517
+ if (headerDiv) {
1518
+ var mappingUid = headerDiv.getAttribute('data-mappinguid');
1519
+ var direction = !e.target.getElementsByClassName('e-ascending').length ? 'Ascending' : 'Descending';
1520
+ var currentField = this.gridObj.getColumnByUid(mappingUid).field;
1521
+ this.gridObj.sortColumn(currentField, direction);
1522
+ if (!isNOU(this.getFocusedItem().nextSibling)) {
1523
+ this.getFocusedItem().nextSibling.setAttribute('tabindex', '0');
1524
+ }
1521
1525
  }
1522
1526
  }
1523
1527
  break;
@@ -1749,6 +1753,14 @@ var DetailsView = /** @class */ (function () {
1749
1753
  this.gridObj.selectRows(selRowIndeces);
1750
1754
  this.addFocus(lItem);
1751
1755
  }
1756
+ else if (e.action === 'space' && this.isSelected(selRowIndeces, focIndex)) {
1757
+ var indexToRemove = selRowIndeces.indexOf(focIndex);
1758
+ if (indexToRemove > -1) {
1759
+ selRowIndeces.splice(indexToRemove, 1);
1760
+ this.gridObj.selectRows(selRowIndeces);
1761
+ this.addFocus(focIndex);
1762
+ }
1763
+ }
1752
1764
  else if (e.action === 'shiftSpace') {
1753
1765
  this.gridObj.selectRow(selIndex);
1754
1766
  }
@@ -1311,12 +1311,22 @@ var LargeIconsView = /** @class */ (function () {
1311
1311
  }
1312
1312
  };
1313
1313
  LargeIconsView.prototype.spaceKey = function (fItem) {
1314
- if (!isNOU(fItem) && !fItem.classList.contains(CLS.ACTIVE)) {
1315
- var fileSelectionArgs = this.triggerSelection('select', fItem);
1316
- if (fileSelectionArgs.cancel !== true) {
1317
- this.addActive(fItem);
1318
- this.parent.notify(events.selectionChanged, {});
1319
- this.triggerSelect('select', fItem);
1314
+ if (!isNOU(fItem)) {
1315
+ if (!fItem.classList.contains(CLS.ACTIVE)) {
1316
+ var fileSelectionArgs = this.triggerSelection('select', fItem);
1317
+ if (fileSelectionArgs.cancel !== true) {
1318
+ this.addActive(fItem);
1319
+ this.parent.notify(events.selectionChanged, {});
1320
+ this.triggerSelect('select', fItem);
1321
+ }
1322
+ }
1323
+ else {
1324
+ var fileSelectionArgs = this.triggerSelection('unselect', fItem);
1325
+ if (fileSelectionArgs.cancel !== true) {
1326
+ this.removeActive(fItem);
1327
+ this.parent.notify(events.selectionChanged, {});
1328
+ this.triggerSelect('unselect', fItem);
1329
+ }
1320
1330
  }
1321
1331
  }
1322
1332
  };
@@ -460,6 +460,7 @@ function onFolderDialogOpen(parent) {
460
460
  createInput(ele, getLocaleText(parent, 'Content-NewFolder'));
461
461
  }
462
462
  ele.parentElement.nextElementSibling.innerHTML = '';
463
+ ele.setAttribute('aria-invalid', 'false');
463
464
  ele.oninput = function () {
464
465
  onValidate(parent, ele);
465
466
  };
@@ -484,6 +485,7 @@ function onRenameDialogOpen(parent) {
484
485
  createInput(inputEle, getLocaleText(parent, 'Content-Rename'));
485
486
  }
486
487
  inputEle.parentElement.nextElementSibling.innerHTML = '';
488
+ inputEle.setAttribute('aria-invalid', 'false');
487
489
  inputEle.oninput = function () {
488
490
  onValidate(parent, inputEle);
489
491
  };
@@ -563,7 +565,7 @@ function getOptions(parent, text, e, details) {
563
565
  case 'NewFolder':
564
566
  options.dialogName = 'Create Folder';
565
567
  options.header = getLocaleText(parent, 'Header-NewFolder');
566
- options.content = '<input type="text" value="New folder" id="newname"><div class="e-fe-error"></div>';
568
+ 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>';
567
569
  options.buttons = [
568
570
  {
569
571
  buttonModel: { isPrimary: true, content: getLocaleText(parent, 'Button-Create') },
@@ -606,7 +608,7 @@ function getOptions(parent, text, e, details) {
606
608
  case 'Rename':
607
609
  options.dialogName = 'Rename';
608
610
  options.header = getLocaleText(parent, 'Header-Rename');
609
- options.content = '<input type="text" class="e-input" id="rename"><div class="e-fe-error"></div>';
611
+ 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>';
610
612
  options.buttons = [
611
613
  {
612
614
  buttonModel: { isPrimary: true, content: getLocaleText(parent, 'Button-Save') },
@@ -860,9 +862,11 @@ function onValidate(parent, ele) {
860
862
  addInvalid(parent, ele);
861
863
  }
862
864
  else if (ele.value === '') {
865
+ ele.setAttribute('aria-invalid', 'true');
863
866
  ele.parentElement.nextElementSibling.innerHTML = getLocaleText(parent, 'Validation-Empty');
864
867
  }
865
868
  else {
869
+ ele.setAttribute('aria-invalid', 'false');
866
870
  ele.parentElement.nextElementSibling.innerHTML = '';
867
871
  }
868
872
  }
@@ -890,6 +894,7 @@ function onSubmitValidate(parent, ele) {
890
894
  */
891
895
  function addInvalid(parent, ele) {
892
896
  var error = getLocaleText(parent, 'Validation-Invalid').replace('{0}', '"' + ele.value + '"');
897
+ ele.setAttribute('aria-invalid', 'true');
893
898
  if (parent.enableHtmlSanitizer) {
894
899
  ele.parentElement.nextElementSibling.textContent = error;
895
900
  }