ngx-techlify-core 11.4.5 → 11.4.6
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/ngx-techlify-core.umd.js +77 -15
- package/bundles/ngx-techlify-core.umd.js.map +1 -1
- package/bundles/ngx-techlify-core.umd.min.js +1 -1
- package/bundles/ngx-techlify-core.umd.min.js.map +1 -1
- package/esm2015/lib/core/error-handler.service.js +13 -4
- package/esm2015/lib/core/techlify-config.model.js +3 -1
- package/esm2015/lib/entity-files/entity-file-form/entity-file-form.component.js +6 -9
- package/esm2015/lib/entity-files/entity-file.service.js +6 -2
- package/esm2015/lib/entity-files/entity-files-view-all.component.js +47 -4
- package/fesm2015/ngx-techlify-core.js +68 -15
- package/fesm2015/ngx-techlify-core.js.map +1 -1
- package/lib/core/error-handler.service.d.ts +3 -1
- package/lib/core/techlify-config.model.d.ts +1 -0
- package/lib/entity-files/entity-file.service.d.ts +1 -1
- package/lib/entity-files/entity-files-view-all.component.d.ts +6 -0
- package/ngx-techlify-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TechlifyConfig } from './techlify-config.model';
|
|
1
2
|
import { AlertService } from "./alert.service";
|
|
2
3
|
/**
|
|
3
4
|
* Service used to handle errors from the request
|
|
@@ -7,6 +8,7 @@ import { AlertService } from "./alert.service";
|
|
|
7
8
|
*/
|
|
8
9
|
export declare class ErrorHandlerService {
|
|
9
10
|
private alerter;
|
|
10
|
-
|
|
11
|
+
private config;
|
|
12
|
+
constructor(alerter: AlertService, config: TechlifyConfig);
|
|
11
13
|
handleError(errorResponse: any, msg?: string): void;
|
|
12
14
|
}
|
|
@@ -6,5 +6,5 @@ export declare class EntityFileService {
|
|
|
6
6
|
createEntityFile(model: any): Promise<Object>;
|
|
7
7
|
updateEntityFile(model: any): Promise<Object>;
|
|
8
8
|
deleteEntityFile(model: any): Promise<Object>;
|
|
9
|
-
uploadEntityFile(file: File): Promise<Object>;
|
|
9
|
+
uploadEntityFile(file: File, params?: any): Promise<Object>;
|
|
10
10
|
}
|
|
@@ -5,6 +5,7 @@ import { EntityFileService } from './entity-file.service';
|
|
|
5
5
|
import { FormControl } from '@angular/forms';
|
|
6
6
|
import { AlertService } from '../core/alert.service';
|
|
7
7
|
import { ViewerConfig } from '../document-viewer/viewer-config.model';
|
|
8
|
+
import { FileDropperConfig } from '../file-dropper';
|
|
8
9
|
export declare class EntityFilesViewAllComponent implements OnInit {
|
|
9
10
|
private entityFileService;
|
|
10
11
|
location: Location;
|
|
@@ -17,6 +18,7 @@ export declare class EntityFilesViewAllComponent implements OnInit {
|
|
|
17
18
|
hideTitleAndDetails: boolean;
|
|
18
19
|
displayMode: boolean;
|
|
19
20
|
viewerConfig: ViewerConfig;
|
|
21
|
+
title: string;
|
|
20
22
|
filters: any;
|
|
21
23
|
entityFiles: any[];
|
|
22
24
|
displayedColumns: string[];
|
|
@@ -25,6 +27,8 @@ export declare class EntityFilesViewAllComponent implements OnInit {
|
|
|
25
27
|
page: number;
|
|
26
28
|
perPage: number;
|
|
27
29
|
lastPage: number;
|
|
30
|
+
fileConfig: FileDropperConfig;
|
|
31
|
+
fileList: any[];
|
|
28
32
|
constructor(entityFileService: EntityFileService, location: Location, alertService: AlertService, dialog: MatDialog);
|
|
29
33
|
ngOnInit(): void;
|
|
30
34
|
fetchEntityFilesDetails(): Promise<void>;
|
|
@@ -35,4 +39,6 @@ export declare class EntityFilesViewAllComponent implements OnInit {
|
|
|
35
39
|
reload(): void;
|
|
36
40
|
ngOnDestroy(): void;
|
|
37
41
|
resetFieldValue(): void;
|
|
42
|
+
sizeOf(bytes: any): string;
|
|
43
|
+
fileChanged(event: any): Promise<void>;
|
|
38
44
|
}
|