@syncfusion/ej2-filemanager 22.1.36 → 22.1.38

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 : 22.1.36
3
+ * version : 22.1.38
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@21.1.36",
3
+ "_id": "@syncfusion/ej2-filemanager@22.1.36",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-G2eLS96UgRZMiJc+S01TN8d8Ufty71NesVFxJNQ+SJ3tgwAur/GWxATHKY13mhsHwT0kjZK0XzNxrKf/6Py9Qg==",
5
+ "_integrity": "sha512-SoWL37HOIqHFOmHZ5vJRJOpjDWkJ4CpVYOZYUzrWhmDTdBU70KdFU2J9pn8LOf1YGiIRw28oYB13ol7UBoJZiA==",
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": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-21.1.36.tgz",
29
- "_shasum": "3c428800a7f425959d2fe1b53ec67bd347a879b3",
28
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-22.1.36.tgz",
29
+ "_shasum": "38398966ad493ba2f7c224c31ee7c1c65caf60fc",
30
30
  "_spec": "@syncfusion/ej2-filemanager@*",
31
31
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
32
32
  "author": {
@@ -37,16 +37,16 @@
37
37
  },
38
38
  "bundleDependencies": false,
39
39
  "dependencies": {
40
- "@syncfusion/ej2-base": "~22.1.34",
41
- "@syncfusion/ej2-buttons": "~21.1.36",
42
- "@syncfusion/ej2-data": "~22.1.36",
43
- "@syncfusion/ej2-grids": "~22.1.36",
44
- "@syncfusion/ej2-inputs": "~22.1.34",
45
- "@syncfusion/ej2-layouts": "~22.1.36",
40
+ "@syncfusion/ej2-base": "~22.1.38",
41
+ "@syncfusion/ej2-buttons": "~22.1.38",
42
+ "@syncfusion/ej2-data": "~22.1.38",
43
+ "@syncfusion/ej2-grids": "~22.1.38",
44
+ "@syncfusion/ej2-inputs": "~22.1.38",
45
+ "@syncfusion/ej2-layouts": "~22.1.37",
46
46
  "@syncfusion/ej2-lists": "~22.1.34",
47
- "@syncfusion/ej2-navigations": "~22.1.36",
48
- "@syncfusion/ej2-popups": "~22.1.36",
49
- "@syncfusion/ej2-splitbuttons": "~22.1.34"
47
+ "@syncfusion/ej2-navigations": "~22.1.38",
48
+ "@syncfusion/ej2-popups": "~22.1.38",
49
+ "@syncfusion/ej2-splitbuttons": "~22.1.37"
50
50
  },
51
51
  "deprecated": false,
52
52
  "description": "Essential JS 2 FileManager Component",
@@ -76,6 +76,6 @@
76
76
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
77
77
  },
78
78
  "typings": "index.d.ts",
79
- "version": "22.1.36",
79
+ "version": "22.1.38",
80
80
  "sideEffects": false
81
81
  }
@@ -428,7 +428,7 @@ function renameSuccess(parent, result, path) {
428
428
  }
429
429
  var args = { action: 'rename', result: result };
430
430
  parent.trigger('success', args);
431
- parent.renamedItem = result.files[0];
431
+ parent.renamedItem = Array.isArray(result.files) ? result.files[0] : result.files;
432
432
  if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
433
433
  parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
434
434
  }
@@ -159,7 +159,8 @@ var NavigationPane = /** @class */ (function () {
159
159
  NavigationPane.prototype.addChild = function (files, target, prevent) {
160
160
  // eslint-disable-next-line
161
161
  var directories = getDirectories(files);
162
- if (directories.length > 0) {
162
+ if (directories.length > 0 &&
163
+ (directories[0].filterPath == null || this.getTreeData(target)[0].filterPath == null || directories[0].filterPath !== this.getTreeData(target)[0].filterPath)) {
163
164
  var length_1 = 0;
164
165
  // eslint-disable-next-line
165
166
  var folders = directories;
@@ -842,8 +842,6 @@ function onReSubmit(parent) {
842
842
  }
843
843
  var newPath = (parent.activeModule === 'navigationpane') ? getValue('filterPath', parent.itemData[0]).replace(/\\/g, '/') : parent.path;
844
844
  parent.renamedId = getValue('id', parent.itemData[0]);
845
- parent.renamedId = getValue('id', parent.itemData[0]);
846
- parent.renamedId = getValue('id', parent.itemData[0]);
847
845
  if (parent.isFile) {
848
846
  var oldExtension = (oIndex === -1) ? '' : parent.currentItemText.substr(oIndex);
849
847
  var nIndex = text.lastIndexOf('.');