bpm-core 0.0.52 → 0.0.53
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/esm2022/lib/app/app.component.mjs +20 -9
- package/esm2022/lib/components/app-component-sections/previous-requests/previous-requests.component.mjs +3 -5
- package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +7 -5
- package/esm2022/lib/components/shared-components/action-buttons/action-buttons.component.mjs +4 -6
- package/esm2022/lib/components/shared-components/dialogs/delete-dialog/delete-dialog.component.mjs +5 -4
- package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +76 -51
- package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +151 -110
- package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +6 -7
- package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +12 -5
- package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +2 -1
- package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +3 -4
- package/esm2022/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.mjs +139 -206
- package/esm2022/lib/components/shared-components/form-field/index.mjs +2 -1
- package/esm2022/lib/components/shared-components/form-field/info-item/info-item.component.mjs +3 -3
- package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +14 -7
- package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +6 -4
- package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +43 -101
- package/esm2022/lib/components/shared-components/index.mjs +1 -3
- package/esm2022/lib/i18n/ar.mjs +4 -2
- package/esm2022/lib/i18n/en.mjs +4 -2
- package/esm2022/lib/services/core.service.ts.mjs +11 -1
- package/esm2022/lib/services/i18n.service.mjs +3 -3
- package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +24 -23
- package/esm2022/lib/testComponent/services/i18n.service.mjs +3 -3
- package/fesm2022/bpm-core.mjs +582 -663
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/app/app.component.d.ts +5 -2
- package/lib/components/app-component-sections/service-header/service-header.component.d.ts +2 -2
- package/lib/components/shared-components/action-buttons/action-buttons.component.d.ts +3 -4
- package/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.d.ts +12 -3
- package/lib/components/shared-components/form-field/attachment-section/attachment-section.component.d.ts +23 -12
- package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +5 -2
- package/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.d.ts +14 -12
- package/lib/components/shared-components/form-field/index.d.ts +1 -0
- package/lib/components/shared-components/form-field/info-item/info-item.component.d.ts +1 -1
- package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +1 -7
- package/lib/components/shared-components/index.d.ts +0 -2
- package/lib/i18n/ar.d.ts +2 -0
- package/lib/i18n/en.d.ts +2 -0
- package/lib/services/core.service.ts.d.ts +1 -0
- package/lib/testComponent/request-details-section/request-details-section.component.d.ts +0 -2
- package/package.json +2 -2
- package/src/lib/assets/images/user.svg +6 -0
- package/src/lib/assets/scss/_general.scss +4 -1
- package/src/lib/assets/scss/_upgrade.scss +2 -2
- package/esm2022/lib/components/shared-components/confirmation-popup/confirmation-popup.component.mjs +0 -39
- package/esm2022/lib/components/shared-components/delete-popup/delete-popup.component.mjs +0 -19
- package/esm2022/lib/components/shared-components/doc-uploader/docs-uploader.component.mjs +0 -686
- package/lib/components/shared-components/confirmation-popup/confirmation-popup.component.d.ts +0 -25
- package/lib/components/shared-components/delete-popup/delete-popup.component.d.ts +0 -6
- package/lib/components/shared-components/doc-uploader/docs-uploader.component.d.ts +0 -144
package/lib/components/shared-components/confirmation-popup/confirmation-popup.component.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConfirmationPopupComponent {
|
|
4
|
-
data: {
|
|
5
|
-
title: string;
|
|
6
|
-
id: string;
|
|
7
|
-
confirmText: string;
|
|
8
|
-
moreText: string;
|
|
9
|
-
type: string;
|
|
10
|
-
icon: string;
|
|
11
|
-
};
|
|
12
|
-
dialogRef: MatDialogRef<any>;
|
|
13
|
-
constructor(data: {
|
|
14
|
-
title: string;
|
|
15
|
-
id: string;
|
|
16
|
-
confirmText: string;
|
|
17
|
-
moreText: string;
|
|
18
|
-
type: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
}, dialogRef: MatDialogRef<any>);
|
|
21
|
-
openForm(): void;
|
|
22
|
-
delete(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationPopupComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationPopupComponent, "app-delete-popup", never, {}, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DeletePopupComponent {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeletePopupComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeletePopupComponent, "app-delete-popup", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from './../form-field/base-component/base-component.component';
|
|
2
|
-
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { DocumentFile } from '../../../interfaces';
|
|
4
|
-
import { ImageCroppedEvent, ImageTransform, LoadedImage } from 'ngx-image-cropper';
|
|
5
|
-
import { FormGroup } from '@angular/forms';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DocsUploaderComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
-
maxSizeFlag: boolean;
|
|
9
|
-
maxSizeValue: any;
|
|
10
|
-
wrongExtensionFlag: boolean;
|
|
11
|
-
useCrop: boolean;
|
|
12
|
-
formKey: string;
|
|
13
|
-
showLabel: boolean;
|
|
14
|
-
downloadLink: boolean;
|
|
15
|
-
showActions: boolean;
|
|
16
|
-
styleHeight: string;
|
|
17
|
-
fileInputHeight: string;
|
|
18
|
-
styleWidth: string;
|
|
19
|
-
hints: any;
|
|
20
|
-
label: string;
|
|
21
|
-
callApi: boolean;
|
|
22
|
-
tooltip: string;
|
|
23
|
-
attachments: any[];
|
|
24
|
-
optional: boolean;
|
|
25
|
-
display: string;
|
|
26
|
-
validExtension: boolean;
|
|
27
|
-
attachType: string;
|
|
28
|
-
error: string;
|
|
29
|
-
displayedFiles: DocumentFile[];
|
|
30
|
-
selectedTemplateAttachment: EventEmitter<any>;
|
|
31
|
-
fileNotDuplicated: boolean;
|
|
32
|
-
allowedFileSize: boolean;
|
|
33
|
-
getDataFromTemplate: boolean;
|
|
34
|
-
allowFileContentsWithMultiAttachments: boolean;
|
|
35
|
-
accept: string[];
|
|
36
|
-
wrongFile: {
|
|
37
|
-
mimeType: string;
|
|
38
|
-
fileContents: string;
|
|
39
|
-
fileName: string;
|
|
40
|
-
};
|
|
41
|
-
allAttachments: any[];
|
|
42
|
-
uploadForm: FormGroup;
|
|
43
|
-
signType: string;
|
|
44
|
-
showSignButton: boolean;
|
|
45
|
-
printType: string;
|
|
46
|
-
showPrintButton: boolean;
|
|
47
|
-
downloadType: string;
|
|
48
|
-
showDownloadButton: boolean;
|
|
49
|
-
preventFileContents: boolean;
|
|
50
|
-
addSignatureClicked: EventEmitter<any>;
|
|
51
|
-
printActionClicked: EventEmitter<any>;
|
|
52
|
-
downloadActionClicked: EventEmitter<any>;
|
|
53
|
-
maxSize: string;
|
|
54
|
-
inputFile: ElementRef;
|
|
55
|
-
inputFileName: ElementRef;
|
|
56
|
-
private validImageTypes;
|
|
57
|
-
validImgPdfTypes: {
|
|
58
|
-
pdf: string[];
|
|
59
|
-
jpg: string[];
|
|
60
|
-
JPG: string[];
|
|
61
|
-
jpeg: string[];
|
|
62
|
-
bmp: string[];
|
|
63
|
-
png: string[];
|
|
64
|
-
};
|
|
65
|
-
validFileTypes: {
|
|
66
|
-
pdf: string[];
|
|
67
|
-
doc: string[];
|
|
68
|
-
docx: string[];
|
|
69
|
-
ppt: string[];
|
|
70
|
-
pptx: string[];
|
|
71
|
-
pps: string[];
|
|
72
|
-
ppsx: string[];
|
|
73
|
-
odt: string[];
|
|
74
|
-
xls: string[];
|
|
75
|
-
xlsx: string[];
|
|
76
|
-
zip: string[];
|
|
77
|
-
msg: string[];
|
|
78
|
-
csv: string[];
|
|
79
|
-
txt: string[];
|
|
80
|
-
rtf: string[];
|
|
81
|
-
html: string[];
|
|
82
|
-
mov: string[];
|
|
83
|
-
wmv: string[];
|
|
84
|
-
mpg: string[];
|
|
85
|
-
rmvb: string[];
|
|
86
|
-
jpg: string[];
|
|
87
|
-
jpeg: string[];
|
|
88
|
-
png: string[];
|
|
89
|
-
gif: string[];
|
|
90
|
-
bmp: string[];
|
|
91
|
-
};
|
|
92
|
-
private validPdfTypes;
|
|
93
|
-
uploading: boolean;
|
|
94
|
-
lengthError: boolean;
|
|
95
|
-
scale: number;
|
|
96
|
-
showCropper: boolean;
|
|
97
|
-
containWithinAspectRatio: boolean;
|
|
98
|
-
transform: ImageTransform;
|
|
99
|
-
imageChangedEvent: any;
|
|
100
|
-
croppedImage: any;
|
|
101
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
102
|
-
ngOnInit(): void;
|
|
103
|
-
resetAttachmentData(): void;
|
|
104
|
-
getFileType(attachment: any): string;
|
|
105
|
-
private checkFileType;
|
|
106
|
-
attch(data: any, index: number, field: any): void;
|
|
107
|
-
confirmDelete(index: number): void;
|
|
108
|
-
removeMulti(index: number): void;
|
|
109
|
-
downloadFileNew(fileData: any): void;
|
|
110
|
-
onValueChange(event: any): void;
|
|
111
|
-
fileChangeEvent(event: any): void;
|
|
112
|
-
addAttachments(): void;
|
|
113
|
-
addMultiAttachments(field: any): void;
|
|
114
|
-
checkFileExistance(file: AttatchmentFile): boolean;
|
|
115
|
-
isValidMimeType(value: any): boolean;
|
|
116
|
-
isValidExtension(value: string, type: string): boolean;
|
|
117
|
-
removeAttachedFile(): void;
|
|
118
|
-
downloadFile(event: any, field: any): void;
|
|
119
|
-
printFile(field: any): void;
|
|
120
|
-
addSignature(event: Event): void;
|
|
121
|
-
printFileData(event: any): void;
|
|
122
|
-
downloadFileData(event: any): void;
|
|
123
|
-
dataURItoBlob(dataURI: any): Blob;
|
|
124
|
-
imageCropped(event: ImageCroppedEvent): void;
|
|
125
|
-
imageLoaded(image: LoadedImage): void;
|
|
126
|
-
cropperReady(): void;
|
|
127
|
-
loadImageFailed(): void;
|
|
128
|
-
zoomOut(): void;
|
|
129
|
-
zoomIn(): void;
|
|
130
|
-
getExtension(attachment: any): any;
|
|
131
|
-
private emit;
|
|
132
|
-
private deleteFileContents;
|
|
133
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocsUploaderComponent, never>;
|
|
134
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocsUploaderComponent, "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; }; "label": { "alias": "label"; "required": false; }; "callApi": { "alias": "callApi"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "optional": { "alias": "optional"; "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; }; "signType": { "alias": "signType"; "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; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, { "selectedTemplateAttachment": "selectedTemplateAttachment"; "addSignatureClicked": "addSignatureClicked"; "printActionClicked": "printActionClicked"; "downloadActionClicked": "downloadActionClicked"; }, never, never, true, never>;
|
|
135
|
-
}
|
|
136
|
-
declare class AttatchmentFile {
|
|
137
|
-
fileName: string;
|
|
138
|
-
name: string;
|
|
139
|
-
mimeType: string;
|
|
140
|
-
fileContents: string;
|
|
141
|
-
filesize: string;
|
|
142
|
-
constructor(fileName: string, name: string, mimeType: string, fileContents: string, filesize: string);
|
|
143
|
-
}
|
|
144
|
-
export {};
|