@syncfusion/ej2-filemanager 19.4.56 → 20.1.52-10459

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 (208) hide show
  1. package/.eslintrc.json +20 -3
  2. package/README.md +54 -43
  3. package/dist/ej2-filemanager.min.js +1 -0
  4. package/dist/ej2-filemanager.umd.min.js +1 -10
  5. package/dist/ej2-filemanager.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-filemanager.es2015.js +2371 -664
  7. package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
  8. package/dist/es6/ej2-filemanager.es5.js +2440 -714
  9. package/dist/es6/ej2-filemanager.es5.js.map +1 -1
  10. package/dist/global/ej2-filemanager.min.js +1 -10
  11. package/dist/global/ej2-filemanager.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/helpers/e2e/filemanagerHelper.js +183 -166
  14. package/package.json +71 -71
  15. package/src/file-manager/actions/breadcrumb-bar.js +1 -5
  16. package/src/file-manager/actions/index.d.ts +1 -0
  17. package/src/file-manager/actions/index.js +1 -0
  18. package/src/file-manager/actions/toolbar.d.ts +1 -0
  19. package/src/file-manager/actions/toolbar.js +135 -20
  20. package/src/file-manager/actions/virtualization.d.ts +93 -0
  21. package/src/file-manager/actions/virtualization.js +279 -0
  22. package/src/file-manager/base/file-manager-model.d.ts +161 -28
  23. package/src/file-manager/base/file-manager.d.ts +182 -28
  24. package/src/file-manager/base/file-manager.js +254 -29
  25. package/src/file-manager/base/interface.d.ts +329 -3
  26. package/src/file-manager/base/interface.js +0 -1
  27. package/src/file-manager/common/operations.d.ts +7 -0
  28. package/src/file-manager/common/operations.js +830 -185
  29. package/src/file-manager/common/utility.d.ts +46 -3
  30. package/src/file-manager/common/utility.js +249 -73
  31. package/src/file-manager/index.d.ts +1 -0
  32. package/src/file-manager/index.js +1 -0
  33. package/src/file-manager/layout/details-view.d.ts +10 -0
  34. package/src/file-manager/layout/details-view.js +204 -94
  35. package/src/file-manager/layout/large-icons-view.d.ts +4 -2
  36. package/src/file-manager/layout/large-icons-view.js +122 -73
  37. package/src/file-manager/layout/navigation-pane.d.ts +2 -0
  38. package/src/file-manager/layout/navigation-pane.js +97 -73
  39. package/src/file-manager/models/column-model.d.ts +23 -5
  40. package/src/file-manager/models/column.d.ts +21 -2
  41. package/src/file-manager/models/column.js +6 -0
  42. package/src/file-manager/models/default-locale.js +0 -1
  43. package/src/file-manager/models/details-view-settings-model.d.ts +1 -1
  44. package/src/file-manager/models/details-view-settings.js +8 -3
  45. package/src/file-manager/models/navigation-pane-settings.d.ts +8 -8
  46. package/src/file-manager/models/search-settings.d.ts +5 -0
  47. package/src/file-manager/models/toolbar-settings-model.d.ts +177 -2
  48. package/src/file-manager/models/toolbar-settings.d.ts +157 -2
  49. package/src/file-manager/models/toolbar-settings.js +64 -2
  50. package/src/file-manager/models/upload-settings-model.d.ts +13 -0
  51. package/src/file-manager/models/upload-settings.d.ts +12 -0
  52. package/src/file-manager/models/upload-settings.js +3 -0
  53. package/src/file-manager/pop-up/context-menu.d.ts +2 -1
  54. package/src/file-manager/pop-up/context-menu.js +111 -36
  55. package/src/file-manager/pop-up/dialog.d.ts +1 -2
  56. package/src/file-manager/pop-up/dialog.js +19 -40
  57. package/src/global.js +1 -1
  58. package/styles/bootstrap-dark-lite.css +1058 -0
  59. package/styles/bootstrap-dark-lite.scss +16 -0
  60. package/styles/bootstrap-dark.css +371 -665
  61. package/styles/bootstrap-dark.scss +17 -1
  62. package/styles/bootstrap-lite.css +1040 -0
  63. package/styles/bootstrap-lite.scss +16 -0
  64. package/styles/bootstrap.css +353 -644
  65. package/styles/bootstrap.scss +17 -1
  66. package/styles/bootstrap4-lite.css +1068 -0
  67. package/styles/bootstrap4-lite.scss +16 -0
  68. package/styles/bootstrap4.css +381 -680
  69. package/styles/bootstrap4.scss +17 -1
  70. package/styles/bootstrap5-dark-lite.css +1078 -0
  71. package/styles/bootstrap5-dark-lite.scss +16 -0
  72. package/styles/bootstrap5-dark.css +377 -695
  73. package/styles/bootstrap5-dark.scss +17 -1
  74. package/styles/bootstrap5-lite.css +1078 -0
  75. package/styles/bootstrap5-lite.scss +16 -0
  76. package/styles/bootstrap5.3-lite.css +1035 -0
  77. package/styles/bootstrap5.3-lite.scss +16 -0
  78. package/styles/bootstrap5.3.css +1603 -0
  79. package/styles/bootstrap5.3.scss +17 -0
  80. package/styles/bootstrap5.css +377 -695
  81. package/styles/bootstrap5.scss +17 -1
  82. package/styles/fabric-dark-lite.css +1039 -0
  83. package/styles/fabric-dark-lite.scss +16 -0
  84. package/styles/fabric-dark.css +358 -642
  85. package/styles/fabric-dark.scss +17 -1
  86. package/styles/fabric-lite.css +1039 -0
  87. package/styles/fabric-lite.scss +16 -0
  88. package/styles/fabric.css +357 -641
  89. package/styles/fabric.scss +17 -1
  90. package/styles/file-manager/_all.scss +1 -1
  91. package/styles/file-manager/_bds-definition.scss +236 -0
  92. package/styles/file-manager/_bigger.scss +758 -0
  93. package/styles/file-manager/_bootstrap-dark-definition.scss +6 -2
  94. package/styles/file-manager/_bootstrap-definition.scss +6 -2
  95. package/styles/file-manager/_bootstrap4-definition.scss +6 -2
  96. package/styles/file-manager/_bootstrap5-definition.scss +21 -16
  97. package/styles/file-manager/_bootstrap5.3-definition.scss +242 -0
  98. package/styles/file-manager/_fabric-dark-definition.scss +6 -2
  99. package/styles/file-manager/_fabric-definition.scss +6 -2
  100. package/styles/file-manager/_fluent-dark-definition.scss +1 -0
  101. package/styles/file-manager/_fluent-definition.scss +26 -22
  102. package/styles/file-manager/_fluent2-definition.scss +255 -0
  103. package/styles/file-manager/_fusionnew-definition.scss +241 -0
  104. package/styles/file-manager/_highcontrast-definition.scss +6 -2
  105. package/styles/file-manager/_highcontrast-light-definition.scss +6 -2
  106. package/styles/file-manager/_layout.scss +373 -912
  107. package/styles/file-manager/_material-dark-definition.scss +7 -2
  108. package/styles/file-manager/_material-definition.scss +7 -2
  109. package/styles/file-manager/_material3-dark-definition.scss +1 -0
  110. package/styles/file-manager/_material3-definition.scss +235 -0
  111. package/styles/file-manager/_tailwind-definition.scss +20 -16
  112. package/styles/file-manager/_theme.scss +130 -99
  113. package/styles/file-manager/bootstrap-dark.css +371 -665
  114. package/styles/file-manager/bootstrap-dark.scss +2 -1
  115. package/styles/file-manager/bootstrap.css +353 -644
  116. package/styles/file-manager/bootstrap.scss +2 -1
  117. package/styles/file-manager/bootstrap4.css +381 -680
  118. package/styles/file-manager/bootstrap4.scss +2 -1
  119. package/styles/file-manager/bootstrap5-dark.css +377 -695
  120. package/styles/file-manager/bootstrap5-dark.scss +2 -1
  121. package/styles/file-manager/bootstrap5.3.css +1603 -0
  122. package/styles/file-manager/bootstrap5.3.scss +17 -0
  123. package/styles/file-manager/bootstrap5.css +377 -695
  124. package/styles/file-manager/bootstrap5.scss +2 -1
  125. package/styles/file-manager/fabric-dark.css +358 -642
  126. package/styles/file-manager/fabric-dark.scss +2 -1
  127. package/styles/file-manager/fabric.css +357 -641
  128. package/styles/file-manager/fabric.scss +2 -1
  129. package/styles/file-manager/fluent-dark.css +1616 -0
  130. package/styles/file-manager/fluent-dark.scss +17 -0
  131. package/styles/file-manager/fluent.css +1615 -0
  132. package/styles/file-manager/fluent.scss +17 -0
  133. package/styles/file-manager/fluent2.css +1886 -0
  134. package/styles/file-manager/fluent2.scss +17 -0
  135. package/styles/file-manager/highcontrast-light.css +354 -644
  136. package/styles/file-manager/highcontrast-light.scss +2 -1
  137. package/styles/file-manager/highcontrast.css +377 -647
  138. package/styles/file-manager/highcontrast.scss +2 -1
  139. package/styles/file-manager/icons/_bds.scss +235 -0
  140. package/styles/file-manager/icons/_bootstrap.scss +0 -1
  141. package/styles/file-manager/icons/_bootstrap4.scss +0 -1
  142. package/styles/file-manager/icons/_bootstrap5.3.scss +235 -0
  143. package/styles/file-manager/icons/_fabric-dark.scss +0 -1
  144. package/styles/file-manager/icons/_fabric.scss +0 -1
  145. package/styles/file-manager/icons/_fluent-dark.scss +1 -0
  146. package/styles/file-manager/icons/_fluent.scss +19 -19
  147. package/styles/file-manager/icons/_fluent2.scss +235 -0
  148. package/styles/file-manager/icons/_fusionnew.scss +235 -0
  149. package/styles/file-manager/icons/_material3-dark.scss +1 -0
  150. package/styles/file-manager/icons/_material3.scss +235 -0
  151. package/styles/file-manager/icons/_tailwind.scss +49 -49
  152. package/styles/file-manager/material-dark.css +392 -671
  153. package/styles/file-manager/material-dark.scss +2 -1
  154. package/styles/file-manager/material.css +391 -654
  155. package/styles/file-manager/material.scss +2 -1
  156. package/styles/file-manager/material3-dark.css +1633 -0
  157. package/styles/file-manager/material3-dark.scss +18 -0
  158. package/styles/file-manager/material3.css +1635 -0
  159. package/styles/file-manager/material3.scss +18 -0
  160. package/styles/file-manager/tailwind-dark.css +369 -686
  161. package/styles/file-manager/tailwind-dark.scss +2 -1
  162. package/styles/file-manager/tailwind.css +369 -686
  163. package/styles/file-manager/tailwind.scss +2 -1
  164. package/styles/fluent-dark-lite.css +1037 -0
  165. package/styles/fluent-dark-lite.scss +16 -0
  166. package/styles/fluent-dark.css +1616 -0
  167. package/styles/fluent-dark.scss +17 -0
  168. package/styles/fluent-lite.css +1036 -0
  169. package/styles/fluent-lite.scss +16 -0
  170. package/styles/fluent.css +1615 -0
  171. package/styles/fluent.scss +17 -0
  172. package/styles/fluent2-lite.css +1272 -0
  173. package/styles/fluent2-lite.scss +16 -0
  174. package/styles/fluent2.css +1886 -0
  175. package/styles/fluent2.scss +17 -0
  176. package/styles/highcontrast-light-lite.css +1039 -0
  177. package/styles/highcontrast-light-lite.scss +16 -0
  178. package/styles/highcontrast-light.css +354 -644
  179. package/styles/highcontrast-light.scss +17 -1
  180. package/styles/highcontrast-lite.css +1059 -0
  181. package/styles/highcontrast-lite.scss +16 -0
  182. package/styles/highcontrast.css +377 -647
  183. package/styles/highcontrast.scss +17 -1
  184. package/styles/material-dark-lite.css +1092 -0
  185. package/styles/material-dark-lite.scss +16 -0
  186. package/styles/material-dark.css +392 -671
  187. package/styles/material-dark.scss +17 -1
  188. package/styles/material-lite.css +1097 -0
  189. package/styles/material-lite.scss +16 -0
  190. package/styles/material.css +391 -654
  191. package/styles/material.scss +17 -1
  192. package/styles/material3-dark-lite.css +1090 -0
  193. package/styles/material3-dark-lite.scss +16 -0
  194. package/styles/material3-dark.css +1633 -0
  195. package/styles/material3-dark.scss +19 -0
  196. package/styles/material3-lite.css +1092 -0
  197. package/styles/material3-lite.scss +16 -0
  198. package/styles/material3.css +1635 -0
  199. package/styles/material3.scss +19 -0
  200. package/styles/tailwind-dark-lite.css +1060 -0
  201. package/styles/tailwind-dark-lite.scss +16 -0
  202. package/styles/tailwind-dark.css +369 -686
  203. package/styles/tailwind-dark.scss +17 -1
  204. package/styles/tailwind-lite.css +1060 -0
  205. package/styles/tailwind-lite.scss +16 -0
  206. package/styles/tailwind.css +369 -686
  207. package/styles/tailwind.scss +17 -1
  208. package/CHANGELOG.md +0 -466
@@ -1,7 +1,8 @@
1
1
  import { Component, EmitType, L10n } from '@syncfusion/ej2-base';
2
2
  import { Dialog, ButtonPropsModel } from '@syncfusion/ej2-popups';
3
3
  import { FileManagerModel } from '../base/file-manager-model';
4
- import { ToolbarSettingsModel, AjaxSettingsModel } from '../models/index';
4
+ import { ToolbarSettingsModel, AjaxSettingsModel, ToolbarItemModel } from '../models/index';
5
+ import { DetailsViewSettingsModel } from '../models/details-view-settings-model';
5
6
  import { TreeView, ContextMenu, MenuItemModel, ItemModel } from '@syncfusion/ej2-navigations';
6
7
  import { DetailsView } from '../layout/details-view';
7
8
  import { Toolbar } from '../actions/toolbar';
@@ -11,22 +12,70 @@ import { ContextMenuSettingsModel } from '../models/contextMenu-settings-model';
11
12
  import { LargeIconsView } from '../layout';
12
13
  import { NavigationPaneSettingsModel } from '../models/navigation-pane-settings-model';
13
14
  import { Uploader } from '@syncfusion/ej2-inputs';
14
- import { BreadCrumbBar } from '../actions';
15
+ import { BreadCrumbBar, Virtualization } from '../actions';
15
16
  import { PositionModel } from '@syncfusion/ej2-base/src/draggable-model';
17
+ /**
18
+ * ValueType is a type that can be a number, string, Date, or boolean.
19
+ */
20
+ export declare type ValueType = number | string | Date | boolean;
21
+ /**
22
+ * SortComparer is a function type that takes two ValueType arguments and returns a number.
23
+ * The function is used for comparing two values for sorting purposes.
24
+ */
25
+ export declare type SortComparer = (x: ValueType, y: ValueType) => number;
16
26
  /**
17
27
  * Defines the view type of the FileManager.
28
+ * ```props
29
+ * LargeIcons :- Displays the files and folders as large icons.
30
+ * Details :- Displays the files and folders in a list format.
31
+ * ```
18
32
  */
19
33
  export declare type ViewType = 'LargeIcons' | 'Details';
20
34
  /**
21
35
  * Defines the files sorting order in FileManager.
36
+ * ```props
37
+ * Ascending :- Indicates that the folders and files are sorted in the descending order.
38
+ * Descending :- Indicates that the folders and files are sorted in the ascending order.
39
+ * None :- Indicates that the folders and files are not sorted.
40
+ * ```
22
41
  */
23
42
  export declare type SortOrder = 'Ascending' | 'Descending' | 'None';
24
43
  /**
25
44
  * Defines the Toolbar items of the FileManager.
45
+ * ```props
46
+ * NewFolder :- Allows you to quickly create a new folder.
47
+ * Upload :- Allows you to quickly and easily upload files from your local computer.
48
+ * Cut :- Allows you to remove a file or folder from its current location and move it to a different location.
49
+ * Copy :- Allows you to create a duplicate of a file or folder and place it in a different location.
50
+ * Paste :- Allows you to place a previously cut or copied file or folder in a new location.
51
+ * Delete :- Allows you to remove a file or folder permanently.
52
+ * Download :- Allows you to quickly and easily download files to your local computer.
53
+ * Rename :- Allows you to change the name of a file or folder.
54
+ * SortBy :- Allows you to sort files and folder by different criteria such as name, date, size, etc.
55
+ * Refresh :- Allows you to refresh the current folder's content, showing the changes made on the folder.
56
+ * Selection :- Allows you to select one or more files or folders.
57
+ * View :- Allows you to change the way files and folders are displayed.
58
+ * Details :- Allows you to see additional information about the files and folders, such as the size and date modified.
59
+ * ```
26
60
  */
27
61
  export declare type ToolBarItems = 'NewFolder' | 'Upload' | 'Cut' | 'Copy' | 'Paste' | 'Delete' | 'Download' | 'Rename' | 'SortBy' | 'Refresh' | 'Selection' | 'View' | 'Details';
28
62
  /**
29
- * Defines the Context menu items for the FileManager.
63
+ * ```props
64
+ * NewFolder :- Allows you to quickly create a new folder
65
+ * Upload :- Allows you to quickly and easily upload files from your local computer.
66
+ * Cut :- Allows you to remove a file or folder from its current location and move it to a different location.
67
+ * Copy :- Allows you to create a duplicate of a file or folder and place it in a different location.
68
+ * Paste :- Allows you to place a previously cut or copied file or folder in a new location.
69
+ * Delete :- Allows you to remove a file or folder permanently.
70
+ * Download :- Allows you to quickly and easily download files to your local computer.
71
+ * Rename :- Allows you to change the name of a file or folder.
72
+ * SortBy :- Allows you to sort files and folder by different criteria such as name, date, size, etc.
73
+ * Refresh :- Allows you to refresh the current folder's content, showing the changes made on the folder.
74
+ * SelectAll :- Allows you to select all the files and folders in the current folder.
75
+ * View :- Allows you to change the way files and folders are displayed.
76
+ * Details :- Allows you to see additional information about the files and folders, such as the size and date modified.
77
+ * Open :- Allows you to open the selected file or folder.
78
+ * ```
30
79
  */
31
80
  export declare type MenuItems = 'NewFolder' | 'Upload' | 'Cut' | 'Copy' | 'Paste' | 'Delete' | 'Download' | 'Rename' | 'SortBy' | 'Refresh' | 'SelectAll' | 'View' | 'Details' | 'Open';
32
81
  /**
@@ -110,6 +159,92 @@ export interface FileDetails {
110
159
  multipleFiles: boolean;
111
160
  permission: Object;
112
161
  }
162
+ /**
163
+ * Interfaces for permission.
164
+ */
165
+ export interface Permission {
166
+ /**
167
+ * Specifies the access permission to read a file or folder.
168
+ */
169
+ read?: boolean;
170
+ /**
171
+ * Specifies the access permission to write a file or folder.
172
+ */
173
+ write?: boolean;
174
+ /**
175
+ * Specifies the access permission to download a file or folder.
176
+ */
177
+ download: boolean;
178
+ /**
179
+ * Specifies the access permission to write the content of folder.
180
+ */
181
+ writeContents?: boolean;
182
+ /**
183
+ * Specifies the access permission to upload a file or folder.
184
+ */
185
+ upload?: boolean;
186
+ /**
187
+ * Specifies the access permission message.
188
+ */
189
+ message?: string;
190
+ /**
191
+ * Specifies the access permission to copy a file or folder.
192
+ */
193
+ copy?: boolean;
194
+ }
195
+ /**
196
+ * Interfaces for fileSystemData.
197
+ */
198
+ export interface FileData {
199
+ /**
200
+ * Specifies the modified data for current item.
201
+ */
202
+ dateModified?: Date;
203
+ /**
204
+ * Specifies the created data for current item.
205
+ */
206
+ dateCreated?: Date;
207
+ /**
208
+ * Specifies the filter path representing the traversal path of current item.
209
+ */
210
+ filterPath?: string;
211
+ /**
212
+ * Specifies whether the current folder has child.
213
+ */
214
+ hasChild?: boolean;
215
+ /**
216
+ * Specifies the current item id.
217
+ */
218
+ id?: number | string;
219
+ /**
220
+ * Specifies whether the item is a file or folder.
221
+ */
222
+ isFile?: boolean;
223
+ /**
224
+ * Specifies the item name.
225
+ */
226
+ name?: string;
227
+ /**
228
+ * Specifies the parent id for the item.
229
+ */
230
+ parentId?: number | string;
231
+ /**
232
+ * Specifies the item size.
233
+ */
234
+ size?: number;
235
+ /**
236
+ * Specifies the item type like ‘.png’, ‘.jpg’, etc.
237
+ */
238
+ type?: string;
239
+ /**
240
+ * Specifies the url of the image that must be loaded within File Manager.
241
+ */
242
+ imageUrl?: string;
243
+ /**
244
+ * Specifies the access control permission.
245
+ */
246
+ permission?: object;
247
+ }
113
248
  /** @hidden */
114
249
  export interface DownloadArgs {
115
250
  files?: {
@@ -172,6 +307,14 @@ export interface BeforeDownloadEventArgs {
172
307
  * If you want to cancel this event then, set cancel to true. Otherwise, false.
173
308
  */
174
309
  cancel?: boolean;
310
+ /**
311
+ * Return the AJAX details, which are send to server.
312
+ */
313
+ ajaxSettings?: Object;
314
+ /**
315
+ * Specifies whether the download is performed through the form submit method or using an HTTP client instance.
316
+ */
317
+ useFormPost?: boolean;
175
318
  }
176
319
  /**
177
320
  * Interface for BeforeImageLoad event arguments.
@@ -186,6 +329,135 @@ export interface BeforeImageLoadEventArgs {
186
329
  */
187
330
  imageUrl?: string;
188
331
  }
332
+ /**
333
+ * Interface for folder create event arguments.
334
+ */
335
+ export interface FolderCreateEventArgs {
336
+ /**
337
+ * Defines whether to cancel the creation of new folder.
338
+ */
339
+ cancel?: boolean;
340
+ /**
341
+ * Defines the newly created folder name.
342
+ */
343
+ folderName?: string;
344
+ /**
345
+ * Returns the parent folder data where the new folder is created.
346
+ */
347
+ parentFolder?: {
348
+ [key: string]: Object;
349
+ }[];
350
+ /**
351
+ * Specifies the current folder path.
352
+ */
353
+ path?: string;
354
+ }
355
+ /**
356
+ * Interface for deleting event arguments.
357
+ */
358
+ export interface DeleteEventArgs {
359
+ /**
360
+ * Defines whether to cancel the delete action of file or folder.
361
+ */
362
+ cancel?: boolean;
363
+ /**
364
+ * Returns the data of the deleted item.
365
+ */
366
+ itemData?: {
367
+ [key: string]: Object;
368
+ }[];
369
+ /**
370
+ * Specifies the current folder path.
371
+ */
372
+ path?: string;
373
+ }
374
+ /**
375
+ * Interface for Rename event arguments.
376
+ */
377
+ export interface RenameEventArgs {
378
+ /**
379
+ * Defines whether to cancel the rename operation.
380
+ */
381
+ cancel?: boolean;
382
+ /**
383
+ * Return the new name to be set for the item.
384
+ */
385
+ newName?: string;
386
+ /**
387
+ * Returns the data of the renamed item.
388
+ */
389
+ itemData?: {
390
+ [key: string]: Object;
391
+ }[];
392
+ /**
393
+ * Specifies the current folder path.
394
+ */
395
+ path?: string;
396
+ }
397
+ /**
398
+ * Interface for Move event arguments.
399
+ */
400
+ export interface MoveEventArgs {
401
+ /**
402
+ * Defines whether to cancel the moving of folder from current path.
403
+ */
404
+ cancel?: boolean;
405
+ /**
406
+ * Defines whether the current action is `copy`.
407
+ */
408
+ isCopy?: boolean;
409
+ /**
410
+ * Returns the data of the moved item.
411
+ */
412
+ itemData?: {
413
+ [key: string]: Object;
414
+ }[];
415
+ /**
416
+ * Specifies the current folder path.
417
+ */
418
+ path?: string;
419
+ /**
420
+ * Returns the data of the target folder to which the file or folder is to be pasted.
421
+ */
422
+ targetData?: {
423
+ [key: string]: Object;
424
+ };
425
+ /**
426
+ * Specifies the target folder path to which the item is pasted.
427
+ */
428
+ targetPath?: string;
429
+ }
430
+ /**
431
+ * Interface for Search event arguments.
432
+ */
433
+ export interface SearchEventArgs {
434
+ /**
435
+ * Return the search results which matches the entered search character.
436
+ */
437
+ searchResults?: {
438
+ [key: string]: Object;
439
+ }[];
440
+ /**
441
+ * Specifies whether the default search action must be cancel.
442
+ */
443
+ cancel?: boolean;
444
+ /**
445
+ * Specifies the current folder path where the search action takes place.
446
+ */
447
+ path?: string;
448
+ /**
449
+ * Specifies the search text which is entered in the input element.
450
+ */
451
+ searchText?: string;
452
+ /**
453
+ * Specifies the searching of file or folder is case sensitive or not.
454
+ */
455
+ caseSensitive?: boolean;
456
+ /**
457
+ * Specifies whether the user has permission to view hidden items.
458
+ */
459
+ showHiddenItems?: boolean;
460
+ }
189
461
  /**
190
462
  * Interface for Success event arguments.
191
463
  */
@@ -406,6 +678,43 @@ export interface MenuOpenEventArgs {
406
678
  */
407
679
  menuType?: string;
408
680
  }
681
+ /**
682
+ * Interface for MenuClose event arguments.
683
+ */
684
+ export interface MenuCloseEventArgs {
685
+ /**
686
+ * If you want to cancel this event then, set cancel to true. Otherwise, false.
687
+ */
688
+ cancel?: boolean;
689
+ /**
690
+ * Returns the current context menu element.
691
+ */
692
+ element?: HTMLElement;
693
+ /**
694
+ * Specifies the actual event.
695
+ */
696
+ event?: Event;
697
+ /**
698
+ * Returns whether the current context menu is focused or not.
699
+ */
700
+ isFocused?: boolean;
701
+ /**
702
+ * Returns the target folder/file item as an array of JSON object.
703
+ */
704
+ fileDetails?: Object[];
705
+ /**
706
+ * Returns the current context menu items as JSON object.
707
+ */
708
+ items?: MenuItemModel[];
709
+ /**
710
+ * Returns the parent context menu item as JSON object.
711
+ */
712
+ parentItem?: MenuItemModel;
713
+ /**
714
+ * Returns the current context menu type based on current target.
715
+ */
716
+ menuType?: string;
717
+ }
409
718
  /**
410
719
  * Interface for UploadListCreate event arguments.
411
720
  */
@@ -492,7 +801,12 @@ export interface IFileManager extends Component<HTMLElement> {
492
801
  feParent: Object[];
493
802
  feFiles: Object[];
494
803
  ajaxSettings: AjaxSettingsModel;
804
+ fileSystemData: {
805
+ [key: string]: Object;
806
+ }[];
495
807
  toolbarSettings: ToolbarSettingsModel;
808
+ toolbarItems: ToolbarItemModel[];
809
+ detailsViewSettings: DetailsViewSettingsModel;
496
810
  dialogObj: Dialog;
497
811
  viewerObj: Dialog;
498
812
  extDialogObj: Dialog;
@@ -511,6 +825,7 @@ export interface IFileManager extends Component<HTMLElement> {
511
825
  navigationpaneModule: ITreeView;
512
826
  largeiconsviewModule: LargeIconsView;
513
827
  breadcrumbbarModule: BreadCrumbBar;
828
+ virtualizationModule: Virtualization;
514
829
  toolbarSelection: boolean;
515
830
  duplicateItems: string[];
516
831
  duplicateRecords: Object[];
@@ -533,13 +848,19 @@ export interface IFileManager extends Component<HTMLElement> {
533
848
  isBigger: boolean;
534
849
  isFile: boolean;
535
850
  allowMultiSelection: boolean;
851
+ showItemCheckBoxes: boolean;
536
852
  selectedItems: string[];
537
853
  layoutSelectedItems: string[];
538
854
  sortOrder: SortOrder;
539
855
  sortBy: string;
856
+ sortComparer: SortComparer | string;
540
857
  actionRecords: Object[];
541
858
  activeRecords: Object[];
542
859
  pasteNodes: string[];
860
+ responseData: {
861
+ [key: string]: Object;
862
+ };
863
+ existingFileCount: number;
543
864
  isCut: boolean;
544
865
  filterData: Object;
545
866
  isFiltered: boolean;
@@ -562,6 +883,7 @@ export interface IFileManager extends Component<HTMLElement> {
562
883
  folderPath: string;
563
884
  showFileExtension: boolean;
564
885
  enablePersistence: boolean;
886
+ enableVirtualization: boolean;
565
887
  showHiddenItems: boolean;
566
888
  persistData: boolean;
567
889
  localeObj: L10n;
@@ -593,6 +915,10 @@ export interface IFileManager extends Component<HTMLElement> {
593
915
  destinationPath: string;
594
916
  enableHtmlSanitizer: boolean;
595
917
  refreshLayout(): void;
918
+ traverseBackward(): void;
919
+ isMac: boolean;
920
+ oldView: string;
921
+ oldPath: string;
596
922
  }
597
923
  /** @hidden */
598
924
  export interface ITreeView extends Component<HTMLElement> {
@@ -1 +0,0 @@
1
-
@@ -73,6 +73,13 @@ export declare function Delete(parent: IFileManager, items: string[], path: stri
73
73
  * @private
74
74
  */
75
75
  export declare function GetDetails(parent: IFileManager, names: string[], path: string, operation: string): void;
76
+ /**
77
+ * Checks whether fileSystemData is enabled.
78
+ *
79
+ * @param {IFileManager} parent - specifies the parent element.
80
+ * @returns {boolean} - returns the boolean value.
81
+ */
82
+ export declare function isFileSystemData(parent: IFileManager): boolean;
76
83
  /**
77
84
  * Function for search in File Manager.
78
85
  *