@syncfusion/ej2-filemanager 19.4.50 → 19.4.51

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.
@@ -160,6 +160,9 @@ __decorate$5([
160
160
  __decorate$5([
161
161
  Property(true)
162
162
  ], NavigationPaneSettings.prototype, "visible", void 0);
163
+ __decorate$5([
164
+ Property('None')
165
+ ], NavigationPaneSettings.prototype, "sortOrder", void 0);
163
166
 
164
167
  var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
165
168
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -8116,6 +8119,7 @@ class NavigationPane {
8116
8119
  hasChildren: 'hasChild', iconCss: '_fm_icon', htmlAttributes: '_fm_htmlAttr', tooltip: 'name'
8117
8120
  },
8118
8121
  enableHtmlSanitizer: this.parent.enableHtmlSanitizer,
8122
+ sortOrder: this.parent.navigationPaneSettings.sortOrder,
8119
8123
  nodeSelecting: this.onNodeSelecting.bind(this),
8120
8124
  nodeSelected: this.onNodeSelected.bind(this),
8121
8125
  nodeExpanding: this.onNodeExpand.bind(this),
@@ -8506,6 +8510,9 @@ class NavigationPane {
8506
8510
  break;
8507
8511
  case 'navigationPaneSettings':
8508
8512
  read(this.parent, finalizeEnd, '/');
8513
+ if (e.oldProp.navigationPaneSettings.sortOrder !== e.newProp.navigationPaneSettings.sortOrder) {
8514
+ this.treeObj.sortOrder = e.newProp.navigationPaneSettings.sortOrder;
8515
+ }
8509
8516
  break;
8510
8517
  }
8511
8518
  }
@@ -8798,13 +8805,15 @@ class NavigationPane {
8798
8805
  removeActive(this.parent);
8799
8806
  break;
8800
8807
  case 'del':
8801
- this.updateItemData();
8802
- if (!hasEditAccess(this.parent.itemData[0])) {
8803
- createDeniedDialog(this.parent, this.parent.itemData[0], permissionEdit);
8804
- }
8805
- else {
8806
- this.removeNodes = [];
8807
- createDialog(this.parent, 'Delete');
8808
+ if (this.parent.pathId[0] !== this.activeNode.getAttribute('data-uid')) {
8809
+ this.updateItemData();
8810
+ if (!hasEditAccess(this.parent.itemData[0])) {
8811
+ createDeniedDialog(this.parent, this.parent.itemData[0], permissionEdit);
8812
+ }
8813
+ else {
8814
+ this.removeNodes = [];
8815
+ createDialog(this.parent, 'Delete');
8816
+ }
8808
8817
  }
8809
8818
  break;
8810
8819
  case 'ctrlC':