@volo/abp.ng.file-management 10.0.2 → 10.1.0-rc.2
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/fesm2022/volo-abp.ng.file-management-common.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.file-management-config.mjs +4 -4
- package/fesm2022/volo-abp.ng.file-management-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.file-management-proxy.mjs +21 -6
- package/fesm2022/volo-abp.ng.file-management-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.file-management.mjs +415 -142
- package/fesm2022/volo-abp.ng.file-management.mjs.map +1 -1
- package/package.json +9 -9
- package/{config/index.d.ts → types/volo-abp.ng.file-management-config.d.ts} +2 -1
- package/{proxy/index.d.ts → types/volo-abp.ng.file-management-proxy.d.ts} +16 -1
- package/{index.d.ts → types/volo-abp.ng.file-management.d.ts} +177 -125
- /package/{common/index.d.ts → types/volo-abp.ng.file-management-common.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.file-management",
|
|
3
|
-
"version": "10.0.2",
|
|
3
|
+
"version": "10.1.0-rc.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@abp/ng.components": "~10.0.2",
|
|
5
|
+
"@abp/ng.components": "~10.1.0-rc.2",
|
|
6
6
|
"@uppy/core": "^3.0.0",
|
|
7
7
|
"@uppy/dashboard": "^3.0.0",
|
|
8
8
|
"@uppy/xhr-upload": "^3.0.0",
|
|
9
9
|
"tslib": "^2.0.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@abp/ng.core": ">=10.0.2",
|
|
13
|
-
"@abp/ng.theme.shared": ">=10.0.2"
|
|
12
|
+
"@abp/ng.core": ">=10.1.0-rc.2",
|
|
13
|
+
"@abp/ng.theme.shared": ">=10.1.0-rc.2"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"webapp"
|
|
36
36
|
],
|
|
37
37
|
"module": "fesm2022/volo-abp.ng.file-management.mjs",
|
|
38
|
-
"typings": "
|
|
38
|
+
"typings": "types/volo-abp.ng.file-management.d.ts",
|
|
39
39
|
"exports": {
|
|
40
40
|
"./package.json": {
|
|
41
41
|
"default": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
".": {
|
|
44
|
-
"types": "./
|
|
44
|
+
"types": "./types/volo-abp.ng.file-management.d.ts",
|
|
45
45
|
"default": "./fesm2022/volo-abp.ng.file-management.mjs"
|
|
46
46
|
},
|
|
47
47
|
"./common": {
|
|
48
|
-
"types": "./
|
|
48
|
+
"types": "./types/volo-abp.ng.file-management-common.d.ts",
|
|
49
49
|
"default": "./fesm2022/volo-abp.ng.file-management-common.mjs"
|
|
50
50
|
},
|
|
51
51
|
"./config": {
|
|
52
|
-
"types": "./
|
|
52
|
+
"types": "./types/volo-abp.ng.file-management-config.d.ts",
|
|
53
53
|
"default": "./fesm2022/volo-abp.ng.file-management-config.mjs"
|
|
54
54
|
},
|
|
55
55
|
"./proxy": {
|
|
56
|
-
"types": "./
|
|
56
|
+
"types": "./types/volo-abp.ng.file-management-proxy.d.ts",
|
|
57
57
|
"default": "./fesm2022/volo-abp.ng.file-management-proxy.mjs"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
@@ -13,7 +13,8 @@ declare const enum eFileManagementPolicyNames {
|
|
|
13
13
|
FileDescriptor = "FileManagement.FileDescriptor",
|
|
14
14
|
FileDescriptorCreate = "FileManagement.FileDescriptor.Create",
|
|
15
15
|
FileDescriptorDelete = "FileManagement.FileDescriptor.Delete",
|
|
16
|
-
FileDescriptorUpdate = "FileManagement.FileDescriptor.Update"
|
|
16
|
+
FileDescriptorUpdate = "FileManagement.FileDescriptor.Update",
|
|
17
|
+
FileDescriptorShare = "FileManagement.FileDescriptor.Share"
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
interface FileManagementConfigModuleOptions {
|
|
@@ -29,6 +29,8 @@ interface FileDescriptorDto extends ExtensibleAuditedEntityDto<string> {
|
|
|
29
29
|
mimeType?: string;
|
|
30
30
|
size: number;
|
|
31
31
|
concurrencyStamp?: string;
|
|
32
|
+
shared: boolean;
|
|
33
|
+
shareToken?: string;
|
|
32
34
|
}
|
|
33
35
|
interface FileIconInfo {
|
|
34
36
|
icon?: string;
|
|
@@ -53,6 +55,14 @@ interface RenameFileInput {
|
|
|
53
55
|
name: string;
|
|
54
56
|
concurrencyStamp?: string;
|
|
55
57
|
}
|
|
58
|
+
interface StorageSizeInfoDto {
|
|
59
|
+
totalUsedSize: number;
|
|
60
|
+
maxStorageSize: number;
|
|
61
|
+
availableSize: number;
|
|
62
|
+
formattedUsedSize?: string;
|
|
63
|
+
formattedMaxSize?: string;
|
|
64
|
+
formattedAvailableSize?: string;
|
|
65
|
+
}
|
|
56
66
|
|
|
57
67
|
interface CreateDirectoryInput extends ExtensibleObject {
|
|
58
68
|
parentId?: string;
|
|
@@ -64,6 +74,8 @@ interface DirectoryContentDto extends ExtensibleAuditedEntityDto<string> {
|
|
|
64
74
|
size: number;
|
|
65
75
|
iconInfo: FileIconInfo;
|
|
66
76
|
concurrencyStamp?: string;
|
|
77
|
+
shared: boolean;
|
|
78
|
+
shareToken?: string;
|
|
67
79
|
}
|
|
68
80
|
interface DirectoryContentRequestInput extends PagedAndSortedResultRequestDto {
|
|
69
81
|
filter?: string;
|
|
@@ -110,16 +122,19 @@ declare class FileDescriptorService {
|
|
|
110
122
|
create: (directoryId: string, inputWithStream: CreateFileInputWithStream, config?: Partial<Rest.Config>) => rxjs.Observable<FileDescriptorDto>;
|
|
111
123
|
delete: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
112
124
|
download: (id: string, token: string, config?: Partial<Rest.Config>) => rxjs.Observable<Blob>;
|
|
125
|
+
downloadShareFile: (shareToken: string, config?: Partial<Rest.Config>) => rxjs.Observable<Blob>;
|
|
113
126
|
get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<FileDescriptorDto>;
|
|
114
127
|
getContent: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<number[]>;
|
|
115
128
|
getDownloadToken: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<DownloadTokenResultDto>;
|
|
116
129
|
getList: (directoryId: string, config?: Partial<Rest.Config>) => rxjs.Observable<ListResultDto<FileDescriptorDto>>;
|
|
117
130
|
getPreInfo: (input: FileUploadPreInfoRequest[], config?: Partial<Rest.Config>) => rxjs.Observable<FileUploadPreInfoDto[]>;
|
|
131
|
+
getStorageSizeInfo: (config?: Partial<Rest.Config>) => rxjs.Observable<StorageSizeInfoDto>;
|
|
118
132
|
move: (input: MoveFileInput, config?: Partial<Rest.Config>) => rxjs.Observable<FileDescriptorDto>;
|
|
119
133
|
rename: (id: string, input: RenameFileInput, config?: Partial<Rest.Config>) => rxjs.Observable<FileDescriptorDto>;
|
|
134
|
+
shareFile: (id: string, enable: boolean, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
|
|
120
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDescriptorService, never>;
|
|
121
136
|
static ɵprov: i0.ɵɵInjectableDeclaration<FileDescriptorService>;
|
|
122
137
|
}
|
|
123
138
|
|
|
124
139
|
export { DirectoryDescriptorService, FileDescriptorService, FileIconType, fileIconTypeOptions };
|
|
125
|
-
export type { CreateDirectoryInput, CreateFileInputWithStream, DirectoryContentDto, DirectoryContentRequestInput, DirectoryDescriptorDto, DirectoryDescriptorInfoDto, DownloadTokenResultDto, FileDescriptorDto, FileIconInfo, FileUploadPreInfoDto, FileUploadPreInfoRequest, IRemoteStreamContent, MoveDirectoryInput, MoveFileInput, RenameDirectoryInput, RenameFileInput };
|
|
140
|
+
export type { CreateDirectoryInput, CreateFileInputWithStream, DirectoryContentDto, DirectoryContentRequestInput, DirectoryDescriptorDto, DirectoryDescriptorInfoDto, DownloadTokenResultDto, FileDescriptorDto, FileIconInfo, FileUploadPreInfoDto, FileUploadPreInfoRequest, IRemoteStreamContent, MoveDirectoryInput, MoveFileInput, RenameDirectoryInput, RenameFileInput, StorageSizeInfoDto };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, AfterViewInit, OnDestroy, OnInit, OnChanges, SimpleChanges, ModuleWithProviders, NgModuleFactory, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as _volo_abp_ng_file_management_proxy from '@volo/abp.ng.file-management/proxy';
|
|
4
|
-
import { DirectoryContentDto, DirectoryDescriptorInfoDto, DirectoryDescriptorService } from '@volo/abp.ng.file-management/proxy';
|
|
4
|
+
import { DirectoryContentDto, DirectoryDescriptorInfoDto, DirectoryDescriptorService, StorageSizeInfoDto, FileDescriptorService } from '@volo/abp.ng.file-management/proxy';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
|
|
7
7
|
import * as _abp_ng_core from '@abp/ng.core';
|
|
@@ -54,6 +54,14 @@ interface FileManagementConfigOptions {
|
|
|
54
54
|
xsrfHeaderName?: string;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
interface FileNameData {
|
|
58
|
+
iconHtml: string;
|
|
59
|
+
name: string;
|
|
60
|
+
isShared: boolean;
|
|
61
|
+
tooltipText: string;
|
|
62
|
+
record: DirectoryContentDto;
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
declare class FileManagementButtonsComponent implements AfterViewInit {
|
|
58
66
|
private uploadService;
|
|
59
67
|
private permissionService;
|
|
@@ -189,6 +197,8 @@ declare class FileManagementFolderContentComponent implements OnInit, OnDestroy
|
|
|
189
197
|
fileToMove: DirectoryContentDto;
|
|
190
198
|
moveModalOpen: boolean;
|
|
191
199
|
parentOfFileToMove: string;
|
|
200
|
+
contentToShare: DirectoryContentDto;
|
|
201
|
+
shareModalOpen: boolean;
|
|
192
202
|
private updateContent;
|
|
193
203
|
currentList: DirectoryContentDto[];
|
|
194
204
|
content$: rxjs.Observable<PagedResultDto<DirectoryContentDto>>;
|
|
@@ -200,11 +210,13 @@ declare class FileManagementFolderContentComponent implements OnInit, OnDestroy
|
|
|
200
210
|
deleteFolder(record: DirectoryContentDto): void;
|
|
201
211
|
downloadFile(record: DirectoryContentDto): void;
|
|
202
212
|
renameFile(record: DirectoryContentDto): void;
|
|
213
|
+
shareFile(record: DirectoryContentDto): void;
|
|
203
214
|
deleteFile(record: DirectoryContentDto): void;
|
|
204
215
|
moveFile(record: DirectoryContentDto): void;
|
|
205
216
|
moveFolder(record: DirectoryContentDto): void;
|
|
206
217
|
onContentSaved(): void;
|
|
207
218
|
private openRenameModal;
|
|
219
|
+
private openShareModal;
|
|
208
220
|
private isDirectoryPresent;
|
|
209
221
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagementFolderContentComponent, never>;
|
|
210
222
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileManagementFolderContentComponent, "abp-file-management-folder-content", never, {}, { "contentUpdate": "contentUpdate"; }, never, never, true, never>;
|
|
@@ -219,6 +231,39 @@ declare class FileManagementFolderFilterComponent {
|
|
|
219
231
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileManagementFolderFilterComponent, "abp-file-management-folder-filter", never, {}, {}, never, never, true, never>;
|
|
220
232
|
}
|
|
221
233
|
|
|
234
|
+
declare class DeleteService {
|
|
235
|
+
private readonly confirmationService;
|
|
236
|
+
private readonly directoryService;
|
|
237
|
+
private readonly fileService;
|
|
238
|
+
private readonly updateStream;
|
|
239
|
+
private readonly toasterService;
|
|
240
|
+
deleteFolder(content: DirectoryContentDto): rxjs.Observable<void>;
|
|
241
|
+
deleteFile(content: DirectoryContentDto): rxjs.Observable<void>;
|
|
242
|
+
private delete;
|
|
243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteService, never>;
|
|
244
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DeleteService>;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare class DownloadService {
|
|
248
|
+
private fileDescriptorService;
|
|
249
|
+
private environment;
|
|
250
|
+
apiName: string;
|
|
251
|
+
get apiUrl(): string;
|
|
252
|
+
downloadFile(file: FileInfo): rxjs.Observable<_volo_abp_ng_file_management_proxy.DownloadTokenResultDto>;
|
|
253
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadService, never>;
|
|
254
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DownloadService>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare class MoveService {
|
|
258
|
+
private service;
|
|
259
|
+
private confirmation;
|
|
260
|
+
private updateStream;
|
|
261
|
+
private toaster;
|
|
262
|
+
moveTo(source: FolderInfo, target: FolderInfo, oldParentId: string): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
|
|
263
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoveService, never>;
|
|
264
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MoveService>;
|
|
265
|
+
}
|
|
266
|
+
|
|
222
267
|
declare class NavigatorService implements OnDestroy {
|
|
223
268
|
private directory;
|
|
224
269
|
private updateStream;
|
|
@@ -245,13 +290,123 @@ declare class NavigatorService implements OnDestroy {
|
|
|
245
290
|
static ɵprov: i0.ɵɵInjectableDeclaration<NavigatorService>;
|
|
246
291
|
}
|
|
247
292
|
|
|
293
|
+
interface UpdateStreamState {
|
|
294
|
+
content: number;
|
|
295
|
+
createdDirectory: string;
|
|
296
|
+
renamedDirectory: {
|
|
297
|
+
id: string;
|
|
298
|
+
name: string;
|
|
299
|
+
};
|
|
300
|
+
movedDirectory: {
|
|
301
|
+
id: string;
|
|
302
|
+
newParentId: string;
|
|
303
|
+
oldParentId: string;
|
|
304
|
+
};
|
|
305
|
+
deletedDirectory: string;
|
|
306
|
+
currentDirectory: string;
|
|
307
|
+
storageSizeInfo?: StorageSizeInfoDto;
|
|
308
|
+
}
|
|
309
|
+
declare class UpdateStreamService {
|
|
310
|
+
private store;
|
|
311
|
+
private fileDescriptorService;
|
|
312
|
+
private storageSizeRefresh$;
|
|
313
|
+
constructor();
|
|
314
|
+
readonly currentDirectory$: rxjs.Observable<string>;
|
|
315
|
+
get currentDirectory(): string;
|
|
316
|
+
readonly directoryRename$: rxjs.Observable<{
|
|
317
|
+
id: string;
|
|
318
|
+
name: string;
|
|
319
|
+
}>;
|
|
320
|
+
readonly directoryDelete$: rxjs.Observable<string>;
|
|
321
|
+
readonly directoryCreate$: rxjs.Observable<string>;
|
|
322
|
+
readonly directoryMove$: rxjs.Observable<{
|
|
323
|
+
id: string;
|
|
324
|
+
newParentId: string;
|
|
325
|
+
oldParentId: string;
|
|
326
|
+
}>;
|
|
327
|
+
readonly storageSizeInfo$: rxjs.Observable<StorageSizeInfoDto>;
|
|
328
|
+
readonly contentRefresh$: rxjs.Observable<string | number | StorageSizeInfoDto | {
|
|
329
|
+
id: string;
|
|
330
|
+
newParentId: string;
|
|
331
|
+
oldParentId: string;
|
|
332
|
+
}>;
|
|
333
|
+
patchStore: (state: Partial<UpdateStreamState>) => void;
|
|
334
|
+
requestStorageSizeRefresh: () => void;
|
|
335
|
+
refreshContent: () => void;
|
|
336
|
+
private sliceState;
|
|
337
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateStreamService, never>;
|
|
338
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateStreamService>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
type ChosenFile = {
|
|
342
|
+
name: string;
|
|
343
|
+
size: number;
|
|
344
|
+
};
|
|
345
|
+
declare class UploadService implements OnDestroy {
|
|
346
|
+
protected readonly subscriptionService: SubscriptionService;
|
|
347
|
+
private localization;
|
|
348
|
+
private fileService;
|
|
349
|
+
private confirmation;
|
|
350
|
+
private toaster;
|
|
351
|
+
private updateStream;
|
|
352
|
+
private apiInterceptor;
|
|
353
|
+
private environmentService;
|
|
354
|
+
private httpXsrfToken;
|
|
355
|
+
private headerName;
|
|
356
|
+
uppy: Uppy;
|
|
357
|
+
resource: {
|
|
358
|
+
[key: string]: string;
|
|
359
|
+
};
|
|
360
|
+
filesAlreadyChecked: boolean;
|
|
361
|
+
subscriptions: Subscription[];
|
|
362
|
+
onBeforeUpload: (files: {
|
|
363
|
+
[key: string]: UppyFile<{}, {}>;
|
|
364
|
+
}) => boolean;
|
|
365
|
+
cancelModal: () => void;
|
|
366
|
+
getPreInfo: (files: ChosenFile[]) => rxjs.Observable<{
|
|
367
|
+
doesExist: boolean;
|
|
368
|
+
hasInvalidName: boolean;
|
|
369
|
+
fileName: string;
|
|
370
|
+
}>;
|
|
371
|
+
initUppy(trigger: any, opts?: Partial<UppyOptions<any>>): void;
|
|
372
|
+
setOptions(opts: Partial<UppyOptions<any>>): void;
|
|
373
|
+
giveInvalidFileNameWarning(fileName: string): void;
|
|
374
|
+
giveExistFileWarning(): void;
|
|
375
|
+
private checkFilesForUpload;
|
|
376
|
+
private callUppyUpload;
|
|
377
|
+
private updateXHREndpoint;
|
|
378
|
+
private handleError;
|
|
379
|
+
private getRawApiUrl;
|
|
380
|
+
private callPreInfoWithFiles;
|
|
381
|
+
private findAnyIfExistOrInvalidName;
|
|
382
|
+
private getTranslations;
|
|
383
|
+
ngOnDestroy(): void;
|
|
384
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
385
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
386
|
+
}
|
|
387
|
+
|
|
248
388
|
declare class FileManagementFolderPanelComponent {
|
|
249
389
|
navigator: NavigatorService;
|
|
390
|
+
fileDescriptorService: FileDescriptorService;
|
|
391
|
+
updateStream: UpdateStreamService;
|
|
250
392
|
contentUpdate: EventEmitter<DirectoryContentDto[]>;
|
|
393
|
+
constructor();
|
|
251
394
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagementFolderPanelComponent, never>;
|
|
252
395
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileManagementFolderPanelComponent, "abp-file-management-folder-panel", never, {}, { "contentUpdate": "contentUpdate"; }, never, never, true, never>;
|
|
253
396
|
}
|
|
254
397
|
|
|
398
|
+
declare class FileNameValueResolverComponent {
|
|
399
|
+
value$: Observable<FileNameData>;
|
|
400
|
+
private navigator;
|
|
401
|
+
private download;
|
|
402
|
+
private permissionService;
|
|
403
|
+
private isSharedLinkGranted;
|
|
404
|
+
handleClick(value: FileNameData): void;
|
|
405
|
+
constructor();
|
|
406
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileNameValueResolverComponent, never>;
|
|
407
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileNameValueResolverComponent, "abp-file-name-value-resolver", never, {}, {}, never, never, true, never>;
|
|
408
|
+
}
|
|
409
|
+
|
|
255
410
|
declare const DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_ACTIONS: EntityAction<DirectoryContentDto>[];
|
|
256
411
|
|
|
257
412
|
declare const DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_PROPS: EntityProp<DirectoryContentDto>[];
|
|
@@ -282,6 +437,7 @@ declare class FileManagementInitializer {
|
|
|
282
437
|
|
|
283
438
|
declare class BaseModalComponent {
|
|
284
439
|
title: i0.InputSignal<string>;
|
|
440
|
+
titleLocalizationParams: i0.InputSignal<string>;
|
|
285
441
|
size: i0.InputSignal<string>;
|
|
286
442
|
formName: i0.InputSignal<string>;
|
|
287
443
|
visible: i0.InputSignal<boolean>;
|
|
@@ -298,7 +454,7 @@ declare class BaseModalComponent {
|
|
|
298
454
|
shouldSave(): boolean;
|
|
299
455
|
saveAction(): Observable<any>;
|
|
300
456
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseModalComponent, never>;
|
|
301
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseModalComponent, "abp-file-management-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "formName": { "alias": "formName"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; }, { "visibleChange": "visibleChange"; "contentSaved": "contentSaved"; }, never, ["*"], true, never>;
|
|
457
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseModalComponent, "abp-file-management-modal", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "titleLocalizationParams": { "alias": "titleLocalizationParams"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "formName": { "alias": "formName"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; }, { "visibleChange": "visibleChange"; "contentSaved": "contentSaved"; }, never, ["*"], true, never>;
|
|
302
458
|
}
|
|
303
459
|
|
|
304
460
|
declare class RenameModalComponent extends BaseModalComponent implements OnChanges {
|
|
@@ -370,6 +526,20 @@ declare class MoveFileModalComponent extends BaseModalComponent implements OnCha
|
|
|
370
526
|
static ɵcmp: i0.ɵɵComponentDeclaration<MoveFileModalComponent, "abp-move-file-modal", never, { "fileToMove": { "alias": "fileToMove"; "required": false; }; "oldParentId": { "alias": "oldParentId"; "required": false; }; }, {}, never, never, true, never>;
|
|
371
527
|
}
|
|
372
528
|
|
|
529
|
+
declare class ShareFileModalComponent extends BaseModalComponent {
|
|
530
|
+
private fb;
|
|
531
|
+
private service;
|
|
532
|
+
private updateStream;
|
|
533
|
+
contentToShare: i0.InputSignal<DirectoryContentDto>;
|
|
534
|
+
contentName: string;
|
|
535
|
+
form: _angular_forms.UntypedFormGroup;
|
|
536
|
+
constructor();
|
|
537
|
+
saveAction(): rxjs.Observable<void>;
|
|
538
|
+
patchForm(): void;
|
|
539
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShareFileModalComponent, never>;
|
|
540
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShareFileModalComponent, "abp-share-file-modal", never, { "contentToShare": { "alias": "contentToShare"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
541
|
+
}
|
|
542
|
+
|
|
373
543
|
declare class FileManagementModule {
|
|
374
544
|
static forChild(options?: FileManagementConfigOptions): ModuleWithProviders<FileManagementModule>;
|
|
375
545
|
/**
|
|
@@ -377,7 +547,7 @@ declare class FileManagementModule {
|
|
|
377
547
|
*/
|
|
378
548
|
static forLazy(options?: FileManagementConfigOptions): NgModuleFactory<FileManagementModule>;
|
|
379
549
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagementModule, never>;
|
|
380
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FileManagementModule, never, [typeof _abp_ng_core.CoreModule, typeof i2.ThemeSharedModule, typeof i3.TreeModule, typeof FileManagementRoutingModule, typeof i5.NgbDropdownModule, typeof _abp_ng_components_extensible.ExtensibleModule, typeof i7.NgxValidateCoreModule, typeof i8.PageModule, typeof FileManagementComponent, typeof FileManagementDirectoryTreeComponent, typeof FileManagementButtonsComponent, typeof FileManagementBreadcrumbComponent, typeof FileManagementFolderContentComponent, typeof FileManagementFolderFilterComponent, typeof FileManagementFolderPanelComponent, typeof RenameModalComponent, typeof CreateFolderModalComponent, typeof BaseModalComponent, typeof MoveFileModalComponent], [typeof FileManagementComponent, typeof FileManagementDirectoryTreeComponent, typeof FileManagementButtonsComponent, typeof FileManagementBreadcrumbComponent, typeof FileManagementFolderContentComponent, typeof FileManagementFolderFilterComponent, typeof FileManagementFolderPanelComponent]>;
|
|
550
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FileManagementModule, never, [typeof _abp_ng_core.CoreModule, typeof i2.ThemeSharedModule, typeof i3.TreeModule, typeof FileManagementRoutingModule, typeof i5.NgbDropdownModule, typeof _abp_ng_components_extensible.ExtensibleModule, typeof i7.NgxValidateCoreModule, typeof i8.PageModule, typeof FileManagementComponent, typeof FileManagementDirectoryTreeComponent, typeof FileManagementButtonsComponent, typeof FileManagementBreadcrumbComponent, typeof FileManagementFolderContentComponent, typeof FileManagementFolderFilterComponent, typeof FileManagementFolderPanelComponent, typeof FileNameValueResolverComponent, typeof RenameModalComponent, typeof CreateFolderModalComponent, typeof BaseModalComponent, typeof MoveFileModalComponent, typeof ShareFileModalComponent], [typeof FileManagementComponent, typeof FileManagementDirectoryTreeComponent, typeof FileManagementButtonsComponent, typeof FileManagementBreadcrumbComponent, typeof FileManagementFolderContentComponent, typeof FileManagementFolderFilterComponent, typeof FileManagementFolderPanelComponent, typeof FileNameValueResolverComponent]>;
|
|
381
551
|
static ɵinj: i0.ɵɵInjectorDeclaration<FileManagementModule>;
|
|
382
552
|
}
|
|
383
553
|
|
|
@@ -413,126 +583,6 @@ declare class RenameModalService {
|
|
|
413
583
|
static ɵprov: i0.ɵɵInjectableDeclaration<RenameModalService>;
|
|
414
584
|
}
|
|
415
585
|
|
|
416
|
-
declare class DeleteService {
|
|
417
|
-
private readonly confirmationService;
|
|
418
|
-
private readonly directoryService;
|
|
419
|
-
private readonly fileService;
|
|
420
|
-
private readonly updateStream;
|
|
421
|
-
private readonly toasterService;
|
|
422
|
-
deleteFolder(content: DirectoryContentDto): rxjs.Observable<void>;
|
|
423
|
-
deleteFile(content: DirectoryContentDto): rxjs.Observable<void>;
|
|
424
|
-
private delete;
|
|
425
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteService, never>;
|
|
426
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DeleteService>;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
declare class DownloadService {
|
|
430
|
-
private fileDescriptorService;
|
|
431
|
-
private environment;
|
|
432
|
-
apiName: string;
|
|
433
|
-
get apiUrl(): string;
|
|
434
|
-
downloadFile(file: FileInfo): rxjs.Observable<_volo_abp_ng_file_management_proxy.DownloadTokenResultDto>;
|
|
435
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadService, never>;
|
|
436
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DownloadService>;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
declare class MoveService {
|
|
440
|
-
private service;
|
|
441
|
-
private confirmation;
|
|
442
|
-
private updateStream;
|
|
443
|
-
private toaster;
|
|
444
|
-
moveTo(source: FolderInfo, target: FolderInfo, oldParentId: string): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
|
|
445
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MoveService, never>;
|
|
446
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MoveService>;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
interface UpdateStreamState {
|
|
450
|
-
content: number;
|
|
451
|
-
createdDirectory: string;
|
|
452
|
-
renamedDirectory: {
|
|
453
|
-
id: string;
|
|
454
|
-
name: string;
|
|
455
|
-
};
|
|
456
|
-
movedDirectory: {
|
|
457
|
-
id: string;
|
|
458
|
-
newParentId: string;
|
|
459
|
-
oldParentId: string;
|
|
460
|
-
};
|
|
461
|
-
deletedDirectory: string;
|
|
462
|
-
currentDirectory: string;
|
|
463
|
-
}
|
|
464
|
-
declare class UpdateStreamService {
|
|
465
|
-
private store;
|
|
466
|
-
readonly currentDirectory$: rxjs.Observable<string>;
|
|
467
|
-
get currentDirectory(): string;
|
|
468
|
-
readonly directoryRename$: rxjs.Observable<{
|
|
469
|
-
id: string;
|
|
470
|
-
name: string;
|
|
471
|
-
}>;
|
|
472
|
-
readonly directoryDelete$: rxjs.Observable<string>;
|
|
473
|
-
readonly directoryCreate$: rxjs.Observable<string>;
|
|
474
|
-
readonly directoryMove$: rxjs.Observable<{
|
|
475
|
-
id: string;
|
|
476
|
-
newParentId: string;
|
|
477
|
-
oldParentId: string;
|
|
478
|
-
}>;
|
|
479
|
-
readonly contentRefresh$: rxjs.Observable<string | number | {
|
|
480
|
-
id: string;
|
|
481
|
-
newParentId: string;
|
|
482
|
-
oldParentId: string;
|
|
483
|
-
}>;
|
|
484
|
-
patchStore: (state: Partial<UpdateStreamState>) => void;
|
|
485
|
-
refreshContent: () => void;
|
|
486
|
-
private sliceState;
|
|
487
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateStreamService, never>;
|
|
488
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateStreamService>;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
type ChosenFile = {
|
|
492
|
-
name: string;
|
|
493
|
-
size: number;
|
|
494
|
-
};
|
|
495
|
-
declare class UploadService implements OnDestroy {
|
|
496
|
-
protected readonly subscriptionService: SubscriptionService;
|
|
497
|
-
private localization;
|
|
498
|
-
private fileService;
|
|
499
|
-
private confirmation;
|
|
500
|
-
private updateStream;
|
|
501
|
-
private apiInterceptor;
|
|
502
|
-
private environmentService;
|
|
503
|
-
private httpXsrfToken;
|
|
504
|
-
private headerName;
|
|
505
|
-
uppy: Uppy;
|
|
506
|
-
resource: {
|
|
507
|
-
[key: string]: string;
|
|
508
|
-
};
|
|
509
|
-
filesAlreadyChecked: boolean;
|
|
510
|
-
subscriptions: Subscription[];
|
|
511
|
-
onBeforeUpload: (files: {
|
|
512
|
-
[key: string]: UppyFile<{}, {}>;
|
|
513
|
-
}) => boolean;
|
|
514
|
-
cancelModal: () => void;
|
|
515
|
-
getPreInfo: (files: ChosenFile[]) => rxjs.Observable<{
|
|
516
|
-
doesExist: boolean;
|
|
517
|
-
hasInvalidName: boolean;
|
|
518
|
-
fileName: string;
|
|
519
|
-
}>;
|
|
520
|
-
initUppy(trigger: any, opts?: Partial<UppyOptions<any>>): void;
|
|
521
|
-
setOptions(opts: Partial<UppyOptions<any>>): void;
|
|
522
|
-
giveInvalidFileNameWarning(fileName: string): void;
|
|
523
|
-
giveExistFileWarning(): void;
|
|
524
|
-
private checkFilesForUpload;
|
|
525
|
-
private callUppyUpload;
|
|
526
|
-
private updateXHREndpoint;
|
|
527
|
-
private getRawApiUrl;
|
|
528
|
-
private callPreInfoWithFiles;
|
|
529
|
-
private findAnyIfExistOrInvalidName;
|
|
530
|
-
private getTranslations;
|
|
531
|
-
ngOnDestroy(): void;
|
|
532
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
533
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
586
|
declare const DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS: {
|
|
537
587
|
"FileManagement.FolderContentComponent": _abp_ng_components_extensible.EntityAction<DirectoryContentDto>[];
|
|
538
588
|
};
|
|
@@ -556,7 +606,9 @@ declare const FILE_MANAGEMENT_XSRF_HEADER_NAME: InjectionToken<unknown>;
|
|
|
556
606
|
declare function transformDirectoryContentSize(directoryContent: DirectoryContentDto): string;
|
|
557
607
|
declare function formatBytes(size: number, precision?: number): string;
|
|
558
608
|
|
|
609
|
+
declare const getFileNameValueResolverData: (record: DirectoryContentDto) => rxjs.Observable<FileNameData>;
|
|
610
|
+
|
|
559
611
|
declare const fileManagementExtensionsResolver: ResolveFn<any>;
|
|
560
612
|
|
|
561
|
-
export { BaseModalComponent, CreateFolderModalComponent, CreateFolderModalService, DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_ACTIONS, DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_PROPS, DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS, DEFAULT_FILE_MANAGEMENT_TOOLBAR_ACTIONS, DeleteService, DirectoryTreeService, DownloadService, FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, FILE_MANAGEMENT_XSRF_HEADER_NAME, FileManagementBreadcrumbComponent, FileManagementButtonsComponent, FileManagementComponent, FileManagementDirectoryTreeComponent, FileManagementFolderContentComponent, FileManagementFolderFilterComponent, FileManagementFolderPanelComponent, FileManagementGuard, FileManagementInitializer, FileManagementModule, FileManagementRoutingModule, MoveFileModalComponent, MoveFileModalService, MoveService, NavigatorService, ROOT_ID, ROOT_NODE, RenameModalComponent, RenameModalService, UpdateStreamService, UploadService, createRoutes, eFileManagementComponents, fileManagementExtensionsResolver, fileManagementGuard, formatBytes, mapRootIdToEmpty, transformDirectoryContentSize };
|
|
562
|
-
export type { ChosenFile, FileInfo, FileManagementConfigOptions, FileManagementEntityActionContributors, FileManagementEntityPropContributors, FileManagementToolbarActionContributors, FolderInfo, TreeType, UpdateStreamState };
|
|
613
|
+
export { BaseModalComponent, CreateFolderModalComponent, CreateFolderModalService, DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_ACTIONS, DEFAULT_FILE_MANAGEMENT_DIRECTORY_CONTENT_DTO_ENTITY_PROPS, DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS, DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS, DEFAULT_FILE_MANAGEMENT_TOOLBAR_ACTIONS, DeleteService, DirectoryTreeService, DownloadService, FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS, FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS, FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS, FILE_MANAGEMENT_XSRF_HEADER_NAME, FileManagementBreadcrumbComponent, FileManagementButtonsComponent, FileManagementComponent, FileManagementDirectoryTreeComponent, FileManagementFolderContentComponent, FileManagementFolderFilterComponent, FileManagementFolderPanelComponent, FileManagementGuard, FileManagementInitializer, FileManagementModule, FileManagementRoutingModule, FileNameValueResolverComponent, MoveFileModalComponent, MoveFileModalService, MoveService, NavigatorService, ROOT_ID, ROOT_NODE, RenameModalComponent, RenameModalService, ShareFileModalComponent, UpdateStreamService, UploadService, createRoutes, eFileManagementComponents, fileManagementExtensionsResolver, fileManagementGuard, formatBytes, getFileNameValueResolverData, mapRootIdToEmpty, transformDirectoryContentSize };
|
|
614
|
+
export type { ChosenFile, FileInfo, FileManagementConfigOptions, FileManagementEntityActionContributors, FileManagementEntityPropContributors, FileManagementToolbarActionContributors, FileNameData, FolderInfo, TreeType, UpdateStreamState };
|
|
File without changes
|