bpm-core 0.0.141 → 0.0.143
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/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.d.ts
CHANGED
|
@@ -51,11 +51,12 @@ export declare class DocsUploaderComponent<Type> extends ControlValueAccessorDir
|
|
|
51
51
|
printActionClicked: EventEmitter<any>;
|
|
52
52
|
emitedValue: EventEmitter<any>;
|
|
53
53
|
downloadActionClicked: EventEmitter<any>;
|
|
54
|
-
maxSize: string;
|
|
55
54
|
inputFile: ElementRef;
|
|
56
55
|
dialog: MatDialog;
|
|
57
56
|
destroyRef: DestroyRef;
|
|
58
57
|
maxLength: number | string;
|
|
58
|
+
sendAsFormdata: boolean;
|
|
59
|
+
maxSize: any;
|
|
59
60
|
private readonly validImageTypes;
|
|
60
61
|
validImgPdfTypes: {
|
|
61
62
|
pdf: string[];
|
|
@@ -111,9 +112,10 @@ export declare class DocsUploaderComponent<Type> extends ControlValueAccessorDir
|
|
|
111
112
|
private readFileAndUpload;
|
|
112
113
|
private uploadSingleFile;
|
|
113
114
|
private emitEmptyFile;
|
|
114
|
-
processAttachments(field: any, allowMultiAttachments: boolean): void;
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
processAttachments(file: any, field: any, allowMultiAttachments: boolean): void;
|
|
116
|
+
prepareSentItem(file: any): FormData;
|
|
117
|
+
addAttachments(file: any): void;
|
|
118
|
+
addMultiAttachments(file: any, field: any): void;
|
|
117
119
|
isFileNotDuplicate(file: FileInfo): boolean;
|
|
118
120
|
isValidMimeType(value: any): boolean;
|
|
119
121
|
isValidExtension(value: string, type: string): boolean;
|
|
@@ -123,7 +125,7 @@ export declare class DocsUploaderComponent<Type> extends ControlValueAccessorDir
|
|
|
123
125
|
private deleteFileContents;
|
|
124
126
|
private reset;
|
|
125
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocsUploaderComponent<any>, never>;
|
|
126
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocsUploaderComponent<any>, "app-file-uploader", never, { "useCrop": { "alias": "useCrop"; "required": false; }; "formKey": { "alias": "formKey"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "downloadLink": { "alias": "downloadLink"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "styleHeight": { "alias": "styleHeight"; "required": false; }; "fileInputHeight": { "alias": "fileInputHeight"; "required": false; }; "styleWidth": { "alias": "styleWidth"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "allowedExtensions": { "alias": "allowedExtensions"; "required": false; }; "callApi": { "alias": "callApi"; "required": false; }; "display": { "alias": "display"; "required": false; }; "attachType": { "alias": "attachType"; "required": false; }; "error": { "alias": "error"; "required": false; }; "displayedFiles": { "alias": "displayedFiles"; "required": false; }; "getDataFromTemplate": { "alias": "getDataFromTemplate"; "required": false; }; "allowFileContentsWithMultiAttachments": { "alias": "allowFileContentsWithMultiAttachments"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "allAttachments": { "alias": "allAttachments"; "required": false; }; "signType": { "alias": "signType"; "required": false; }; "customDownload": { "alias": "customDownload"; "required": false; }; "showSignButton": { "alias": "showSignButton"; "required": false; }; "printType": { "alias": "printType"; "required": false; }; "showPrintButton": { "alias": "showPrintButton"; "required": false; }; "downloadType": { "alias": "downloadType"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "preventFileContents": { "alias": "preventFileContents"; "required": false; }; "
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocsUploaderComponent<any>, "app-file-uploader", never, { "useCrop": { "alias": "useCrop"; "required": false; }; "formKey": { "alias": "formKey"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "downloadLink": { "alias": "downloadLink"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "styleHeight": { "alias": "styleHeight"; "required": false; }; "fileInputHeight": { "alias": "fileInputHeight"; "required": false; }; "styleWidth": { "alias": "styleWidth"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "allowedExtensions": { "alias": "allowedExtensions"; "required": false; }; "callApi": { "alias": "callApi"; "required": false; }; "display": { "alias": "display"; "required": false; }; "attachType": { "alias": "attachType"; "required": false; }; "error": { "alias": "error"; "required": false; }; "displayedFiles": { "alias": "displayedFiles"; "required": false; }; "getDataFromTemplate": { "alias": "getDataFromTemplate"; "required": false; }; "allowFileContentsWithMultiAttachments": { "alias": "allowFileContentsWithMultiAttachments"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "allAttachments": { "alias": "allAttachments"; "required": false; }; "signType": { "alias": "signType"; "required": false; }; "customDownload": { "alias": "customDownload"; "required": false; }; "showSignButton": { "alias": "showSignButton"; "required": false; }; "printType": { "alias": "printType"; "required": false; }; "showPrintButton": { "alias": "showPrintButton"; "required": false; }; "downloadType": { "alias": "downloadType"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "preventFileContents": { "alias": "preventFileContents"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "sendAsFormdata": { "alias": "sendAsFormdata"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, { "selectedTemplateAttachment": "selectedTemplateAttachment"; "addSignatureClicked": "addSignatureClicked"; "printActionClicked": "printActionClicked"; "emitedValue": "emitedValue"; "downloadActionClicked": "downloadActionClicked"; }, never, never, true, never>;
|
|
127
129
|
}
|
|
128
130
|
declare class FileInfo {
|
|
129
131
|
fileName: string;
|
|
@@ -63,6 +63,7 @@ export declare class CoreService {
|
|
|
63
63
|
customSearchEmployee(q: any, ApiAlias: any, args?: {}): Observable<any>;
|
|
64
64
|
myRequests(details: any): Observable<any>;
|
|
65
65
|
generalCallApi(body: any, type: string, options: any): Observable<any>;
|
|
66
|
+
uploadFormData(body: any): Observable<any>;
|
|
66
67
|
loggedInUserId(): any;
|
|
67
68
|
getShortName(name: string): string | string[];
|
|
68
69
|
isMobileApp(): any;
|