@volo/abp.ng.file-management 9.3.5 → 10.0.0-rc.1
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-proxy.mjs +10 -11
- package/fesm2022/volo-abp.ng.file-management-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.file-management.mjs +64 -73
- package/fesm2022/volo-abp.ng.file-management.mjs.map +1 -1
- package/index.d.ts +56 -66
- package/package.json +4 -4
- package/proxy/index.d.ts +1 -3
package/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
4
|
+
import { DirectoryContentDto, DirectoryDescriptorInfoDto, DirectoryDescriptorService } 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';
|
|
8
|
-
import { SubscriptionService, ListService, PagedResultDto
|
|
8
|
+
import { SubscriptionService, ListService, PagedResultDto } from '@abp/ng.core';
|
|
9
9
|
import { eFileManagementPolicyNames } from '@volo/abp.ng.file-management/config';
|
|
10
10
|
import { NzTreeNode, NzFormatEmitEvent } from 'ng-zorro-antd/tree';
|
|
11
11
|
import * as i3 from '@abp/ng.components/tree';
|
|
@@ -15,12 +15,10 @@ import { EntityActionContributorCallback, EntityPropContributorCallback, Toolbar
|
|
|
15
15
|
import * as i1 from '@angular/router';
|
|
16
16
|
import { Routes, ResolveFn } from '@angular/router';
|
|
17
17
|
import * as i2 from '@abp/ng.theme.shared';
|
|
18
|
-
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
19
18
|
import * as i5 from '@ng-bootstrap/ng-bootstrap';
|
|
20
19
|
import * as i7 from '@ngx-validate/core';
|
|
21
20
|
import * as i8 from '@abp/ng.components/page';
|
|
22
21
|
import * as _angular_forms from '@angular/forms';
|
|
23
|
-
import { ModuleVisibility } from '@volo/abp.commercial.ng.ui/config';
|
|
24
22
|
import { Uppy, UppyFile, UppyOptions } from '@uppy/core';
|
|
25
23
|
|
|
26
24
|
type FolderInfo = Pick<DirectoryContentDto, 'name' | 'id'>;
|
|
@@ -82,48 +80,6 @@ declare class FileManagementButtonsComponent implements AfterViewInit {
|
|
|
82
80
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileManagementButtonsComponent, "abp-file-management-buttons", never, {}, {}, never, never, true, never>;
|
|
83
81
|
}
|
|
84
82
|
|
|
85
|
-
interface UpdateStreamState {
|
|
86
|
-
content: number;
|
|
87
|
-
createdDirectory: string;
|
|
88
|
-
renamedDirectory: {
|
|
89
|
-
id: string;
|
|
90
|
-
name: string;
|
|
91
|
-
};
|
|
92
|
-
movedDirectory: {
|
|
93
|
-
id: string;
|
|
94
|
-
newParentId: string;
|
|
95
|
-
oldParentId: string;
|
|
96
|
-
};
|
|
97
|
-
deletedDirectory: string;
|
|
98
|
-
currentDirectory: string;
|
|
99
|
-
}
|
|
100
|
-
declare class UpdateStreamService {
|
|
101
|
-
private store;
|
|
102
|
-
readonly currentDirectory$: rxjs.Observable<string>;
|
|
103
|
-
get currentDirectory(): string;
|
|
104
|
-
readonly directoryRename$: rxjs.Observable<{
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
}>;
|
|
108
|
-
readonly directoryDelete$: rxjs.Observable<string>;
|
|
109
|
-
readonly directoryCreate$: rxjs.Observable<string>;
|
|
110
|
-
readonly directoryMove$: rxjs.Observable<{
|
|
111
|
-
id: string;
|
|
112
|
-
newParentId: string;
|
|
113
|
-
oldParentId: string;
|
|
114
|
-
}>;
|
|
115
|
-
readonly contentRefresh$: rxjs.Observable<string | number | {
|
|
116
|
-
id: string;
|
|
117
|
-
newParentId: string;
|
|
118
|
-
oldParentId: string;
|
|
119
|
-
}>;
|
|
120
|
-
patchStore: (state: Partial<UpdateStreamState>) => void;
|
|
121
|
-
refreshContent: () => void;
|
|
122
|
-
private sliceState;
|
|
123
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateStreamService, never>;
|
|
124
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateStreamService>;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
83
|
type TreeType = BaseNode & DirectoryDescriptorInfoDto;
|
|
128
84
|
declare const ROOT_ID = "ROOT_ID";
|
|
129
85
|
declare const ROOT_NODE: any;
|
|
@@ -137,7 +93,7 @@ declare class DirectoryTreeService implements OnDestroy {
|
|
|
137
93
|
subscription: Subscription;
|
|
138
94
|
extendedKeys: any[];
|
|
139
95
|
parents: any[];
|
|
140
|
-
constructor(
|
|
96
|
+
constructor();
|
|
141
97
|
updateDirectories: (currentFolderId?: string) => void;
|
|
142
98
|
refreshNode: ({ newParentId }: {
|
|
143
99
|
newParentId: any;
|
|
@@ -271,7 +227,7 @@ declare class NavigatorService implements OnDestroy {
|
|
|
271
227
|
navigatedFolderPath$: rxjs.Observable<FolderInfo[]>;
|
|
272
228
|
subscription: Subscription;
|
|
273
229
|
currentFolder$: BehaviorSubject<FolderInfo>;
|
|
274
|
-
constructor(
|
|
230
|
+
constructor();
|
|
275
231
|
ngOnDestroy(): void;
|
|
276
232
|
goToFolder(folder: FolderInfo): void;
|
|
277
233
|
goToRoot(): void;
|
|
@@ -378,29 +334,16 @@ declare class CreateFolderModalComponent extends BaseModalComponent implements O
|
|
|
378
334
|
static ɵcmp: i0.ɵɵComponentDeclaration<CreateFolderModalComponent, "abp-create-folder-modal", never, { "parentId": { "alias": "parentId"; "required": false; }; }, {}, never, never, true, never>;
|
|
379
335
|
}
|
|
380
336
|
|
|
381
|
-
declare class MoveService {
|
|
382
|
-
private service;
|
|
383
|
-
private confirmation;
|
|
384
|
-
private updateStream;
|
|
385
|
-
private toaster;
|
|
386
|
-
constructor(service: DirectoryDescriptorService, confirmation: ConfirmationService, updateStream: UpdateStreamService, toaster: ToasterService);
|
|
387
|
-
moveTo(source: FolderInfo, target: FolderInfo, oldParentId: string): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
|
|
388
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MoveService, never>;
|
|
389
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MoveService>;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
337
|
declare class MoveFileModalService {
|
|
393
338
|
private service;
|
|
394
339
|
private fileService;
|
|
395
340
|
private updateStream;
|
|
396
341
|
private toaster;
|
|
397
342
|
private moveService;
|
|
398
|
-
private navigatorService;
|
|
399
343
|
private directoryContentStore;
|
|
400
344
|
directoryContent$: rxjs.Observable<DirectoryDescriptorInfoDto[]>;
|
|
401
345
|
private breadcrumbStore;
|
|
402
346
|
breadcrumbs$: rxjs.Observable<FolderInfo[]>;
|
|
403
|
-
constructor(service: DirectoryDescriptorService, fileService: FileDescriptorService, updateStream: UpdateStreamService, toaster: ToasterService, moveService: MoveService, navigatorService: NavigatorService);
|
|
404
347
|
reset(): void;
|
|
405
348
|
updateContent(): rxjs.Observable<_abp_ng_core.ListResultDto<DirectoryDescriptorInfoDto>>;
|
|
406
349
|
goTo(folder: FolderInfo): void;
|
|
@@ -444,7 +387,6 @@ declare function createRoutes(config?: FileManagementConfigOptions): Routes;
|
|
|
444
387
|
*/
|
|
445
388
|
declare class FileManagementGuard {
|
|
446
389
|
private fileManagementFeatures;
|
|
447
|
-
constructor(fileManagementFeatures: Observable<ModuleVisibility>);
|
|
448
390
|
canActivate(): Observable<boolean>;
|
|
449
391
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagementGuard, never>;
|
|
450
392
|
static ɵprov: i0.ɵɵInjectableDeclaration<FileManagementGuard>;
|
|
@@ -455,7 +397,6 @@ declare class CreateFolderModalService {
|
|
|
455
397
|
private service;
|
|
456
398
|
private updateStream;
|
|
457
399
|
private directoryService;
|
|
458
|
-
constructor(service: DirectoryDescriptorService, updateStream: UpdateStreamService, directoryService: DirectoryTreeService);
|
|
459
400
|
create(name: string, parent?: string): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
|
|
460
401
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateFolderModalService, never>;
|
|
461
402
|
static ɵprov: i0.ɵɵInjectableDeclaration<CreateFolderModalService>;
|
|
@@ -465,7 +406,6 @@ declare class RenameModalService {
|
|
|
465
406
|
private directoryDescriptorService;
|
|
466
407
|
private fileService;
|
|
467
408
|
private updateStream;
|
|
468
|
-
constructor(directoryDescriptorService: DirectoryDescriptorService, fileService: FileDescriptorService, updateStream: UpdateStreamService);
|
|
469
409
|
rename(contentToRename: DirectoryContentDto): Observable<boolean>;
|
|
470
410
|
private callService;
|
|
471
411
|
static ɵfac: i0.ɵɵFactoryDeclaration<RenameModalService, never>;
|
|
@@ -486,17 +426,67 @@ declare class DeleteService {
|
|
|
486
426
|
}
|
|
487
427
|
|
|
488
428
|
declare class DownloadService {
|
|
489
|
-
private restService;
|
|
490
429
|
private fileDescriptorService;
|
|
491
430
|
private environment;
|
|
492
431
|
apiName: string;
|
|
493
432
|
get apiUrl(): string;
|
|
494
|
-
constructor(restService: RestService, fileDescriptorService: FileDescriptorService, environment: EnvironmentService);
|
|
495
433
|
downloadFile(file: FileInfo): rxjs.Observable<_volo_abp_ng_file_management_proxy.DownloadTokenResultDto>;
|
|
496
434
|
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadService, never>;
|
|
497
435
|
static ɵprov: i0.ɵɵInjectableDeclaration<DownloadService>;
|
|
498
436
|
}
|
|
499
437
|
|
|
438
|
+
declare class MoveService {
|
|
439
|
+
private service;
|
|
440
|
+
private confirmation;
|
|
441
|
+
private updateStream;
|
|
442
|
+
private toaster;
|
|
443
|
+
moveTo(source: FolderInfo, target: FolderInfo, oldParentId: string): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
|
|
444
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoveService, never>;
|
|
445
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MoveService>;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
interface UpdateStreamState {
|
|
449
|
+
content: number;
|
|
450
|
+
createdDirectory: string;
|
|
451
|
+
renamedDirectory: {
|
|
452
|
+
id: string;
|
|
453
|
+
name: string;
|
|
454
|
+
};
|
|
455
|
+
movedDirectory: {
|
|
456
|
+
id: string;
|
|
457
|
+
newParentId: string;
|
|
458
|
+
oldParentId: string;
|
|
459
|
+
};
|
|
460
|
+
deletedDirectory: string;
|
|
461
|
+
currentDirectory: string;
|
|
462
|
+
}
|
|
463
|
+
declare class UpdateStreamService {
|
|
464
|
+
private store;
|
|
465
|
+
readonly currentDirectory$: rxjs.Observable<string>;
|
|
466
|
+
get currentDirectory(): string;
|
|
467
|
+
readonly directoryRename$: rxjs.Observable<{
|
|
468
|
+
id: string;
|
|
469
|
+
name: string;
|
|
470
|
+
}>;
|
|
471
|
+
readonly directoryDelete$: rxjs.Observable<string>;
|
|
472
|
+
readonly directoryCreate$: rxjs.Observable<string>;
|
|
473
|
+
readonly directoryMove$: rxjs.Observable<{
|
|
474
|
+
id: string;
|
|
475
|
+
newParentId: string;
|
|
476
|
+
oldParentId: string;
|
|
477
|
+
}>;
|
|
478
|
+
readonly contentRefresh$: rxjs.Observable<string | number | {
|
|
479
|
+
id: string;
|
|
480
|
+
newParentId: string;
|
|
481
|
+
oldParentId: string;
|
|
482
|
+
}>;
|
|
483
|
+
patchStore: (state: Partial<UpdateStreamState>) => void;
|
|
484
|
+
refreshContent: () => void;
|
|
485
|
+
private sliceState;
|
|
486
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateStreamService, never>;
|
|
487
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateStreamService>;
|
|
488
|
+
}
|
|
489
|
+
|
|
500
490
|
type ChosenFile = {
|
|
501
491
|
name: string;
|
|
502
492
|
size: number;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.file-management",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-rc.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@abp/ng.components": "~
|
|
5
|
+
"@abp/ng.components": "~10.0.0-rc.1",
|
|
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": ">=
|
|
13
|
-
"@abp/ng.theme.shared": ">=
|
|
12
|
+
"@abp/ng.core": ">=10.0.0-rc.1",
|
|
13
|
+
"@abp/ng.theme.shared": ">=10.0.0-rc.1"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
package/proxy/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import * as _abp_ng_core from '@abp/ng.core';
|
|
3
|
-
import { ExtensibleObject, ExtensibleAuditedEntityDto, PagedAndSortedResultRequestDto, Rest, PagedResultDto, ListResultDto
|
|
3
|
+
import { ExtensibleObject, ExtensibleAuditedEntityDto, PagedAndSortedResultRequestDto, Rest, PagedResultDto, ListResultDto } from '@abp/ng.core';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
|
|
6
6
|
interface IRemoteStreamContent {
|
|
@@ -100,7 +100,6 @@ declare class DirectoryDescriptorService {
|
|
|
100
100
|
getList: (parentId: string, config?: Partial<Rest.Config>) => rxjs.Observable<ListResultDto<DirectoryDescriptorInfoDto>>;
|
|
101
101
|
move: (input: MoveDirectoryInput, config?: Partial<Rest.Config>) => rxjs.Observable<DirectoryDescriptorDto>;
|
|
102
102
|
rename: (id: string, input: RenameDirectoryInput, config?: Partial<Rest.Config>) => rxjs.Observable<DirectoryDescriptorDto>;
|
|
103
|
-
constructor(restService: RestService);
|
|
104
103
|
static ɵfac: i0.ɵɵFactoryDeclaration<DirectoryDescriptorService, never>;
|
|
105
104
|
static ɵprov: i0.ɵɵInjectableDeclaration<DirectoryDescriptorService>;
|
|
106
105
|
}
|
|
@@ -118,7 +117,6 @@ declare class FileDescriptorService {
|
|
|
118
117
|
getPreInfo: (input: FileUploadPreInfoRequest[], config?: Partial<Rest.Config>) => rxjs.Observable<FileUploadPreInfoDto[]>;
|
|
119
118
|
move: (input: MoveFileInput, config?: Partial<Rest.Config>) => rxjs.Observable<FileDescriptorDto>;
|
|
120
119
|
rename: (id: string, input: RenameFileInput, config?: Partial<Rest.Config>) => rxjs.Observable<FileDescriptorDto>;
|
|
121
|
-
constructor(restService: RestService);
|
|
122
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDescriptorService, never>;
|
|
123
121
|
static ɵprov: i0.ɵɵInjectableDeclaration<FileDescriptorService>;
|
|
124
122
|
}
|