@fad-producto-portal/ng-fad-signature-fea 1.0.0-alpha.6 → 1.0.0-alpha.7

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.
@@ -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
- signDocuments(): Promise<void>;
46
- rejectDocuments(fromSign?: boolean): Promise<boolean | null>;
47
- onRejectDocument(): Promise<void>;
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>;
@@ -7,5 +7,6 @@ export declare enum UploadESignatureErrorCode {
7
7
  MULTIPLE_FILES = -6,
8
8
  ERROR_BASE_64 = -7,
9
9
  NO_SIGNER_ID = -8,
10
- NO_RFC = -9
10
+ NO_RFC = -9,
11
+ PASSWORD_ERROR = -10
11
12
  }
@@ -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";
@@ -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,13 +1,13 @@
1
1
  {
2
2
  "name": "@fad-producto-portal/ng-fad-signature-fea",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.7",
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.2",
10
+ "@fad-producto-portal/ng-fad-services": "1.0.0-alpha.3",
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",