@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.
@@ -266,6 +266,9 @@ var NavigationPaneSettings = /** @__PURE__ @class */ (function (_super) {
266
266
  __decorate$5([
267
267
  Property(true)
268
268
  ], NavigationPaneSettings.prototype, "visible", void 0);
269
+ __decorate$5([
270
+ Property('None')
271
+ ], NavigationPaneSettings.prototype, "sortOrder", void 0);
269
272
  return NavigationPaneSettings;
270
273
  }(ChildProperty));
271
274
 
@@ -8300,6 +8303,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8300
8303
  hasChildren: 'hasChild', iconCss: '_fm_icon', htmlAttributes: '_fm_htmlAttr', tooltip: 'name'
8301
8304
  },
8302
8305
  enableHtmlSanitizer: this.parent.enableHtmlSanitizer,
8306
+ sortOrder: this.parent.navigationPaneSettings.sortOrder,
8303
8307
  nodeSelecting: this.onNodeSelecting.bind(this),
8304
8308
  nodeSelected: this.onNodeSelected.bind(this),
8305
8309
  nodeExpanding: this.onNodeExpand.bind(this),
@@ -8692,6 +8696,9 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8692
8696
  break;
8693
8697
  case 'navigationPaneSettings':
8694
8698
  read(this.parent, finalizeEnd, '/');
8699
+ if (e.oldProp.navigationPaneSettings.sortOrder !== e.newProp.navigationPaneSettings.sortOrder) {
8700
+ this.treeObj.sortOrder = e.newProp.navigationPaneSettings.sortOrder;
8701
+ }
8695
8702
  break;
8696
8703
  }
8697
8704
  }
@@ -8984,13 +8991,15 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8984
8991
  removeActive(this.parent);
8985
8992
  break;
8986
8993
  case 'del':
8987
- this.updateItemData();
8988
- if (!hasEditAccess(this.parent.itemData[0])) {
8989
- createDeniedDialog(this.parent, this.parent.itemData[0], permissionEdit);
8990
- }
8991
- else {
8992
- this.removeNodes = [];
8993
- createDialog(this.parent, 'Delete');
8994
+ if (this.parent.pathId[0] !== this.activeNode.getAttribute('data-uid')) {
8995
+ this.updateItemData();
8996
+ if (!hasEditAccess(this.parent.itemData[0])) {
8997
+ createDeniedDialog(this.parent, this.parent.itemData[0], permissionEdit);
8998
+ }
8999
+ else {
9000
+ this.removeNodes = [];
9001
+ createDialog(this.parent, 'Delete');
9002
+ }
8994
9003
  }
8995
9004
  break;
8996
9005
  case 'ctrlC':