@rs-pk/asset-management 1.0.13 → 1.0.15
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/rs-pk-asset-management.umd.js +128 -159
- package/bundles/rs-pk-asset-management.umd.js.map +1 -1
- package/bundles/rs-pk-asset-management.umd.min.js +2 -2
- package/bundles/rs-pk-asset-management.umd.min.js.map +1 -1
- package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +6 -3
- package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +3 -2
- package/esm2015/lib/components/partial/asset-item/asset-item.component.js +3 -3
- package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +6 -3
- package/esm2015/lib/components/partial/file-item/file-item.component.js +57 -18
- package/esm2015/lib/components/partial/file-list/file-list.component.js +10 -9
- package/esm2015/lib/components/partial/upload-file/upload-file.component.js +1 -18
- package/esm2015/lib/services/upload-assets.service.js +30 -61
- package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +6 -3
- package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +3 -2
- package/esm5/lib/components/partial/asset-item/asset-item.component.js +3 -3
- package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +6 -3
- package/esm5/lib/components/partial/file-item/file-item.component.js +71 -22
- package/esm5/lib/components/partial/file-list/file-list.component.js +13 -13
- package/esm5/lib/components/partial/upload-file/upload-file.component.js +1 -29
- package/esm5/lib/services/upload-assets.service.js +33 -92
- package/fesm2015/rs-pk-asset-management.js +108 -109
- package/fesm2015/rs-pk-asset-management.js.map +1 -1
- package/fesm5/rs-pk-asset-management.js +129 -160
- package/fesm5/rs-pk-asset-management.js.map +1 -1
- package/lib/components/partial/file-item/file-item.component.d.ts +7 -3
- package/lib/components/partial/file-list/file-list.component.d.ts +5 -2
- package/lib/components/partial/upload-file/upload-file.component.d.ts +0 -2
- package/lib/services/upload-assets.service.d.ts +5 -15
- package/package.json +1 -1
- package/rs-pk-asset-management.metadata.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { UploadAssetsService } from '../../../services/upload-assets.service';
|
|
3
|
-
import { DomSanitizer
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
export declare class FileItemComponent implements OnInit {
|
|
5
5
|
private domSanitizer;
|
|
6
6
|
uploadAssetService: UploadAssetsService;
|
|
7
|
-
base64Pdf: SafeUrl;
|
|
7
|
+
base64Pdf: import("@angular/platform-browser").SafeUrl;
|
|
8
8
|
file: File;
|
|
9
9
|
checkError: EventEmitter<{}>;
|
|
10
10
|
fileChange: EventEmitter<{}>;
|
|
@@ -15,13 +15,17 @@ export declare class FileItemComponent implements OnInit {
|
|
|
15
15
|
ext: string;
|
|
16
16
|
data: any;
|
|
17
17
|
errors: {
|
|
18
|
+
maxLength: boolean;
|
|
18
19
|
ext: boolean;
|
|
19
20
|
size: boolean;
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
23
|
constructor(domSanitizer: DomSanitizer, uploadAssetService: UploadAssetsService);
|
|
23
24
|
ngOnInit(): void;
|
|
24
|
-
private
|
|
25
|
+
private initDataFile;
|
|
26
|
+
private setDetailsFile;
|
|
27
|
+
private setErrorFile;
|
|
28
|
+
private checkErrors;
|
|
25
29
|
onChange(event: Event): void;
|
|
26
30
|
onRemove(): void;
|
|
27
31
|
}
|
|
@@ -6,7 +6,10 @@ export declare class FileListComponent implements OnInit {
|
|
|
6
6
|
constructor(uploadAssetsService: UploadAssetsService);
|
|
7
7
|
ngOnInit(): void;
|
|
8
8
|
onFileChange(newFiles: File[]): void;
|
|
9
|
-
onDelFile(
|
|
10
|
-
onChangeName(
|
|
9
|
+
onDelFile(index: number): void;
|
|
10
|
+
onChangeName({ name, valid }: {
|
|
11
|
+
name: any;
|
|
12
|
+
valid: any;
|
|
13
|
+
}, index: number): void;
|
|
11
14
|
onEmitError(): void;
|
|
12
15
|
}
|
|
@@ -9,8 +9,6 @@ export declare class UploadFileComponent implements OnInit {
|
|
|
9
9
|
isDragging: boolean;
|
|
10
10
|
constructor(domSanitizer: DomSanitizer, uploadAssetsService: UploadAssetsService);
|
|
11
11
|
ngOnInit(): void;
|
|
12
|
-
onDelFile(fileName: string, index: number): void;
|
|
13
|
-
onChangeName(newName: string, originName: string): void;
|
|
14
12
|
onFileChange(newFiles: any): void;
|
|
15
13
|
onEmitError(): void;
|
|
16
14
|
onDragover(_event: Event): void;
|
|
@@ -6,8 +6,9 @@ export declare class UploadAssetsService {
|
|
|
6
6
|
dialog: MatDialog;
|
|
7
7
|
private _api;
|
|
8
8
|
private files;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
fileNames: {
|
|
10
|
+
[key: string]: string | boolean;
|
|
11
|
+
}[];
|
|
11
12
|
readonly supportedSize: number;
|
|
12
13
|
readonly documentExtension: string[];
|
|
13
14
|
readonly imageExtension: string[];
|
|
@@ -16,6 +17,7 @@ export declare class UploadAssetsService {
|
|
|
16
17
|
size: string;
|
|
17
18
|
ext: string;
|
|
18
19
|
replace: string;
|
|
20
|
+
maxLength: string;
|
|
19
21
|
};
|
|
20
22
|
private errorObs$;
|
|
21
23
|
private baseUrl;
|
|
@@ -24,20 +26,8 @@ export declare class UploadAssetsService {
|
|
|
24
26
|
setErrorObs(error: boolean): void;
|
|
25
27
|
readonly getFiles: File[];
|
|
26
28
|
setFiles: File[];
|
|
27
|
-
readonly nameFiles: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
newName: {
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
};
|
|
33
29
|
readonly errorFiles: boolean;
|
|
34
|
-
errors: {
|
|
35
|
-
[key: string]: boolean;
|
|
36
|
-
};
|
|
37
|
-
readonly fileErrors: {
|
|
38
|
-
[key: string]: boolean;
|
|
39
|
-
};
|
|
40
30
|
readonly errorLength: number;
|
|
41
|
-
deleteFile(
|
|
31
|
+
deleteFile(index: number): void;
|
|
42
32
|
uploadMultipleAssets(parentAssetId: string): Observable<any>;
|
|
43
33
|
}
|