@syncfusion/ej2-filemanager 25.2.6 → 26.1.40
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.
- package/.eslintrc.json +3 -2
- package/dist/ej2-filemanager.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +931 -462
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +975 -515
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -2
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +16 -16
- package/src/file-manager/actions/breadcrumb-bar.js +0 -4
- package/src/file-manager/actions/toolbar.js +1 -13
- package/src/file-manager/actions/virtualization.d.ts +28 -8
- package/src/file-manager/actions/virtualization.js +37 -13
- package/src/file-manager/base/file-manager-model.d.ts +107 -36
- package/src/file-manager/base/file-manager.d.ts +100 -25
- package/src/file-manager/base/file-manager.js +46 -20
- package/src/file-manager/base/interface.d.ts +224 -2
- package/src/file-manager/base/interface.js +0 -1
- package/src/file-manager/common/operations.d.ts +7 -0
- package/src/file-manager/common/operations.js +596 -94
- package/src/file-manager/common/utility.d.ts +22 -0
- package/src/file-manager/common/utility.js +117 -65
- package/src/file-manager/layout/details-view.d.ts +1 -1
- package/src/file-manager/layout/details-view.js +23 -68
- package/src/file-manager/layout/large-icons-view.js +24 -46
- package/src/file-manager/layout/navigation-pane.js +18 -41
- package/src/file-manager/models/column-model.d.ts +1 -3
- package/src/file-manager/models/default-locale.js +0 -1
- package/src/file-manager/models/details-view-settings.js +2 -1
- package/src/file-manager/pop-up/context-menu.js +25 -24
- package/src/file-manager/pop-up/dialog.d.ts +1 -2
- package/src/file-manager/pop-up/dialog.js +12 -35
- package/styles/bootstrap-dark.css +116 -105
- package/styles/bootstrap-dark.scss +16 -1
- package/styles/bootstrap.css +117 -106
- package/styles/bootstrap.scss +16 -1
- package/styles/bootstrap4.css +116 -105
- package/styles/bootstrap4.scss +16 -1
- package/styles/bootstrap5-dark.css +98 -98
- package/styles/bootstrap5-dark.scss +16 -1
- package/styles/bootstrap5.css +98 -98
- package/styles/bootstrap5.scss +16 -1
- package/styles/fabric-dark.css +116 -105
- package/styles/fabric-dark.scss +16 -1
- package/styles/fabric.css +116 -105
- package/styles/fabric.scss +16 -1
- package/styles/file-manager/_bds-definition.scss +1 -1
- package/styles/file-manager/_bootstrap5-definition.scss +2 -1
- package/styles/file-manager/_bootstrap5.3-definition.scss +240 -0
- package/styles/file-manager/_fluent-definition.scss +1 -1
- package/styles/file-manager/_fluent2-definition.scss +249 -0
- package/styles/file-manager/_layout.scss +260 -396
- package/styles/file-manager/_material-dark-definition.scss +1 -0
- package/styles/file-manager/_material-definition.scss +1 -0
- package/styles/file-manager/_material3-definition.scss +1 -27
- package/styles/file-manager/_tailwind-definition.scss +1 -1
- package/styles/file-manager/_theme.scss +37 -85
- package/styles/file-manager/bootstrap-dark.css +116 -105
- package/styles/file-manager/bootstrap.css +117 -106
- package/styles/file-manager/bootstrap4.css +116 -105
- package/styles/file-manager/bootstrap5-dark.css +98 -98
- package/styles/file-manager/bootstrap5.css +98 -98
- package/styles/file-manager/fabric-dark.css +116 -105
- package/styles/file-manager/fabric.css +116 -105
- package/styles/file-manager/fluent-dark.css +107 -102
- package/styles/file-manager/fluent.css +107 -102
- package/styles/file-manager/fluent2.css +2868 -0
- package/styles/file-manager/fluent2.scss +16 -0
- package/styles/file-manager/highcontrast-light.css +116 -105
- package/styles/file-manager/highcontrast.css +116 -105
- package/styles/file-manager/icons/_bootstrap5.3.scss +235 -0
- package/styles/file-manager/icons/_fluent2.scss +235 -0
- package/styles/file-manager/material-dark.css +140 -108
- package/styles/file-manager/material.css +156 -112
- package/styles/file-manager/material3-dark.css +134 -109
- package/styles/file-manager/material3.css +134 -109
- package/styles/file-manager/tailwind-dark.css +93 -95
- package/styles/file-manager/tailwind.css +93 -95
- package/styles/fluent-dark.css +107 -102
- package/styles/fluent-dark.scss +16 -1
- package/styles/fluent.css +107 -102
- package/styles/fluent.scss +16 -1
- package/styles/fluent2.css +2868 -0
- package/styles/fluent2.scss +16 -0
- package/styles/highcontrast-light.css +116 -105
- package/styles/highcontrast-light.scss +16 -1
- package/styles/highcontrast.css +116 -105
- package/styles/highcontrast.scss +16 -1
- package/styles/material-dark.css +140 -108
- package/styles/material-dark.scss +16 -1
- package/styles/material.css +156 -112
- package/styles/material.scss +16 -1
- package/styles/material3-dark.css +134 -109
- package/styles/material3-dark.scss +16 -1
- package/styles/material3.css +134 -109
- package/styles/material3.scss +16 -1
- package/styles/tailwind-dark.css +93 -95
- package/styles/tailwind-dark.scss +16 -1
- package/styles/tailwind.css +93 -95
- package/styles/tailwind.scss +16 -1
- package/CHANGELOG.md +0 -475
@@ -159,6 +159,92 @@ export interface FileDetails {
|
|
159
159
|
multipleFiles: boolean;
|
160
160
|
permission: Object;
|
161
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
|
+
}
|
162
248
|
/** @hidden */
|
163
249
|
export interface DownloadArgs {
|
164
250
|
files?: {
|
@@ -222,8 +308,8 @@ export interface BeforeDownloadEventArgs {
|
|
222
308
|
*/
|
223
309
|
cancel?: boolean;
|
224
310
|
/**
|
225
|
-
|
226
|
-
|
311
|
+
* Return the AJAX details, which are send to server.
|
312
|
+
*/
|
227
313
|
ajaxSettings?: Object;
|
228
314
|
/**
|
229
315
|
* Specifies whether the download is performed through the form submit method or using an HTTP client instance.
|
@@ -243,6 +329,135 @@ export interface BeforeImageLoadEventArgs {
|
|
243
329
|
*/
|
244
330
|
imageUrl?: string;
|
245
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
|
+
}
|
246
461
|
/**
|
247
462
|
* Interface for Success event arguments.
|
248
463
|
*/
|
@@ -549,6 +764,9 @@ export interface IFileManager extends Component<HTMLElement> {
|
|
549
764
|
feParent: Object[];
|
550
765
|
feFiles: Object[];
|
551
766
|
ajaxSettings: AjaxSettingsModel;
|
767
|
+
fileSystemData: {
|
768
|
+
[key: string]: Object;
|
769
|
+
}[];
|
552
770
|
toolbarSettings: ToolbarSettingsModel;
|
553
771
|
toolbarItems: ToolbarItemModel[];
|
554
772
|
detailsViewSettings: DetailsViewSettingsModel;
|
@@ -602,6 +820,10 @@ export interface IFileManager extends Component<HTMLElement> {
|
|
602
820
|
actionRecords: Object[];
|
603
821
|
activeRecords: Object[];
|
604
822
|
pasteNodes: string[];
|
823
|
+
responseData: {
|
824
|
+
[key: string]: Object;
|
825
|
+
};
|
826
|
+
existingFileCount: number;
|
605
827
|
isCut: boolean;
|
606
828
|
filterData: Object;
|
607
829
|
isFiltered: boolean;
|
@@ -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
|
*
|