@syncfusion/ej2-filemanager 19.4.43 → 19.4.47

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.43
3
+ * version : 19.4.47
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.42",
3
+ "_id": "@syncfusion/ej2-filemanager@19.4.43",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-1IPNHqxz6MlyoefNUbo/hxHTHTUB94EcY+G1HCd27JfInXYy9ogD5JcWLVyEr9+DDNDSOq3lqHf/ARKLwmc4NA==",
5
+ "_integrity": "sha512-fH3Q1fOFz+gttAUrCzQyH7C8xF93aZRLGdwHR+N3wMY3DheHUl7TW/swq4N+4EGlds0aq4qBXHIH2sm2w/ioIQ==",
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.42.tgz",
29
- "_shasum": "10afd89bb64134c599dd1f45f1ef94ed1f1497e0",
28
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-19.4.43.tgz",
29
+ "_shasum": "92dd7a5c453ed3b7ae2b40e9b5dd9fff88720219",
30
30
  "_spec": "@syncfusion/ej2-filemanager@*",
31
31
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
32
  "author": {
@@ -39,14 +39,14 @@
39
39
  "dependencies": {
40
40
  "@syncfusion/ej2-base": "~19.4.42",
41
41
  "@syncfusion/ej2-buttons": "~19.4.42",
42
- "@syncfusion/ej2-data": "~19.4.42",
43
- "@syncfusion/ej2-grids": "~19.4.43",
44
- "@syncfusion/ej2-inputs": "~19.4.43",
45
- "@syncfusion/ej2-layouts": "~19.4.43",
42
+ "@syncfusion/ej2-data": "~19.4.47",
43
+ "@syncfusion/ej2-grids": "~19.4.47",
44
+ "@syncfusion/ej2-inputs": "~19.4.47",
45
+ "@syncfusion/ej2-layouts": "~19.4.47",
46
46
  "@syncfusion/ej2-lists": "~19.4.38",
47
- "@syncfusion/ej2-navigations": "~19.4.41",
48
- "@syncfusion/ej2-popups": "~19.4.41",
49
- "@syncfusion/ej2-splitbuttons": "~19.4.40",
47
+ "@syncfusion/ej2-navigations": "~19.4.47",
48
+ "@syncfusion/ej2-popups": "~19.4.47",
49
+ "@syncfusion/ej2-splitbuttons": "~19.4.47",
50
50
  "selenium-webdriver": "^4.0.0-alpha.1"
51
51
  },
52
52
  "deprecated": false,
@@ -68,6 +68,6 @@
68
68
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
69
69
  },
70
70
  "typings": "index.d.ts",
71
- "version": "19.4.43",
71
+ "version": "19.4.47",
72
72
  "sideEffects": false
73
73
  }
@@ -106,6 +106,7 @@ export declare class FileManager extends Component<HTMLElement> implements INoti
106
106
  currentItemText: string;
107
107
  renameText: string;
108
108
  isFiltered: boolean;
109
+ isSortByClicked: boolean;
109
110
  enablePaste: boolean;
110
111
  splitterObj: Splitter;
111
112
  persistData: boolean;
@@ -77,6 +77,8 @@ var FileManager = /** @class */ (function (_super) {
77
77
  _this.folderPath = '';
78
78
  _this.isSameAction = false;
79
79
  _this.isFiltered = false;
80
+ // Specifies whether the sort by option is clicked or not.
81
+ _this.isSortByClicked = false;
80
82
  _this.enablePaste = false;
81
83
  _this.persistData = false;
82
84
  _this.retryArgs = [];
@@ -543,6 +543,7 @@ export interface IFileManager extends Component<HTMLElement> {
543
543
  isCut: boolean;
544
544
  filterData: Object;
545
545
  isFiltered: boolean;
546
+ isSortByClicked: boolean;
546
547
  isLayoutChange: boolean;
547
548
  isSearchCut: boolean;
548
549
  isPasteError: boolean;
@@ -267,7 +267,13 @@ export function searchWordHandler(parent, value, isLayoutChange) {
267
267
  }
268
268
  else {
269
269
  if (!parent.isFiltered) {
270
- read(parent, isLayoutChange ? events.layoutChange : events.search, parent.path);
270
+ if (parent.isSortByClicked) {
271
+ parent.notify(events.layoutChange, { files: parent.largeiconsviewModule.items });
272
+ parent.isSortByClicked = false;
273
+ }
274
+ else {
275
+ read(parent, isLayoutChange ? events.layoutChange : events.search, parent.path);
276
+ }
271
277
  }
272
278
  else {
273
279
  filter(parent, events.layoutChange);
@@ -678,6 +684,7 @@ export function getCssClass(parent, css) {
678
684
  */
679
685
  export function sortbyClickHandler(parent, args) {
680
686
  var tick;
687
+ parent.isSortByClicked = true;
681
688
  if (args.item.id.indexOf('ascending') !== -1 || args.item.id.indexOf('descending') !== -1 || args.item.id.indexOf('none') !== -1) {
682
689
  tick = true;
683
690
  }
@@ -13,7 +13,7 @@ export declare class LargeIconsView {
13
13
  private keyConfigs;
14
14
  private isInteraction;
15
15
  private itemList;
16
- private items;
16
+ items: Object[];
17
17
  private clickObj;
18
18
  private perRow;
19
19
  private startItem;
@@ -184,6 +184,7 @@ var NavigationPane = /** @class */ (function () {
184
184
  NavigationPane.prototype.onNodeSelecting = function (args) {
185
185
  if (!args.isInteracted && !this.isRightClick && !this.isPathDragged && !this.isRenameParent || this.restrictSelecting) {
186
186
  this.restrictSelecting = false;
187
+ this.isNodeClickCalled = false;
187
188
  return;
188
189
  }
189
190
  if (!this.renameParent) {
@@ -191,13 +192,12 @@ var NavigationPane = /** @class */ (function () {
191
192
  // eslint-disable-next-line
192
193
  var nodeData = this.getTreeData(getValue('id', args.nodeData));
193
194
  var eventArgs = { cancel: false, fileDetails: nodeData[0], module: 'NavigationPane' };
194
- delete eventArgs.cancel;
195
195
  this.parent.trigger('fileOpen', eventArgs);
196
196
  args.cancel = eventArgs.cancel;
197
197
  if (args.cancel) {
198
- this.restrictSelecting = true;
198
+ this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0] != args.node.getAttribute('data-uid') : false;
199
199
  this.treeObj.selectedNodes = this.isNodeClickCalled ? this.previousSelected : this.treeObj.selectedNodes;
200
- this.isNodeClickCalled = false;
200
+ this.previousSelected = this.treeObj.selectedNodes;
201
201
  if (!isNOU(this.parent) && !isNOU(this.parent.contextmenuModule)) {
202
202
  this.parent.contextmenuModule.contextMenu.enableItems(['Open'], true);
203
203
  }
@@ -272,11 +272,11 @@ var NavigationPane = /** @class */ (function () {
272
272
  };
273
273
  NavigationPane.prototype.onNodeClicked = function (args) {
274
274
  this.parent.activeModule = 'navigationpane';
275
+ this.previousSelected = this.treeObj.selectedNodes;
275
276
  this.activeNode = args.node;
276
277
  if ((args.event.which === 3) && (args.node.getAttribute('data-uid') !== this.treeObj.selectedNodes[0])) {
277
278
  this.isRightClick = true;
278
279
  this.isNodeClickCalled = true;
279
- this.previousSelected = this.treeObj.selectedNodes;
280
280
  this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
281
281
  }
282
282
  else if (args.node.getAttribute('data-uid') === this.treeObj.selectedNodes[0] && this.parent.selectedItems.length !== 0) {
@@ -79,9 +79,6 @@ var ContextMenu = /** @class */ (function () {
79
79
  target = this.parent.navigationpaneModule.activeNode.getElementsByClassName(CLS.FULLROW)[0];
80
80
  this.menuTarget = this.targetNodeElement = target;
81
81
  }
82
- if (target.classList.contains(CLS.FULLROW)) {
83
- this.parent.selectedItems.length = 0;
84
- }
85
82
  this.targetElement = this.parent.view === 'Details' ? closest(target, 'tr.e-row') : target;
86
83
  var view = this.getTargetView(target);
87
84
  this.updateActiveModule();