@volo/abp.ng.file-management 9.3.6 → 10.0.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/index.d.ts CHANGED
@@ -1,26 +1,24 @@
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, FileDescriptorService } from '@volo/abp.ng.file-management/proxy';
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, RestService, EnvironmentService } from '@abp/ng.core';
8
+ import { SubscriptionService, ListService, PagedResultDto } from '@abp/ng.core';
9
9
  import { eFileManagementPolicyNames } from '@volo/abp.ng.file-management/config';
10
- import { NzTreeNode, NzFormatEmitEvent } from 'ng-zorro-antd/tree';
10
+ import { NzFormatEmitEvent, NzTreeNode } from 'ng-zorro-antd/tree';
11
11
  import * as i3 from '@abp/ng.components/tree';
12
- import { TreeNode, BaseNode, TreeComponent, DropEvent } from '@abp/ng.components/tree';
12
+ import { TreeNode, BaseNode, TreeComponent } from '@abp/ng.components/tree';
13
13
  import * as _abp_ng_components_extensible from '@abp/ng.components/extensible';
14
14
  import { EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback, EntityAction, EntityProp } from '@abp/ng.components/extensible';
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(directoryService: DirectoryDescriptorService, updateStream: UpdateStreamService);
96
+ constructor();
141
97
  updateDirectories: (currentFolderId?: string) => void;
142
98
  refreshNode: ({ newParentId }: {
143
99
  newParentId: any;
@@ -205,7 +161,7 @@ declare class FileManagementDirectoryTreeComponent implements OnInit {
205
161
  displayName?: string;
206
162
  };
207
163
  ngOnInit(): void;
208
- onDrop({ dragNode, node }: DropEvent): void;
164
+ onDrop({ dragNode, node }: NzFormatEmitEvent): void;
209
165
  onNodeClick(node: any): void;
210
166
  onRootClick(): void;
211
167
  onCreate(folder: DirectoryContentDto): void;
@@ -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(directory: DirectoryTreeService, updateStream: UpdateStreamService);
230
+ constructor();
275
231
  ngOnDestroy(): void;
276
232
  goToFolder(folder: FolderInfo): void;
277
233
  goToRoot(): void;
@@ -325,12 +281,13 @@ declare class FileManagementInitializer {
325
281
  }
326
282
 
327
283
  declare class BaseModalComponent {
328
- title: string;
329
- size: string;
330
- visible: boolean;
284
+ title: i0.InputSignal<string>;
285
+ size: i0.InputSignal<string>;
286
+ formName: i0.InputSignal<string>;
287
+ visible: i0.InputSignal<boolean>;
288
+ parent: i0.InputSignal<BaseModalComponent>;
331
289
  visibleChange: EventEmitter<boolean>;
332
290
  contentSaved: EventEmitter<any>;
333
- parent: BaseModalComponent;
334
291
  loading: boolean;
335
292
  get self(): this;
336
293
  success: (response: any) => void;
@@ -341,7 +298,7 @@ declare class BaseModalComponent {
341
298
  shouldSave(): boolean;
342
299
  saveAction(): Observable<any>;
343
300
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseModalComponent, never>;
344
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseModalComponent, "abp-file-management-modal", never, { "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; }, { "visibleChange": "visibleChange"; "contentSaved": "contentSaved"; }, never, ["*"], true, 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>;
345
302
  }
346
303
 
347
304
  declare class RenameModalComponent extends BaseModalComponent implements OnChanges {
@@ -366,7 +323,7 @@ declare class RenameModalComponent extends BaseModalComponent implements OnChang
366
323
  declare class CreateFolderModalComponent extends BaseModalComponent implements OnChanges {
367
324
  private fb;
368
325
  private service;
369
- parentId: string;
326
+ parentId: i0.InputSignal<string>;
370
327
  private createFolderInputRef;
371
328
  form: _angular_forms.UntypedFormGroup;
372
329
  constructor();
@@ -375,18 +332,7 @@ declare class CreateFolderModalComponent extends BaseModalComponent implements O
375
332
  saveAction(): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
376
333
  clear(): void;
377
334
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateFolderModalComponent, never>;
378
- static ɵcmp: i0.ɵɵComponentDeclaration<CreateFolderModalComponent, "abp-create-folder-modal", never, { "parentId": { "alias": "parentId"; "required": false; }; }, {}, never, never, true, never>;
379
- }
380
-
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>;
335
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateFolderModalComponent, "abp-create-folder-modal", never, { "parentId": { "alias": "parentId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
390
336
  }
391
337
 
392
338
  declare class MoveFileModalService {
@@ -395,12 +341,10 @@ declare class MoveFileModalService {
395
341
  private updateStream;
396
342
  private toaster;
397
343
  private moveService;
398
- private navigatorService;
399
344
  private directoryContentStore;
400
345
  directoryContent$: rxjs.Observable<DirectoryDescriptorInfoDto[]>;
401
346
  private breadcrumbStore;
402
347
  breadcrumbs$: rxjs.Observable<FolderInfo[]>;
403
- constructor(service: DirectoryDescriptorService, fileService: FileDescriptorService, updateStream: UpdateStreamService, toaster: ToasterService, moveService: MoveService, navigatorService: NavigatorService);
404
348
  reset(): void;
405
349
  updateContent(): rxjs.Observable<_abp_ng_core.ListResultDto<DirectoryDescriptorInfoDto>>;
406
350
  goTo(folder: FolderInfo): void;
@@ -444,7 +388,6 @@ declare function createRoutes(config?: FileManagementConfigOptions): Routes;
444
388
  */
445
389
  declare class FileManagementGuard {
446
390
  private fileManagementFeatures;
447
- constructor(fileManagementFeatures: Observable<ModuleVisibility>);
448
391
  canActivate(): Observable<boolean>;
449
392
  static ɵfac: i0.ɵɵFactoryDeclaration<FileManagementGuard, never>;
450
393
  static ɵprov: i0.ɵɵInjectableDeclaration<FileManagementGuard>;
@@ -455,7 +398,6 @@ declare class CreateFolderModalService {
455
398
  private service;
456
399
  private updateStream;
457
400
  private directoryService;
458
- constructor(service: DirectoryDescriptorService, updateStream: UpdateStreamService, directoryService: DirectoryTreeService);
459
401
  create(name: string, parent?: string): rxjs.Observable<_volo_abp_ng_file_management_proxy.DirectoryDescriptorDto>;
460
402
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateFolderModalService, never>;
461
403
  static ɵprov: i0.ɵɵInjectableDeclaration<CreateFolderModalService>;
@@ -465,7 +407,6 @@ declare class RenameModalService {
465
407
  private directoryDescriptorService;
466
408
  private fileService;
467
409
  private updateStream;
468
- constructor(directoryDescriptorService: DirectoryDescriptorService, fileService: FileDescriptorService, updateStream: UpdateStreamService);
469
410
  rename(contentToRename: DirectoryContentDto): Observable<boolean>;
470
411
  private callService;
471
412
  static ɵfac: i0.ɵɵFactoryDeclaration<RenameModalService, never>;
@@ -486,17 +427,67 @@ declare class DeleteService {
486
427
  }
487
428
 
488
429
  declare class DownloadService {
489
- private restService;
490
430
  private fileDescriptorService;
491
431
  private environment;
492
432
  apiName: string;
493
433
  get apiUrl(): string;
494
- constructor(restService: RestService, fileDescriptorService: FileDescriptorService, environment: EnvironmentService);
495
434
  downloadFile(file: FileInfo): rxjs.Observable<_volo_abp_ng_file_management_proxy.DownloadTokenResultDto>;
496
435
  static ɵfac: i0.ɵɵFactoryDeclaration<DownloadService, never>;
497
436
  static ɵprov: i0.ɵɵInjectableDeclaration<DownloadService>;
498
437
  }
499
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
+
500
491
  type ChosenFile = {
501
492
  name: string;
502
493
  size: number;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@volo/abp.ng.file-management",
3
- "version": "9.3.6",
3
+ "version": "10.0.0-rc.2",
4
4
  "dependencies": {
5
- "@abp/ng.components": "~9.3.6",
5
+ "@abp/ng.components": "~10.0.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": ">=9.3.6",
13
- "@abp/ng.theme.shared": ">=9.3.6"
12
+ "@abp/ng.core": ">=10.0.0-rc.2",
13
+ "@abp/ng.theme.shared": ">=10.0.0-rc.2"
14
14
  },
15
15
  "publishConfig": {
16
16
  "access": "public"
@@ -44,10 +44,6 @@
44
44
  "types": "./index.d.ts",
45
45
  "default": "./fesm2022/volo-abp.ng.file-management.mjs"
46
46
  },
47
- "./config": {
48
- "types": "./config/index.d.ts",
49
- "default": "./fesm2022/volo-abp.ng.file-management-config.mjs"
50
- },
51
47
  "./common": {
52
48
  "types": "./common/index.d.ts",
53
49
  "default": "./fesm2022/volo-abp.ng.file-management-common.mjs"
@@ -55,6 +51,10 @@
55
51
  "./proxy": {
56
52
  "types": "./proxy/index.d.ts",
57
53
  "default": "./fesm2022/volo-abp.ng.file-management-proxy.mjs"
54
+ },
55
+ "./config": {
56
+ "types": "./config/index.d.ts",
57
+ "default": "./fesm2022/volo-abp.ng.file-management-config.mjs"
58
58
  }
59
59
  },
60
60
  "sideEffects": false
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, RestService } from '@abp/ng.core';
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
  }