@volo/abp.ng.file-management 4.4.1 → 5.0.0-beta.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/bundles/volo-abp.ng.file-management-common.umd.js +1 -1
- package/bundles/volo-abp.ng.file-management-config.umd.js +1 -1
- package/bundles/volo-abp.ng.file-management-proxy.umd.js +1 -0
- package/bundles/volo-abp.ng.file-management.umd.js +3 -2
- package/common/enums/index.d.ts +1 -1
- package/common/enums/route-names.d.ts +3 -3
- package/common/package.json +0 -1
- package/common/public-api.d.ts +2 -2
- package/common/tokens/features.token.d.ts +12 -12
- package/common/tokens/index.d.ts +1 -1
- package/common/volo-abp.ng.file-management-common.d.ts +5 -4
- package/config/enums/index.d.ts +2 -2
- package/config/enums/policy-names.d.ts +10 -10
- package/config/enums/route-names.d.ts +2 -2
- package/config/file-management-config.module.d.ts +8 -4
- package/config/package.json +0 -1
- package/config/providers/index.d.ts +1 -1
- package/config/providers/route.provider.d.ts +8 -8
- package/config/public-api.d.ts +3 -3
- package/config/volo-abp.ng.file-management-config.d.ts +5 -5
- package/esm2015/common/tokens/features.token.js +1 -1
- package/esm2015/config/file-management-config.module.js +1 -1
- package/esm2015/config/volo-abp.ng.file-management-config.js +1 -1
- package/esm2015/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.js +1 -1
- package/esm2015/lib/components/file-management-buttons/file-management-buttons.component.js +1 -1
- package/esm2015/lib/components/file-management-directory-tree/file-management-directory-tree.component.js +1 -1
- package/esm2015/lib/components/file-management-folder-content/file-management-folder-content.component.js +1 -1
- package/esm2015/lib/components/file-management-folder-filter/file-management-folder-filter.component.js +1 -1
- package/esm2015/lib/components/file-management-folder-panel/file-management-folder-panel.component.js +1 -1
- package/esm2015/lib/defaults/default-file-management-entity-actions.js +1 -1
- package/esm2015/lib/defaults/default-file-management-entity-props.js +1 -1
- package/esm2015/lib/file-management-routing.module.js +1 -1
- package/esm2015/lib/file-management.component.js +1 -1
- package/esm2015/lib/file-management.initializer.js +1 -1
- package/esm2015/lib/file-management.module.js +1 -1
- package/esm2015/lib/guards/file-management.guard.js +1 -1
- package/esm2015/lib/index.js +1 -1
- package/esm2015/lib/modals/base-modal.component.js +1 -1
- package/esm2015/lib/modals/create-folder-modal/create-folder-modal.component.js +1 -1
- package/esm2015/lib/modals/create-folder-modal/create-folder-modal.service.js +1 -1
- package/esm2015/lib/modals/move-file-modal/move-file-modal.component.js +1 -1
- package/esm2015/lib/modals/move-file-modal/move-file-modal.service.js +1 -1
- package/esm2015/lib/modals/rename-modal/rename-modal.component.js +1 -1
- package/esm2015/lib/modals/rename-modal/rename-modal.service.js +1 -1
- package/esm2015/lib/services/delete.service.js +1 -1
- package/esm2015/lib/services/directory-tree.service.js +1 -1
- package/esm2015/lib/services/download.service.js +1 -1
- package/esm2015/lib/services/move.service.js +1 -1
- package/esm2015/lib/services/navigator.service.js +1 -1
- package/esm2015/lib/services/update-stream.service.js +1 -1
- package/esm2015/lib/services/upload.service.js +1 -1
- package/esm2015/lib/tokens/extensions.token.js +1 -1
- package/esm2015/proxy/lib/index.js +1 -0
- package/esm2015/{lib → proxy/lib}/proxy/abp/content/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/abp/content/models.js +0 -0
- package/esm2015/proxy/lib/proxy/file-management/directories/directory-descriptor.service.js +1 -0
- package/esm2015/{lib → proxy/lib}/proxy/file-management/directories/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/file-management/directories/models.js +0 -0
- package/esm2015/proxy/lib/proxy/file-management/files/file-descriptor.service.js +1 -0
- package/esm2015/{lib → proxy/lib}/proxy/file-management/files/file-icon-type.enum.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/file-management/files/index.js +0 -0
- package/esm2015/{lib → proxy/lib}/proxy/file-management/files/models.js +0 -0
- package/esm2015/proxy/public-api.js +1 -0
- package/esm2015/proxy/volo-abp.ng.file-management-proxy.js +1 -0
- package/fesm2015/volo-abp.ng.file-management-common.js +29 -30
- package/fesm2015/volo-abp.ng.file-management-config.js +43 -39
- package/fesm2015/volo-abp.ng.file-management-proxy.js +128 -0
- package/fesm2015/volo-abp.ng.file-management.js +1548 -1609
- package/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.d.ts +12 -9
- package/lib/components/file-management-buttons/file-management-buttons.component.d.ts +15 -12
- package/lib/components/file-management-directory-tree/file-management-directory-tree.component.d.ts +48 -45
- package/lib/components/file-management-folder-content/file-management-folder-content.component.d.ts +44 -41
- package/lib/components/file-management-folder-filter/file-management-folder-filter.component.d.ts +14 -11
- package/lib/components/file-management-folder-panel/file-management-folder-panel.component.d.ts +11 -8
- package/lib/components/index.d.ts +6 -6
- package/lib/defaults/default-file-management-entity-actions.d.ts +3 -3
- package/lib/defaults/default-file-management-entity-props.d.ts +3 -3
- package/lib/defaults/default-file-management-toolbar-actions.d.ts +3 -3
- package/lib/defaults/index.d.ts +2 -2
- package/lib/enums/components.d.ts +3 -3
- package/lib/enums/index.d.ts +1 -1
- package/lib/file-management-routing.module.d.ts +7 -2
- package/lib/file-management.component.d.ts +12 -9
- package/lib/file-management.initializer.d.ts +11 -8
- package/lib/file-management.module.d.ts +29 -6
- package/lib/guards/file-management.guard.d.ts +11 -8
- package/lib/index.d.ts +12 -15
- package/lib/modals/base-modal.component.d.ts +22 -19
- package/lib/modals/create-folder-modal/create-folder-modal.component.d.ts +16 -13
- package/lib/modals/create-folder-modal/create-folder-modal.service.d.ts +11 -8
- package/lib/modals/create-folder-modal/index.d.ts +2 -2
- package/lib/modals/index.d.ts +4 -4
- package/lib/modals/move-file-modal/index.d.ts +2 -2
- package/lib/modals/move-file-modal/move-file-modal.component.d.ts +17 -14
- package/lib/modals/move-file-modal/move-file-modal.service.d.ts +30 -29
- package/lib/modals/rename-modal/index.d.ts +2 -2
- package/lib/modals/rename-modal/rename-modal.component.d.ts +22 -19
- package/lib/modals/rename-modal/rename-modal.service.d.ts +14 -13
- package/lib/models/common-types.d.ts +3 -3
- package/lib/models/config-options.d.ts +18 -18
- package/lib/models/index.d.ts +2 -2
- package/lib/services/delete.service.d.ts +17 -16
- package/lib/services/directory-tree.service.d.ts +41 -39
- package/lib/services/download.service.d.ts +15 -17
- package/lib/services/index.d.ts +7 -7
- package/lib/services/move.service.d.ts +15 -12
- package/lib/services/navigator.service.d.ts +30 -27
- package/lib/services/update-stream.service.d.ts +42 -39
- package/lib/services/upload.service.d.ts +50 -47
- package/lib/tokens/extensions.token.d.ts +22 -23
- package/lib/tokens/index.d.ts +1 -1
- package/lib/utils/functions.d.ts +3 -3
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -5
- package/proxy/lib/index.d.ts +3 -0
- package/{lib → proxy/lib}/proxy/abp/content/index.d.ts +1 -1
- package/proxy/lib/proxy/abp/content/models.d.ts +5 -0
- package/{lib → proxy/lib}/proxy/file-management/directories/directory-descriptor.service.d.ts +18 -15
- package/{lib → proxy/lib}/proxy/file-management/directories/index.d.ts +2 -2
- package/{lib → proxy/lib}/proxy/file-management/directories/models.d.ts +39 -35
- package/{lib → proxy/lib}/proxy/file-management/files/file-descriptor.service.d.ts +22 -19
- package/{lib → proxy/lib}/proxy/file-management/files/file-icon-type.enum.d.ts +5 -5
- package/{lib → proxy/lib}/proxy/file-management/files/index.d.ts +3 -3
- package/{lib → proxy/lib}/proxy/file-management/files/models.d.ts +40 -38
- package/proxy/package.json +10 -0
- package/proxy/public-api.d.ts +1 -0
- package/proxy/volo-abp.ng.file-management-proxy.d.ts +5 -0
- package/public-api.d.ts +1 -1
- package/volo-abp.ng.file-management.d.ts +5 -4
- package/bundles/volo-abp.ng.file-management-common.umd.min.js +0 -1
- package/bundles/volo-abp.ng.file-management-config.umd.min.js +0 -1
- package/bundles/volo-abp.ng.file-management.umd.min.js +0 -15
- package/common/volo-abp.ng.file-management-common.metadata.json +0 -1
- package/config/volo-abp.ng.file-management-config.metadata.json +0 -1
- package/esm2015/lib/proxy/file-management/directories/directory-descriptor.service.js +0 -1
- package/esm2015/lib/proxy/file-management/files/file-descriptor.service.js +0 -1
- package/lib/proxy/abp/content/models.d.ts +0 -4
- package/volo-abp.ng.file-management.metadata.json +0 -1
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Uppy, UppyFile } from '@uppy/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { UpdateStreamService } from './update-stream.service';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
|
|
1
|
+
import { ApiInterceptor, EnvironmentService, LocalizationService } from '@abp/ng.core';
|
|
2
|
+
import { ConfirmationService } from '@abp/ng.theme.shared';
|
|
3
|
+
import { HttpXsrfTokenExtractor } from '@angular/common/http';
|
|
4
|
+
import { OnDestroy } from '@angular/core';
|
|
5
|
+
import { Uppy, UppyFile } from '@uppy/core';
|
|
6
|
+
import { FileDescriptorService } from '@volo/abp.ng.file-management/proxy';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { UpdateStreamService } from './update-stream.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare type ChosenFile = {
|
|
11
|
+
name: string;
|
|
12
|
+
size: number;
|
|
13
|
+
};
|
|
14
|
+
export declare class UploadService implements OnDestroy {
|
|
15
|
+
private localization;
|
|
16
|
+
private fileService;
|
|
17
|
+
private confirmation;
|
|
18
|
+
private updateStream;
|
|
19
|
+
private apiInterceptor;
|
|
20
|
+
private environmentService;
|
|
21
|
+
private httpXsrfToken;
|
|
22
|
+
private headerName;
|
|
23
|
+
uppy: Uppy;
|
|
24
|
+
resource: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
filesAlreadyChecked: boolean;
|
|
28
|
+
subscriptions: Subscription[];
|
|
29
|
+
onBeforeUpload: (files: {
|
|
30
|
+
[key: string]: UppyFile<{}, {}>;
|
|
31
|
+
}) => boolean;
|
|
32
|
+
cancelModal: () => void;
|
|
33
|
+
getPreInfo: (files: ChosenFile[]) => void;
|
|
34
|
+
constructor(localization: LocalizationService, fileService: FileDescriptorService, confirmation: ConfirmationService, updateStream: UpdateStreamService, apiInterceptor: ApiInterceptor, environmentService: EnvironmentService, httpXsrfToken: HttpXsrfTokenExtractor, headerName: string);
|
|
35
|
+
ngOnDestroy(): void;
|
|
36
|
+
initUppy({ trigger }: {
|
|
37
|
+
trigger: any;
|
|
38
|
+
}): Subscription[];
|
|
39
|
+
giveInvalidFileNameWarning(fileName: string): void;
|
|
40
|
+
giveExistFileWarning(): void;
|
|
41
|
+
private checkFilesForUpload;
|
|
42
|
+
private callUppyUpload;
|
|
43
|
+
private updateXHREndpoint;
|
|
44
|
+
private getRawApiUrl;
|
|
45
|
+
private callPreInfoWithFiles;
|
|
46
|
+
private findAnyIfExistOrInvalidName;
|
|
47
|
+
private getTranslations;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
50
|
+
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const FILE_MANAGEMENT_XSRF_HEADER_NAME: InjectionToken<unknown>;
|
|
1
|
+
import { EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { DirectoryContentDto } from '@volo/abp.ng.file-management/proxy';
|
|
4
|
+
export declare const DEFAULT_FILE_MANAGEMENT_ENTITY_ACTIONS: {
|
|
5
|
+
"FileManagement.FolderContentComponent": import("@abp/ng.theme.shared/extensions").EntityAction<DirectoryContentDto>[];
|
|
6
|
+
};
|
|
7
|
+
export declare const DEFAULT_FILE_MANAGEMENT_TOOLBAR_ACTIONS: {
|
|
8
|
+
"FileManagement.FolderContentComponent": import("@abp/ng.theme.shared/extensions").ToolbarAction<DirectoryContentDto[]>[];
|
|
9
|
+
};
|
|
10
|
+
export declare const DEFAULT_FILE_MANAGEMENT_ENTITY_PROPS: {
|
|
11
|
+
"FileManagement.FolderContentComponent": import("@abp/ng.theme.shared/extensions").EntityProp<DirectoryContentDto>[];
|
|
12
|
+
};
|
|
13
|
+
export declare const FILE_MANAGEMENT_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
14
|
+
"FileManagement.FolderContentComponent": EntityActionContributorCallback<DirectoryContentDto>[];
|
|
15
|
+
}>>;
|
|
16
|
+
export declare const FILE_MANAGEMENT_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
17
|
+
"FileManagement.FolderContentComponent": ToolbarActionContributorCallback<DirectoryContentDto[]>[];
|
|
18
|
+
}>>;
|
|
19
|
+
export declare const FILE_MANAGEMENT_ENTITY_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
20
|
+
"FileManagement.FolderContentComponent": EntityPropContributorCallback<DirectoryContentDto>[];
|
|
21
|
+
}>>;
|
|
22
|
+
export declare const FILE_MANAGEMENT_XSRF_HEADER_NAME: InjectionToken<unknown>;
|
package/lib/tokens/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './extensions.token';
|
|
1
|
+
export * from './extensions.token';
|
package/lib/utils/functions.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DirectoryContentDto } from '
|
|
2
|
-
export declare function transformDirectoryContentSize(directoryContent: DirectoryContentDto): string;
|
|
3
|
-
export declare function formatBytes(size: number, precision?: number): string;
|
|
1
|
+
import { DirectoryContentDto } from '@volo/abp.ng.file-management/proxy';
|
|
2
|
+
export declare function transformDirectoryContentSize(directoryContent: DirectoryContentDto): string;
|
|
3
|
+
export declare function formatBytes(size: number, precision?: number): string;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './functions';
|
|
1
|
+
export * from './functions';
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.file-management",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@abp/ng.components": "~
|
|
5
|
+
"@abp/ng.components": "~5.0.0-beta.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": ">=
|
|
13
|
-
"@abp/ng.theme.shared": ">=
|
|
12
|
+
"@abp/ng.core": ">=5.0.0-beta.1-1",
|
|
13
|
+
"@abp/ng.theme.shared": ">=5.0.0-beta.1-1",
|
|
14
14
|
"@angular/common": "^9.1.11",
|
|
15
15
|
"@angular/core": "^9.1.11"
|
|
16
16
|
},
|
|
@@ -23,6 +23,5 @@
|
|
|
23
23
|
"esm2015": "esm2015/volo-abp.ng.file-management.js",
|
|
24
24
|
"fesm2015": "fesm2015/volo-abp.ng.file-management.js",
|
|
25
25
|
"typings": "volo-abp.ng.file-management.d.ts",
|
|
26
|
-
"metadata": "volo-abp.ng.file-management.metadata.json",
|
|
27
26
|
"sideEffects": false
|
|
28
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './models';
|
|
1
|
+
export * from './models';
|
package/{lib → proxy/lib}/proxy/file-management/directories/directory-descriptor.service.d.ts
RENAMED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import type { CreateDirectoryInput, DirectoryContentDto, DirectoryContentRequestInput, DirectoryDescriptorDto, DirectoryDescriptorInfoDto, MoveDirectoryInput, RenameDirectoryInput } from './models';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import type { ListResultDto, PagedResultDto } from '@abp/ng.core';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import type { CreateDirectoryInput, DirectoryContentDto, DirectoryContentRequestInput, DirectoryDescriptorDto, DirectoryDescriptorInfoDto, MoveDirectoryInput, RenameDirectoryInput } from './models';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
import type { ListResultDto, PagedResultDto } from '@abp/ng.core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DirectoryDescriptorService {
|
|
6
|
+
private restService;
|
|
7
|
+
apiName: string;
|
|
8
|
+
create: (input: CreateDirectoryInput) => import("rxjs").Observable<DirectoryDescriptorDto>;
|
|
9
|
+
delete: (id: string) => import("rxjs").Observable<void>;
|
|
10
|
+
get: (id: string) => import("rxjs").Observable<DirectoryDescriptorDto>;
|
|
11
|
+
getContent: (input: DirectoryContentRequestInput) => import("rxjs").Observable<PagedResultDto<DirectoryContentDto>>;
|
|
12
|
+
getList: (parentId: string) => import("rxjs").Observable<ListResultDto<DirectoryDescriptorInfoDto>>;
|
|
13
|
+
move: (input: MoveDirectoryInput) => import("rxjs").Observable<DirectoryDescriptorDto>;
|
|
14
|
+
rename: (id: string, input: RenameDirectoryInput) => import("rxjs").Observable<DirectoryDescriptorDto>;
|
|
15
|
+
constructor(restService: RestService);
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DirectoryDescriptorService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DirectoryDescriptorService>;
|
|
18
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './directory-descriptor.service';
|
|
2
|
-
export * from './models';
|
|
1
|
+
export * from './directory-descriptor.service';
|
|
2
|
+
export * from './models';
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import type { FileIconInfo } from '../files/models';
|
|
2
|
-
import type { AuditedEntityDto } from '@abp/ng.core';
|
|
3
|
-
export interface CreateDirectoryInput {
|
|
4
|
-
parentId?: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
export interface DirectoryContentDto {
|
|
8
|
-
name?: string;
|
|
9
|
-
isDirectory: boolean;
|
|
10
|
-
id?: string;
|
|
11
|
-
size: number;
|
|
12
|
-
iconInfo: FileIconInfo;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
import type { FileIconInfo } from '../files/models';
|
|
2
|
+
import type { AuditedEntityDto } from '@abp/ng.core';
|
|
3
|
+
export interface CreateDirectoryInput {
|
|
4
|
+
parentId?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DirectoryContentDto {
|
|
8
|
+
name?: string;
|
|
9
|
+
isDirectory: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
size: number;
|
|
12
|
+
iconInfo: FileIconInfo;
|
|
13
|
+
concurrencyStamp?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DirectoryContentRequestInput {
|
|
16
|
+
filter?: string;
|
|
17
|
+
sorting?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DirectoryDescriptorDto extends AuditedEntityDto<string> {
|
|
21
|
+
name?: string;
|
|
22
|
+
parentId?: string;
|
|
23
|
+
concurrencyStamp?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DirectoryDescriptorInfoDto {
|
|
26
|
+
id?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
parentId?: string;
|
|
29
|
+
hasChildren: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface MoveDirectoryInput {
|
|
32
|
+
id?: string;
|
|
33
|
+
newParentId?: string;
|
|
34
|
+
concurrencyStamp?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface RenameDirectoryInput {
|
|
37
|
+
name: string;
|
|
38
|
+
concurrencyStamp?: string;
|
|
39
|
+
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import type { ListResultDto } from '@abp/ng.core';
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import type { CreateFileInputWithStream, DownloadTokenResultDto, FileDescriptorDto, FileUploadPreInfoDto, FileUploadPreInfoRequest, MoveFileInput, RenameFileInput } from './models';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
import type { ListResultDto } from '@abp/ng.core';
|
|
4
|
+
import type { IRemoteStreamContent } from '../../abp/content/models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FileDescriptorService {
|
|
7
|
+
private restService;
|
|
8
|
+
apiName: string;
|
|
9
|
+
create: (directoryId: string, inputWithStream: CreateFileInputWithStream) => import("rxjs").Observable<FileDescriptorDto>;
|
|
10
|
+
delete: (id: string) => import("rxjs").Observable<void>;
|
|
11
|
+
download: (id: string, token: string) => import("rxjs").Observable<IRemoteStreamContent>;
|
|
12
|
+
get: (id: string) => import("rxjs").Observable<FileDescriptorDto>;
|
|
13
|
+
getContent: (id: string) => import("rxjs").Observable<number[]>;
|
|
14
|
+
getDownloadToken: (id: string) => import("rxjs").Observable<DownloadTokenResultDto>;
|
|
15
|
+
getList: (directoryId: string) => import("rxjs").Observable<ListResultDto<FileDescriptorDto>>;
|
|
16
|
+
getPreInfo: (input: FileUploadPreInfoRequest[]) => import("rxjs").Observable<FileUploadPreInfoDto[]>;
|
|
17
|
+
move: (input: MoveFileInput) => import("rxjs").Observable<FileDescriptorDto>;
|
|
18
|
+
rename: (id: string, input: RenameFileInput) => import("rxjs").Observable<FileDescriptorDto>;
|
|
19
|
+
constructor(restService: RestService);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileDescriptorService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FileDescriptorService>;
|
|
22
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare enum FileIconType {
|
|
2
|
-
FontAwesome = 0,
|
|
3
|
-
Url = 1
|
|
4
|
-
}
|
|
5
|
-
export declare const fileIconTypeOptions: import("@abp/ng.core")
|
|
1
|
+
export declare enum FileIconType {
|
|
2
|
+
FontAwesome = 0,
|
|
3
|
+
Url = 1
|
|
4
|
+
}
|
|
5
|
+
export declare const fileIconTypeOptions: import("@abp/ng.core").ABP.Option<typeof FileIconType>[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './file-descriptor.service';
|
|
2
|
-
export * from './file-icon-type.enum';
|
|
3
|
-
export * from './models';
|
|
1
|
+
export * from './file-descriptor.service';
|
|
2
|
+
export * from './file-icon-type.enum';
|
|
3
|
+
export * from './models';
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export interface FileIconInfo {
|
|
19
|
-
icon?: string;
|
|
20
|
-
type: FileIconType;
|
|
21
|
-
}
|
|
22
|
-
export interface FileUploadPreInfoDto {
|
|
23
|
-
fileName?: string;
|
|
24
|
-
doesExist: boolean;
|
|
25
|
-
hasValidName: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface FileUploadPreInfoRequest {
|
|
28
|
-
directoryId?: string;
|
|
29
|
-
fileName?: string;
|
|
30
|
-
size: number;
|
|
31
|
-
}
|
|
32
|
-
export interface MoveFileInput {
|
|
33
|
-
id?: string;
|
|
34
|
-
newDirectoryId?: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import type { IRemoteStreamContent } from '../../abp/content/models';
|
|
2
|
+
import type { AuditedEntityDto } from '@abp/ng.core';
|
|
3
|
+
import type { FileIconType } from './file-icon-type.enum';
|
|
4
|
+
export interface CreateFileInputWithStream {
|
|
5
|
+
name: string;
|
|
6
|
+
file: IRemoteStreamContent;
|
|
7
|
+
}
|
|
8
|
+
export interface DownloadTokenResultDto {
|
|
9
|
+
token?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FileDescriptorDto extends AuditedEntityDto<string> {
|
|
12
|
+
directoryId?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
mimeType?: string;
|
|
15
|
+
size: number;
|
|
16
|
+
concurrencyStamp?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FileIconInfo {
|
|
19
|
+
icon?: string;
|
|
20
|
+
type: FileIconType;
|
|
21
|
+
}
|
|
22
|
+
export interface FileUploadPreInfoDto {
|
|
23
|
+
fileName?: string;
|
|
24
|
+
doesExist: boolean;
|
|
25
|
+
hasValidName: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface FileUploadPreInfoRequest {
|
|
28
|
+
directoryId?: string;
|
|
29
|
+
fileName?: string;
|
|
30
|
+
size: number;
|
|
31
|
+
}
|
|
32
|
+
export interface MoveFileInput {
|
|
33
|
+
id?: string;
|
|
34
|
+
newDirectoryId?: string;
|
|
35
|
+
concurrencyStamp?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RenameFileInput {
|
|
38
|
+
name: string;
|
|
39
|
+
concurrencyStamp?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/volo-abp.ng.file-management-proxy.umd.js",
|
|
3
|
+
"module": "../fesm2015/volo-abp.ng.file-management-proxy.js",
|
|
4
|
+
"es2015": "../fesm2015/volo-abp.ng.file-management-proxy.js",
|
|
5
|
+
"esm2015": "../esm2015/proxy/volo-abp.ng.file-management-proxy.js",
|
|
6
|
+
"fesm2015": "../fesm2015/volo-abp.ng.file-management-proxy.js",
|
|
7
|
+
"typings": "volo-abp.ng.file-management-proxy.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@volo/abp.ng.file-management/proxy"
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/index';
|
package/public-api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lib';
|
|
1
|
+
export * from './lib';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@volo/abp.ng.file-management" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@abp/ng.core"),require("@angular/core"),require("@volo/abp.commercial.ng.ui/config")):"function"==typeof define&&define.amd?define("@volo/abp.ng.file-management/common",["exports","@abp/ng.core","@angular/core","@volo/abp.commercial.ng.ui/config"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng["file-management"]=e.volo.abp.ng["file-management"]||{},e.volo.abp.ng["file-management"].common={}),e.ng_core,e.ng.core,e.config)}(this,(function(e,o,n,a){"use strict";var i=new n.InjectionToken("FILE_MANAGEMENT_FEATURES",{providedIn:"root",factory:function(){var e=n.inject(o.ConfigStateService),a="FileManagement.Enable";return o.featuresFactory(e,[a],(function(e){return{enable:"false"!==e[a].toLowerCase()}}))}}),t=new n.InjectionToken("SET_FILE_MANAGEMENT_ROUTE_VISIBILITY",{providedIn:"root",factory:function(){var e=n.inject(o.RoutesService),t=n.inject(i);a.setModuleVisibilityFactory(t,e,"FileManagement::Menu:FileManagement").subscribe()}}),r=o.noop,c=[{provide:n.APP_INITIALIZER,useFactory:r,deps:[t],multi:!0}];e.FILE_MANAGEMENT_FEATURES=i,e.FILE_MANAGEMENT_FEATURES_PROVIDERS=c,e.SET_FILE_MANAGEMENT_ROUTE_VISIBILITY=t,e.ɵ0=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("@abp/ng.core"),require("@volo/abp.ng.file-management/common")):"function"==typeof define&&define.amd?define("@volo/abp.ng.file-management/config",["exports","@angular/core","@abp/ng.core","@volo/abp.ng.file-management/common"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng["file-management"]=e.volo.abp.ng["file-management"]||{},e.volo.abp.ng["file-management"].config={}),e.ng.core,e.ng_core,e.volo.abp.ng["file-management"].common)}(this,(function(e,o,n,a){"use strict";var i=[{provide:o.APP_INITIALIZER,useFactory:t,deps:[n.RoutesService],multi:!0}];function t(e){return function(){e.add([{path:"/file-management",name:"FileManagement::Menu:FileManagement",layout:"application",iconClass:"fa fa-folder-open",order:30,requiredPolicy:"FileManagement.DirectoryDescriptor"}])}}var r=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[i,a.FILE_MANAGEMENT_FEATURES_PROVIDERS]}},e}();r.decorators=[{type:o.NgModule}],e.FILE_MANAGEMENT_ROUTE_PROVIDERS=i,e.FileManagementConfigModule=r,e.configureRoutes=t,e.ɵa=i,e.ɵb=t,Object.defineProperty(e,"__esModule",{value:!0})}));
|