@fad-producto-portal/ng-fad-signature-fea 1.0.0-alpha.1 → 1.0.0-alpha.11
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/components/document-approval-list/document-approval-list.component.mjs +23 -3
- package/esm2022/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.mjs +5 -5
- package/esm2022/lib/components/signature-summary/signature-summary.component.mjs +2 -2
- package/esm2022/lib/components/upload-e-signature/upload-e-signature.component.mjs +68 -58
- package/esm2022/lib/components/validate-rfc/validate-rfc.component.mjs +6 -15
- package/esm2022/lib/components/validate-signature/validate-signature.component.mjs +7 -13
- package/esm2022/lib/constants/errors/upload-e-signature/upload-e-signature-error-code.mjs +2 -1
- package/esm2022/lib/constants/errors/upload-e-signature/upload-e-signature-error-description.mjs +3 -1
- package/esm2022/lib/constants/errors/validate-rfc/validate-rfc-error-code.mjs +2 -1
- package/esm2022/lib/constants/errors/validate-rfc/validate-rfc-error-description.mjs +3 -1
- package/esm2022/lib/constants/errors/validate-signature/validate-signature-error-code.mjs +2 -1
- package/esm2022/lib/constants/errors/validate-signature/validate-signature-error-description.mjs +4 -2
- package/esm2022/lib/models/configuration/upload-e-signature/upload-e-signature-configuration.interface.mjs +1 -1
- package/fesm2022/fad-producto-portal-ng-fad-signature-fea.mjs +119 -95
- package/fesm2022/fad-producto-portal-ng-fad-signature-fea.mjs.map +1 -1
- package/lib/components/document-approval-list/document-approval-list.component.d.ts +1 -0
- package/lib/components/upload-e-signature/upload-e-signature.component.d.ts +3 -3
- package/lib/components/validate-rfc/validate-rfc.component.d.ts +2 -3
- package/lib/components/validate-signature/validate-signature.component.d.ts +2 -3
- package/lib/constants/errors/upload-e-signature/upload-e-signature-error-code.d.ts +2 -1
- package/lib/constants/errors/upload-e-signature/upload-e-signature-error-description.d.ts +1 -1
- package/lib/constants/errors/validate-rfc/validate-rfc-error-code.d.ts +2 -1
- package/lib/constants/errors/validate-rfc/validate-rfc-error-description.d.ts +1 -1
- package/lib/constants/errors/validate-signature/validate-signature-error-code.d.ts +2 -1
- package/lib/constants/errors/validate-signature/validate-signature-error-description.d.ts +1 -1
- package/lib/models/configuration/upload-e-signature/upload-e-signature-configuration.interface.d.ts +2 -0
- package/package.json +3 -3
|
@@ -31,6 +31,7 @@ export declare class DocumentApprovalListComponent {
|
|
|
31
31
|
constructor(hostContext: ElementRef, fad: FadService, cdr: ChangeDetectorRef, pdfService: NgFadPdfReaderService);
|
|
32
32
|
ngOnInit(): void;
|
|
33
33
|
getRequisitionsRfc(): void;
|
|
34
|
+
loadSingleDocument(singleDocument: DocumentApprovalFea): void;
|
|
34
35
|
toggleApproval(document: DocumentApprovalFea): void;
|
|
35
36
|
toggleRejection(document: DocumentApprovalFea): void;
|
|
36
37
|
updateApproveAllState(): void;
|
|
@@ -42,9 +42,9 @@ export declare class UploadESignatureComponent implements OnInit {
|
|
|
42
42
|
changePaswordInputType(): void;
|
|
43
43
|
savePassword(value: Event): void;
|
|
44
44
|
allIsRejected(): boolean;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
onSignDocuments(): Promise<void>;
|
|
46
|
+
signDocuments(): Promise<null | UploadESignatureComplete>;
|
|
47
|
+
rejectDocuments(): Promise<boolean>;
|
|
48
48
|
getBase64File(file: File): Promise<string | null>;
|
|
49
49
|
setCustomizationStyle(targetElement?: HTMLElement): void;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadESignatureComponent, never>;
|
|
@@ -10,9 +10,8 @@ export declare class ValidateRfcComponent implements OnInit {
|
|
|
10
10
|
private hostContext;
|
|
11
11
|
private route;
|
|
12
12
|
private fadService;
|
|
13
|
-
requisitionId: string;
|
|
14
|
-
signerId: string;
|
|
15
13
|
configuration: IValidateRfcConfiguration;
|
|
14
|
+
ticket: string;
|
|
16
15
|
onerror: EventEmitter<ResponseError>;
|
|
17
16
|
oncomplete: EventEmitter<ResponseData<ValidateRFC>>;
|
|
18
17
|
onloader: EventEmitter<boolean>;
|
|
@@ -28,5 +27,5 @@ export declare class ValidateRfcComponent implements OnInit {
|
|
|
28
27
|
onInputChange(event: any): void;
|
|
29
28
|
get codeControl(): import("@angular/forms").AbstractControl<any, any> | null;
|
|
30
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidateRfcComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValidateRfcComponent, "ng-fad-signature-fea-validate-rfc", never, { "
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidateRfcComponent, "ng-fad-signature-fea-validate-rfc", never, { "configuration": { "alias": "configuration"; "required": false; }; "ticket": { "alias": "ticket"; "required": false; }; }, { "onerror": "onerror"; "oncomplete": "oncomplete"; "onloader": "onloader"; }, never, never, false, never>;
|
|
32
31
|
}
|
|
@@ -6,8 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class ValidateSignatureComponent {
|
|
7
7
|
private fad;
|
|
8
8
|
configuration: IValidateSignatureConfiguration;
|
|
9
|
-
|
|
10
|
-
requisitionId: string;
|
|
9
|
+
ticket: string;
|
|
11
10
|
onloader: EventEmitter<boolean>;
|
|
12
11
|
onerror: EventEmitter<ResponseError>;
|
|
13
12
|
oncomplete: EventEmitter<string>;
|
|
@@ -18,5 +17,5 @@ export declare class ValidateSignatureComponent {
|
|
|
18
17
|
getSignerStatusFea(): void;
|
|
19
18
|
setCustomizationStyle(targetElement?: HTMLElement): void;
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidateSignatureComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValidateSignatureComponent, "ng-fad-signature-fea-validate-signature", never, { "configuration": { "alias": "configuration"; "required": false; }; "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidateSignatureComponent, "ng-fad-signature-fea-validate-signature", never, { "configuration": { "alias": "configuration"; "required": false; }; "ticket": { "alias": "ticket"; "required": false; }; }, { "onloader": "onloader"; "onerror": "onerror"; "oncomplete": "oncomplete"; "onsigned": "onsigned"; }, never, never, false, never>;
|
|
22
21
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UploadESignatureErrorCode } from "./upload-e-signature-error-code";
|
|
2
|
-
export declare const getUploadESignatureErrorDescription: (code: UploadESignatureErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "Los documentos a procesar son requeridos" | "El formato del archivo seleccionado no es .cer" | "El formato del archivo seleccionado no es .key" | "Solo puedes seleccionar un archivo" | "Error al convertir el archivo a base 64" | "El ID del firmante es requerido" | "El RFC del firmante es requerido";
|
|
2
|
+
export declare const getUploadESignatureErrorDescription: (code: UploadESignatureErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "Los documentos a procesar son requeridos" | "El formato del archivo seleccionado no es .cer" | "El formato del archivo seleccionado no es .key" | "Solo puedes seleccionar un archivo" | "Error al convertir el archivo a base 64" | "El ID del firmante es requerido" | "El RFC del firmante es requerido" | "La contraseña es incorrecta";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ValidateRFCErrorCode } from "./validate-rfc-error-code";
|
|
2
|
-
export declare const getValidateRFCErrorDescription: (code: ValidateRFCErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "There is not requisitionId" | "There is not signerId";
|
|
2
|
+
export declare const getValidateRFCErrorDescription: (code: ValidateRFCErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "There is not requisitionId" | "There is not signerId" | "There is not Ticket";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ValidateSignatureErrorCode } from "./validate-signature-error-code";
|
|
2
|
-
export declare const getValidateSignatureErrorDescription: (code: ValidateSignatureErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "Requisition ID is required" | "Signer ID is required";
|
|
2
|
+
export declare const getValidateSignatureErrorDescription: (code: ValidateSignatureErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "Requisition ID is required" | "Signer ID is required" | "Ticket is required";
|
package/lib/models/configuration/upload-e-signature/upload-e-signature-configuration.interface.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { IConfiguration } from "@fad-producto-portal/fad-common/models/core";
|
|
|
2
2
|
import { IUploadESignatureLegends, IUploadESignatureStyle } from "../../customization";
|
|
3
3
|
import { IUploadESignatureDependencies } from "../../path-dependencies";
|
|
4
4
|
import { FadPortalInterceptor } from "@fad-producto-portal/ng-fad-services";
|
|
5
|
+
import { IFormErrorsConfiguration, RenderGeneratorComponent } from "@fad-producto-portal/ng-fad-shared";
|
|
5
6
|
export interface IUploadESignatureConfiguration extends IConfiguration<IUploadESignatureLegends, IUploadESignatureStyle, IUploadESignatureDependencies> {
|
|
7
|
+
formErrors?: Partial<RenderGeneratorComponent<IFormErrorsConfiguration>>;
|
|
6
8
|
services?: {
|
|
7
9
|
sign?: FadPortalInterceptor;
|
|
8
10
|
reject?: FadPortalInterceptor;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fad-producto-portal/ng-fad-signature-fea",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.2.0",
|
|
6
6
|
"@angular/core": "^16.2.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@fad-producto-portal/fad-common": "1.0.0-alpha.1",
|
|
10
|
-
"@fad-producto-portal/ng-fad-services": "1.0.0-alpha.
|
|
10
|
+
"@fad-producto-portal/ng-fad-services": "1.0.0-alpha.4",
|
|
11
11
|
"@fad-producto-portal/ng-fad-shared": "1.0.0-alpha.0",
|
|
12
12
|
"@fad-producto/ng-fad-image-inline": "2.0.1-ng16-1.0.0",
|
|
13
13
|
"@fad-producto/ng-fad-pdf-reader": "4.0.0-ng16.1714523125742",
|
|
14
|
-
"@fad-producto-portal/ng-fad-viewer": "1.0.0-alpha.
|
|
14
|
+
"@fad-producto-portal/ng-fad-viewer": "1.0.0-alpha.2",
|
|
15
15
|
"tslib": "^2.3.0"
|
|
16
16
|
},
|
|
17
17
|
"sideEffects": false,
|