@syncfusion/ej2-filemanager 30.1.37 → 30.1.39

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 (148) hide show
  1. package/dist/ej2-filemanager.min.js +2 -2
  2. package/dist/ej2-filemanager.umd.min.js +2 -2
  3. package/dist/ej2-filemanager.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-filemanager.es2015.js +8 -3
  5. package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
  6. package/dist/es6/ej2-filemanager.es5.js +7 -2
  7. package/dist/es6/ej2-filemanager.es5.js.map +1 -1
  8. package/dist/global/ej2-filemanager.min.js +2 -2
  9. package/dist/global/ej2-filemanager.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +17 -52
  12. package/src/file-manager/common/utility.js +3 -0
  13. package/src/file-manager/layout/navigation-pane.js +4 -2
  14. package/styles/bds-lite.css +11 -12
  15. package/styles/bds.css +11 -12
  16. package/styles/bootstrap-dark-lite.css +11 -12
  17. package/styles/bootstrap-dark.css +11 -12
  18. package/styles/bootstrap-lite.css +11 -12
  19. package/styles/bootstrap.css +11 -12
  20. package/styles/bootstrap4-lite.css +11 -12
  21. package/styles/bootstrap4.css +11 -12
  22. package/styles/bootstrap5-dark-lite.css +11 -12
  23. package/styles/bootstrap5-dark.css +11 -12
  24. package/styles/bootstrap5-lite.css +11 -12
  25. package/styles/bootstrap5.3-lite.css +11 -12
  26. package/styles/bootstrap5.3.css +11 -12
  27. package/styles/bootstrap5.css +11 -12
  28. package/styles/fabric-dark-lite.css +11 -12
  29. package/styles/fabric-dark.css +11 -12
  30. package/styles/fabric-lite.css +11 -12
  31. package/styles/fabric.css +11 -12
  32. package/styles/file-manager/_layout.scss +7 -7
  33. package/styles/file-manager/bds.css +11 -12
  34. package/styles/file-manager/bootstrap-dark.css +11 -12
  35. package/styles/file-manager/bootstrap.css +11 -12
  36. package/styles/file-manager/bootstrap4.css +11 -12
  37. package/styles/file-manager/bootstrap5-dark.css +11 -12
  38. package/styles/file-manager/bootstrap5.3.css +11 -12
  39. package/styles/file-manager/bootstrap5.css +11 -12
  40. package/styles/file-manager/fabric-dark.css +11 -12
  41. package/styles/file-manager/fabric.css +11 -12
  42. package/styles/file-manager/fluent-dark.css +11 -12
  43. package/styles/file-manager/fluent.css +11 -12
  44. package/styles/file-manager/fluent2.css +11 -12
  45. package/styles/file-manager/highcontrast-light.css +11 -12
  46. package/styles/file-manager/highcontrast.css +11 -12
  47. package/styles/file-manager/material-dark.css +11 -12
  48. package/styles/file-manager/material.css +11 -12
  49. package/styles/file-manager/material3-dark.css +11 -12
  50. package/styles/file-manager/material3.css +11 -12
  51. package/styles/file-manager/tailwind-dark.css +11 -12
  52. package/styles/file-manager/tailwind.css +11 -12
  53. package/styles/file-manager/tailwind3.css +11 -12
  54. package/styles/fluent-dark-lite.css +11 -12
  55. package/styles/fluent-dark.css +11 -12
  56. package/styles/fluent-lite.css +11 -12
  57. package/styles/fluent.css +11 -12
  58. package/styles/fluent2-lite.css +11 -12
  59. package/styles/fluent2.css +11 -12
  60. package/styles/highcontrast-light-lite.css +11 -12
  61. package/styles/highcontrast-light.css +11 -12
  62. package/styles/highcontrast-lite.css +11 -12
  63. package/styles/highcontrast.css +11 -12
  64. package/styles/material-dark-lite.css +11 -12
  65. package/styles/material-dark.css +11 -12
  66. package/styles/material-lite.css +11 -12
  67. package/styles/material.css +11 -12
  68. package/styles/material3-dark-lite.css +11 -12
  69. package/styles/material3-dark.css +11 -12
  70. package/styles/material3-lite.css +11 -12
  71. package/styles/material3.css +11 -12
  72. package/styles/tailwind-dark-lite.css +11 -12
  73. package/styles/tailwind-dark.css +11 -12
  74. package/styles/tailwind-lite.css +11 -12
  75. package/styles/tailwind.css +11 -12
  76. package/styles/tailwind3-lite.css +11 -12
  77. package/styles/tailwind3.css +11 -12
  78. package/dist/ts/file-manager/actions/breadcrumb-bar.d.ts +0 -60
  79. package/dist/ts/file-manager/actions/breadcrumb-bar.ts +0 -423
  80. package/dist/ts/file-manager/actions/index.d.ts +0 -6
  81. package/dist/ts/file-manager/actions/index.ts +0 -6
  82. package/dist/ts/file-manager/actions/toolbar.d.ts +0 -54
  83. package/dist/ts/file-manager/actions/toolbar.ts +0 -609
  84. package/dist/ts/file-manager/actions/virtualization.d.ts +0 -93
  85. package/dist/ts/file-manager/actions/virtualization.ts +0 -324
  86. package/dist/ts/file-manager/base/classes.d.ts +0 -224
  87. package/dist/ts/file-manager/base/classes.ts +0 -225
  88. package/dist/ts/file-manager/base/constant.d.ts +0 -136
  89. package/dist/ts/file-manager/base/constant.ts +0 -137
  90. package/dist/ts/file-manager/base/file-manager-model.d.ts +0 -520
  91. package/dist/ts/file-manager/base/file-manager.d.ts +0 -867
  92. package/dist/ts/file-manager/base/file-manager.ts +0 -2061
  93. package/dist/ts/file-manager/base/index.d.ts +0 -8
  94. package/dist/ts/file-manager/base/index.ts +0 -8
  95. package/dist/ts/file-manager/base/interface.d.ts +0 -952
  96. package/dist/ts/file-manager/base/interface.ts +0 -931
  97. package/dist/ts/file-manager/common/index.d.ts +0 -5
  98. package/dist/ts/file-manager/common/index.ts +0 -5
  99. package/dist/ts/file-manager/common/operations.d.ts +0 -122
  100. package/dist/ts/file-manager/common/operations.ts +0 -1369
  101. package/dist/ts/file-manager/common/utility.d.ts +0 -644
  102. package/dist/ts/file-manager/common/utility.ts +0 -1728
  103. package/dist/ts/file-manager/index.d.ts +0 -9
  104. package/dist/ts/file-manager/index.ts +0 -9
  105. package/dist/ts/file-manager/layout/details-view.d.ts +0 -152
  106. package/dist/ts/file-manager/layout/details-view.ts +0 -1990
  107. package/dist/ts/file-manager/layout/index.d.ts +0 -6
  108. package/dist/ts/file-manager/layout/index.ts +0 -6
  109. package/dist/ts/file-manager/layout/large-icons-view.d.ts +0 -157
  110. package/dist/ts/file-manager/layout/large-icons-view.ts +0 -1684
  111. package/dist/ts/file-manager/layout/navigation-pane.d.ts +0 -104
  112. package/dist/ts/file-manager/layout/navigation-pane.ts +0 -919
  113. package/dist/ts/file-manager/models/ajax-settings-model.d.ts +0 -36
  114. package/dist/ts/file-manager/models/ajax-settings.d.ts +0 -30
  115. package/dist/ts/file-manager/models/ajax-settings.ts +0 -39
  116. package/dist/ts/file-manager/models/column-model.d.ts +0 -155
  117. package/dist/ts/file-manager/models/column.d.ts +0 -179
  118. package/dist/ts/file-manager/models/column.ts +0 -216
  119. package/dist/ts/file-manager/models/contextMenu-settings-model.d.ts +0 -36
  120. package/dist/ts/file-manager/models/contextMenu-settings.d.ts +0 -33
  121. package/dist/ts/file-manager/models/contextMenu-settings.ts +0 -44
  122. package/dist/ts/file-manager/models/default-locale.d.ts +0 -4
  123. package/dist/ts/file-manager/models/default-locale.ts +0 -101
  124. package/dist/ts/file-manager/models/details-view-settings-model.d.ts +0 -30
  125. package/dist/ts/file-manager/models/details-view-settings.d.ts +0 -31
  126. package/dist/ts/file-manager/models/details-view-settings.ts +0 -54
  127. package/dist/ts/file-manager/models/index.d.ts +0 -19
  128. package/dist/ts/file-manager/models/index.ts +0 -19
  129. package/dist/ts/file-manager/models/navigation-pane-settings-model.d.ts +0 -40
  130. package/dist/ts/file-manager/models/navigation-pane-settings.d.ts +0 -34
  131. package/dist/ts/file-manager/models/navigation-pane-settings.ts +0 -42
  132. package/dist/ts/file-manager/models/search-settings-model.d.ts +0 -42
  133. package/dist/ts/file-manager/models/search-settings.d.ts +0 -44
  134. package/dist/ts/file-manager/models/search-settings.ts +0 -53
  135. package/dist/ts/file-manager/models/toolbar-settings-model.d.ts +0 -197
  136. package/dist/ts/file-manager/models/toolbar-settings.d.ts +0 -174
  137. package/dist/ts/file-manager/models/toolbar-settings.ts +0 -198
  138. package/dist/ts/file-manager/models/upload-settings-model.d.ts +0 -70
  139. package/dist/ts/file-manager/models/upload-settings.d.ts +0 -61
  140. package/dist/ts/file-manager/models/upload-settings.ts +0 -75
  141. package/dist/ts/file-manager/pop-up/context-menu.d.ts +0 -64
  142. package/dist/ts/file-manager/pop-up/context-menu.ts +0 -693
  143. package/dist/ts/file-manager/pop-up/dialog.d.ts +0 -31
  144. package/dist/ts/file-manager/pop-up/dialog.ts +0 -1009
  145. package/dist/ts/file-manager/pop-up/index.d.ts +0 -5
  146. package/dist/ts/file-manager/pop-up/index.ts +0 -5
  147. package/dist/ts/index.d.ts +0 -4
  148. package/dist/ts/index.ts +0 -4
@@ -1,952 +0,0 @@
1
- import { Component, EmitType, L10n } from '@syncfusion/ej2-base';
2
- import { Dialog, ButtonPropsModel } from '@syncfusion/ej2-popups';
3
- import { FileManagerModel } from '../base/file-manager-model';
4
- import { ToolbarSettingsModel, AjaxSettingsModel, ToolbarItemModel } from '../models/index';
5
- import { DetailsViewSettingsModel } from '../models/details-view-settings-model';
6
- import { TreeView, ContextMenu, MenuItemModel, ItemModel } from '@syncfusion/ej2-navigations';
7
- import { DetailsView } from '../layout/details-view';
8
- import { Toolbar } from '../actions/toolbar';
9
- import { Splitter } from '@syncfusion/ej2-layouts';
10
- import { SearchSettingsModel } from '../models/search-settings-model';
11
- import { ContextMenuSettingsModel } from '../models/contextMenu-settings-model';
12
- import { LargeIconsView } from '../layout';
13
- import { NavigationPaneSettingsModel } from '../models/navigation-pane-settings-model';
14
- import { Uploader } from '@syncfusion/ej2-inputs';
15
- import { BreadCrumbBar, Virtualization } from '../actions';
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;
26
- /**
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
- * ```
32
- */
33
- export declare type ViewType = 'LargeIcons' | 'Details';
34
- /**
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
- * ```
41
- */
42
- export declare type SortOrder = 'Ascending' | 'Descending' | 'None';
43
- /**
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
- * ```
60
- */
61
- export declare type ToolBarItems = 'NewFolder' | 'Upload' | 'Cut' | 'Copy' | 'Paste' | 'Delete' | 'Download' | 'Rename' | 'SortBy' | 'Refresh' | 'Selection' | 'View' | 'Details';
62
- /**
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
- * ```
79
- */
80
- export declare type MenuItems = 'NewFolder' | 'Upload' | 'Cut' | 'Copy' | 'Paste' | 'Delete' | 'Download' | 'Rename' | 'SortBy' | 'Refresh' | 'SelectAll' | 'View' | 'Details' | 'Open';
81
- /**
82
- * Interfaces for File Manager Toolbar items.
83
- */
84
- export interface IToolBarItems {
85
- template?: string;
86
- tooltipText?: string;
87
- }
88
- /** @hidden */
89
- export interface NotifyArgs {
90
- module?: string;
91
- newProp?: FileManagerModel;
92
- oldProp?: FileManagerModel;
93
- target?: Element;
94
- selectedNode?: string;
95
- }
96
- /** @hidden */
97
- export interface ReadArgs {
98
- cwd?: {
99
- [key: string]: Object;
100
- };
101
- files?: {
102
- [key: string]: Object;
103
- }[];
104
- error?: ErrorArgs;
105
- details?: Object;
106
- id?: string;
107
- }
108
- /** @hidden */
109
- export interface MouseArgs {
110
- target?: Element;
111
- }
112
- /** @hidden */
113
- export interface UploadArgs {
114
- files?: {
115
- [key: string]: Object;
116
- }[];
117
- error?: Object[];
118
- details?: Object;
119
- }
120
- /** @hidden */
121
- export interface RetryArgs {
122
- action: string;
123
- file: FileInfo;
124
- }
125
- /** @hidden */
126
- export interface ErrorArgs {
127
- code?: string;
128
- message?: string;
129
- fileExists?: string[];
130
- }
131
- /** @hidden */
132
- export interface DialogOptions {
133
- dialogName?: string;
134
- header?: string;
135
- content?: string;
136
- buttons?: ButtonPropsModel[];
137
- open?: EmitType<Object>;
138
- close?: EmitType<Object>;
139
- }
140
- /** @hidden */
141
- export interface SearchArgs {
142
- files?: {
143
- [key: string]: Object;
144
- }[];
145
- error?: Object[];
146
- details?: Object;
147
- }
148
- /**
149
- * Interfaces for File details.
150
- */
151
- export interface FileDetails {
152
- created?: string;
153
- isFile: boolean;
154
- location: string;
155
- modified: string;
156
- name: string;
157
- size: number;
158
- icon: string;
159
- multipleFiles: boolean;
160
- permission: Object;
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
- }
248
- /** @hidden */
249
- export interface DownloadArgs {
250
- files?: {
251
- [key: string]: Object;
252
- }[];
253
- error?: Object[];
254
- details?: Object;
255
- }
256
- /**
257
- * Interface for Drag Event arguments
258
- */
259
- export interface FileDragEventArgs {
260
- /**
261
- * Return the current items as an array of JSON object.
262
- */
263
- fileDetails?: Object[];
264
- /**
265
- * Specifies the actual event.
266
- */
267
- event?: MouseEvent & TouchEvent;
268
- /**
269
- * Specifies the current drag element.
270
- */
271
- element?: HTMLElement;
272
- /**
273
- * Specifies the current target element.
274
- */
275
- target?: HTMLElement;
276
- /**
277
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
278
- */
279
- cancel?: boolean;
280
- }
281
- /**
282
- * Interface for BeforeSend event arguments.
283
- */
284
- export interface BeforeSendEventArgs {
285
- /**
286
- * Return the name of the AJAX action will be performed.
287
- */
288
- action?: string;
289
- /**
290
- * Return the AJAX details, which are send to server.
291
- */
292
- ajaxSettings?: Object;
293
- /**
294
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
295
- */
296
- cancel?: boolean;
297
- }
298
- /**
299
- * Interface for BeforeDownload event arguments.
300
- */
301
- export interface BeforeDownloadEventArgs {
302
- /**
303
- * Specifies the data to be sent to server.
304
- */
305
- data?: Object;
306
- /**
307
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
308
- */
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;
318
- }
319
- /**
320
- * Interface for BeforeImageLoad event arguments.
321
- */
322
- export interface BeforeImageLoadEventArgs {
323
- /**
324
- * Return the current rendering image item as an array of JSON object.
325
- */
326
- fileDetails?: Object[];
327
- /**
328
- * Specifies the URL along with custom attributes to be sent to server.
329
- */
330
- imageUrl?: string;
331
- /**
332
- * Returns the AJAX configuration details used when the `ajaxSettings` URL is specified.
333
- */
334
- ajaxSettings?: Object;
335
- /**
336
- * Specifies whether the image source should be represented as a URL or a Blob object.
337
- * Set this property to <c>false</c> to render the image source as a Blob (e.g., via `URL.createObjectURL(file)`), which is useful in scenarios.
338
- * where the File Manager must authenticate requests to access the images.
339
- */
340
- useImageAsUrl?: boolean;
341
- }
342
- /**
343
- * Interface for folder create event arguments.
344
- */
345
- export interface FolderCreateEventArgs {
346
- /**
347
- * Defines whether to cancel the creation of new folder.
348
- */
349
- cancel?: boolean;
350
- /**
351
- * Defines the newly created folder name.
352
- */
353
- folderName?: string;
354
- /**
355
- * Returns the parent folder data where the new folder is created.
356
- */
357
- parentFolder?: {
358
- [key: string]: Object;
359
- }[];
360
- /**
361
- * Specifies the current folder path.
362
- */
363
- path?: string;
364
- }
365
- /**
366
- * Interface for deleting event arguments.
367
- */
368
- export interface DeleteEventArgs {
369
- /**
370
- * Defines whether to cancel the delete action of file or folder.
371
- */
372
- cancel?: boolean;
373
- /**
374
- * Returns the data of the deleted item.
375
- */
376
- itemData?: {
377
- [key: string]: Object;
378
- }[];
379
- /**
380
- * Specifies the current folder path.
381
- */
382
- path?: string;
383
- }
384
- /**
385
- * Interface for Rename event arguments.
386
- */
387
- export interface RenameEventArgs {
388
- /**
389
- * Defines whether to cancel the rename operation.
390
- */
391
- cancel?: boolean;
392
- /**
393
- * Return the new name to be set for the item.
394
- */
395
- newName?: string;
396
- /**
397
- * Returns the data of the renamed item.
398
- */
399
- itemData?: {
400
- [key: string]: Object;
401
- }[];
402
- /**
403
- * Specifies the current folder path.
404
- */
405
- path?: string;
406
- }
407
- /**
408
- * Interface for Move event arguments.
409
- */
410
- export interface MoveEventArgs {
411
- /**
412
- * Defines whether to cancel the moving of folder from current path.
413
- */
414
- cancel?: boolean;
415
- /**
416
- * Defines whether the current action is `copy`.
417
- */
418
- isCopy?: boolean;
419
- /**
420
- * Returns the data of the moved item.
421
- */
422
- itemData?: {
423
- [key: string]: Object;
424
- }[];
425
- /**
426
- * Specifies the current folder path.
427
- */
428
- path?: string;
429
- /**
430
- * Returns the data of the target folder to which the file or folder is to be pasted.
431
- */
432
- targetData?: {
433
- [key: string]: Object;
434
- };
435
- /**
436
- * Specifies the target folder path to which the item is pasted.
437
- */
438
- targetPath?: string;
439
- }
440
- /**
441
- * Interface for Search event arguments.
442
- */
443
- export interface SearchEventArgs {
444
- /**
445
- * Return the search results which matches the entered search character.
446
- */
447
- searchResults?: {
448
- [key: string]: Object;
449
- }[];
450
- /**
451
- * Specifies whether the default search action must be cancel.
452
- */
453
- cancel?: boolean;
454
- /**
455
- * Specifies the current folder path where the search action takes place.
456
- */
457
- path?: string;
458
- /**
459
- * Specifies the search text which is entered in the input element.
460
- */
461
- searchText?: string;
462
- /**
463
- * Specifies the searching of file or folder is case sensitive or not.
464
- */
465
- caseSensitive?: boolean;
466
- /**
467
- * Specifies whether the user has permission to view hidden items.
468
- */
469
- showHiddenItems?: boolean;
470
- }
471
- /**
472
- * Interface for Success event arguments.
473
- */
474
- export interface SuccessEventArgs {
475
- /**
476
- * Return the name of the AJAX action will be performed.
477
- */
478
- action?: string;
479
- /**
480
- * Return the AJAX details which are send to server.
481
- */
482
- result?: Object;
483
- }
484
- /**
485
- * Interface for Failure event arguments.
486
- */
487
- export interface FailureEventArgs {
488
- /**
489
- * Return the name of the AJAX action will be performed.
490
- */
491
- action?: string;
492
- /**
493
- * Return the AJAX details, which are send to server.
494
- */
495
- error?: Object;
496
- }
497
- /**
498
- * Interface for FileLoad event arguments.
499
- */
500
- export interface FileLoadEventArgs {
501
- /**
502
- * Return the current rendering item.
503
- */
504
- element?: HTMLElement;
505
- /**
506
- * Return the current rendering item as JSON object.
507
- */
508
- fileDetails?: Object;
509
- /**
510
- * Return the name of the rendering module in File Manager.
511
- */
512
- module?: string;
513
- }
514
- /**
515
- * Interface for FileOpen event arguments.
516
- */
517
- export interface FileOpenEventArgs {
518
- /**
519
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
520
- */
521
- cancel?: boolean;
522
- /**
523
- * Return the currently selected item as JSON object.
524
- */
525
- fileDetails?: Object;
526
- /**
527
- * Returns the name of the target module in file manager.
528
- */
529
- module?: string;
530
- }
531
- /**
532
- * Interface for PopupOpenClose event arguments.
533
- */
534
- export interface PopupOpenCloseEventArgs {
535
- /**
536
- * Returns the current dialog component instance.
537
- */
538
- popupModule?: Dialog;
539
- /**
540
- * Returns the current dialog element.
541
- */
542
- element: HTMLElement;
543
- /**
544
- * Returns the current dialog action name.
545
- */
546
- popupName: string;
547
- }
548
- /**
549
- * Interface for BeforePopupOpenClose event arguments.
550
- */
551
- export interface BeforePopupOpenCloseEventArgs {
552
- /**
553
- * Returns the current dialog component instance.
554
- */
555
- popupModule: Dialog;
556
- /**
557
- * Returns the current dialog action name.
558
- */
559
- popupName: string;
560
- /**
561
- * Prevents the dialog from opening when it is set to true.
562
- */
563
- cancel: boolean;
564
- }
565
- /**
566
- * Interface for FileSelect event arguments.
567
- */
568
- export interface FileSelectEventArgs {
569
- /**
570
- * Return the name of action like select or unselect.
571
- */
572
- action?: string;
573
- /**
574
- * Return the currently selected item as JSON object.
575
- */
576
- fileDetails?: Object;
577
- /**
578
- * Defines whether event is triggered by interaction or not.
579
- */
580
- isInteracted?: boolean;
581
- }
582
- /**
583
- * Interface for FileSelection event arguments.
584
- */
585
- export interface FileSelectionEventArgs {
586
- /**
587
- * Return the name of action like select or unselect.
588
- */
589
- action?: string;
590
- /**
591
- * Defines the cancel selected file or folder.
592
- */
593
- cancel?: boolean;
594
- /**
595
- * Return the currently selected item as JSON object.
596
- */
597
- fileDetails?: Object;
598
- /**
599
- * Defines whether event is triggered by interaction or not.
600
- */
601
- isInteracted?: boolean;
602
- /**
603
- * Specifies the actual target.
604
- */
605
- target?: Element;
606
- }
607
- /**
608
- * Interface for ToolbarCreate event arguments.
609
- */
610
- export interface ToolbarCreateEventArgs {
611
- /**
612
- * Return an array of items that is used to configure toolbar content.
613
- */
614
- items: ItemModel[];
615
- }
616
- /**
617
- * Interface for ToolbarClick event arguments.
618
- */
619
- export interface ToolbarClickEventArgs {
620
- /**
621
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
622
- */
623
- cancel: boolean;
624
- /**
625
- * Return the currently selected folder/file items as an array of JSON object.
626
- */
627
- fileDetails: Object[];
628
- /**
629
- * Return the currently clicked toolbar item as JSON object.
630
- */
631
- item: ItemModel;
632
- }
633
- /**
634
- * Interface for MenuClick event arguments.
635
- */
636
- export interface MenuClickEventArgs {
637
- /**
638
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
639
- */
640
- cancel?: boolean;
641
- /**
642
- * Return the currently clicked context menu item.
643
- */
644
- element?: HTMLElement;
645
- /**
646
- * Return the currently selected folder/file items as an array of JSON object.
647
- */
648
- fileDetails?: Object[];
649
- /**
650
- * Return the currently clicked context menu item as JSON object.
651
- */
652
- item?: MenuItemModel;
653
- }
654
- /**
655
- * Interface for MenuOpen event arguments.
656
- */
657
- export interface MenuOpenEventArgs {
658
- /**
659
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
660
- */
661
- cancel?: boolean;
662
- /**
663
- * Returns the current context menu element.
664
- */
665
- element?: HTMLElement;
666
- /**
667
- * Returns the target folder/file item as an array of JSON object.
668
- */
669
- fileDetails?: Object[];
670
- /**
671
- * Returns the current context menu items as JSON object.
672
- */
673
- items?: MenuItemModel[];
674
- /**
675
- * Returns the instance of context menu component.
676
- */
677
- menuModule?: ContextMenu;
678
- /**
679
- * Returns whether the current context menu is sub-menu or not.
680
- */
681
- isSubMenu?: boolean;
682
- /**
683
- * Returns the target element of context menu.
684
- */
685
- target?: Element;
686
- /**
687
- * Returns the current context menu type based on current target.
688
- */
689
- menuType?: string;
690
- }
691
- /**
692
- * Interface for MenuClose event arguments.
693
- */
694
- export interface MenuCloseEventArgs {
695
- /**
696
- * If you want to cancel this event then, set cancel to true. Otherwise, false.
697
- */
698
- cancel?: boolean;
699
- /**
700
- * Returns the current context menu element.
701
- */
702
- element?: HTMLElement;
703
- /**
704
- * Specifies the actual event.
705
- */
706
- event?: Event;
707
- /**
708
- * Returns whether the current context menu is focused or not.
709
- */
710
- isFocused?: boolean;
711
- /**
712
- * Returns the target folder/file item as an array of JSON object.
713
- */
714
- fileDetails?: Object[];
715
- /**
716
- * Returns the current context menu items as JSON object.
717
- */
718
- items?: MenuItemModel[];
719
- /**
720
- * Returns the parent context menu item as JSON object.
721
- */
722
- parentItem?: MenuItemModel;
723
- /**
724
- * Returns the current context menu type based on current target.
725
- */
726
- menuType?: string;
727
- }
728
- /**
729
- * Interface for UploadListCreate event arguments.
730
- */
731
- export interface UploadListCreateArgs {
732
- /**
733
- * Return the current file item element.
734
- */
735
- element: HTMLElement;
736
- /**
737
- * Return the current rendering file item data as file object.
738
- */
739
- fileInfo: FileInfo;
740
- /**
741
- * Return the index of the file item in the file list.
742
- */
743
- index: number;
744
- /**
745
- * Return whether the file is preloaded.
746
- */
747
- isPreload: boolean;
748
- }
749
- /**
750
- * Interface for File information.
751
- */
752
- export interface FileInfo {
753
- /**
754
- * Returns the upload file name.
755
- */
756
- name: string;
757
- /**
758
- * Returns the details about upload file.
759
- */
760
- rawFile: string | Blob;
761
- /**
762
- * Returns the size of file in bytes.
763
- */
764
- size: number;
765
- /**
766
- * Returns the status of the file.
767
- */
768
- status: string;
769
- /**
770
- * Returns the MIME type of file as a string. Returns empty string if the file's type is not determined.
771
- */
772
- type: string;
773
- /**
774
- * Returns the list of validation errors (if any).
775
- */
776
- validationMessages: ValidationMessages;
777
- /**
778
- * Returns the current state of the file such as Failed, Canceled, Selected, Uploaded, or Uploading.
779
- */
780
- statusCode: string;
781
- /**
782
- * Returns where the file selected from, to upload.
783
- */
784
- fileSource?: string;
785
- }
786
- /**
787
- * Interface for Validation messages.
788
- */
789
- export interface ValidationMessages {
790
- /**
791
- * Returns the minimum file size validation message, if selected file size is less than the specified minFileSize property.
792
- */
793
- minSize?: string;
794
- /**
795
- * Returns the maximum file size validation message, if selected file size is less than specified maxFileSize property.
796
- */
797
- maxSize?: string;
798
- }
799
- /** @hidden */
800
- export interface IFileManager extends Component<HTMLElement> {
801
- hasId: boolean;
802
- pathNames: string[];
803
- pathId: string[];
804
- originalPath: string;
805
- filterPath: string;
806
- filterId: string;
807
- expandedId: string;
808
- itemData: Object[];
809
- visitedData: Object;
810
- visitedItem: Element;
811
- feParent: Object[];
812
- feFiles: Object[];
813
- ajaxSettings: AjaxSettingsModel;
814
- fileSystemData: {
815
- [key: string]: Object;
816
- }[];
817
- toolbarSettings: ToolbarSettingsModel;
818
- toolbarItems: ToolbarItemModel[];
819
- detailsViewSettings: DetailsViewSettingsModel;
820
- dialogObj: Dialog;
821
- viewerObj: Dialog;
822
- extDialogObj: Dialog;
823
- splitterObj: Splitter;
824
- breadCrumbBarNavigation: HTMLElement;
825
- searchSettings: SearchSettingsModel;
826
- activeElements: Element[];
827
- contextMenuSettings: ContextMenuSettingsModel;
828
- contextmenuModule?: IContextMenu;
829
- navigationPaneSettings: NavigationPaneSettingsModel;
830
- targetPath: string;
831
- activeModule: string;
832
- selectedNodes: string[];
833
- previousPath: string[];
834
- nextPath: string[];
835
- navigationpaneModule: ITreeView;
836
- largeiconsviewModule: LargeIconsView;
837
- breadcrumbbarModule: BreadCrumbBar;
838
- virtualizationModule: Virtualization;
839
- toolbarSelection: boolean;
840
- duplicateItems: string[];
841
- duplicateRecords: Object[];
842
- fileAction: string;
843
- replaceItems: string[];
844
- createdItem: {
845
- [key: string]: Object;
846
- };
847
- renamedItem: {
848
- [key: string]: Object;
849
- };
850
- renamedId: string;
851
- uploadItem: string[];
852
- fileLength: number;
853
- detailsviewModule: DetailsView;
854
- toolbarModule: Toolbar;
855
- fileView: string;
856
- isDevice: boolean;
857
- isMobile: boolean;
858
- isBigger: boolean;
859
- isFile: boolean;
860
- allowMultiSelection: boolean;
861
- showItemCheckBoxes: boolean;
862
- selectedItems: string[];
863
- layoutSelectedItems: string[];
864
- sortOrder: SortOrder;
865
- sortBy: string;
866
- sortComparer: SortComparer | string;
867
- actionRecords: Object[];
868
- activeRecords: Object[];
869
- pasteNodes: string[];
870
- responseData: {
871
- [key: string]: Object;
872
- };
873
- existingFileCount: number;
874
- isCut: boolean;
875
- filterData: Object;
876
- isFiltered: boolean;
877
- isSortByClicked: boolean;
878
- isLayoutChange: boolean;
879
- isSearchCut: boolean;
880
- isPasteError: boolean;
881
- isSameAction: boolean;
882
- currentItemText: string;
883
- renameText: string;
884
- view: ViewType;
885
- isPathDrag: boolean;
886
- enablePaste: boolean;
887
- showThumbnail: boolean;
888
- allowDragAndDrop: boolean;
889
- enableRtl: boolean;
890
- rootAliasName: string;
891
- path: string;
892
- popupTarget: HTMLElement | string;
893
- folderPath: string;
894
- showFileExtension: boolean;
895
- enablePersistence: boolean;
896
- enableVirtualization: boolean;
897
- showHiddenItems: boolean;
898
- persistData: boolean;
899
- localeObj: L10n;
900
- uploadObj: Uploader;
901
- cssClass: string;
902
- searchedItems: Object[];
903
- searchWord: string;
904
- retryFiles: FileInfo[];
905
- retryArgs: RetryArgs[];
906
- isApplySame: boolean;
907
- isRetryOpened: boolean;
908
- dragData: {
909
- [key: string]: Object;
910
- }[];
911
- dragNodes: string[];
912
- dragPath: string;
913
- dropPath: string;
914
- dropData: Object;
915
- virtualDragElement: HTMLElement;
916
- isDragDrop: boolean;
917
- isSearchDrag: boolean;
918
- targetModule: string;
919
- treeExpandTimer: number;
920
- dragCursorPosition: PositionModel;
921
- isDropEnd: boolean;
922
- dragCount: number;
923
- droppedObjects: Object[];
924
- uploadEventArgs: BeforeSendEventArgs;
925
- destinationPath: string;
926
- enableHtmlSanitizer: boolean;
927
- refreshLayout(): void;
928
- traverseBackward(): void;
929
- isMac: boolean;
930
- oldView: string;
931
- oldPath: string;
932
- }
933
- /** @hidden */
934
- export interface ITreeView extends Component<HTMLElement> {
935
- treeObj: TreeView;
936
- removeNode: Function;
937
- removeNodes: string[];
938
- duplicateFiles: Function;
939
- rootID: string;
940
- activeNode: Element;
941
- openFileOnContextMenuClick: Function;
942
- previousSelected: string[];
943
- }
944
- /** @hidden */
945
- export interface IContextMenu extends Component<HTMLElement> {
946
- disableItem(items: string[]): void;
947
- enableItems(items: string[], enable?: boolean, isUniqueId?: boolean): void;
948
- getItemIndex(item: string): number;
949
- contextMenu: ContextMenu;
950
- contextMenuBeforeOpen: Function;
951
- items: MenuItemModel[];
952
- }