@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.
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 19.4.50
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _filemanager from '@syncfusion/ej2-filemanager';
11
2
 
12
3
  export declare namespace ej {
package/package.json CHANGED
@@ -1,72 +1,72 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-filemanager@*",
3
- "_id": "@syncfusion/ej2-filemanager@19.4.48",
4
- "_inBundle": false,
5
- "_integrity": "sha512-X0K/Cjp5QertYxW0u7Pudh6eHENw0RQNcPc2iqwsq4G0jQAIHLvg1JD3vcLb2KeZXLyxbZ/A4nfp3Lp+tdITFg==",
6
- "_location": "/@syncfusion/ej2-filemanager",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-filemanager@*",
12
- "name": "@syncfusion/ej2-filemanager",
13
- "escapedName": "@syncfusion%2fej2-filemanager",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-filemanager",
23
- "/@syncfusion/ej2-pdfviewer",
24
- "/@syncfusion/ej2-react-filemanager",
25
- "/@syncfusion/ej2-richtexteditor",
26
- "/@syncfusion/ej2-vue-filemanager"
27
- ],
28
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-19.4.48.tgz",
29
- "_shasum": "7418712086c90cb46e9f8bb34fb59c1ef06fa9b3",
30
- "_spec": "@syncfusion/ej2-filemanager@*",
31
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
- "author": {
33
- "name": "Syncfusion Inc."
34
- },
35
- "bugs": {
36
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
37
- },
38
- "bundleDependencies": false,
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"
50
- },
51
- "deprecated": false,
52
- "description": "Essential JS 2 FileManager Component",
53
- "devDependencies": {},
54
- "es2015": "./dist/es6/ej2-filemanager.es2015.js",
55
- "homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
56
- "keywords": [
57
- "ej2",
58
- "syncfusion",
59
- "ej2-filemanager"
60
- ],
61
- "license": "SEE LICENSE IN license",
62
- "main": "./dist/ej2-filemanager.umd.min.js",
63
- "module": "./index.js",
64
- "name": "@syncfusion/ej2-filemanager",
65
- "repository": {
66
- "type": "git",
67
- "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
68
- },
69
- "typings": "index.d.ts",
70
- "version": "19.4.50",
71
- "sideEffects": false
72
- }
2
+ "_from": "@syncfusion/ej2-filemanager@*",
3
+ "_id": "@syncfusion/ej2-filemanager@19.4.48",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-X0K/Cjp5QertYxW0u7Pudh6eHENw0RQNcPc2iqwsq4G0jQAIHLvg1JD3vcLb2KeZXLyxbZ/A4nfp3Lp+tdITFg==",
6
+ "_location": "/@syncfusion/ej2-filemanager",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "@syncfusion/ej2-filemanager@*",
12
+ "name": "@syncfusion/ej2-filemanager",
13
+ "escapedName": "@syncfusion%2fej2-filemanager",
14
+ "scope": "@syncfusion",
15
+ "rawSpec": "*",
16
+ "saveSpec": null,
17
+ "fetchSpec": "*"
18
+ },
19
+ "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-filemanager",
23
+ "/@syncfusion/ej2-pdfviewer",
24
+ "/@syncfusion/ej2-react-filemanager",
25
+ "/@syncfusion/ej2-richtexteditor",
26
+ "/@syncfusion/ej2-vue-filemanager"
27
+ ],
28
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-19.4.48.tgz",
29
+ "_shasum": "7418712086c90cb46e9f8bb34fb59c1ef06fa9b3",
30
+ "_spec": "@syncfusion/ej2-filemanager@*",
31
+ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
+ "author": {
33
+ "name": "Syncfusion Inc."
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
37
+ },
38
+ "bundleDependencies": false,
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"
50
+ },
51
+ "deprecated": false,
52
+ "description": "Essential JS 2 FileManager Component",
53
+ "devDependencies": {},
54
+ "es2015": "./dist/es6/ej2-filemanager.es2015.js",
55
+ "homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
56
+ "keywords": [
57
+ "ej2",
58
+ "syncfusion",
59
+ "ej2-filemanager"
60
+ ],
61
+ "license": "SEE LICENSE IN license",
62
+ "main": "./dist/ej2-filemanager.umd.min.js",
63
+ "module": "./index.js",
64
+ "name": "@syncfusion/ej2-filemanager",
65
+ "repository": {
66
+ "type": "git",
67
+ "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
68
+ },
69
+ "typings": "index.d.ts",
70
+ "version": "19.4.51",
71
+ "sideEffects": false
72
+ }
@@ -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;
@@ -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 };