@syncfusion/ej2-filemanager 20.2.43 → 20.2.44

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 : 20.2.43
3
+ * version : 20.2.44
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@20.2.39",
3
+ "_id": "@syncfusion/ej2-filemanager@20.2.43",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-pSNkVqHZj0VPjY765h5ob0u8iUm8sJ8tsMF+65a+M5t3brAXX38uFmngIsi8Ve+M7Gi9Q71Oo7TdVwYLSpsmOg==",
5
+ "_integrity": "sha512-EwmBAsM55z1uPSQOwyH7o2YefjYnyMU1pBpsXBEkh+cmZLFVUPhHwaNwQQ+C4CB9Xa7SpYsogJX4l7gyLZ7cLw==",
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-20.2.39.tgz",
29
- "_shasum": "47a71726c87a6a41e4269869913ea4a3c0d3b43d",
28
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-20.2.43.tgz",
29
+ "_shasum": "ef369cfe60b09ccc951bbc459b4a91841838c56b",
30
30
  "_spec": "@syncfusion/ej2-filemanager@*",
31
31
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
32
  "author": {
@@ -40,11 +40,11 @@
40
40
  "@syncfusion/ej2-base": "~20.2.43",
41
41
  "@syncfusion/ej2-buttons": "~20.2.43",
42
42
  "@syncfusion/ej2-data": "~20.2.43",
43
- "@syncfusion/ej2-grids": "~20.2.43",
44
- "@syncfusion/ej2-inputs": "~20.2.43",
43
+ "@syncfusion/ej2-grids": "~20.2.44",
44
+ "@syncfusion/ej2-inputs": "~20.2.44",
45
45
  "@syncfusion/ej2-layouts": "~20.2.43",
46
46
  "@syncfusion/ej2-lists": "~20.2.43",
47
- "@syncfusion/ej2-navigations": "~20.2.43",
47
+ "@syncfusion/ej2-navigations": "~20.2.44",
48
48
  "@syncfusion/ej2-popups": "~20.2.43",
49
49
  "@syncfusion/ej2-splitbuttons": "~20.2.43"
50
50
  },
@@ -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": "20.2.43",
70
+ "version": "20.2.44",
71
71
  "sideEffects": false
72
72
  }
@@ -143,6 +143,7 @@ export declare class FileManager extends Component<HTMLElement> implements INoti
143
143
  uploadedCount: number;
144
144
  isMac: boolean;
145
145
  oldView: string;
146
+ oldPath: string;
146
147
  /**
147
148
  * Specifies the AJAX settings of the file manager.
148
149
  *
@@ -595,6 +595,7 @@ export interface IFileManager extends Component<HTMLElement> {
595
595
  refreshLayout(): void;
596
596
  isMac: boolean;
597
597
  oldView: string;
598
+ oldPath: string;
598
599
  }
599
600
  /** @hidden */
600
601
  export interface ITreeView extends Component<HTMLElement> {
@@ -315,6 +315,8 @@ function readSuccess(parent, result, event) {
315
315
  parent.notify(events.selectionChanged, {});
316
316
  }
317
317
  onFailure(parent, result, 'read');
318
+ parent.setProperties({ path: parent.oldPath }, true);
319
+ parent.pathNames.pop();
318
320
  }
319
321
  if (parent.isDragDrop && parent.isDropEnd) {
320
322
  if (parent.droppedObjects.length !== 0) {
@@ -462,7 +462,7 @@ export function getImageUrl(parent, item) {
462
462
  imgUrl = baseUrl + '?path=' + parent.path + '&id=' + imgId;
463
463
  }
464
464
  else if (!isNOU(fPath)) {
465
- imgUrl = baseUrl + '?path=' + fPath.replace(/\\/g, '/') + fileName;
465
+ imgUrl = baseUrl + '?path=' + encodeURIComponent(fPath.replace(/\\/g, '/')) + fileName;
466
466
  }
467
467
  else {
468
468
  imgUrl = baseUrl + '?path=' + parent.path + fileName;
@@ -599,6 +599,7 @@ var DetailsView = /** @class */ (function () {
599
599
  var val = _this.parent.breadcrumbbarModule.searchObj.element.value;
600
600
  if (val === '' && !_this.parent.isFiltered) {
601
601
  var id = getValue('id', data);
602
+ _this.parent.oldPath = _this.parent.path;
602
603
  var newPath = _this.parent.path + (isNOU(id) ? name_2 : id) + '/';
603
604
  _this.parent.setProperties({ path: newPath }, true);
604
605
  _this.parent.pathNames.push(name_2);
@@ -855,6 +855,7 @@ var LargeIconsView = /** @class */ (function () {
855
855
  var val = _this.parent.breadcrumbbarModule.searchObj.element.value;
856
856
  if (val === '' && !_this.parent.isFiltered) {
857
857
  var id = getValue('id', details_1);
858
+ _this.parent.oldPath = _this.parent.path;
858
859
  var newPath = _this.parent.path + (isNOU(id) ? text : id) + '/';
859
860
  _this.parent.setProperties({ path: newPath }, true);
860
861
  _this.parent.pathNames.push(text);