@volo/abp.ng.file-management 7.2.0-rc.1 → 7.2.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/common/tokens/index.d.ts +1 -0
- package/common/tokens/uppy-options.token.d.ts +3 -0
- package/config/file-management-config.module.d.ts +3 -1
- package/config/models/config-options.d.ts +4 -0
- package/config/models/index.d.ts +1 -0
- package/config/public-api.d.ts +2 -0
- package/config/tokens/features.token.d.ts +12 -0
- package/config/tokens/index.d.ts +1 -0
- package/esm2020/common/tokens/index.mjs +2 -1
- package/esm2020/common/tokens/uppy-options.token.mjs +3 -0
- package/esm2020/config/file-management-config.module.mjs +16 -3
- package/esm2020/config/models/config-options.mjs +2 -0
- package/esm2020/config/models/index.mjs +2 -0
- package/esm2020/config/public-api.mjs +3 -1
- package/esm2020/config/tokens/features.token.mjs +31 -0
- package/esm2020/config/tokens/index.mjs +2 -0
- package/esm2020/lib/components/file-management-buttons/file-management-buttons.component.mjs +9 -6
- package/esm2020/lib/components/file-management-directory-tree/file-management-directory-tree.component.mjs +26 -14
- package/esm2020/lib/services/upload.service.mjs +10 -4
- package/fesm2015/volo-abp.ng.file-management-common.mjs +3 -1
- package/fesm2015/volo-abp.ng.file-management-common.mjs.map +1 -1
- package/fesm2015/volo-abp.ng.file-management-config.mjs +48 -6
- package/fesm2015/volo-abp.ng.file-management-config.mjs.map +1 -1
- package/fesm2015/volo-abp.ng.file-management.mjs +75 -58
- package/fesm2015/volo-abp.ng.file-management.mjs.map +1 -1
- package/fesm2020/volo-abp.ng.file-management-common.mjs +3 -1
- package/fesm2020/volo-abp.ng.file-management-common.mjs.map +1 -1
- package/fesm2020/volo-abp.ng.file-management-config.mjs +48 -6
- package/fesm2020/volo-abp.ng.file-management-config.mjs.map +1 -1
- package/fesm2020/volo-abp.ng.file-management.mjs +75 -58
- package/fesm2020/volo-abp.ng.file-management.mjs.map +1 -1
- package/lib/components/file-management-buttons/file-management-buttons.component.d.ts +3 -1
- package/lib/components/file-management-directory-tree/file-management-directory-tree.component.d.ts +7 -2
- package/lib/services/upload.service.d.ts +3 -4
- package/package.json +5 -5
|
@@ -4,6 +4,7 @@ import { UploadService } from '../../services/upload.service';
|
|
|
4
4
|
import { LocalizationService, PermissionService } from '@abp/ng.core';
|
|
5
5
|
import { NavigatorService } from '../../services/navigator.service';
|
|
6
6
|
import { FolderInfo } from '../../models';
|
|
7
|
+
import { UppyOptions } from '@uppy/core';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class FileManagementButtonsComponent implements AfterViewInit {
|
|
9
10
|
private uploadService;
|
|
@@ -13,6 +14,7 @@ export declare class FileManagementButtonsComponent implements AfterViewInit {
|
|
|
13
14
|
private readonly renderer;
|
|
14
15
|
private readonly elementRef;
|
|
15
16
|
private readonly document;
|
|
17
|
+
private readonly uppyOptions;
|
|
16
18
|
private readonly modalTitle;
|
|
17
19
|
folderCreateModal: boolean;
|
|
18
20
|
fileCreatePermission: eFileManagementPolicyNames;
|
|
@@ -24,7 +26,7 @@ export declare class FileManagementButtonsComponent implements AfterViewInit {
|
|
|
24
26
|
private get titleElement();
|
|
25
27
|
private initTitle;
|
|
26
28
|
private createUploadFolderTitle;
|
|
27
|
-
constructor(uploadService: UploadService, permissionService: PermissionService, navigatorService: NavigatorService, localizationService: LocalizationService, renderer: Renderer2, elementRef: ElementRef, document: Document);
|
|
29
|
+
constructor(uploadService: UploadService, permissionService: PermissionService, navigatorService: NavigatorService, localizationService: LocalizationService, renderer: Renderer2, elementRef: ElementRef, document: Document, uppyOptions: UppyOptions<any>);
|
|
28
30
|
ngAfterViewInit(): void;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagementButtonsComponent, never>;
|
|
30
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileManagementButtonsComponent, "abp-file-management-buttons", never, {}, {}, never, never, false, never>;
|
package/lib/components/file-management-directory-tree/file-management-directory-tree.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SubscriptionService } from '@abp/ng.core';
|
|
2
|
-
import { DropEvent, TreeNode } from '@abp/ng.components/tree';
|
|
2
|
+
import { DropEvent, TreeNode, TreeComponent } from '@abp/ng.components/tree';
|
|
3
3
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
4
4
|
import { eFileManagementPolicyNames } from '@volo/abp.ng.file-management/config';
|
|
5
5
|
import { DirectoryContentDto, DirectoryDescriptorInfoDto } from '@volo/abp.ng.file-management/proxy';
|
|
@@ -8,6 +8,7 @@ import { DeleteService } from '../../services/delete.service';
|
|
|
8
8
|
import { DirectoryTreeService } from '../../services/directory-tree.service';
|
|
9
9
|
import { MoveService } from '../../services/move.service';
|
|
10
10
|
import { NavigatorService } from '../../services/navigator.service';
|
|
11
|
+
import { UpdateStreamService } from '../../services';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
declare type RequiredDirectoryDescriptorInfoDto = Required<DirectoryDescriptorInfoDto>;
|
|
13
14
|
export declare class FileManagementDirectoryTreeComponent implements OnInit {
|
|
@@ -17,6 +18,7 @@ export declare class FileManagementDirectoryTreeComponent implements OnInit {
|
|
|
17
18
|
private cdr;
|
|
18
19
|
private deleteService;
|
|
19
20
|
private subscription;
|
|
21
|
+
private updateStream;
|
|
20
22
|
directories: TreeNode<RequiredDirectoryDescriptorInfoDto>[];
|
|
21
23
|
createPolicy: eFileManagementPolicyNames;
|
|
22
24
|
updatePolicy: eFileManagementPolicyNames;
|
|
@@ -30,9 +32,12 @@ export declare class FileManagementDirectoryTreeComponent implements OnInit {
|
|
|
30
32
|
folderToMove: DirectoryContentDto;
|
|
31
33
|
parentOfFolderToMove: string;
|
|
32
34
|
rootId: string;
|
|
35
|
+
selectedNode: any;
|
|
36
|
+
tree: TreeComponent;
|
|
33
37
|
updateDirectories: (directories: TreeNode<RequiredDirectoryDescriptorInfoDto>[]) => void;
|
|
38
|
+
updateSelectedNode: (directory: string) => void;
|
|
34
39
|
markAsParentHasChildren: (node: TreeNode<RequiredDirectoryDescriptorInfoDto>) => any;
|
|
35
|
-
constructor(service: DirectoryTreeService, navigator: NavigatorService, move: MoveService, cdr: ChangeDetectorRef, deleteService: DeleteService, subscription: SubscriptionService);
|
|
40
|
+
constructor(service: DirectoryTreeService, navigator: NavigatorService, move: MoveService, cdr: ChangeDetectorRef, deleteService: DeleteService, subscription: SubscriptionService, updateStream: UpdateStreamService);
|
|
36
41
|
ngOnInit(): void;
|
|
37
42
|
onDrop({ dragNode, node }: DropEvent): void;
|
|
38
43
|
onNodeClick(node: any): void;
|
|
@@ -2,7 +2,7 @@ import { ApiInterceptor, EnvironmentService, LocalizationService } from '@abp/ng
|
|
|
2
2
|
import { ConfirmationService } from '@abp/ng.theme.shared';
|
|
3
3
|
import { HttpXsrfTokenExtractor } from '@angular/common/http';
|
|
4
4
|
import { OnDestroy } from '@angular/core';
|
|
5
|
-
import { Uppy, UppyFile } from '@uppy/core';
|
|
5
|
+
import { Uppy, UppyFile, UppyOptions } from '@uppy/core';
|
|
6
6
|
import { FileDescriptorService } from '@volo/abp.ng.file-management/proxy';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
8
|
import { UpdateStreamService } from './update-stream.service';
|
|
@@ -33,9 +33,8 @@ export declare class UploadService implements OnDestroy {
|
|
|
33
33
|
getPreInfo: (files: ChosenFile[]) => void;
|
|
34
34
|
constructor(localization: LocalizationService, fileService: FileDescriptorService, confirmation: ConfirmationService, updateStream: UpdateStreamService, apiInterceptor: ApiInterceptor, environmentService: EnvironmentService, httpXsrfToken: HttpXsrfTokenExtractor, headerName: string);
|
|
35
35
|
ngOnDestroy(): void;
|
|
36
|
-
initUppy(
|
|
37
|
-
|
|
38
|
-
}): Subscription[];
|
|
36
|
+
initUppy(trigger: any, opts?: Partial<UppyOptions<any>>): Subscription[];
|
|
37
|
+
setOptions(opts: Partial<UppyOptions<any>>): void;
|
|
39
38
|
giveInvalidFileNameWarning(fileName: string): void;
|
|
40
39
|
giveExistFileWarning(): void;
|
|
41
40
|
private checkFilesForUpload;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.file-management",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@abp/ng.components": "~7.2.
|
|
5
|
+
"@abp/ng.components": "~7.2.1",
|
|
6
6
|
"@uppy/core": "^1.13.2",
|
|
7
7
|
"@uppy/dashboard": "^1.12.6",
|
|
8
8
|
"@uppy/xhr-upload": "^1.6.4",
|
|
9
9
|
"tslib": "^2.0.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@abp/ng.core": ">=7.2.
|
|
13
|
-
"@abp/ng.theme.shared": ">=7.2.
|
|
14
|
-
"@volo/abp.commercial.ng.ui": "7.2.
|
|
12
|
+
"@abp/ng.core": ">=7.2.1",
|
|
13
|
+
"@abp/ng.theme.shared": ">=7.2.1",
|
|
14
|
+
"@volo/abp.commercial.ng.ui": "7.2.1"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|