@syncfusion/ej2-filemanager 19.4.50 → 19.4.56

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 : 19.4.50
3
+ * version : 19.4.56
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@19.4.48",
3
+ "_id": "@syncfusion/ej2-filemanager@19.4.52",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-X0K/Cjp5QertYxW0u7Pudh6eHENw0RQNcPc2iqwsq4G0jQAIHLvg1JD3vcLb2KeZXLyxbZ/A4nfp3Lp+tdITFg==",
5
+ "_integrity": "sha512-QCUdr+xDveWgX7tGfF0VwiOXGkGo40NYFUovNlXFGtEZByVJTQiA80ORzrXAoU64Wo4B3cv5ihrEx4oCJEjb4A==",
6
6
  "_location": "/@syncfusion/ej2-filemanager",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -25,8 +25,8 @@
25
25
  "/@syncfusion/ej2-richtexteditor",
26
26
  "/@syncfusion/ej2-vue-filemanager"
27
27
  ],
28
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-19.4.48.tgz",
29
- "_shasum": "7418712086c90cb46e9f8bb34fb59c1ef06fa9b3",
28
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-19.4.52.tgz",
29
+ "_shasum": "e551e84db65f7784568edb6b6652da8fdff9c29d",
30
30
  "_spec": "@syncfusion/ej2-filemanager@*",
31
31
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
32
  "author": {
@@ -37,16 +37,16 @@
37
37
  },
38
38
  "bundleDependencies": false,
39
39
  "dependencies": {
40
- "@syncfusion/ej2-base": "~19.4.48",
41
- "@syncfusion/ej2-buttons": "~19.4.50",
42
- "@syncfusion/ej2-data": "~19.4.50",
43
- "@syncfusion/ej2-grids": "~19.4.50",
44
- "@syncfusion/ej2-inputs": "~19.4.48",
45
- "@syncfusion/ej2-layouts": "~19.4.48",
46
- "@syncfusion/ej2-lists": "~19.4.48",
47
- "@syncfusion/ej2-navigations": "~19.4.50",
48
- "@syncfusion/ej2-popups": "~19.4.50",
49
- "@syncfusion/ej2-splitbuttons": "~19.4.48"
40
+ "@syncfusion/ej2-base": "~19.4.52",
41
+ "@syncfusion/ej2-buttons": "~19.4.55",
42
+ "@syncfusion/ej2-data": "~19.4.54",
43
+ "@syncfusion/ej2-grids": "~19.4.56",
44
+ "@syncfusion/ej2-inputs": "~19.4.52",
45
+ "@syncfusion/ej2-layouts": "~19.4.52",
46
+ "@syncfusion/ej2-lists": "~19.4.55",
47
+ "@syncfusion/ej2-navigations": "~19.4.56",
48
+ "@syncfusion/ej2-popups": "~19.4.53",
49
+ "@syncfusion/ej2-splitbuttons": "~19.4.52"
50
50
  },
51
51
  "deprecated": false,
52
52
  "description": "Essential JS 2 FileManager Component",
@@ -67,6 +67,6 @@
67
67
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
68
68
  },
69
69
  "typings": "index.d.ts",
70
- "version": "19.4.50",
70
+ "version": "19.4.56",
71
71
  "sideEffects": false
72
72
  }
@@ -149,6 +149,8 @@ export declare const SUBMENU_ICON: string;
149
149
  /** @hidden */
150
150
  export declare const GRID_VIEW: string;
151
151
  /** @hidden */
152
+ export declare const GRID_CONTENT: string;
153
+ /** @hidden */
152
154
  export declare const ICON_VIEW: string;
153
155
  /** @hidden */
154
156
  export declare const ICON_OPEN: string;
@@ -149,6 +149,8 @@ export var SUBMENU_ICON = 'e-caret';
149
149
  /** @hidden */
150
150
  export var GRID_VIEW = 'e-content';
151
151
  /** @hidden */
152
+ export var GRID_CONTENT = 'e-gridcontent';
153
+ /** @hidden */
152
154
  export var ICON_VIEW = 'e-list-parent';
153
155
  /** @hidden */
154
156
  export var ICON_OPEN = 'e-icons e-fe-open';
@@ -106,6 +106,7 @@ export interface FileManagerModel extends ComponentModel{
106
106
  * maxWidth: '650px',
107
107
  * minWidth: '240px',
108
108
  * visible: true,
109
+ * sortOrder: 'None'
109
110
  * }
110
111
  */
111
112
  navigationPaneSettings?: NavigationPaneSettingsModel;
@@ -232,6 +232,7 @@ export declare class FileManager extends Component<HTMLElement> implements INoti
232
232
  * maxWidth: '650px',
233
233
  * minWidth: '240px',
234
234
  * visible: true,
235
+ * sortOrder: 'None'
235
236
  * }
236
237
  */
237
238
  navigationPaneSettings: NavigationPaneSettingsModel;
@@ -312,7 +312,7 @@ export function updateLayout(parent, view) {
312
312
  export function getTargetModule(parent, element) {
313
313
  var tartgetModule = '';
314
314
  if (element) {
315
- if (closest(element, '.e-gridcontent')) {
315
+ if (closest(element, '.' + CLS.ROOT + '.' + CLS.CONTROL + ' .' + CLS.GRID_CONTENT)) {
316
316
  tartgetModule = 'detailsview';
317
317
  }
318
318
  else if (closest(element, '.' + CLS.LARGE_ICONS)) {
@@ -74,6 +74,7 @@ var NavigationPane = /** @class */ (function () {
74
74
  hasChildren: 'hasChild', iconCss: '_fm_icon', htmlAttributes: '_fm_htmlAttr', tooltip: 'name'
75
75
  },
76
76
  enableHtmlSanitizer: this.parent.enableHtmlSanitizer,
77
+ sortOrder: this.parent.navigationPaneSettings.sortOrder,
77
78
  nodeSelecting: this.onNodeSelecting.bind(this),
78
79
  nodeSelected: this.onNodeSelected.bind(this),
79
80
  nodeExpanding: this.onNodeExpand.bind(this),
@@ -466,6 +467,9 @@ var NavigationPane = /** @class */ (function () {
466
467
  break;
467
468
  case 'navigationPaneSettings':
468
469
  read(this.parent, events.finalizeEnd, '/');
470
+ if (e.oldProp.navigationPaneSettings.sortOrder !== e.newProp.navigationPaneSettings.sortOrder) {
471
+ this.treeObj.sortOrder = e.newProp.navigationPaneSettings.sortOrder;
472
+ }
469
473
  break;
470
474
  }
471
475
  }
@@ -758,13 +762,15 @@ var NavigationPane = /** @class */ (function () {
758
762
  removeActive(this.parent);
759
763
  break;
760
764
  case 'del':
761
- this.updateItemData();
762
- if (!hasEditAccess(this.parent.itemData[0])) {
763
- createDeniedDialog(this.parent, this.parent.itemData[0], events.permissionEdit);
764
- }
765
- else {
766
- this.removeNodes = [];
767
- createDialog(this.parent, 'Delete');
765
+ if (this.parent.pathId[0] !== this.activeNode.getAttribute('data-uid')) {
766
+ this.updateItemData();
767
+ if (!hasEditAccess(this.parent.itemData[0])) {
768
+ createDeniedDialog(this.parent, this.parent.itemData[0], events.permissionEdit);
769
+ }
770
+ else {
771
+ this.removeNodes = [];
772
+ createDialog(this.parent, 'Delete');
773
+ }
768
774
  }
769
775
  break;
770
776
  case 'ctrlC':
@@ -26,4 +26,15 @@ export interface NavigationPaneSettingsModel {
26
26
  */
27
27
  visible?: boolean;
28
28
 
29
+ /**
30
+ * Specifies a value that indicates how to sort the folders in the navigation pane of the file manager component.
31
+ *
32
+ * If the sortOrder is Ascending, the folders are sorted in ascending order.
33
+ * If the sortOrder is Descending, the folders are sorted in descending order.
34
+ * If the sortOrder is None, the folders are not sorted.
35
+ *
36
+ * @default 'None'
37
+ */
38
+ sortOrder?: 'None' | 'Ascending' | 'Descending';
39
+
29
40
  }
@@ -21,4 +21,14 @@ export declare class NavigationPaneSettings extends ChildProperty<NavigationPane
21
21
  * @default true
22
22
  */
23
23
  visible: boolean;
24
+ /**
25
+ * Specifies a value that indicates how to sort the folders in the navigation pane of the file manager component.
26
+ *
27
+ * If the sortOrder is Ascending, the folders are sorted in ascending order.
28
+ * If the sortOrder is Descending, the folders are sorted in descending order.
29
+ * If the sortOrder is None, the folders are not sorted.
30
+ *
31
+ * @default 'None'
32
+ */
33
+ sortOrder: 'None' | 'Ascending' | 'Descending';
24
34
  }
@@ -35,6 +35,9 @@ var NavigationPaneSettings = /** @class */ (function (_super) {
35
35
  __decorate([
36
36
  Property(true)
37
37
  ], NavigationPaneSettings.prototype, "visible", void 0);
38
+ __decorate([
39
+ Property('None')
40
+ ], NavigationPaneSettings.prototype, "sortOrder", void 0);
38
41
  return NavigationPaneSettings;
39
42
  }(ChildProperty));
40
43
  export { NavigationPaneSettings };