@volo/abp.ng.file-management 7.2.0-rc.2 → 7.2.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/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/services/upload.service.mjs +8 -2
- 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 +15 -7
- 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 +15 -7
- 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/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>;
|
|
@@ -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.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@abp/ng.components": "~7.2.
|
|
5
|
+
"@abp/ng.components": "~7.2.2",
|
|
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.2",
|
|
13
|
+
"@abp/ng.theme.shared": ">=7.2.2",
|
|
14
|
+
"@volo/abp.commercial.ng.ui": "7.2.2"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|