@fad-producto-portal/ng-fad-signature-fea 1.0.0-alpha.0 → 1.0.0-alpha.1

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.
Files changed (71) hide show
  1. package/assets/images/fad-signature-fea/signature-summary/rejected.svg +20 -0
  2. package/assets/images/fad-signature-fea/signature-summary/send.svg +11 -0
  3. package/esm2022/lib/components/document-approval-list/document-approval-list.component.mjs +15 -81
  4. package/esm2022/lib/components/generic-error-fea/generic-error-fea.component.mjs +3 -3
  5. package/esm2022/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.mjs +79 -0
  6. package/esm2022/lib/components/signature-summary/signature-summary.component.mjs +95 -0
  7. package/esm2022/lib/components/validate-rfc/validate-rfc.component.mjs +38 -17
  8. package/esm2022/lib/components/validate-signature/validate-signature.component.mjs +1 -1
  9. package/esm2022/lib/constants/configuration/index.mjs +2 -1
  10. package/esm2022/lib/constants/configuration/pdf-viewer-fea/index.mjs +2 -0
  11. package/esm2022/lib/constants/configuration/pdf-viewer-fea/pdf-viewer-fea-configuration.const.mjs +17 -0
  12. package/esm2022/lib/constants/configuration/signature-summary/signature-summary-configuration.const.mjs +18 -0
  13. package/esm2022/lib/constants/errors/validate-rfc/validate-rfc-error-code.mjs +3 -1
  14. package/esm2022/lib/constants/errors/validate-rfc/validate-rfc-error-description.mjs +5 -1
  15. package/esm2022/lib/models/configuration/index.mjs +4 -1
  16. package/esm2022/lib/models/configuration/pdf-viewer-fea/index.mjs +2 -0
  17. package/esm2022/lib/models/configuration/pdf-viewer-fea/pdf-viewer-fea.interface.mjs +2 -0
  18. package/esm2022/lib/models/configuration/signature-summary/index.mjs +2 -0
  19. package/esm2022/lib/models/configuration/signature-summary/signature-summary.interface.mjs +2 -0
  20. package/esm2022/lib/models/customization/legends/index.mjs +4 -1
  21. package/esm2022/lib/models/customization/legends/pdf-viewer-fea/index.mjs +2 -0
  22. package/esm2022/lib/models/customization/legends/pdf-viewer-fea/pdf-viewer-fea-legends.interface.mjs +2 -0
  23. package/esm2022/lib/models/customization/legends/signature-summary/index.mjs +2 -0
  24. package/esm2022/lib/models/customization/legends/signature-summary/signature-summary-legends.interface.mjs +2 -0
  25. package/esm2022/lib/models/customization/style/index.mjs +4 -1
  26. package/esm2022/lib/models/customization/style/pdf-viewer-fea/index.mjs +2 -0
  27. package/esm2022/lib/models/customization/style/pdf-viewer-fea/pdf-viewer-fea-style.interface.mjs +2 -0
  28. package/esm2022/lib/models/customization/style/signature-summary/index.mjs +2 -0
  29. package/esm2022/lib/models/customization/style/signature-summary/signature-summary-style.interface.mjs +2 -0
  30. package/esm2022/lib/models/path-dependencies/index.mjs +4 -1
  31. package/esm2022/lib/models/path-dependencies/pdf-viewer-fea/index.mjs +2 -0
  32. package/esm2022/lib/models/path-dependencies/pdf-viewer-fea/pdf-viewer-fea-dependencies.interface.mjs +2 -0
  33. package/esm2022/lib/models/path-dependencies/signature-summary/index.mjs +2 -0
  34. package/esm2022/lib/models/path-dependencies/signature-summary/signature-summary-dependencies.interface.mjs +2 -0
  35. package/esm2022/lib/ng-fad-signature-fea.module.mjs +15 -5
  36. package/esm2022/public-api.mjs +3 -1
  37. package/fesm2022/fad-producto-portal-ng-fad-signature-fea.mjs +276 -114
  38. package/fesm2022/fad-producto-portal-ng-fad-signature-fea.mjs.map +1 -1
  39. package/lib/components/document-approval-list/document-approval-list.component.d.ts +1 -16
  40. package/lib/components/pdf-viewer-fea/pdf-viewer-fea.component.d.ts +28 -0
  41. package/lib/components/signature-summary/signature-summary.component.d.ts +27 -0
  42. package/lib/components/validate-rfc/validate-rfc.component.d.ts +7 -4
  43. package/lib/constants/configuration/index.d.ts +1 -0
  44. package/lib/constants/configuration/pdf-viewer-fea/index.d.ts +1 -0
  45. package/lib/constants/configuration/pdf-viewer-fea/pdf-viewer-fea-configuration.const.d.ts +2 -0
  46. package/lib/constants/configuration/signature-summary/signature-summary-configuration.const.d.ts +2 -0
  47. package/lib/constants/errors/validate-rfc/validate-rfc-error-code.d.ts +3 -1
  48. package/lib/constants/errors/validate-rfc/validate-rfc-error-description.d.ts +1 -1
  49. package/lib/models/configuration/index.d.ts +3 -0
  50. package/lib/models/configuration/pdf-viewer-fea/index.d.ts +1 -0
  51. package/lib/models/configuration/pdf-viewer-fea/pdf-viewer-fea.interface.d.ts +9 -0
  52. package/lib/models/configuration/signature-summary/index.d.ts +1 -0
  53. package/lib/models/configuration/signature-summary/signature-summary.interface.d.ts +6 -0
  54. package/lib/models/customization/legends/index.d.ts +3 -0
  55. package/lib/models/customization/legends/pdf-viewer-fea/index.d.ts +1 -0
  56. package/lib/models/customization/legends/pdf-viewer-fea/pdf-viewer-fea-legends.interface.d.ts +3 -0
  57. package/lib/models/customization/legends/signature-summary/index.d.ts +1 -0
  58. package/lib/models/customization/legends/signature-summary/signature-summary-legends.interface.d.ts +8 -0
  59. package/lib/models/customization/style/index.d.ts +3 -0
  60. package/lib/models/customization/style/pdf-viewer-fea/index.d.ts +1 -0
  61. package/lib/models/customization/style/pdf-viewer-fea/pdf-viewer-fea-style.interface.d.ts +2 -0
  62. package/lib/models/customization/style/signature-summary/index.d.ts +1 -0
  63. package/lib/models/customization/style/signature-summary/signature-summary-style.interface.d.ts +2 -0
  64. package/lib/models/path-dependencies/index.d.ts +3 -0
  65. package/lib/models/path-dependencies/pdf-viewer-fea/index.d.ts +1 -0
  66. package/lib/models/path-dependencies/pdf-viewer-fea/pdf-viewer-fea-dependencies.interface.d.ts +9 -0
  67. package/lib/models/path-dependencies/signature-summary/index.d.ts +1 -0
  68. package/lib/models/path-dependencies/signature-summary/signature-summary-dependencies.interface.d.ts +7 -0
  69. package/lib/ng-fad-signature-fea.module.d.ts +10 -8
  70. package/package.json +2 -2
  71. package/public-api.d.ts +2 -0
@@ -0,0 +1,28 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { NgFadPdfReaderService, ResponseSuccess } from '@fad-producto/ng-fad-pdf-reader';
3
+ import { GeneralPdfViewerComponent as GeneralPdfViewerComponentModule } from '@fad-producto-portal/ng-fad-viewer';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PdfViewerFeaComponent {
6
+ private pdfService;
7
+ private cdr;
8
+ configuration: string;
9
+ file: string;
10
+ index: number;
11
+ id: string;
12
+ pages: ResponseSuccess[];
13
+ page: number;
14
+ miniViewConfig: {
15
+ scrollIntoView: boolean;
16
+ };
17
+ height: number;
18
+ generalPdfViewerComponent: GeneralPdfViewerComponentModule;
19
+ constructor(pdfService: NgFadPdfReaderService, cdr: ChangeDetectorRef);
20
+ ngOnInit(): void;
21
+ initializePdf(pdfBase64: string): void;
22
+ onPageChange(page: number): void;
23
+ scrollToPage(page: number): void;
24
+ onLoadPage(data: ResponseSuccess): void;
25
+ setCustomizationStyle(targetElement?: HTMLElement): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerFeaComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerFeaComponent, "ng-fad-signature-fea-pdf-viewer-fea", never, { "configuration": { "alias": "configuration"; "required": false; }; "file": { "alias": "file"; "required": false; }; "index": { "alias": "index"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, false, never>;
28
+ }
@@ -0,0 +1,27 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { DocumentApprovalFea, ISignatureSummaryConfiguration } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SignatureSummaryComponent {
5
+ private hostContext;
6
+ documentRequest: DocumentApprovalFea[];
7
+ configuration: ISignatureSummaryConfiguration;
8
+ oncomplete: EventEmitter<any>;
9
+ images: {
10
+ reject: string;
11
+ send: string;
12
+ };
13
+ signedCount: number;
14
+ rejectedCount: number;
15
+ isAllDocumentsRejected: boolean;
16
+ currentDate: string;
17
+ id: string;
18
+ pdfsName: string;
19
+ constructor(hostContext: ElementRef);
20
+ ngOnInit(): void;
21
+ setCurrentDate(): void;
22
+ updateDocumentCounts(): void;
23
+ getPdfNames(): void;
24
+ setCustomizationStyle(targetElement?: HTMLElement): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignatureSummaryComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<SignatureSummaryComponent, "ng-fad-signature-fea-signature-summary", never, { "documentRequest": { "alias": "documentRequest"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; }, { "oncomplete": "oncomplete"; }, never, never, false, never>;
27
+ }
@@ -10,20 +10,23 @@ export declare class ValidateRfcComponent implements OnInit {
10
10
  private hostContext;
11
11
  private route;
12
12
  private fadService;
13
+ requisitionId: string;
14
+ signerId: string;
13
15
  configuration: IValidateRfcConfiguration;
14
16
  onerror: EventEmitter<ResponseError>;
15
- onevent: EventEmitter<ResponseData<ValidateRFC>>;
17
+ oncomplete: EventEmitter<ResponseData<ValidateRFC>>;
18
+ onloader: EventEmitter<boolean>;
16
19
  validationForm: FormGroup;
17
20
  showComponent: boolean;
18
- requisitionId: string;
19
- signerId: string;
20
21
  constructor(fb: FormBuilder, hostContext: ElementRef, route: ActivatedRoute, fadService: FadService);
21
22
  ngOnInit(): void;
22
23
  initializeForm(): void;
23
24
  onSubmit(): void;
24
25
  setCustomizationStyle(targetElement?: HTMLElement): void;
26
+ validateData(): boolean;
25
27
  validateRFC(): void;
28
+ onInputChange(event: any): void;
26
29
  get codeControl(): import("@angular/forms").AbstractControl<any, any> | null;
27
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ValidateRfcComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<ValidateRfcComponent, "ng-fad-signature-fea-validate-rfc", never, { "configuration": { "alias": "configuration"; "required": false; }; }, { "onerror": "onerror"; "onevent": "onevent"; }, never, never, false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValidateRfcComponent, "ng-fad-signature-fea-validate-rfc", never, { "requisitionId": { "alias": "requisitionId"; "required": false; }; "signerId": { "alias": "signerId"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; }, { "onerror": "onerror"; "oncomplete": "oncomplete"; "onloader": "onloader"; }, never, never, false, never>;
29
32
  }
@@ -3,3 +3,4 @@ export * from './generic-error-fea/index';
3
3
  export * from './upload-e-signature/index';
4
4
  export * from './validate-rfc/index';
5
5
  export * from './validate-signature/index';
6
+ export * from './pdf-viewer-fea/index';
@@ -0,0 +1 @@
1
+ export * from './pdf-viewer-fea-configuration.const';
@@ -0,0 +1,2 @@
1
+ import { IPdfViewerFeaConfiguration } from "../../../models";
2
+ export declare const PDF_VIEWER_FEA_DEFAULT: IPdfViewerFeaConfiguration;
@@ -0,0 +1,2 @@
1
+ import { ISignatureSummaryConfiguration } from "../../../models";
2
+ export declare const SIGNATURE_SUMMARY_DEFAULT: ISignatureSummaryConfiguration;
@@ -1,4 +1,6 @@
1
1
  export declare enum ValidateRFCErrorCode {
2
2
  SERVICE = -1,
3
- HTTP = -2
3
+ HTTP = -2,
4
+ REQUISITION_ID = -3,
5
+ SIGNER_ID = -4
4
6
  }
@@ -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";
2
+ export declare const getValidateRFCErrorDescription: (code: ValidateRFCErrorCode) => "Service error" | "HTTP error" | "Unknown error" | "There is not requisitionId" | "There is not signerId";
@@ -2,4 +2,7 @@ export * from './document-approval-list/index';
2
2
  export * from './generic-error-fea/index';
3
3
  export * from './upload-e-signature/index';
4
4
  export * from './validate-rfc/index';
5
+ export * from './document-approval-list/index';
6
+ export * from './pdf-viewer-fea/index';
5
7
  export * from './validate-signature/index';
8
+ export * from './signature-summary/index';
@@ -0,0 +1 @@
1
+ export * from './pdf-viewer-fea.interface';
@@ -0,0 +1,9 @@
1
+ import { IConfiguration } from "@fad-producto-portal/fad-common/models/core";
2
+ import { IPdfViewerFeaLegends, IPdfViewerFeaStyle } from "../../customization";
3
+ import { IPdfViewerFeaDependencies } from "../../path-dependencies";
4
+ import { RenderGeneratorComponent } from "@fad-producto-portal/ng-fad-shared";
5
+ import { IGeneralPdfViewerConfiguration, IPdfMiniViewConfiguration } from "@fad-producto-portal/ng-fad-viewer";
6
+ export interface IPdfViewerFeaConfiguration extends IConfiguration<IPdfViewerFeaLegends, IPdfViewerFeaStyle, IPdfViewerFeaDependencies> {
7
+ pdfMini?: Partial<RenderGeneratorComponent<IPdfMiniViewConfiguration>>;
8
+ pdfGeneral?: Partial<RenderGeneratorComponent<IGeneralPdfViewerConfiguration>>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './signature-summary.interface';
@@ -0,0 +1,6 @@
1
+ import { IConfiguration } from "@fad-producto-portal/fad-common/models/core";
2
+ import { ISignatureSummaryLegends, ISignatureSummaryStyle } from "../../customization";
3
+ import { ISignatureSummaryDependencies } from "../../path-dependencies";
4
+ export interface ISignatureSummaryConfiguration extends IConfiguration<ISignatureSummaryLegends, ISignatureSummaryStyle, ISignatureSummaryDependencies> {
5
+ dateFormat?: string;
6
+ }
@@ -2,4 +2,7 @@ export * from './document-approval-list/index';
2
2
  export * from './generic-error-fea/index';
3
3
  export * from './upload-e-signature/index';
4
4
  export * from './validate-rfc/index';
5
+ export * from './document-approval-list/index';
6
+ export * from './pdf-viewer-fea/index';
5
7
  export * from './validate-signature/index';
8
+ export * from './signature-summary/index';
@@ -0,0 +1 @@
1
+ export * from './pdf-viewer-fea-legends.interface';
@@ -0,0 +1,3 @@
1
+ import { IModuleCustomizationLegends } from "@fad-producto-portal/fad-common/models/core";
2
+ export interface IPdfViewerFeaLegends extends IModuleCustomizationLegends {
3
+ }
@@ -0,0 +1 @@
1
+ export * from './signature-summary-legends.interface';
@@ -0,0 +1,8 @@
1
+ import { IModuleCustomizationLegends } from "@fad-producto-portal/fad-common/models/core";
2
+ export interface ISignatureSummaryLegends extends IModuleCustomizationLegends {
3
+ title?: string;
4
+ signed?: string;
5
+ rejected?: string;
6
+ legend?: string;
7
+ documentRejected?: string;
8
+ }
@@ -2,4 +2,7 @@ export * from './document-approval-list/index';
2
2
  export * from './generic-error-fea/index';
3
3
  export * from './upload-e-signature/index';
4
4
  export * from './validate-rfc/index';
5
+ export * from './document-approval-list/index';
6
+ export * from './pdf-viewer-fea/index';
5
7
  export * from './validate-signature/index';
8
+ export * from './signature-summary/index';
@@ -0,0 +1 @@
1
+ export * from './pdf-viewer-fea-style.interface';
@@ -0,0 +1,2 @@
1
+ export interface IPdfViewerFeaStyle {
2
+ }
@@ -0,0 +1 @@
1
+ export * from './signature-summary-style.interface';
@@ -0,0 +1,2 @@
1
+ export interface ISignatureSummaryStyle {
2
+ }
@@ -2,4 +2,7 @@ export * from './document-approval-list/index';
2
2
  export * from './generic-error-fea';
3
3
  export * from './upload-e-signature/index';
4
4
  export * from './validate-rfc/index';
5
+ export * from './document-approval-list/index';
6
+ export * from './pdf-viewer-fea/index';
5
7
  export * from './validate-signature/index';
8
+ export * from './signature-summary/index';
@@ -0,0 +1 @@
1
+ export * from './pdf-viewer-fea-dependencies.interface';
@@ -0,0 +1,9 @@
1
+ import { IPathDependencies } from "@fad-producto-portal/fad-common/models/core";
2
+ export interface IPdfViewerFeaDependencies extends IPathDependencies {
3
+ images?: {
4
+ inactiveReject?: string;
5
+ inactiveApprove?: string;
6
+ activeReject?: string;
7
+ activeApprove?: string;
8
+ };
9
+ }
@@ -0,0 +1 @@
1
+ export * from './signature-summary-dependencies.interface';
@@ -0,0 +1,7 @@
1
+ import { IPathDependencies } from "@fad-producto-portal/fad-common/models/core";
2
+ export interface ISignatureSummaryDependencies extends IPathDependencies {
3
+ images?: {
4
+ send?: string;
5
+ reject?: string;
6
+ };
7
+ }
@@ -2,15 +2,17 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./components/validate-rfc/validate-rfc.component";
3
3
  import * as i2 from "./components/document-approval-list/document-approval-list.component";
4
4
  import * as i3 from "./components/upload-e-signature/upload-e-signature.component";
5
- import * as i4 from "./components/generic-error-fea/generic-error-fea.component";
6
- import * as i5 from "./components/validate-signature/validate-signature.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/forms";
9
- import * as i8 from "@fad-producto-portal/ng-fad-shared";
10
- import * as i9 from "@fad-producto/ng-fad-image-inline";
11
- import * as i10 from "@fad-producto-portal/ng-fad-viewer";
5
+ import * as i4 from "./components/pdf-viewer-fea/pdf-viewer-fea.component";
6
+ import * as i5 from "./components/generic-error-fea/generic-error-fea.component";
7
+ import * as i6 from "./components/validate-signature/validate-signature.component";
8
+ import * as i7 from "./components/signature-summary/signature-summary.component";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "@fad-producto-portal/ng-fad-shared";
12
+ import * as i11 from "@fad-producto/ng-fad-image-inline";
13
+ import * as i12 from "@fad-producto-portal/ng-fad-viewer";
12
14
  export declare class NgFadSignatureFeaModule {
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NgFadSignatureFeaModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgFadSignatureFeaModule, [typeof i1.ValidateRfcComponent, typeof i2.DocumentApprovalListComponent, typeof i3.UploadESignatureComponent, typeof i4.GenericErrorFeaComponent, typeof i5.ValidateSignatureComponent], [typeof i6.CommonModule, typeof i7.ReactiveFormsModule, typeof i8.NgFadSharedModule, typeof i9.NgFadImageInlineModule, typeof i10.NgFadViewerModule], [typeof i1.ValidateRfcComponent, typeof i2.DocumentApprovalListComponent, typeof i3.UploadESignatureComponent, typeof i4.GenericErrorFeaComponent, typeof i5.ValidateSignatureComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgFadSignatureFeaModule, [typeof i1.ValidateRfcComponent, typeof i2.DocumentApprovalListComponent, typeof i3.UploadESignatureComponent, typeof i4.PdfViewerFeaComponent, typeof i5.GenericErrorFeaComponent, typeof i6.ValidateSignatureComponent, typeof i7.SignatureSummaryComponent], [typeof i8.CommonModule, typeof i9.ReactiveFormsModule, typeof i10.NgFadSharedModule, typeof i11.NgFadImageInlineModule, typeof i12.NgFadViewerModule], [typeof i1.ValidateRfcComponent, typeof i2.DocumentApprovalListComponent, typeof i3.UploadESignatureComponent, typeof i4.PdfViewerFeaComponent, typeof i5.GenericErrorFeaComponent, typeof i6.ValidateSignatureComponent, typeof i7.SignatureSummaryComponent]>;
15
17
  static ɵinj: i0.ɵɵInjectorDeclaration<NgFadSignatureFeaModule>;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fad-producto-portal/ng-fad-signature-fea",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0"
@@ -11,7 +11,7 @@
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.0",
14
+ "@fad-producto-portal/ng-fad-viewer": "1.0.0-alpha.1",
15
15
  "tslib": "^2.3.0"
16
16
  },
17
17
  "sideEffects": false,
package/public-api.d.ts CHANGED
@@ -4,5 +4,7 @@ export * from './lib/models/index';
4
4
  export * from './lib/components/validate-rfc/validate-rfc.component';
5
5
  export * from './lib/components/document-approval-list/document-approval-list.component';
6
6
  export * from './lib/components/upload-e-signature/upload-e-signature.component';
7
+ export * from './lib/components/pdf-viewer-fea/pdf-viewer-fea.component';
7
8
  export * from './lib/components/generic-error-fea/generic-error-fea.component';
8
9
  export * from './lib/components/validate-signature/validate-signature.component';
10
+ export * from './lib/components/signature-summary/signature-summary.component';