@qbs-origin/origin-form 0.5.0

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 (182) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/action-step-handler.mjs +163 -0
  3. package/esm2022/lib/auth-client.service.mjs +69 -0
  4. package/esm2022/lib/enums/label.keys.mjs +721 -0
  5. package/esm2022/lib/form-css.helper.mjs +367 -0
  6. package/esm2022/lib/formly/baseFormlyControlComponent.mjs +52 -0
  7. package/esm2022/lib/formly/baseFormlyStepComponent.mjs +59 -0
  8. package/esm2022/lib/formly/custom-section-separator.component.mjs +32 -0
  9. package/esm2022/lib/formly/form-section-separator.component.mjs +36 -0
  10. package/esm2022/lib/formly/formly-action.mjs +56 -0
  11. package/esm2022/lib/formly/formly-checkbox/formly-checkbox.component.mjs +52 -0
  12. package/esm2022/lib/formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component.mjs +261 -0
  13. package/esm2022/lib/formly/formly-download-documents/formly-download-documents.component.mjs +126 -0
  14. package/esm2022/lib/formly/formly-enrol-card/formly-enrol-card.component.mjs +120 -0
  15. package/esm2022/lib/formly/formly-field-stepper/formly-field-stepper.component.mjs +762 -0
  16. package/esm2022/lib/formly/formly-generate-documents/formly-generate-documents.component.mjs +57 -0
  17. package/esm2022/lib/formly/formly-identification.component.mjs +84 -0
  18. package/esm2022/lib/formly/formly-open-banking/formly-open-banking.component.mjs +590 -0
  19. package/esm2022/lib/formly/formly-paragraph/formly-paragraph.component.mjs +35 -0
  20. package/esm2022/lib/formly/formly-radio/formly-radio-component.mjs +49 -0
  21. package/esm2022/lib/formly/formly-row-fille.mjs +12 -0
  22. package/esm2022/lib/formly/formly-scan-id/formly-scan-id.component.mjs +284 -0
  23. package/esm2022/lib/formly/formly-sign/formly-sign.component.mjs +173 -0
  24. package/esm2022/lib/formly/formly-upload-documents/formly-upload-documents.component.mjs +198 -0
  25. package/esm2022/lib/formly/formly-validate-contact-info/formly-validate-contact-info.component.mjs +124 -0
  26. package/esm2022/lib/formly/formly-view-documents/formly-view-documents.component.mjs +245 -0
  27. package/esm2022/lib/formly/formly-view-offers/formly-view-offers.component.mjs +160 -0
  28. package/esm2022/lib/model-population.helper.mjs +265 -0
  29. package/esm2022/lib/models/application-type.model.mjs +12 -0
  30. package/esm2022/lib/models/application.model.mjs +30 -0
  31. package/esm2022/lib/models/auth/users.model.mjs +2 -0
  32. package/esm2022/lib/models/dictionary.model.mjs +20 -0
  33. package/esm2022/lib/models/flux.model.mjs +105 -0
  34. package/esm2022/lib/models/forms.model.mjs +572 -0
  35. package/esm2022/lib/models/label-info.model.mjs +2 -0
  36. package/esm2022/lib/models/label.model.mjs +2 -0
  37. package/esm2022/lib/models/language.model.mjs +3 -0
  38. package/esm2022/lib/models/list.model.mjs +2 -0
  39. package/esm2022/lib/models/partner.model.mjs +3 -0
  40. package/esm2022/lib/models/treeview.model.mjs +15 -0
  41. package/esm2022/lib/origin-form-auth.service.mjs +40 -0
  42. package/esm2022/lib/origin-form-config.model.mjs +2 -0
  43. package/esm2022/lib/origin-form-token.interceptor.mjs +35 -0
  44. package/esm2022/lib/origin-form.component.mjs +2391 -0
  45. package/esm2022/lib/origin-form.module.mjs +479 -0
  46. package/esm2022/lib/origin-form.service.mjs +14 -0
  47. package/esm2022/lib/others/check-list.database.mjs +55 -0
  48. package/esm2022/lib/others/config-service.mjs +42 -0
  49. package/esm2022/lib/others/dictionary-label-info.mjs +3 -0
  50. package/esm2022/lib/others/environment-type.mjs +21 -0
  51. package/esm2022/lib/others/external-link.directive.mjs +49 -0
  52. package/esm2022/lib/others/flux-helper.mjs +1397 -0
  53. package/esm2022/lib/others/picker.component.mjs +119 -0
  54. package/esm2022/lib/others/translation.pipe.mjs +21 -0
  55. package/esm2022/lib/others/translations-helper.mjs +258 -0
  56. package/esm2022/lib/others/utils.mjs +272 -0
  57. package/esm2022/lib/services/applicationData.service.mjs +145 -0
  58. package/esm2022/lib/services/auth-http.service.mjs +80 -0
  59. package/esm2022/lib/services/dialog.service.mjs +56 -0
  60. package/esm2022/lib/services/dictionary.service.mjs +198 -0
  61. package/esm2022/lib/services/forms.service.mjs +47 -0
  62. package/esm2022/lib/services/labels.service.mjs +29 -0
  63. package/esm2022/lib/services/language.service.mjs +24 -0
  64. package/esm2022/lib/services/open-banking.service.mjs +194 -0
  65. package/esm2022/lib/services/origin-form-signalr-handler.service.mjs +107 -0
  66. package/esm2022/lib/services/origin-form-signalr.service.mjs +105 -0
  67. package/esm2022/lib/services/otp.service.mjs +28 -0
  68. package/esm2022/lib/services/proxy.service.mjs +79 -0
  69. package/esm2022/lib/services/scroll-to-error.service.mjs +369 -0
  70. package/esm2022/lib/services/translation.service.mjs +27 -0
  71. package/esm2022/lib/shared-components/confirmation.component.mjs +34 -0
  72. package/esm2022/lib/shared-components/dictionaries-tree.component.mjs +301 -0
  73. package/esm2022/lib/shared-components/grid.component.mjs +241 -0
  74. package/esm2022/lib/shared-components/treeview/treeview.component.mjs +224 -0
  75. package/esm2022/lib/theme-css.mjs +2254 -0
  76. package/esm2022/lib/theme-injector.service.mjs +26 -0
  77. package/esm2022/public-api.mjs +4 -0
  78. package/esm2022/qbs-origin-origin-form.mjs +5 -0
  79. package/fesm2022/qbs-origin-origin-form.mjs +15215 -0
  80. package/fesm2022/qbs-origin-origin-form.mjs.map +1 -0
  81. package/index.d.ts +5 -0
  82. package/lib/action-step-handler.d.ts +49 -0
  83. package/lib/auth-client.service.d.ts +17 -0
  84. package/lib/enums/label.keys.d.ts +720 -0
  85. package/lib/form-css.helper.d.ts +28 -0
  86. package/lib/formly/baseFormlyControlComponent.d.ts +25 -0
  87. package/lib/formly/baseFormlyStepComponent.d.ts +29 -0
  88. package/lib/formly/custom-section-separator.component.d.ts +6 -0
  89. package/lib/formly/form-section-separator.component.d.ts +10 -0
  90. package/lib/formly/formly-action.d.ts +13 -0
  91. package/lib/formly/formly-checkbox/formly-checkbox.component.d.ts +15 -0
  92. package/lib/formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component.d.ts +45 -0
  93. package/lib/formly/formly-download-documents/formly-download-documents.component.d.ts +22 -0
  94. package/lib/formly/formly-enrol-card/formly-enrol-card.component.d.ts +114 -0
  95. package/lib/formly/formly-field-stepper/formly-field-stepper.component.d.ts +79 -0
  96. package/lib/formly/formly-generate-documents/formly-generate-documents.component.d.ts +17 -0
  97. package/lib/formly/formly-identification.component.d.ts +19 -0
  98. package/lib/formly/formly-open-banking/formly-open-banking.component.d.ts +119 -0
  99. package/lib/formly/formly-paragraph/formly-paragraph.component.d.ts +10 -0
  100. package/lib/formly/formly-radio/formly-radio-component.d.ts +15 -0
  101. package/lib/formly/formly-row-fille.d.ts +6 -0
  102. package/lib/formly/formly-scan-id/formly-scan-id.component.d.ts +41 -0
  103. package/lib/formly/formly-sign/formly-sign.component.d.ts +36 -0
  104. package/lib/formly/formly-upload-documents/formly-upload-documents.component.d.ts +25 -0
  105. package/lib/formly/formly-validate-contact-info/formly-validate-contact-info.component.d.ts +79 -0
  106. package/lib/formly/formly-view-documents/formly-view-documents.component.d.ts +33 -0
  107. package/lib/formly/formly-view-offers/formly-view-offers.component.d.ts +23 -0
  108. package/lib/model-population.helper.d.ts +8 -0
  109. package/lib/models/application-type.model.d.ts +27 -0
  110. package/lib/models/application.model.d.ts +107 -0
  111. package/lib/models/auth/users.model.d.ts +20 -0
  112. package/lib/models/dictionary.model.d.ts +77 -0
  113. package/lib/models/flux.model.d.ts +101 -0
  114. package/lib/models/forms.model.d.ts +504 -0
  115. package/lib/models/label-info.model.d.ts +10 -0
  116. package/lib/models/label.model.d.ts +4 -0
  117. package/lib/models/language.model.d.ts +5 -0
  118. package/lib/models/list.model.d.ts +8 -0
  119. package/lib/models/partner.model.d.ts +12 -0
  120. package/lib/models/treeview.model.d.ts +17 -0
  121. package/lib/origin-form-auth.service.d.ts +15 -0
  122. package/lib/origin-form-config.model.d.ts +12 -0
  123. package/lib/origin-form-token.interceptor.d.ts +12 -0
  124. package/lib/origin-form.component.d.ts +231 -0
  125. package/lib/origin-form.module.d.ts +84 -0
  126. package/lib/origin-form.service.d.ts +6 -0
  127. package/lib/others/check-list.database.d.ts +16 -0
  128. package/lib/others/config-service.d.ts +22 -0
  129. package/lib/others/dictionary-label-info.d.ts +6 -0
  130. package/lib/others/environment-type.d.ts +8 -0
  131. package/lib/others/external-link.directive.d.ts +12 -0
  132. package/lib/others/flux-helper.d.ts +115 -0
  133. package/lib/others/picker.component.d.ts +36 -0
  134. package/lib/others/translation.pipe.d.ts +10 -0
  135. package/lib/others/translations-helper.d.ts +31 -0
  136. package/lib/others/utils.d.ts +37 -0
  137. package/lib/services/applicationData.service.d.ts +35 -0
  138. package/lib/services/auth-http.service.d.ts +21 -0
  139. package/lib/services/dialog.service.d.ts +20 -0
  140. package/lib/services/dictionary.service.d.ts +89 -0
  141. package/lib/services/forms.service.d.ts +17 -0
  142. package/lib/services/labels.service.d.ts +13 -0
  143. package/lib/services/language.service.d.ts +14 -0
  144. package/lib/services/open-banking.service.d.ts +137 -0
  145. package/lib/services/origin-form-signalr-handler.service.d.ts +29 -0
  146. package/lib/services/origin-form-signalr.service.d.ts +24 -0
  147. package/lib/services/otp.service.d.ts +22 -0
  148. package/lib/services/proxy.service.d.ts +29 -0
  149. package/lib/services/scroll-to-error.service.d.ts +54 -0
  150. package/lib/services/translation.service.d.ts +10 -0
  151. package/lib/shared-components/confirmation.component.d.ts +77 -0
  152. package/lib/shared-components/dictionaries-tree.component.d.ts +51 -0
  153. package/lib/shared-components/grid.component.d.ts +138 -0
  154. package/lib/shared-components/treeview/treeview.component.d.ts +121 -0
  155. package/lib/theme-css.d.ts +2 -0
  156. package/lib/theme-injector.service.d.ts +8 -0
  157. package/package.json +42 -0
  158. package/public-api.d.ts +3 -0
  159. package/schematics-compiled/collection.json +10 -0
  160. package/schematics-compiled/ng-add/index.d.ts +2 -0
  161. package/schematics-compiled/ng-add/index.js +67 -0
  162. package/schematics-compiled/ng-add/index.js.map +1 -0
  163. package/schematics-compiled/ng-add/schema.json +8 -0
  164. package/src/lib/assets/fonts/Figtree-Bold.ttf +0 -0
  165. package/src/lib/assets/fonts/Figtree-Light.ttf +0 -0
  166. package/src/lib/assets/fonts/Figtree-Regular.ttf +0 -0
  167. package/src/lib/assets/fonts/Sora-ExtraBold.ttf +0 -0
  168. package/src/lib/assets/fonts/Sora-Light.ttf +0 -0
  169. package/src/lib/assets/fonts/Sora-Regular.ttf +0 -0
  170. package/src/lib/assets/fonts/ttrounds-bold-webfont.woff +0 -0
  171. package/src/lib/assets/fonts/ttrounds-bold-webfont.woff2 +0 -0
  172. package/src/lib/assets/fonts/ttrounds-regular-webfont.woff +0 -0
  173. package/src/lib/assets/fonts/ttrounds-regular-webfont.woff2 +0 -0
  174. package/src/lib/assets/fonts/ttrounds-thin-webfont.woff +0 -0
  175. package/src/lib/assets/fonts/ttrounds-thin-webfont.woff2 +0 -0
  176. package/src/lib/assets/images/flag/icon-flag-de.svg +10 -0
  177. package/src/lib/assets/images/flag/icon-flag-en.svg +1 -0
  178. package/src/lib/assets/images/flag/icon-flag-es.svg +11 -0
  179. package/src/lib/assets/images/flag/icon-flag-fr.svg +1 -0
  180. package/src/lib/assets/images/flag/icon-flag-ro.svg +11 -0
  181. package/src/lib/assets/images/flag/origin-form/new-id-card.png +0 -0
  182. package/src/lib/assets/images/flag/origin-form/old-id-card.png +0 -0
@@ -0,0 +1,28 @@
1
+ import { CssRules } from "./others/utils";
2
+ export declare class FormCssHelper {
3
+ static convertToStyleString(cssRules: CssRules, isDisplayMode: boolean): string;
4
+ private static convertToCssText;
5
+ private static convertRuleToCssText;
6
+ static getSpecificCssForInput(key: string, values: {
7
+ [property: string]: string;
8
+ }, cssRules: CssRules): string;
9
+ static getSpecificCssForTableHeader(values: {
10
+ [property: string]: string;
11
+ }): string;
12
+ static getSpecificCssForTableDetail(values: {
13
+ [property: string]: string;
14
+ }): string;
15
+ static getSpecificCssForCheckBox(key: string, values: {
16
+ [property: string]: string;
17
+ }, cssRules: CssRules): string;
18
+ private static getSpecificCssForStepLabel;
19
+ static getSpecificCssForRadio(values: {
20
+ [property: string]: string;
21
+ }, cssRules: CssRules): string;
22
+ static getSpecificCssForData(key: string, values: {
23
+ [property: string]: string;
24
+ }, cssRules: CssRules): string;
25
+ static styleObjectToString(values: {
26
+ [property: string]: string;
27
+ }, important?: boolean): string;
28
+ }
@@ -0,0 +1,25 @@
1
+ import { OnInit, ChangeDetectorRef } from "@angular/core";
2
+ import { FieldType } from "@ngx-formly/core";
3
+ import { ControlData } from "../models/flux.model";
4
+ import * as i0 from "@angular/core";
5
+ export declare abstract class BaseFormlyControlComponent extends FieldType implements OnInit {
6
+ cdr: ChangeDetectorRef;
7
+ langIso: string;
8
+ controlData: ControlData;
9
+ isLoading: boolean;
10
+ isDisplayMode: boolean;
11
+ env: string;
12
+ appDataId: string;
13
+ dataUrlId: string;
14
+ appId: string;
15
+ title: string | undefined;
16
+ onInit(): void;
17
+ onPageSelected(): void;
18
+ onPageSelectedAsync(): Promise<void>;
19
+ canAdvance(): boolean;
20
+ constructor(cdr: ChangeDetectorRef);
21
+ ngOnInit(): Promise<void>;
22
+ getErrorTranslationMessage(errorCode: string, ...params: string[]): string;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormlyControlComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormlyControlComponent, "base-formly-component", never, {}, {}, never, never, false, never>;
25
+ }
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { StepsSettings } from '../models/forms.model';
4
+ import { ControlData, StepData } from '../models/flux.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class BaseFormlyStepComponent extends FieldType implements OnInit {
7
+ cdr: ChangeDetectorRef;
8
+ langIso: string;
9
+ stepData: StepData;
10
+ controlData: ControlData;
11
+ isLoading: boolean;
12
+ isDisplayMode: boolean;
13
+ env: string;
14
+ appDataId: string;
15
+ dataUrlId: string;
16
+ appId: string;
17
+ stepsSettings: StepsSettings;
18
+ title: string | undefined;
19
+ onInit(): void;
20
+ onPageSelected(): void;
21
+ onPageSelectedAsync(): Promise<void>;
22
+ canAdvance(): boolean;
23
+ constructor(cdr: ChangeDetectorRef);
24
+ ngOnInit(): Promise<void>;
25
+ onEvent(data: any): void;
26
+ getErrorTranslationMessage(errorCode: string, ...params: string[]): string;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormlyStepComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormlyStepComponent, "base-formly-component", never, {}, {}, never, never, false, never>;
29
+ }
@@ -0,0 +1,6 @@
1
+ import { FieldType } from '@ngx-formly/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CustomSectionComponent extends FieldType {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomSectionComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomSectionComponent, "formly-custom-section", never, {}, {}, never, never, false, never>;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormSectionSeparatorComponent extends FieldType implements OnInit {
5
+ heading2Style: [prop: string];
6
+ separatorStyle: [prop: string];
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionSeparatorComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionSeparatorComponent, "form-section-separator", never, {}, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit, AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { BaseFormlyStepComponent } from './baseFormlyStepComponent';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormlyActionComponent extends BaseFormlyStepComponent implements OnInit, AfterViewInit, OnChanges {
5
+ actionCompleted: EventEmitter<void>;
6
+ loading: boolean;
7
+ ngOnChanges(changes: SimpleChanges): void;
8
+ ngAfterViewInit(): void;
9
+ onPageSelected(): void;
10
+ onActionCompleted(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyActionComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyActionComponent, "formly-field-action", never, {}, { "actionCompleted": "actionCompleted"; }, never, never, false, never>;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit, ChangeDetectorRef } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { FormControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormlyCheckboxComponent extends FieldType implements OnInit {
6
+ private cd;
7
+ checkbox: FormControl;
8
+ requiredMessage: any;
9
+ constructor(cd: ChangeDetectorRef);
10
+ ngOnInit(): void;
11
+ private addCheckboxValidator;
12
+ updateValue(value: any): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCheckboxComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyCheckboxComponent, "formly-checkbox", never, {}, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,45 @@
1
+ import { ElementRef, OnInit, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2
+ import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
3
+ import { FieldType } from '@ngx-formly/core';
4
+ import { DictionaryValue, DictionaryDto } from '../../models/dictionary.model';
5
+ import { DictionaryService } from '../../services/dictionary.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FormlyDictionaryDropdownTreeComponent extends FieldType implements OnInit {
8
+ private dictionaryService;
9
+ private cdRef;
10
+ autocompleteTrigger: MatAutocompleteTrigger;
11
+ autoInput: ElementRef;
12
+ dictionaryId: string;
13
+ selectedValue: DictionaryValue;
14
+ filteredText: string;
15
+ formlyKeys: {
16
+ selectAnItem: string;
17
+ };
18
+ label: string;
19
+ currentLanguageIso: string;
20
+ currentLanguageId: number;
21
+ selectedValueText: string;
22
+ labelStyle: any;
23
+ selectedValueIds: number[];
24
+ valuesIdsToShow: number[];
25
+ selectedRelatedDictionaries: string[];
26
+ dictionaryLabels: {
27
+ [key: string]: string;
28
+ };
29
+ preloadedDictionary: DictionaryDto | null;
30
+ preloadedDictionaries: Map<string, DictionaryDto> | null;
31
+ usePreloadedData: boolean;
32
+ constructor(dictionaryService: DictionaryService, cdRef: ChangeDetectorRef);
33
+ ngOnInit(): void;
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ updateSelectedValueIds(): void;
36
+ onSelectedValueChanged(dictionaryValue: DictionaryValue): void;
37
+ onSelectedDictionaryValuesChanged(values: DictionaryValue[]): void;
38
+ filterChanged($event: any): void;
39
+ toggleAutocomplete(event: MouseEvent): void;
40
+ openAutocomplete(): void;
41
+ private updateSelectedValueText;
42
+ getDictionaryLabel(dictionaryId: string): string;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyDictionaryDropdownTreeComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyDictionaryDropdownTreeComponent, "formly-dictionary-dropdown-tree", never, { "dictionaryId": { "alias": "dictionaryId"; "required": false; }; }, { "selectedValue": "selectedValue"; }, never, never, false, never>;
45
+ }
@@ -0,0 +1,22 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { ApplicationDataService } from '../../services/applicationData.service';
3
+ import { GeneratedDocument } from '../../models/application.model';
4
+ import { DialogService } from '../../services/dialog.service';
5
+ import { BaseFormlyControlComponent } from '../baseFormlyControlComponent';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FormlyDownloadDocumentsComponent extends BaseFormlyControlComponent {
8
+ private appDataService;
9
+ private dialog;
10
+ documents: GeneratedDocument[];
11
+ isDownloading: boolean;
12
+ docIndex: number;
13
+ constructor(appDataService: ApplicationDataService, dialog: DialogService, cdr: ChangeDetectorRef);
14
+ onInit(): void;
15
+ getDownloadableDocuments(): void;
16
+ orderDocumentsAsConfigured(documents: GeneratedDocument[]): GeneratedDocument[];
17
+ retry(): void;
18
+ onPageSelected(): void;
19
+ downloadDocument(doc: GeneratedDocument, index: number): Promise<void>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyDownloadDocumentsComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyDownloadDocumentsComponent, "app-formly-download-documents", never, {}, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,114 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { ApplicationDataService } from '../../services/applicationData.service';
3
+ import { ActivatedRoute } from '@angular/router';
4
+ import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormlyEnrolCardComponent extends BaseFormlyStepComponent {
7
+ private appDataService;
8
+ private route;
9
+ private document;
10
+ hasErrors: boolean;
11
+ isAlreadyEnroled: boolean;
12
+ enrolUrl: string;
13
+ paymentError: boolean;
14
+ cardenrolKeys: {
15
+ failure: string;
16
+ success: string;
17
+ };
18
+ fluxKeys: {
19
+ createStep: string;
20
+ customStep: string;
21
+ finalStep: string;
22
+ identification: string;
23
+ idScan: string;
24
+ verifyPhone: string;
25
+ verifyEmail: string;
26
+ sign: string;
27
+ status: string;
28
+ pause: string;
29
+ generateDocument: string;
30
+ downloadDocument: string;
31
+ viewDocument: string;
32
+ action: string;
33
+ uploadDocument: string;
34
+ viewDemo: string;
35
+ viewOffer: string;
36
+ netopia: string;
37
+ euPlatesc: string;
38
+ openBanking: string;
39
+ stepInfo: {
40
+ systemPhoneTitle: string;
41
+ systemEmailTitle: string;
42
+ kycStatusTitle: string;
43
+ kycPersonTitle: string;
44
+ kycAddressTitle: string;
45
+ kycValidationTitle: string;
46
+ navigationSectionTitle: string;
47
+ systemStatusTitle: string;
48
+ validationStatus: string;
49
+ fileMaxSize: string;
50
+ fileFormat: string;
51
+ showUploadFileButton: string;
52
+ };
53
+ components: {
54
+ system: {
55
+ validEmail: string;
56
+ validPhone: string;
57
+ };
58
+ sign: {
59
+ electronicly: string;
60
+ handwritten: string;
61
+ automated: string;
62
+ displayDocument: string;
63
+ documentList: string;
64
+ selectDocument: string;
65
+ grid: {
66
+ name: string;
67
+ individual: string;
68
+ bulk: string;
69
+ };
70
+ };
71
+ phone: {
72
+ collected: string;
73
+ selectComponent: string;
74
+ phoneLabel: string;
75
+ phoneButtonLabel: string;
76
+ otpLabel: string;
77
+ otpButtonLabel: string;
78
+ phoneErrorLabel: string;
79
+ otpErrorLabel: string;
80
+ };
81
+ email: {
82
+ collected: string;
83
+ selectComponent: string;
84
+ emailLabel: string;
85
+ emailButtonLabel: string;
86
+ otpLabel: string;
87
+ otpButtonLabel: string;
88
+ emailErrorLabel: string;
89
+ otpErrorLabel: string;
90
+ };
91
+ action: {
92
+ pickApiMethod: string;
93
+ pickApiPartners: string;
94
+ };
95
+ listOffer: {
96
+ addColumn: string;
97
+ selectComponent: string;
98
+ name: string;
99
+ order: string;
100
+ };
101
+ };
102
+ };
103
+ isEuPlatesc: boolean;
104
+ isNetopia: boolean;
105
+ constructor(appDataService: ApplicationDataService, route: ActivatedRoute, cdr: ChangeDetectorRef, document: Document);
106
+ onPageSelected(): void;
107
+ goToUrl(): void;
108
+ enrolCard(): void;
109
+ getTranslatedLabel(translations: any[] | undefined): string;
110
+ getSeparatorStyles(): any;
111
+ canAdvance(): boolean;
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyEnrolCardComponent, never>;
113
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyEnrolCardComponent, "app-enrol-card", never, {}, {}, never, never, false, never>;
114
+ }
@@ -0,0 +1,79 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { MatStepper } from '@angular/material/stepper';
3
+ import { FieldType, FormlyFieldConfig } from '@ngx-formly/core';
4
+ import { AppData } from '../../models/forms.model';
5
+ import { ApplicationDataService } from '../../services/applicationData.service';
6
+ import { CollectorFormComponent } from '../../origin-form.component';
7
+ import { ScrollToErrorService } from '../../services/scroll-to-error.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class FormlyFieldStepperComponent extends FieldType implements OnInit, OnDestroy {
10
+ private applicationDataService;
11
+ private collectorForm;
12
+ private cdr;
13
+ private scrollToErrorService;
14
+ stepper: MatStepper;
15
+ buttonsGroups: any[][];
16
+ showSteps: boolean;
17
+ showStepsLabels: boolean;
18
+ showStepsCounter: boolean;
19
+ showButtonsOnTop: boolean;
20
+ showProgressBar: boolean;
21
+ showFinalStep: boolean;
22
+ isFlowFinished: boolean;
23
+ appData: AppData;
24
+ isDisplayMode: boolean;
25
+ isDebug: boolean;
26
+ isNavigationInProgress: boolean;
27
+ isSaving: boolean;
28
+ currentStepIndex: number;
29
+ loadedSteps: boolean[];
30
+ private configUpdateSubscription;
31
+ private visibleFieldsUpdatedSubscription;
32
+ private updateAndGoNextSubscription;
33
+ private goNextSubscription;
34
+ concatenatedFormStyle: any;
35
+ buttonsVerticalPosition: string;
36
+ isNavigating: boolean;
37
+ finalStepFieldConfig: FormlyFieldConfig;
38
+ filteredVisibleSteps: any[];
39
+ progressBarStyles: any;
40
+ constructor(applicationDataService: ApplicationDataService, collectorForm: CollectorFormComponent, cdr: ChangeDetectorRef, scrollToErrorService: ScrollToErrorService);
41
+ ngOnInit(): Promise<void>;
42
+ ngOnChanges(changes: any): Promise<void>;
43
+ ngAfterViewInit(): Promise<void>;
44
+ ngOnDestroy(): void;
45
+ initStep(): Promise<void>;
46
+ get totalStepsCount(): number;
47
+ extractFinalStepIfNecessary(fieldConfigs: FormlyFieldConfig[]): FormlyFieldConfig[];
48
+ createFieldGroupButtons(): void;
49
+ createAppData(props: any): Promise<void>;
50
+ saveAppData(): Promise<void>;
51
+ getPreviousStep(): Promise<void>;
52
+ saveAppDataStep(): Promise<void>;
53
+ updateAppData(saveChanges: boolean): Promise<void>;
54
+ createButtons(step: any, stepIndex: number, last: boolean, btnDisabled: boolean): any;
55
+ private getDefaultButtons;
56
+ applyProgressBarStyles(): void;
57
+ setupButtonProperties(button: any, btnDisabled: boolean): void;
58
+ buttonClick(type: string, step: FormlyFieldConfig): Promise<void>;
59
+ navigateNextAsync(): Promise<void>;
60
+ retryClick(step: any): Promise<void>;
61
+ getProgressBarFill(): string;
62
+ retryRecursively(fieldGroup: any): void;
63
+ navigateAsync(type: string, step: FormlyFieldConfig): Promise<void>;
64
+ private updateAndGoNext;
65
+ private goNext;
66
+ private checkIfFlowIsFinished;
67
+ validateForm(step: FormlyFieldConfig): boolean;
68
+ isValid(field: FormlyFieldConfig): boolean;
69
+ isCustomStep(index: number): boolean;
70
+ onStepChange(event: any): Promise<void>;
71
+ triggerOnPageSelectedForIndex(index: number): Promise<void>;
72
+ triggerOnPageSelectedRecursively(fg: any): Promise<void>;
73
+ canAdvanceRecursively(fg: any): boolean;
74
+ getComponentsWithDefaultLabels(): {
75
+ [key: string]: string;
76
+ };
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldStepperComponent, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldStepperComponent, "app-formly-field-stepper", never, {}, {}, never, never, false, never>;
79
+ }
@@ -0,0 +1,17 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { ApplicationDataService } from '../../services/applicationData.service';
3
+ import { DialogService } from '../../services/dialog.service';
4
+ import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormlyGenerateDocumentsComponent extends BaseFormlyStepComponent {
7
+ private appDataService;
8
+ private dialog;
9
+ hasErrors: boolean;
10
+ generatedDocumentsCount: number;
11
+ constructor(appDataService: ApplicationDataService, cdr: ChangeDetectorRef, dialog: DialogService);
12
+ onPageSelected(): void;
13
+ generateDocuments(): void;
14
+ canAdvance(): boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyGenerateDocumentsComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyGenerateDocumentsComponent, "app-formly-generate-documents", never, {}, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,19 @@
1
+ import { ElementRef, EventEmitter, ChangeDetectorRef } from '@angular/core';
2
+ import { ProxyService } from '../services/proxy.service';
3
+ import { BaseFormlyStepComponent } from './baseFormlyStepComponent';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormlyFieldIdentificationComponent extends BaseFormlyStepComponent {
6
+ private proxy;
7
+ identification: ElementRef;
8
+ ectCompleted: EventEmitter<void>;
9
+ kycToken: string;
10
+ constructor(proxy: ProxyService, cdr: ChangeDetectorRef);
11
+ onInit(): void;
12
+ onEctCompleted(): void;
13
+ isEctCompleted(): boolean;
14
+ onEctError(): void;
15
+ onPageSelectedAsync(): Promise<void>;
16
+ getLoadingMessage(): string;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldIdentificationComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldIdentificationComponent, "formly-field-identification", never, {}, { "ectCompleted": "ectCompleted"; }, never, never, false, never>;
19
+ }
@@ -0,0 +1,119 @@
1
+ import { OnInit, AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
2
+ import { BehaviorSubject, Subscription } from 'rxjs';
3
+ import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
4
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
5
+ import { DialogService } from '../../services/dialog.service';
6
+ import { Bank, Account, Transaction, TransactionPage, OpenBankingService } from '../../services/open-banking.service';
7
+ import * as i0 from "@angular/core";
8
+ interface OpenBankingConfig {
9
+ accountNumberCollected?: string;
10
+ accountHolderCollected?: string;
11
+ emailCollected?: string;
12
+ showAllBanks?: boolean;
13
+ extractBankFromIBAN?: boolean;
14
+ tcAcceptedByDefault?: boolean;
15
+ initialMessageTranslations?: any[];
16
+ waitingMessageTranslations?: any[];
17
+ consentErrorMessageTranslations?: any[];
18
+ completionMessageTranslations?: any[];
19
+ retryButtonLabelTranslations?: any[];
20
+ nextButtonTranslations?: any[];
21
+ continueButtonTranslations?: any[];
22
+ selectBankTranslations?: any[];
23
+ consentTitleTranslations?: any[];
24
+ consentDescriptionTranslations?: any[];
25
+ waitingForAuthorizationTranslations?: any[];
26
+ popupWindowMessageTranslations?: any[];
27
+ popupBlockerMessageTranslations?: any[];
28
+ accountsRetrievedTranslations?: any[];
29
+ transactionsRetrievedTranslations?: any[];
30
+ accountsFoundTranslations?: any[];
31
+ transactionsSummaryTranslations?: any[];
32
+ }
33
+ declare enum OpenBankingState {
34
+ Initial = "initial",
35
+ BankSelection = "bankSelection",
36
+ Consent = "consent",
37
+ Processing = "processing",
38
+ Error = "error",
39
+ Complete = "complete"
40
+ }
41
+ export declare class FormlyOpenBankingComponent extends BaseFormlyStepComponent implements OnInit, AfterViewInit, OnDestroy {
42
+ private openBankingService;
43
+ private dialog;
44
+ private sanitizer;
45
+ config: OpenBankingConfig;
46
+ currentState: BehaviorSubject<OpenBankingState>;
47
+ banks: Bank[];
48
+ selectedBank: string;
49
+ selectedBankObject?: Bank;
50
+ authorizationUrl: SafeResourceUrl | null;
51
+ consentId: string;
52
+ private _errorMessage;
53
+ private _isConsentError;
54
+ private _consentErrorStatus;
55
+ isLoading: boolean;
56
+ isLoadingSubject: BehaviorSubject<boolean>;
57
+ accounts: Account[];
58
+ transactions: Transaction[];
59
+ pollSubscription?: Subscription;
60
+ selectedAccounts: string[];
61
+ transactionPages: Map<string, TransactionPage>;
62
+ constructor(openBankingService: OpenBankingService, dialog: DialogService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
63
+ ngOnInit(): Promise<void>;
64
+ private mergeTranslationsIntoConfig;
65
+ ngAfterViewInit(): void;
66
+ onPageSelected(): void;
67
+ private determineNextStep;
68
+ private getFieldValue;
69
+ private isIBAN;
70
+ private extractBankFromIBAN;
71
+ private loadBanksAndMatchIBAN;
72
+ private loadBanks;
73
+ selectBank(bank: Bank): void;
74
+ proceedToNextStep(): void;
75
+ private initiateConsent;
76
+ private shouldUseIframe;
77
+ private openConsentInNewWindow;
78
+ private checkIframeLoad;
79
+ private startConsentPolling;
80
+ private onConsentApproved;
81
+ private onConsentRejected;
82
+ private fetchAccountData;
83
+ private fetchTransactionsForAccounts;
84
+ private completeProcess;
85
+ private storeAccountData;
86
+ private populateStepControls;
87
+ retry(): void;
88
+ private handleError;
89
+ private getTranslatedMessage;
90
+ get initialMessage(): string;
91
+ get waitingMessage(): string;
92
+ get completionMessage(): string;
93
+ get retryButtonLabel(): string;
94
+ get errorMessage(): string;
95
+ get nextButtonLabel(): string;
96
+ get continueButtonLabel(): string;
97
+ get selectBankTitle(): string;
98
+ get consentTitle(): string;
99
+ get consentDescription(): string;
100
+ get waitingForAuthorizationText(): string;
101
+ get popupWindowMessage(): string;
102
+ get popupBlockerMessage(): string;
103
+ get accountsRetrievedLabel(): string;
104
+ get transactionsRetrievedLabel(): string;
105
+ get accountsSummaryText(): string;
106
+ get transactionsSummaryText(): string;
107
+ private getTransactionPeriodMonths;
108
+ get isInitialState(): boolean;
109
+ get isBankSelectionState(): boolean;
110
+ get isConsentState(): boolean;
111
+ get isProcessingState(): boolean;
112
+ get isErrorState(): boolean;
113
+ get isCompleteState(): boolean;
114
+ private setLoadingState;
115
+ ngOnDestroy(): void;
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyOpenBankingComponent, never>;
117
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyOpenBankingComponent, "app-formly-open-banking", never, {}, {}, never, never, false, never>;
118
+ }
119
+ export {};
@@ -0,0 +1,10 @@
1
+ import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormlyParagraphComponent extends BaseFormlyStepComponent {
4
+ cssMargins: any;
5
+ onInit(): void;
6
+ get formattedLabel(): string;
7
+ private formatDateIfNeeded;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyParagraphComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyParagraphComponent, "formly-paragraph", never, {}, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FieldType } from '@ngx-formly/core';
3
+ import { FormControl } from '@angular/forms';
4
+ import { MatRadioChange } from '@angular/material/radio';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormlyRadioComponent extends FieldType implements OnInit {
7
+ radioOptionsList: any[];
8
+ title: string;
9
+ langIso: string;
10
+ ngOnInit(): void;
11
+ get formControl(): FormControl;
12
+ onRadioChange(e: MatRadioChange): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyRadioComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyRadioComponent, "formly-radio", never, {}, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,6 @@
1
+ import { FieldType } from '@ngx-formly/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RowFillerComponent extends FieldType {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowFillerComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<RowFillerComponent, "formly-row-filler", never, {}, {}, never, never, false, never>;
6
+ }
@@ -0,0 +1,41 @@
1
+ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { FieldType } from '@ngx-formly/core';
4
+ import { ApplicationDataService } from '../../services/applicationData.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormlyScanIdComponent extends FieldType implements OnInit {
7
+ private appDataService;
8
+ private cdr;
9
+ control: FormControl;
10
+ fileError: string | null;
11
+ fileNameFront: string;
12
+ fileNameBack: string;
13
+ validFormats: string[];
14
+ maxFileSizeKB: number;
15
+ cardTypeSelected: boolean;
16
+ oldIdCard: boolean;
17
+ frontPhotoUploaded: boolean;
18
+ backPhotoUploaded: boolean;
19
+ photoBase64Front: string;
20
+ photoBase64Back: string;
21
+ isLoading: boolean;
22
+ successMessage: string | null;
23
+ fileInputFront: ElementRef;
24
+ fileInputBack: ElementRef;
25
+ videoElement: ElementRef;
26
+ videoStream: MediaStream | null;
27
+ isScanValid: boolean;
28
+ constructor(appDataService: ApplicationDataService, cdr: ChangeDetectorRef);
29
+ ngOnInit(): void;
30
+ selectCardType(isOldIdCard: boolean): void;
31
+ onFileSelected(event: any, isFront: boolean): void;
32
+ takePicture(): void;
33
+ startCamera(deviceId: string): void;
34
+ capturePhoto(isFront: boolean): void;
35
+ uploadPhoto(): void;
36
+ resetForm(preserveError?: boolean): void;
37
+ checkUploadCondition(): void;
38
+ private extractStatusFromAppData;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyScanIdComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyScanIdComponent, "app-formly-scan-id", never, {}, {}, never, never, false, never>;
41
+ }