@syncfusion/ej2-filemanager 20.1.52-10459 → 20.1.52-10460

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.
Files changed (203) hide show
  1. package/.eslintrc.json +3 -20
  2. package/CHANGELOG.md +410 -0
  3. package/README.md +43 -54
  4. package/dist/ej2-filemanager.umd.min.js +10 -1
  5. package/dist/ej2-filemanager.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-filemanager.es2015.js +659 -2353
  7. package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
  8. package/dist/es6/ej2-filemanager.es5.js +708 -2421
  9. package/dist/es6/ej2-filemanager.es5.js.map +1 -1
  10. package/dist/global/ej2-filemanager.min.js +10 -1
  11. package/dist/global/ej2-filemanager.min.js.map +1 -1
  12. package/dist/global/index.d.ts +9 -0
  13. package/helpers/e2e/filemanagerHelper.js +166 -183
  14. package/package.json +71 -71
  15. package/src/file-manager/actions/breadcrumb-bar.js +5 -1
  16. package/src/file-manager/actions/index.d.ts +0 -1
  17. package/src/file-manager/actions/index.js +0 -1
  18. package/src/file-manager/actions/toolbar.d.ts +0 -1
  19. package/src/file-manager/actions/toolbar.js +17 -129
  20. package/src/file-manager/base/file-manager-model.d.ts +28 -154
  21. package/src/file-manager/base/file-manager.d.ts +27 -176
  22. package/src/file-manager/base/file-manager.js +28 -244
  23. package/src/file-manager/base/interface.d.ts +3 -329
  24. package/src/file-manager/base/interface.js +1 -0
  25. package/src/file-manager/common/operations.d.ts +0 -7
  26. package/src/file-manager/common/operations.js +185 -830
  27. package/src/file-manager/common/utility.d.ts +3 -46
  28. package/src/file-manager/common/utility.js +73 -249
  29. package/src/file-manager/index.d.ts +0 -1
  30. package/src/file-manager/index.js +0 -1
  31. package/src/file-manager/layout/details-view.d.ts +0 -10
  32. package/src/file-manager/layout/details-view.js +94 -203
  33. package/src/file-manager/layout/large-icons-view.d.ts +2 -4
  34. package/src/file-manager/layout/large-icons-view.js +72 -121
  35. package/src/file-manager/layout/navigation-pane.d.ts +0 -2
  36. package/src/file-manager/layout/navigation-pane.js +73 -97
  37. package/src/file-manager/models/column-model.d.ts +5 -23
  38. package/src/file-manager/models/column.d.ts +2 -21
  39. package/src/file-manager/models/column.js +0 -6
  40. package/src/file-manager/models/default-locale.js +1 -0
  41. package/src/file-manager/models/details-view-settings-model.d.ts +1 -1
  42. package/src/file-manager/models/details-view-settings.js +3 -8
  43. package/src/file-manager/models/search-settings.d.ts +0 -5
  44. package/src/file-manager/models/toolbar-settings-model.d.ts +2 -177
  45. package/src/file-manager/models/toolbar-settings.d.ts +2 -157
  46. package/src/file-manager/models/toolbar-settings.js +2 -64
  47. package/src/file-manager/models/upload-settings-model.d.ts +0 -13
  48. package/src/file-manager/models/upload-settings.d.ts +0 -12
  49. package/src/file-manager/models/upload-settings.js +0 -3
  50. package/src/file-manager/pop-up/context-menu.d.ts +1 -2
  51. package/src/file-manager/pop-up/context-menu.js +36 -111
  52. package/src/file-manager/pop-up/dialog.d.ts +2 -1
  53. package/src/file-manager/pop-up/dialog.js +40 -19
  54. package/src/global.js +1 -1
  55. package/styles/bootstrap-dark.css +665 -371
  56. package/styles/bootstrap-dark.scss +1 -17
  57. package/styles/bootstrap.css +644 -353
  58. package/styles/bootstrap.scss +1 -17
  59. package/styles/bootstrap4.css +680 -381
  60. package/styles/bootstrap4.scss +1 -17
  61. package/styles/bootstrap5-dark.css +694 -376
  62. package/styles/bootstrap5-dark.scss +1 -17
  63. package/styles/bootstrap5.css +695 -377
  64. package/styles/bootstrap5.scss +1 -17
  65. package/styles/fabric-dark.css +642 -358
  66. package/styles/fabric-dark.scss +1 -17
  67. package/styles/fabric.css +641 -357
  68. package/styles/fabric.scss +1 -17
  69. package/styles/file-manager/_all.scss +1 -1
  70. package/styles/file-manager/_bootstrap-dark-definition.scss +2 -6
  71. package/styles/file-manager/_bootstrap-definition.scss +2 -6
  72. package/styles/file-manager/_bootstrap4-definition.scss +2 -6
  73. package/styles/file-manager/_bootstrap5-definition.scss +15 -20
  74. package/styles/file-manager/_fabric-dark-definition.scss +2 -6
  75. package/styles/file-manager/_fabric-definition.scss +2 -6
  76. package/styles/file-manager/_fluent-definition.scss +15 -18
  77. package/styles/file-manager/_highcontrast-definition.scss +2 -6
  78. package/styles/file-manager/_highcontrast-light-definition.scss +2 -6
  79. package/styles/file-manager/_layout.scss +932 -369
  80. package/styles/file-manager/_material-dark-definition.scss +2 -7
  81. package/styles/file-manager/_material-definition.scss +2 -7
  82. package/styles/file-manager/_tailwind-definition.scss +16 -20
  83. package/styles/file-manager/_theme.scss +102 -123
  84. package/styles/file-manager/bootstrap-dark.css +665 -371
  85. package/styles/file-manager/bootstrap-dark.scss +1 -2
  86. package/styles/file-manager/bootstrap.css +644 -353
  87. package/styles/file-manager/bootstrap.scss +1 -2
  88. package/styles/file-manager/bootstrap4.css +680 -381
  89. package/styles/file-manager/bootstrap4.scss +1 -2
  90. package/styles/file-manager/bootstrap5-dark.css +694 -376
  91. package/styles/file-manager/bootstrap5-dark.scss +1 -2
  92. package/styles/file-manager/bootstrap5.css +695 -377
  93. package/styles/file-manager/bootstrap5.scss +1 -2
  94. package/styles/file-manager/fabric-dark.css +642 -358
  95. package/styles/file-manager/fabric-dark.scss +1 -2
  96. package/styles/file-manager/fabric.css +641 -357
  97. package/styles/file-manager/fabric.scss +1 -2
  98. package/styles/file-manager/fluent-dark.css +641 -356
  99. package/styles/file-manager/fluent-dark.scss +1 -2
  100. package/styles/file-manager/fluent.css +640 -355
  101. package/styles/file-manager/fluent.scss +1 -2
  102. package/styles/file-manager/highcontrast-light.css +644 -354
  103. package/styles/file-manager/highcontrast-light.scss +1 -2
  104. package/styles/file-manager/highcontrast.css +647 -377
  105. package/styles/file-manager/highcontrast.scss +1 -2
  106. package/styles/file-manager/icons/_bootstrap.scss +1 -0
  107. package/styles/file-manager/icons/_bootstrap4.scss +1 -0
  108. package/styles/file-manager/icons/_fabric-dark.scss +1 -0
  109. package/styles/file-manager/icons/_fabric.scss +1 -0
  110. package/styles/file-manager/material-dark.css +671 -392
  111. package/styles/file-manager/material-dark.scss +1 -2
  112. package/styles/file-manager/material.css +654 -391
  113. package/styles/file-manager/material.scss +1 -2
  114. package/styles/file-manager/tailwind-dark.css +667 -350
  115. package/styles/file-manager/tailwind-dark.scss +1 -2
  116. package/styles/file-manager/tailwind.css +667 -350
  117. package/styles/file-manager/tailwind.scss +1 -2
  118. package/styles/fluent-dark.css +641 -356
  119. package/styles/fluent-dark.scss +1 -17
  120. package/styles/fluent.css +640 -355
  121. package/styles/fluent.scss +1 -17
  122. package/styles/highcontrast-light.css +644 -354
  123. package/styles/highcontrast-light.scss +1 -17
  124. package/styles/highcontrast.css +647 -377
  125. package/styles/highcontrast.scss +1 -17
  126. package/styles/material-dark.css +671 -392
  127. package/styles/material-dark.scss +1 -17
  128. package/styles/material.css +654 -391
  129. package/styles/material.scss +1 -17
  130. package/styles/tailwind-dark.css +667 -350
  131. package/styles/tailwind-dark.scss +1 -17
  132. package/styles/tailwind.css +667 -350
  133. package/styles/tailwind.scss +1 -17
  134. package/dist/ej2-filemanager.min.js +0 -1
  135. package/src/file-manager/actions/virtualization.d.ts +0 -93
  136. package/src/file-manager/actions/virtualization.js +0 -279
  137. package/styles/bootstrap-dark-lite.css +0 -1058
  138. package/styles/bootstrap-dark-lite.scss +0 -16
  139. package/styles/bootstrap-lite.css +0 -1040
  140. package/styles/bootstrap-lite.scss +0 -16
  141. package/styles/bootstrap4-lite.css +0 -1068
  142. package/styles/bootstrap4-lite.scss +0 -16
  143. package/styles/bootstrap5-dark-lite.css +0 -1078
  144. package/styles/bootstrap5-dark-lite.scss +0 -16
  145. package/styles/bootstrap5-lite.css +0 -1078
  146. package/styles/bootstrap5-lite.scss +0 -16
  147. package/styles/bootstrap5.3-lite.css +0 -1035
  148. package/styles/bootstrap5.3-lite.scss +0 -16
  149. package/styles/bootstrap5.3.css +0 -1603
  150. package/styles/bootstrap5.3.scss +0 -17
  151. package/styles/fabric-dark-lite.css +0 -1039
  152. package/styles/fabric-dark-lite.scss +0 -16
  153. package/styles/fabric-lite.css +0 -1039
  154. package/styles/fabric-lite.scss +0 -16
  155. package/styles/file-manager/_bds-definition.scss +0 -236
  156. package/styles/file-manager/_bigger.scss +0 -758
  157. package/styles/file-manager/_bootstrap5.3-definition.scss +0 -242
  158. package/styles/file-manager/_fluent2-definition.scss +0 -255
  159. package/styles/file-manager/_fusionnew-definition.scss +0 -241
  160. package/styles/file-manager/_material3-dark-definition.scss +0 -1
  161. package/styles/file-manager/_material3-definition.scss +0 -235
  162. package/styles/file-manager/bootstrap5.3.css +0 -1603
  163. package/styles/file-manager/bootstrap5.3.scss +0 -17
  164. package/styles/file-manager/fluent2.css +0 -1886
  165. package/styles/file-manager/fluent2.scss +0 -17
  166. package/styles/file-manager/icons/_bds.scss +0 -235
  167. package/styles/file-manager/icons/_bootstrap5.3.scss +0 -235
  168. package/styles/file-manager/icons/_fluent2.scss +0 -235
  169. package/styles/file-manager/icons/_fusionnew.scss +0 -235
  170. package/styles/file-manager/icons/_material3-dark.scss +0 -1
  171. package/styles/file-manager/icons/_material3.scss +0 -235
  172. package/styles/file-manager/material3-dark.css +0 -1633
  173. package/styles/file-manager/material3-dark.scss +0 -18
  174. package/styles/file-manager/material3.css +0 -1635
  175. package/styles/file-manager/material3.scss +0 -18
  176. package/styles/fluent-dark-lite.css +0 -1037
  177. package/styles/fluent-dark-lite.scss +0 -16
  178. package/styles/fluent-lite.css +0 -1036
  179. package/styles/fluent-lite.scss +0 -16
  180. package/styles/fluent2-lite.css +0 -1272
  181. package/styles/fluent2-lite.scss +0 -16
  182. package/styles/fluent2.css +0 -1886
  183. package/styles/fluent2.scss +0 -17
  184. package/styles/highcontrast-light-lite.css +0 -1039
  185. package/styles/highcontrast-light-lite.scss +0 -16
  186. package/styles/highcontrast-lite.css +0 -1059
  187. package/styles/highcontrast-lite.scss +0 -16
  188. package/styles/material-dark-lite.css +0 -1092
  189. package/styles/material-dark-lite.scss +0 -16
  190. package/styles/material-lite.css +0 -1097
  191. package/styles/material-lite.scss +0 -16
  192. package/styles/material3-dark-lite.css +0 -1090
  193. package/styles/material3-dark-lite.scss +0 -16
  194. package/styles/material3-dark.css +0 -1633
  195. package/styles/material3-dark.scss +0 -19
  196. package/styles/material3-lite.css +0 -1092
  197. package/styles/material3-lite.scss +0 -16
  198. package/styles/material3.css +0 -1635
  199. package/styles/material3.scss +0 -19
  200. package/styles/tailwind-dark-lite.css +0 -1060
  201. package/styles/tailwind-dark-lite.scss +0 -16
  202. package/styles/tailwind-lite.css +0 -1060
  203. package/styles/tailwind-lite.scss +0 -16
@@ -4,10 +4,10 @@ import { KeyboardEvents, closest } from '@syncfusion/ej2-base';
4
4
  import { DataManager, Query } from '@syncfusion/ej2-data';
5
5
  import * as events from '../base/constant';
6
6
  import * as CLS from '../base/classes';
7
- import { read, Download, GetDetails, Delete, isFileSystemData } from '../common/operations';
7
+ import { read, Download, GetDetails, Delete } from '../common/operations';
8
8
  import { createDialog } from '../pop-up/dialog';
9
9
  import { updatePath, getPath, getDirectories } from '../common/utility';
10
- import { createVirtualDragElement, dragStopHandler, dragStartHandler, draggingHandler, getDirectoryPath, getModule, getPathId } from '../common/index';
10
+ import { createVirtualDragElement, dragStopHandler, dragStartHandler, draggingHandler, getDirectoryPath, getModule } from '../common/index';
11
11
  import { copyFiles, cutFiles, removeActive, pasteHandler, getParentPath, readDropPath } from '../common/index';
12
12
  import { hasEditAccess, createDeniedDialog, hasDownloadAccess, getAccessClass } from '../common/index';
13
13
  /**
@@ -20,7 +20,6 @@ var NavigationPane = /** @class */ (function () {
20
20
  * @param {IFileManager} parent - specifies the parent element.
21
21
  * @hidden
22
22
  */
23
- /* istanbul ignore next */
24
23
  function NavigationPane(parent) {
25
24
  this.removeNodes = [];
26
25
  this.moveNames = [];
@@ -29,8 +28,6 @@ var NavigationPane = /** @class */ (function () {
29
28
  this.isPathDragged = false;
30
29
  this.isRenameParent = false;
31
30
  this.isRightClick = false;
32
- this.isSameNodeClicked = false;
33
- this.isNodeExpandCalled = false;
34
31
  this.renameParent = null;
35
32
  // Specifies the previously selected nodes in the treeview control.
36
33
  this.previousSelected = null;
@@ -44,9 +41,9 @@ var NavigationPane = /** @class */ (function () {
44
41
  altEnter: 'alt+enter',
45
42
  esc: 'escape',
46
43
  del: 'delete',
47
- ctrlX: this.parent.isMac ? 'cmd+x' : 'ctrl+x',
48
- ctrlC: this.parent.isMac ? 'cmd+c' : 'ctrl+c',
49
- ctrlV: this.parent.isMac ? 'cmd+v' : 'ctrl+v',
44
+ ctrlX: 'ctrl+x',
45
+ ctrlC: 'ctrl+c',
46
+ ctrlV: 'ctrl+v',
50
47
  ctrlShiftN: 'ctrl+shift+n',
51
48
  shiftF10: 'shift+F10',
52
49
  f2: 'f2'
@@ -56,8 +53,10 @@ var NavigationPane = /** @class */ (function () {
56
53
  if (!isNOU(this.treeObj)) {
57
54
  return;
58
55
  }
56
+ // eslint-disable-next-line
59
57
  var rootData = getValue(this.parent.pathId[0], this.parent.feParent);
60
58
  setValue('_fm_icon', 'e-fe-folder', rootData);
59
+ // eslint-disable-next-line
61
60
  var attr = {};
62
61
  var id = getValue('id', rootData);
63
62
  if (!isNOU(id)) {
@@ -93,7 +92,10 @@ var NavigationPane = /** @class */ (function () {
93
92
  NavigationPane.prototype.addDragDrop = function () {
94
93
  var _this = this;
95
94
  if (!this.parent.isMobile && this.treeObj) {
96
- if (this.parent.allowDragAndDrop && isNOU(this.dragObj)) {
95
+ if (this.parent.allowDragAndDrop) {
96
+ if (this.dragObj) {
97
+ this.dragObj.destroy();
98
+ }
97
99
  this.dragObj = new Draggable(this.treeObj.element, {
98
100
  cursorAt: this.parent.dragCursorPosition,
99
101
  dragTarget: '.' + CLS.FULLROW,
@@ -105,13 +107,12 @@ var NavigationPane = /** @class */ (function () {
105
107
  },
106
108
  dragStop: dragStopHandler.bind(this, this.parent),
107
109
  enableTailMode: true,
108
- enableAutoScroll: false,
110
+ enableAutoScroll: true,
109
111
  helper: this.dragHelper.bind(this)
110
112
  });
111
113
  }
112
114
  else if (!this.parent.allowDragAndDrop && this.dragObj) {
113
115
  this.dragObj.destroy();
114
- this.dragObj = null;
115
116
  }
116
117
  }
117
118
  };
@@ -127,6 +128,7 @@ var NavigationPane = /** @class */ (function () {
127
128
  this.parent.activeElements = [dragLi];
128
129
  this.parent.dragNodes = [];
129
130
  getModule(this.parent, dragLi);
131
+ // eslint-disable-next-line
130
132
  this.parent.dragData = this.getTreeData(dragLi);
131
133
  this.parent.dragPath = this.getDragPath(dragLi, this.parent.dragData[0].name);
132
134
  this.parent.dragNodes.push(this.parent.dragData[0].name);
@@ -150,20 +152,18 @@ var NavigationPane = /** @class */ (function () {
150
152
  };
151
153
  this.parent.trigger('fileLoad', eventArgs);
152
154
  };
155
+ // eslint-disable-next-line
153
156
  NavigationPane.prototype.addChild = function (files, target, prevent) {
157
+ // eslint-disable-next-line
154
158
  var directories = getDirectories(files);
155
- var targetDirectory = this.getTreeData(target);
156
- if (directories.length > 0 && targetDirectory.length > 0 &&
157
- (directories[0].filterPath == null ||
158
- isNOU(targetDirectory[0])
159
- && targetDirectory[0].filterPath == null
160
- || directories[0].filterPath !==
161
- targetDirectory[0].filterPath)) {
159
+ if (directories.length > 0) {
162
160
  var length_1 = 0;
161
+ // eslint-disable-next-line
163
162
  var folders = directories;
164
163
  while (length_1 < directories.length) {
165
- // eslint-disable-next-line camelcase
166
- folders[parseInt(length_1.toString(), 10)]._fm_icon = 'e-fe-folder';
164
+ // eslint-disable-next-line
165
+ folders[length_1]._fm_icon = 'e-fe-folder';
166
+ // eslint-disable-next-line
167
167
  var attr = {};
168
168
  var id = getValue('id', folders[length_1]);
169
169
  if (!isNOU(id)) {
@@ -177,105 +177,77 @@ var NavigationPane = /** @class */ (function () {
177
177
  }
178
178
  length_1++;
179
179
  }
180
- var element = select('[data-uid="' + target + '"]', this.treeObj.element);
181
- var childElements = select('ul', element);
182
- if (isNOU(childElements)) {
183
- this.treeObj.addNodes(directories, target, null, prevent);
184
- }
180
+ // eslint-disable-next-line
181
+ this.treeObj.addNodes(directories, target, null, prevent);
185
182
  }
186
183
  };
187
184
  // Node Selecting event handler
188
185
  NavigationPane.prototype.onNodeSelecting = function (args) {
189
- if (!args.isInteracted && !this.isRightClick &&
190
- !this.isSameNodeClicked && !this.isPathDragged && !this.isRenameParent || this.restrictSelecting) {
186
+ if (!args.isInteracted && !this.isRightClick && !this.isPathDragged && !this.isRenameParent || this.restrictSelecting) {
191
187
  this.restrictSelecting = false;
192
188
  this.isNodeClickCalled = false;
193
189
  return;
194
190
  }
195
191
  if (!this.renameParent) {
196
192
  this.parent.activeModule = 'navigationpane';
193
+ // eslint-disable-next-line
197
194
  var nodeData = this.getTreeData(getValue('id', args.nodeData));
198
- if (args.node.getAttribute('data-uid') !== this.parent.pathId[this.parent.pathId.length - 1] && !this.isRightClick && !this.isNodeClickCalled || this.isSameNodeClicked) {
199
- this.isNodeClickCalled = false;
200
- if (!this.isSameNodeClicked) {
201
- this.isSameNodeClicked = true;
202
- var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: args.isInteracted };
203
- this.parent.trigger('fileSelect', selecEventArgs);
195
+ var eventArgs = { cancel: false, fileDetails: nodeData[0], module: 'NavigationPane' };
196
+ this.parent.trigger('fileOpen', eventArgs);
197
+ args.cancel = eventArgs.cancel;
198
+ if (args.cancel) {
199
+ this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0] !== args.node.getAttribute('data-uid') : false;
200
+ this.treeObj.selectedNodes = this.isNodeClickCalled ? this.previousSelected : this.treeObj.selectedNodes;
201
+ this.previousSelected = this.treeObj.selectedNodes;
202
+ if (!isNOU(this.parent) && !isNOU(this.parent.contextmenuModule)) {
203
+ this.parent.contextmenuModule.contextMenu.enableItems(['Open'], true);
204
204
  }
205
- if (!this.isRightClick) {
206
- var eventArgs = { cancel: false, fileDetails: nodeData[0], module: 'NavigationPane' };
207
- this.parent.trigger('fileOpen', eventArgs);
208
- args.cancel = eventArgs.cancel;
209
- }
210
- if (args.cancel) {
211
- this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0] !== args.node.getAttribute('data-uid') : false;
212
- this.isNodeClickCalled = true;
213
- this.isSameNodeClicked = false;
214
- this.previousSelected = this.treeObj.selectedNodes;
215
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
216
- }
217
- }
218
- else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
219
- var selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: this.isNodeClickCalled };
220
- this.parent.trigger('fileSelect', selecEventArgs);
221
205
  }
222
206
  }
223
207
  };
224
208
  // Opens the folder while clicking open context menu item in the treeview.
225
209
  NavigationPane.prototype.openFileOnContextMenuClick = function (node) {
226
210
  var data = this.treeObj.getTreeData(node);
211
+ // eslint-disable-next-line
227
212
  this.parent.selectedItems = [];
228
213
  this.parent.itemData = data;
229
214
  this.activeNode = node;
230
215
  this.parent.activeModule = 'navigationpane';
231
- var eventArgs = { cancel: false, fileDetails: data[0], module: 'NavigationPane' };
232
- this.parent.trigger('fileOpen', eventArgs);
233
- this.isNodeClickCalled = true;
234
- if (!eventArgs.cancel) {
235
- updatePath(node, this.parent.itemData[0], this.parent);
236
- read(this.parent, this.isPathDragged ? events.pasteEnd : events.pathChanged, this.parent.path);
237
- this.parent.visitedItem = node;
238
- this.isPathDragged = this.isRenameParent = this.isRightClick = false;
239
- this.treeObj.selectedNodes = [node.getAttribute('data-uid')];
240
- }
216
+ updatePath(node, this.parent.itemData[0], this.parent);
217
+ read(this.parent, this.isPathDragged ? events.pasteEnd : events.pathChanged, this.parent.path);
218
+ this.parent.visitedItem = node;
219
+ this.isPathDragged = this.isRenameParent = this.isRightClick = false;
220
+ this.treeObj.selectedNodes = [node.getAttribute('data-uid')];
241
221
  };
242
222
  NavigationPane.prototype.onNodeSelected = function (args) {
243
223
  if (this.parent.breadcrumbbarModule && this.parent.breadcrumbbarModule.searchObj && !this.renameParent) {
244
224
  this.parent.breadcrumbbarModule.searchObj.element.value = '';
245
225
  this.parent.isFiltered = false;
246
- this.isNodeClickCalled = false;
247
226
  }
248
227
  this.parent.searchedItems = [];
249
- if (!args.isInteracted && !this.isRightClick && !this.isSameNodeClicked && !this.isPathDragged && !this.isRenameParent) {
250
- this.parent.pathId = getPathId(args.node);
228
+ if (!args.isInteracted && !this.isRightClick && !this.isPathDragged && !this.isRenameParent) {
251
229
  return;
252
230
  }
253
231
  this.activeNode = args.node;
254
232
  this.parent.activeModule = 'navigationpane';
233
+ // eslint-disable-next-line
255
234
  var nodeData = this.getTreeData(getValue('id', args.nodeData));
256
235
  this.parent.selectedItems = [];
257
236
  this.parent.itemData = nodeData;
258
237
  var previousPath = this.parent.path;
259
- if (!this.isRightClick && this.isSameNodeClicked) {
260
- updatePath(args.node, this.parent.itemData[0], this.parent);
261
- }
262
- else {
263
- this.parent.pathId = getPathId(args.node);
264
- this.parent.visitedItem = args.node;
265
- }
266
- if (args.node.querySelector('.' + CLS.ICONS) && args.node.querySelector('.' + CLS.LIST_ITEM) === null) {
267
- this.expandNodeTarget = 'add';
268
- }
238
+ updatePath(args.node, this.parent.itemData[0], this.parent);
269
239
  if (previousPath !== this.parent.path) {
270
- if (!this.isRightClick && this.isSameNodeClicked) {
271
- read(this.parent, this.isPathDragged ? events.pasteEnd : events.pathChanged, this.parent.path);
272
- this.isNodeClickCalled = true;
240
+ this.expandNodeTarget = null;
241
+ if (args.node.querySelector('.' + CLS.ICONS) && args.node.querySelector('.' + CLS.LIST_ITEM) === null) {
242
+ this.expandNodeTarget = 'add';
273
243
  }
244
+ read(this.parent, this.isPathDragged ? events.pasteEnd : events.pathChanged, this.parent.path);
274
245
  this.parent.visitedItem = args.node;
275
246
  }
276
- this.isPathDragged = this.isRenameParent = this.isRightClick = this.isSameNodeClicked = false;
247
+ this.isPathDragged = this.isRenameParent = this.isRightClick = false;
277
248
  };
278
249
  /* istanbul ignore next */
250
+ // eslint-disable-next-line
279
251
  NavigationPane.prototype.onPathDrag = function (args) {
280
252
  this.isPathDragged = true;
281
253
  this.selectResultNode(args[0]);
@@ -286,7 +258,6 @@ var NavigationPane = /** @class */ (function () {
286
258
  return;
287
259
  }
288
260
  if (args.node.querySelector('.' + CLS.LIST_ITEM) === null) {
289
- this.isNodeExpandCalled = true;
290
261
  var text = getValue('text', args.nodeData);
291
262
  var id = args.node.getAttribute('data-id');
292
263
  var isId = isNOU(id) ? false : true;
@@ -295,7 +266,6 @@ var NavigationPane = /** @class */ (function () {
295
266
  this.expandNodeTarget = args.node.getAttribute('data-uid');
296
267
  this.parent.expandedId = this.expandNodeTarget;
297
268
  this.parent.itemData = this.getTreeData(getValue('id', args.nodeData));
298
- this.parent.pathId.push(getValue('id', args.nodeData));
299
269
  read(this.parent, events.nodeExpand, path);
300
270
  }
301
271
  };
@@ -303,7 +273,6 @@ var NavigationPane = /** @class */ (function () {
303
273
  NavigationPane.prototype.onNodeExpanded = function (args) {
304
274
  this.addChild(args.files, this.expandNodeTarget, false);
305
275
  this.parent.expandedId = null;
306
- this.isNodeExpandCalled = false;
307
276
  };
308
277
  NavigationPane.prototype.onNodeClicked = function (args) {
309
278
  this.parent.activeModule = 'navigationpane';
@@ -319,14 +288,6 @@ var NavigationPane = /** @class */ (function () {
319
288
  var layout = (this.parent.view === 'LargeIcons') ? 'largeiconsview' : 'detailsview';
320
289
  this.parent.notify(events.modelChanged, { module: layout, newProp: { selectedItems: [] } });
321
290
  }
322
- else if (args.node.getAttribute('data-uid') === this.treeObj.selectedNodes[0] && !this.isNodeClickCalled && !this.isNodeExpandCalled) {
323
- if (args.event.which === 3) {
324
- this.isRightClick = true;
325
- }
326
- this.isSameNodeClicked = true;
327
- this.isNodeClickCalled = true;
328
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
329
- }
330
291
  };
331
292
  /* istanbul ignore next */
332
293
  NavigationPane.prototype.onNodeEditing = function (args) {
@@ -336,10 +297,11 @@ var NavigationPane = /** @class */ (function () {
336
297
  };
337
298
  NavigationPane.prototype.onPathChanged = function (args) {
338
299
  this.parent.isCut = false;
300
+ // eslint-disable-next-line
339
301
  var currFiles = getValue(this.parent.pathId[this.parent.pathId.length - 1], this.parent.feFiles);
340
302
  if (this.expandNodeTarget === 'add') {
341
303
  var sNode = select('[data-uid="' + this.treeObj.selectedNodes[0] + '"]', this.treeObj.element);
342
- var ul = (!isNOU(sNode)) ? select('.' + CLS.LIST_PARENT, sNode) : null;
304
+ var ul = select('.' + CLS.LIST_PARENT, sNode);
343
305
  if (isNOU(ul)) {
344
306
  this.addChild(args.files, this.treeObj.selectedNodes[0], !this.expandTree);
345
307
  }
@@ -349,9 +311,6 @@ var NavigationPane = /** @class */ (function () {
349
311
  if (isNOU(currFiles)) {
350
312
  setValue(this.parent.pathId[this.parent.pathId.length - 1], args.files, this.parent.feFiles);
351
313
  }
352
- if (this.parent.uploadObj.directoryUpload && !(this.parent.hasId)) {
353
- this.updateTree(args);
354
- }
355
314
  };
356
315
  NavigationPane.prototype.updateTree = function (args) {
357
316
  if (this.treeObj) {
@@ -393,6 +352,7 @@ var NavigationPane = /** @class */ (function () {
393
352
  NavigationPane.prototype.onFinalizeEnd = function (args) {
394
353
  this.onInit();
395
354
  var id = getValue('_fm_id', args.cwd);
355
+ this.removeChildNodes(id);
396
356
  this.addChild(args.files, id, false);
397
357
  this.treeObj.selectedNodes = [this.parent.pathId[this.parent.pathId.length - 1]];
398
358
  };
@@ -440,12 +400,14 @@ var NavigationPane = /** @class */ (function () {
440
400
  this.renameParent = null;
441
401
  }
442
402
  else {
403
+ // eslint-disable-next-line
443
404
  var resultData = [];
444
405
  if (this.parent.hasId) {
445
406
  resultData = new DataManager(this.treeObj.getTreeData()).
446
407
  executeLocal(new Query().where('id', 'equal', this.parent.renamedId, false));
447
408
  }
448
409
  else {
410
+ // eslint-disable-next-line
449
411
  var nData = new DataManager(this.treeObj.getTreeData()).
450
412
  executeLocal(new Query().where(this.treeObj.fields.text, 'equal', this.parent.renameText, false));
451
413
  if (nData.length > 0) {
@@ -454,6 +416,7 @@ var NavigationPane = /** @class */ (function () {
454
416
  }
455
417
  }
456
418
  if (resultData.length > 0) {
419
+ this.isRenameParent = true;
457
420
  var id_1 = getValue(this.treeObj.fields.id, resultData[0]);
458
421
  this.treeObj.selectedNodes = [id_1];
459
422
  this.treeObj.dataBind();
@@ -466,13 +429,16 @@ var NavigationPane = /** @class */ (function () {
466
429
  this.updateTree(args);
467
430
  }
468
431
  else {
432
+ // eslint-disable-next-line
469
433
  var data = this.treeObj.getTreeData();
434
+ // eslint-disable-next-line
470
435
  var resultData = [];
471
436
  if (this.parent.hasId) {
472
437
  resultData = new DataManager(data).
473
438
  executeLocal(new Query().where('id', 'equal', this.parent.renamedId, false));
474
439
  }
475
440
  else {
441
+ // eslint-disable-next-line
476
442
  var nData = new DataManager(data).
477
443
  executeLocal(new Query().where(this.treeObj.fields.text, 'equal', this.parent.currentItemText, false));
478
444
  if (nData.length > 0) {
@@ -528,6 +494,7 @@ var NavigationPane = /** @class */ (function () {
528
494
  }
529
495
  this.treeObj.removeNodes(moveNames);
530
496
  };
497
+ // eslint-disable-next-line
531
498
  NavigationPane.prototype.getMoveNames = function (files, flag, path) {
532
499
  var moveNames = [];
533
500
  for (var i = 0; i < files.length; i++) {
@@ -540,6 +507,7 @@ var NavigationPane = /** @class */ (function () {
540
507
  name_2 = path.substring(index + 1);
541
508
  path = path.substring(0, index + 1);
542
509
  }
510
+ // eslint-disable-next-line
543
511
  var resultData = new DataManager(this.treeObj.getTreeData()).
544
512
  executeLocal(new Query().where(this.treeObj.fields.text, 'equal', name_2, false));
545
513
  for (var j = 0; j < resultData.length; j++) {
@@ -566,13 +534,16 @@ var NavigationPane = /** @class */ (function () {
566
534
  this.treeObj.removeNodes(moveNames);
567
535
  };
568
536
  /* istanbul ignore next */
537
+ // eslint-disable-next-line
569
538
  NavigationPane.prototype.selectResultNode = function (resultObj) {
570
539
  if (!this.parent.hasId) {
571
540
  var path = getValue('filterPath', resultObj);
572
541
  var itemname = getValue('name', resultObj);
542
+ // eslint-disable-next-line
573
543
  var data = new DataManager(this.treeObj.getTreeData()).
574
544
  executeLocal(new Query().where(this.treeObj.fields.text, 'equal', itemname, false));
575
545
  if (data.length > 0) {
546
+ // eslint-disable-next-line
576
547
  var resultData = new DataManager(data).
577
548
  executeLocal(new Query().where('filterPath', 'equal', path, false));
578
549
  if (resultData.length > 0) {
@@ -583,8 +554,7 @@ var NavigationPane = /** @class */ (function () {
583
554
  }
584
555
  }
585
556
  else {
586
- var selectedNode = this.treeObj.getTreeData().filter(function (obj) { return obj.name === resultObj.name; })[0];
587
- this.treeObj.selectedNodes = [getValue('_fm_id', selectedNode)];
557
+ this.treeObj.selectedNodes = [getValue('_fm_id', resultObj)];
588
558
  this.treeObj.dataBind();
589
559
  }
590
560
  };
@@ -594,12 +564,14 @@ var NavigationPane = /** @class */ (function () {
594
564
  this.parent.isDropEnd = !this.parent.isPasteError;
595
565
  };
596
566
  NavigationPane.prototype.onpasteEnd = function (args) {
567
+ // eslint-disable-next-line
597
568
  var resultData = [];
598
569
  if (this.parent.hasId) {
599
570
  resultData = new DataManager(this.treeObj.getTreeData()).
600
571
  executeLocal(new Query().where('id', 'equal', getValue('id', args.cwd), false));
601
572
  }
602
573
  else {
574
+ // eslint-disable-next-line
603
575
  var nData = new DataManager(this.treeObj.getTreeData()).
604
576
  executeLocal(new Query().where(this.treeObj.fields.text, 'equal', getValue('name', args.cwd), false));
605
577
  if (nData.length > 0) {
@@ -621,9 +593,6 @@ var NavigationPane = /** @class */ (function () {
621
593
  };
622
594
  /* istanbul ignore next */
623
595
  NavigationPane.prototype.checkDropPath = function (args) {
624
- if (isFileSystemData(this.parent) && (this.parent.path === this.parent.dropPath || this.parent.targetModule === 'navigationpane')) {
625
- return;
626
- }
627
596
  if (this.parent.hasId) {
628
597
  this.parent.isDropEnd = !this.parent.isPasteError;
629
598
  readDropPath(this.parent);
@@ -642,7 +611,8 @@ var NavigationPane = /** @class */ (function () {
642
611
  this.updateItemData();
643
612
  }
644
613
  this.moveNames = [];
645
- var obj = this.parent.isDragDrop || isFileSystemData(this.parent) ? this.parent.dragData : this.parent.actionRecords;
614
+ // eslint-disable-next-line
615
+ var obj = this.parent.isDragDrop ? this.parent.dragData : this.parent.actionRecords;
646
616
  for (var i = 0; i < obj.length; i++) {
647
617
  if (getValue('isFile', obj[i]) === false) {
648
618
  this.moveNames.push(getValue('_fm_id', obj[i]));
@@ -722,10 +692,12 @@ var NavigationPane = /** @class */ (function () {
722
692
  /* istanbul ignore next */
723
693
  NavigationPane.prototype.onDetailsInit = function () {
724
694
  if (this.parent.activeModule === this.getModuleName()) {
695
+ // eslint-disable-next-line
725
696
  var dataobj = this.getTreeData(this.treeObj.selectedNodes[0]);
726
697
  this.parent.itemData = dataobj;
727
698
  }
728
699
  };
700
+ // eslint-disable-next-line
729
701
  NavigationPane.prototype.onMenuItemData = function (args) {
730
702
  if (this.parent.activeModule === this.getModuleName()) {
731
703
  var liEle = closest(args.target, 'li');
@@ -823,6 +795,7 @@ var NavigationPane = /** @class */ (function () {
823
795
  break;
824
796
  case 'f2':
825
797
  if (this.parent.selectedItems.length === 0) {
798
+ // eslint-disable-next-line
826
799
  var data = this.getTreeData(this.treeObj.selectedNodes[0])[0];
827
800
  if (!hasEditAccess(data)) {
828
801
  createDeniedDialog(this.parent, data, events.permissionEdit);
@@ -835,7 +808,9 @@ var NavigationPane = /** @class */ (function () {
835
808
  break;
836
809
  }
837
810
  };
811
+ // eslint-disable-next-line
838
812
  NavigationPane.prototype.getTreeData = function (args) {
813
+ // eslint-disable-next-line
839
814
  var data = this.treeObj.getTreeData(args);
840
815
  for (var i = 0; i < data.length; i++) {
841
816
  if (isNOU(getValue('hasChild', data[i]))) {
@@ -849,6 +824,7 @@ var NavigationPane = /** @class */ (function () {
849
824
  this.parent.currentItemText = getValue('name', this.parent.itemData[0]);
850
825
  };
851
826
  NavigationPane.prototype.updateItemData = function () {
827
+ // eslint-disable-next-line
852
828
  var data = this.getTreeData(this.treeObj.selectedNodes[0])[0];
853
829
  this.parent.itemData = [data];
854
830
  this.parent.isFile = false;
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import { SortComparer } from '../base/interface';
1
+ import { Property, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';
2
2
  import {TextAlign} from "./column";
3
3
 
4
4
  /**
@@ -82,27 +82,15 @@ export interface ColumnModel {
82
82
  * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
83
83
  *
84
84
  * @default null
85
- * @aspType string
86
- */
87
- template?: string | Function;
88
-
89
- /**
90
- * Defines the custom sort comparer function.
91
- * The sort comparer function has the same functionality like
92
- * [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
93
- *
94
- * @default null
95
- * @aspType string
96
85
  */
97
- sortComparer?: SortComparer | string;
86
+ template?: string;
98
87
 
99
88
  /**
100
89
  * Defines the column template as string or HTML element ID which is used to add customized element in the column header.
101
90
  *
102
91
  * @default null
103
- * @aspType string
104
92
  */
105
- headerTemplate?: string | Function;
93
+ headerTemplate?: string;
106
94
 
107
95
  /**
108
96
  * If `allowSorting` set to false, then it disables sorting option of a particular column.
@@ -124,6 +112,7 @@ export interface ColumnModel {
124
112
  *
125
113
  * @default null
126
114
  */
115
+ /* eslint-disable */
127
116
  customAttributes?: { [x: string]: Object };
128
117
 
129
118
  /**
@@ -142,14 +131,7 @@ export interface ColumnModel {
142
131
  *
143
132
  * @default null
144
133
  */
134
+ /* eslint-disable */
145
135
  customFormat?: { [x: string]: Object };
146
136
 
147
- /**
148
- * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
149
- *
150
- * @deprecated
151
- * @default false
152
- */
153
- isPrimaryKey?: boolean;
154
-
155
137
  }
@@ -1,5 +1,4 @@
1
1
  import { ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';
2
- import { SortComparer } from '../base/interface';
3
2
  /**
4
3
  * Defines alignments of text, they are
5
4
  * * Left
@@ -111,25 +110,14 @@ export declare class Column extends ChildProperty<Column> {
111
110
  * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
112
111
  *
113
112
  * @default null
114
- * @aspType string
115
- */
116
- template: string | Function;
117
- /**
118
- * Defines the custom sort comparer function.
119
- * The sort comparer function has the same functionality like
120
- * [`Array.sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) sort comparer.
121
- *
122
- * @default null
123
- * @aspType string
124
113
  */
125
- sortComparer: SortComparer | string;
114
+ template: string;
126
115
  /**
127
116
  * Defines the column template as string or HTML element ID which is used to add customized element in the column header.
128
117
  *
129
118
  * @default null
130
- * @aspType string
131
119
  */
132
- headerTemplate: string | Function;
120
+ headerTemplate: string;
133
121
  /**
134
122
  * If `allowSorting` set to false, then it disables sorting option of a particular column.
135
123
  * By default all columns are sortable.
@@ -169,11 +157,4 @@ export declare class Column extends ChildProperty<Column> {
169
157
  customFormat: {
170
158
  [x: string]: Object;
171
159
  };
172
- /**
173
- * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
174
- *
175
- * @deprecated
176
- * @default false
177
- */
178
- isPrimaryKey: boolean;
179
160
  }
@@ -57,9 +57,6 @@ var Column = /** @class */ (function (_super) {
57
57
  __decorate([
58
58
  Property(null)
59
59
  ], Column.prototype, "template", void 0);
60
- __decorate([
61
- Property(null)
62
- ], Column.prototype, "sortComparer", void 0);
63
60
  __decorate([
64
61
  Property(null)
65
62
  ], Column.prototype, "headerTemplate", void 0);
@@ -78,9 +75,6 @@ var Column = /** @class */ (function (_super) {
78
75
  __decorate([
79
76
  Property(null)
80
77
  ], Column.prototype, "customFormat", void 0);
81
- __decorate([
82
- Property(false)
83
- ], Column.prototype, "isPrimaryKey", void 0);
84
78
  return Column;
85
79
  }(ChildProperty));
86
80
  export { Column };
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Specifies the default locale of FileManager component
3
3
  */
4
+ // eslint-disable-next-line
4
5
  export var defaultLocale = {
5
6
  'NewFolder': 'New folder',
6
7
  'Upload': 'Upload',
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, initializeCSPTemplate } from '@syncfusion/ej2-base';import { ColumnModel } from './index';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { ColumnModel } from './index';
2
2
 
3
3
  /**
4
4
  * Interface for a class DetailsViewSettings
@@ -17,26 +17,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Property, ChildProperty, initializeCSPTemplate } from '@syncfusion/ej2-base';
20
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Specifies the columns in the details view of the file manager.
23
23
  */
24
24
  export var columnArray = [
25
25
  {
26
26
  field: 'name', headerText: 'Name', minWidth: 120,
27
- template: '<span class="e-fe-text">${name}</span>',
28
- customAttributes: { class: 'e-fe-grid-name' }
27
+ template: '<span class="e-fe-text">${name}</span>', customAttributes: { class: 'e-fe-grid-name' }
29
28
  },
30
29
  {
31
30
  field: '_fm_modified', headerText: 'DateModified', type: 'dateTime',
32
31
  format: 'MMMM dd, yyyy HH:mm', minWidth: 120, width: '190'
33
32
  },
34
33
  {
35
- field: 'size', headerText: 'Size', minWidth: 90, width: '110',
36
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
37
- template: initializeCSPTemplate(function (data) {
38
- return "<span class=\"e-fe-size\">" + data.size + "</span>";
39
- }), format: 'n2'
34
+ field: 'size', headerText: 'Size', minWidth: 90, width: '110', template: '<span class="e-fe-size">${size}</span>'
40
35
  }
41
36
  ];
42
37
  /**
@@ -1,11 +1,6 @@
1
1
  import { ChildProperty } from '@syncfusion/ej2-base';
2
2
  /**
3
3
  * Specifies the filter type for Search settings of the File Manager.
4
- * ```props
5
- * contains :- It will only show files and folders whose names contain the entered word.
6
- * startsWith :- It will only show files and folders whose names start with entered word.
7
- * endsWith :- It will only show files and folders whose names end with entered word.
8
- * ```
9
4
  */
10
5
  export declare type FilterType = 'contains' | 'startsWith' | 'endsWith';
11
6
  /**