@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.
- package/README.md +24 -0
- package/esm2022/lib/action-step-handler.mjs +163 -0
- package/esm2022/lib/auth-client.service.mjs +69 -0
- package/esm2022/lib/enums/label.keys.mjs +721 -0
- package/esm2022/lib/form-css.helper.mjs +367 -0
- package/esm2022/lib/formly/baseFormlyControlComponent.mjs +52 -0
- package/esm2022/lib/formly/baseFormlyStepComponent.mjs +59 -0
- package/esm2022/lib/formly/custom-section-separator.component.mjs +32 -0
- package/esm2022/lib/formly/form-section-separator.component.mjs +36 -0
- package/esm2022/lib/formly/formly-action.mjs +56 -0
- package/esm2022/lib/formly/formly-checkbox/formly-checkbox.component.mjs +52 -0
- package/esm2022/lib/formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component.mjs +261 -0
- package/esm2022/lib/formly/formly-download-documents/formly-download-documents.component.mjs +126 -0
- package/esm2022/lib/formly/formly-enrol-card/formly-enrol-card.component.mjs +120 -0
- package/esm2022/lib/formly/formly-field-stepper/formly-field-stepper.component.mjs +762 -0
- package/esm2022/lib/formly/formly-generate-documents/formly-generate-documents.component.mjs +57 -0
- package/esm2022/lib/formly/formly-identification.component.mjs +84 -0
- package/esm2022/lib/formly/formly-open-banking/formly-open-banking.component.mjs +590 -0
- package/esm2022/lib/formly/formly-paragraph/formly-paragraph.component.mjs +35 -0
- package/esm2022/lib/formly/formly-radio/formly-radio-component.mjs +49 -0
- package/esm2022/lib/formly/formly-row-fille.mjs +12 -0
- package/esm2022/lib/formly/formly-scan-id/formly-scan-id.component.mjs +284 -0
- package/esm2022/lib/formly/formly-sign/formly-sign.component.mjs +173 -0
- package/esm2022/lib/formly/formly-upload-documents/formly-upload-documents.component.mjs +198 -0
- package/esm2022/lib/formly/formly-validate-contact-info/formly-validate-contact-info.component.mjs +124 -0
- package/esm2022/lib/formly/formly-view-documents/formly-view-documents.component.mjs +245 -0
- package/esm2022/lib/formly/formly-view-offers/formly-view-offers.component.mjs +160 -0
- package/esm2022/lib/model-population.helper.mjs +265 -0
- package/esm2022/lib/models/application-type.model.mjs +12 -0
- package/esm2022/lib/models/application.model.mjs +30 -0
- package/esm2022/lib/models/auth/users.model.mjs +2 -0
- package/esm2022/lib/models/dictionary.model.mjs +20 -0
- package/esm2022/lib/models/flux.model.mjs +105 -0
- package/esm2022/lib/models/forms.model.mjs +572 -0
- package/esm2022/lib/models/label-info.model.mjs +2 -0
- package/esm2022/lib/models/label.model.mjs +2 -0
- package/esm2022/lib/models/language.model.mjs +3 -0
- package/esm2022/lib/models/list.model.mjs +2 -0
- package/esm2022/lib/models/partner.model.mjs +3 -0
- package/esm2022/lib/models/treeview.model.mjs +15 -0
- package/esm2022/lib/origin-form-auth.service.mjs +40 -0
- package/esm2022/lib/origin-form-config.model.mjs +2 -0
- package/esm2022/lib/origin-form-token.interceptor.mjs +35 -0
- package/esm2022/lib/origin-form.component.mjs +2391 -0
- package/esm2022/lib/origin-form.module.mjs +479 -0
- package/esm2022/lib/origin-form.service.mjs +14 -0
- package/esm2022/lib/others/check-list.database.mjs +55 -0
- package/esm2022/lib/others/config-service.mjs +42 -0
- package/esm2022/lib/others/dictionary-label-info.mjs +3 -0
- package/esm2022/lib/others/environment-type.mjs +21 -0
- package/esm2022/lib/others/external-link.directive.mjs +49 -0
- package/esm2022/lib/others/flux-helper.mjs +1397 -0
- package/esm2022/lib/others/picker.component.mjs +119 -0
- package/esm2022/lib/others/translation.pipe.mjs +21 -0
- package/esm2022/lib/others/translations-helper.mjs +258 -0
- package/esm2022/lib/others/utils.mjs +272 -0
- package/esm2022/lib/services/applicationData.service.mjs +145 -0
- package/esm2022/lib/services/auth-http.service.mjs +80 -0
- package/esm2022/lib/services/dialog.service.mjs +56 -0
- package/esm2022/lib/services/dictionary.service.mjs +198 -0
- package/esm2022/lib/services/forms.service.mjs +47 -0
- package/esm2022/lib/services/labels.service.mjs +29 -0
- package/esm2022/lib/services/language.service.mjs +24 -0
- package/esm2022/lib/services/open-banking.service.mjs +194 -0
- package/esm2022/lib/services/origin-form-signalr-handler.service.mjs +107 -0
- package/esm2022/lib/services/origin-form-signalr.service.mjs +105 -0
- package/esm2022/lib/services/otp.service.mjs +28 -0
- package/esm2022/lib/services/proxy.service.mjs +79 -0
- package/esm2022/lib/services/scroll-to-error.service.mjs +369 -0
- package/esm2022/lib/services/translation.service.mjs +27 -0
- package/esm2022/lib/shared-components/confirmation.component.mjs +34 -0
- package/esm2022/lib/shared-components/dictionaries-tree.component.mjs +301 -0
- package/esm2022/lib/shared-components/grid.component.mjs +241 -0
- package/esm2022/lib/shared-components/treeview/treeview.component.mjs +224 -0
- package/esm2022/lib/theme-css.mjs +2254 -0
- package/esm2022/lib/theme-injector.service.mjs +26 -0
- package/esm2022/public-api.mjs +4 -0
- package/esm2022/qbs-origin-origin-form.mjs +5 -0
- package/fesm2022/qbs-origin-origin-form.mjs +15215 -0
- package/fesm2022/qbs-origin-origin-form.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/action-step-handler.d.ts +49 -0
- package/lib/auth-client.service.d.ts +17 -0
- package/lib/enums/label.keys.d.ts +720 -0
- package/lib/form-css.helper.d.ts +28 -0
- package/lib/formly/baseFormlyControlComponent.d.ts +25 -0
- package/lib/formly/baseFormlyStepComponent.d.ts +29 -0
- package/lib/formly/custom-section-separator.component.d.ts +6 -0
- package/lib/formly/form-section-separator.component.d.ts +10 -0
- package/lib/formly/formly-action.d.ts +13 -0
- package/lib/formly/formly-checkbox/formly-checkbox.component.d.ts +15 -0
- package/lib/formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component.d.ts +45 -0
- package/lib/formly/formly-download-documents/formly-download-documents.component.d.ts +22 -0
- package/lib/formly/formly-enrol-card/formly-enrol-card.component.d.ts +114 -0
- package/lib/formly/formly-field-stepper/formly-field-stepper.component.d.ts +79 -0
- package/lib/formly/formly-generate-documents/formly-generate-documents.component.d.ts +17 -0
- package/lib/formly/formly-identification.component.d.ts +19 -0
- package/lib/formly/formly-open-banking/formly-open-banking.component.d.ts +119 -0
- package/lib/formly/formly-paragraph/formly-paragraph.component.d.ts +10 -0
- package/lib/formly/formly-radio/formly-radio-component.d.ts +15 -0
- package/lib/formly/formly-row-fille.d.ts +6 -0
- package/lib/formly/formly-scan-id/formly-scan-id.component.d.ts +41 -0
- package/lib/formly/formly-sign/formly-sign.component.d.ts +36 -0
- package/lib/formly/formly-upload-documents/formly-upload-documents.component.d.ts +25 -0
- package/lib/formly/formly-validate-contact-info/formly-validate-contact-info.component.d.ts +79 -0
- package/lib/formly/formly-view-documents/formly-view-documents.component.d.ts +33 -0
- package/lib/formly/formly-view-offers/formly-view-offers.component.d.ts +23 -0
- package/lib/model-population.helper.d.ts +8 -0
- package/lib/models/application-type.model.d.ts +27 -0
- package/lib/models/application.model.d.ts +107 -0
- package/lib/models/auth/users.model.d.ts +20 -0
- package/lib/models/dictionary.model.d.ts +77 -0
- package/lib/models/flux.model.d.ts +101 -0
- package/lib/models/forms.model.d.ts +504 -0
- package/lib/models/label-info.model.d.ts +10 -0
- package/lib/models/label.model.d.ts +4 -0
- package/lib/models/language.model.d.ts +5 -0
- package/lib/models/list.model.d.ts +8 -0
- package/lib/models/partner.model.d.ts +12 -0
- package/lib/models/treeview.model.d.ts +17 -0
- package/lib/origin-form-auth.service.d.ts +15 -0
- package/lib/origin-form-config.model.d.ts +12 -0
- package/lib/origin-form-token.interceptor.d.ts +12 -0
- package/lib/origin-form.component.d.ts +231 -0
- package/lib/origin-form.module.d.ts +84 -0
- package/lib/origin-form.service.d.ts +6 -0
- package/lib/others/check-list.database.d.ts +16 -0
- package/lib/others/config-service.d.ts +22 -0
- package/lib/others/dictionary-label-info.d.ts +6 -0
- package/lib/others/environment-type.d.ts +8 -0
- package/lib/others/external-link.directive.d.ts +12 -0
- package/lib/others/flux-helper.d.ts +115 -0
- package/lib/others/picker.component.d.ts +36 -0
- package/lib/others/translation.pipe.d.ts +10 -0
- package/lib/others/translations-helper.d.ts +31 -0
- package/lib/others/utils.d.ts +37 -0
- package/lib/services/applicationData.service.d.ts +35 -0
- package/lib/services/auth-http.service.d.ts +21 -0
- package/lib/services/dialog.service.d.ts +20 -0
- package/lib/services/dictionary.service.d.ts +89 -0
- package/lib/services/forms.service.d.ts +17 -0
- package/lib/services/labels.service.d.ts +13 -0
- package/lib/services/language.service.d.ts +14 -0
- package/lib/services/open-banking.service.d.ts +137 -0
- package/lib/services/origin-form-signalr-handler.service.d.ts +29 -0
- package/lib/services/origin-form-signalr.service.d.ts +24 -0
- package/lib/services/otp.service.d.ts +22 -0
- package/lib/services/proxy.service.d.ts +29 -0
- package/lib/services/scroll-to-error.service.d.ts +54 -0
- package/lib/services/translation.service.d.ts +10 -0
- package/lib/shared-components/confirmation.component.d.ts +77 -0
- package/lib/shared-components/dictionaries-tree.component.d.ts +51 -0
- package/lib/shared-components/grid.component.d.ts +138 -0
- package/lib/shared-components/treeview/treeview.component.d.ts +121 -0
- package/lib/theme-css.d.ts +2 -0
- package/lib/theme-injector.service.d.ts +8 -0
- package/package.json +42 -0
- package/public-api.d.ts +3 -0
- package/schematics-compiled/collection.json +10 -0
- package/schematics-compiled/ng-add/index.d.ts +2 -0
- package/schematics-compiled/ng-add/index.js +67 -0
- package/schematics-compiled/ng-add/index.js.map +1 -0
- package/schematics-compiled/ng-add/schema.json +8 -0
- package/src/lib/assets/fonts/Figtree-Bold.ttf +0 -0
- package/src/lib/assets/fonts/Figtree-Light.ttf +0 -0
- package/src/lib/assets/fonts/Figtree-Regular.ttf +0 -0
- package/src/lib/assets/fonts/Sora-ExtraBold.ttf +0 -0
- package/src/lib/assets/fonts/Sora-Light.ttf +0 -0
- package/src/lib/assets/fonts/Sora-Regular.ttf +0 -0
- package/src/lib/assets/fonts/ttrounds-bold-webfont.woff +0 -0
- package/src/lib/assets/fonts/ttrounds-bold-webfont.woff2 +0 -0
- package/src/lib/assets/fonts/ttrounds-regular-webfont.woff +0 -0
- package/src/lib/assets/fonts/ttrounds-regular-webfont.woff2 +0 -0
- package/src/lib/assets/fonts/ttrounds-thin-webfont.woff +0 -0
- package/src/lib/assets/fonts/ttrounds-thin-webfont.woff2 +0 -0
- package/src/lib/assets/images/flag/icon-flag-de.svg +10 -0
- package/src/lib/assets/images/flag/icon-flag-en.svg +1 -0
- package/src/lib/assets/images/flag/icon-flag-es.svg +11 -0
- package/src/lib/assets/images/flag/icon-flag-fr.svg +1 -0
- package/src/lib/assets/images/flag/icon-flag-ro.svg +11 -0
- package/src/lib/assets/images/flag/origin-form/new-id-card.png +0 -0
- package/src/lib/assets/images/flag/origin-form/old-id-card.png +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { FormlyField, FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ApiValidateRequest } from './models/application.model';
|
|
6
|
+
import { DictionaryDto } from './models/dictionary.model';
|
|
7
|
+
import { FormModel, DictionaryControlData } from './models/forms.model';
|
|
8
|
+
import { Language } from './models/language.model';
|
|
9
|
+
import { DictionaryLabelInfo } from './others/dictionary-label-info';
|
|
10
|
+
import { ApplicationDataService } from './services/applicationData.service';
|
|
11
|
+
import { LabelService } from './services/labels.service';
|
|
12
|
+
import { ProxyService } from './services/proxy.service';
|
|
13
|
+
import { DictionaryService } from './services/dictionary.service';
|
|
14
|
+
import { LanguageService } from './services/language.service';
|
|
15
|
+
import { OriginFormAuthService } from './origin-form-auth.service';
|
|
16
|
+
import { FormsService } from './services/forms.service';
|
|
17
|
+
import { InputConfig } from './origin-form-config.model';
|
|
18
|
+
import { ConfigService } from './others/config-service';
|
|
19
|
+
import { TranslationService } from './services/translation.service';
|
|
20
|
+
import { OriginFormSignalrHandlerService } from './services/origin-form-signalr-handler.service';
|
|
21
|
+
import { ActionStepHandler } from './action-step-handler';
|
|
22
|
+
import { ScrollToErrorService } from './services/scroll-to-error.service';
|
|
23
|
+
import { ControlData, PresentationControl, SectionData, StepData } from './models/flux.model';
|
|
24
|
+
import * as i0 from "@angular/core";
|
|
25
|
+
export declare class CollectorFormComponent implements OnChanges, OnDestroy {
|
|
26
|
+
private service;
|
|
27
|
+
private cdRef;
|
|
28
|
+
private renderer;
|
|
29
|
+
private labelService;
|
|
30
|
+
private applicationDataService;
|
|
31
|
+
private langService;
|
|
32
|
+
private authService;
|
|
33
|
+
private formsService;
|
|
34
|
+
private configService;
|
|
35
|
+
private translationService;
|
|
36
|
+
private originFormSignalrHandlerService;
|
|
37
|
+
private actionStepHandler;
|
|
38
|
+
private scrollToErrorService;
|
|
39
|
+
formlyFields: QueryList<FormlyField>;
|
|
40
|
+
configComponent: InputConfig | undefined;
|
|
41
|
+
configUuid: string;
|
|
42
|
+
currentStepId: string;
|
|
43
|
+
appModel: FormModel;
|
|
44
|
+
signBaseUrl: string;
|
|
45
|
+
currentLanguageIso: string;
|
|
46
|
+
fillData: any;
|
|
47
|
+
env: string;
|
|
48
|
+
showDisplayMode: boolean;
|
|
49
|
+
showLanguageSelector: boolean;
|
|
50
|
+
isDemoMode: boolean;
|
|
51
|
+
isDebug: boolean;
|
|
52
|
+
appDataUuid: string;
|
|
53
|
+
blockPreviousStep: boolean;
|
|
54
|
+
dataUrlId: string;
|
|
55
|
+
noButtonsInView: boolean;
|
|
56
|
+
private flux;
|
|
57
|
+
private display;
|
|
58
|
+
private design;
|
|
59
|
+
private generalData;
|
|
60
|
+
private labels;
|
|
61
|
+
private stepDictionaryDependentIds;
|
|
62
|
+
private availableLanguages;
|
|
63
|
+
private stepsSettings;
|
|
64
|
+
formlyConfigUpdated: EventEmitter<void>;
|
|
65
|
+
visibleFieldsUpdated: EventEmitter<any>;
|
|
66
|
+
formlyUpdateAndGoNext: EventEmitter<any>;
|
|
67
|
+
formlyGoNext: EventEmitter<void>;
|
|
68
|
+
completionEvent: EventEmitter<void>;
|
|
69
|
+
form: FormGroup<{}>;
|
|
70
|
+
formlyConfig: FormlyFieldConfig[];
|
|
71
|
+
formlyAllSteps: FormlyFieldConfig[];
|
|
72
|
+
activeStep: number;
|
|
73
|
+
model: any;
|
|
74
|
+
options: FormlyFormOptions;
|
|
75
|
+
isLoading: boolean;
|
|
76
|
+
dictionaryMap: Map<string, DictionaryDto>;
|
|
77
|
+
dictionaryIdToUuidMap: Map<number, string>;
|
|
78
|
+
generalDataKeys: {
|
|
79
|
+
name: string;
|
|
80
|
+
appType: string;
|
|
81
|
+
languages: string;
|
|
82
|
+
defaultLanguage: string;
|
|
83
|
+
contentWithOffer: string;
|
|
84
|
+
showCounterStep: string;
|
|
85
|
+
showNameStep: string;
|
|
86
|
+
showAllSteps: string;
|
|
87
|
+
getTestVersion: string;
|
|
88
|
+
publishOnTest: string;
|
|
89
|
+
getProductionVersion: string;
|
|
90
|
+
publishOnProduction: string;
|
|
91
|
+
getTestConfirm: string;
|
|
92
|
+
getProdConfirm: string;
|
|
93
|
+
publishTestConfirm: string;
|
|
94
|
+
publishProdConfirm: string;
|
|
95
|
+
};
|
|
96
|
+
private fieldUnsubscribeSubjects;
|
|
97
|
+
private collectorHandlerSubscriptions;
|
|
98
|
+
private isExecutingActions;
|
|
99
|
+
private actionStepSubscriptions;
|
|
100
|
+
isSavingAfterActions: boolean;
|
|
101
|
+
kycApiUrl: string;
|
|
102
|
+
kycOrderId: string;
|
|
103
|
+
kycToken: string;
|
|
104
|
+
kycEnv: string;
|
|
105
|
+
kycRedirectId: string;
|
|
106
|
+
kycPhoneNumber: string;
|
|
107
|
+
kycLangIso: string;
|
|
108
|
+
kycShowCitizenship: boolean;
|
|
109
|
+
kycScrollMode: boolean;
|
|
110
|
+
languageFlags: any[];
|
|
111
|
+
formlyCollectingFields: FormlyFieldConfig[];
|
|
112
|
+
formlyPresentationFields: FormlyFieldConfig[];
|
|
113
|
+
controlIdsWithValues: any;
|
|
114
|
+
_self: this;
|
|
115
|
+
constructor(service: DictionaryService, cdRef: ChangeDetectorRef, renderer: Renderer2, proxy: ProxyService, labelService: LabelService, applicationDataService: ApplicationDataService, langService: LanguageService, authService: OriginFormAuthService, formsService: FormsService, configService: ConfigService, translationService: TranslationService, originFormSignalrHandlerService: OriginFormSignalrHandlerService, actionStepHandler: ActionStepHandler, scrollToErrorService: ScrollToErrorService);
|
|
116
|
+
ngOnInit(): Promise<void>;
|
|
117
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
118
|
+
loadAppData(): Promise<void>;
|
|
119
|
+
initAsync(): Promise<void>;
|
|
120
|
+
applicationLanguages(): Language[];
|
|
121
|
+
returnFLag(language: string): any;
|
|
122
|
+
changeLanguage($event: string): void;
|
|
123
|
+
getLanguageName(languageIso: string): string;
|
|
124
|
+
private buildFormlyAsync;
|
|
125
|
+
private handleFormValueChange;
|
|
126
|
+
private getLabels;
|
|
127
|
+
private populateControlIdsWithValueDictionary;
|
|
128
|
+
private getCurrentLanguageId;
|
|
129
|
+
private buildFormlyConfigAsync;
|
|
130
|
+
private onSelectedPageChanging;
|
|
131
|
+
private executeActionStepsAfterCurrentStep;
|
|
132
|
+
private onSelectedPageChanged;
|
|
133
|
+
private setPresentationControlValuesRecursively;
|
|
134
|
+
private findControlInFillDataControls;
|
|
135
|
+
private findInApiCallsResponses;
|
|
136
|
+
private getFormlyFilteredSteps;
|
|
137
|
+
private buildFormlyFieldGroupAsync;
|
|
138
|
+
private buildFormlyFieldConfigAsync;
|
|
139
|
+
triggerComponentUpdate(controlId: string, value: any): void;
|
|
140
|
+
setFormlyFieldValue(fields: FormlyFieldConfig[] | undefined, key: string, value: any): boolean;
|
|
141
|
+
private buildSystemFieldFormlyConfig;
|
|
142
|
+
private setStepBaseProps;
|
|
143
|
+
private CreateSignFieldConfig;
|
|
144
|
+
private CreateDownloadDocsFieldConfig;
|
|
145
|
+
private CreateViewDocsFieldConfig;
|
|
146
|
+
private CreateUploadDocsFieldConfig;
|
|
147
|
+
private CreateGenerateDocsFieldConfig;
|
|
148
|
+
stepperGoNextAsync(): Promise<void>;
|
|
149
|
+
private CreateEnrollCardFieldConfig;
|
|
150
|
+
private CreateIdScanFieldConfig;
|
|
151
|
+
private CreateKycFieldConfig;
|
|
152
|
+
private CreatePhoneEmailFieldConfig;
|
|
153
|
+
private CreateViewOfferFieldConfig;
|
|
154
|
+
private CreatePauseFieldConfig;
|
|
155
|
+
private CreateOpenBankingFieldConfig;
|
|
156
|
+
private CreateStatusFieldConfig;
|
|
157
|
+
private createFormlySystemFieldConfig;
|
|
158
|
+
onOfferSelected(offerId: any, step: StepData): void;
|
|
159
|
+
private onSignEvent;
|
|
160
|
+
private onOpenBankingEvent;
|
|
161
|
+
private onIdScanCompleted;
|
|
162
|
+
updateStepButtonState(step: StepData): void;
|
|
163
|
+
private addRenderedCss;
|
|
164
|
+
buildSectionsFieldGroupAsync(step: StepData | undefined, sections: SectionData[]): Promise<FormlyFieldConfig[]>;
|
|
165
|
+
buidDisplayStep(): Promise<FormlyFieldConfig>;
|
|
166
|
+
addNewRowToFormFieldsIfNecessary(fieldGroup: FormlyFieldConfig[], newRow: FormlyFieldConfig): void;
|
|
167
|
+
calculateFormFieldsWidth(formFields: FormlyFieldConfig[]): void;
|
|
168
|
+
getPercentageClassName(percentageDimension: number): string;
|
|
169
|
+
createFillerControl(span: number): FormlyFieldConfig;
|
|
170
|
+
private buildControlsFieldGroupAsync;
|
|
171
|
+
getPixelClassName(pixelDimension: number): string;
|
|
172
|
+
buildFormFieldAsync(step: StepData | undefined, control: ControlData): Promise<FormlyFieldConfig>;
|
|
173
|
+
addValidators(formlyConfig: FormlyFieldConfig, control: ControlData): void;
|
|
174
|
+
addApiValidators(formlyConfig: FormlyFieldConfig, control: ControlData): void;
|
|
175
|
+
getDefaultFormlyFieldConfig(control: ControlData, type: string, pattern: string, componentStyleKey: string, componentsToExcludeFromStyle: string[]): FormlyFieldConfig;
|
|
176
|
+
buildPresentationFormFieldAsync(step: StepData | undefined, control: PresentationControl): Promise<FormlyFieldConfig>;
|
|
177
|
+
buildApiMethodFormFieldAsync(step: StepData | undefined, control: PresentationControl): Promise<FormlyFieldConfig>;
|
|
178
|
+
private attachToDependentDictionaryIfNecessary;
|
|
179
|
+
private attachToValueChanges;
|
|
180
|
+
createReferenceDictionariesFromSelectedValue(allDictionaries: DictionaryDto[], selectedValue: any): DictionaryDto[];
|
|
181
|
+
shouldShowDependentField(parentKey: string, dependentValueIds: number[], model?: any): boolean;
|
|
182
|
+
getNestedValue(obj: any, path: string): any;
|
|
183
|
+
submit(): void;
|
|
184
|
+
/**
|
|
185
|
+
* Public method to trigger scroll to first error - can be called from other components
|
|
186
|
+
*/
|
|
187
|
+
scrollToFirstValidationError(): void;
|
|
188
|
+
/**
|
|
189
|
+
* Public method to scroll to a specific field by name
|
|
190
|
+
*/
|
|
191
|
+
scrollToField(fieldName: string): void;
|
|
192
|
+
/**
|
|
193
|
+
* Debug method to help troubleshoot scroll issues
|
|
194
|
+
*/
|
|
195
|
+
debugFormElements(): void;
|
|
196
|
+
constructDictionary(control: ControlData, options: FormlyFieldConfig): Promise<void>;
|
|
197
|
+
private findDictionaryValueObject;
|
|
198
|
+
private initializeReferenceFields;
|
|
199
|
+
constructDictionaryWithReferences(dictionary: DictionaryDto, options: FormlyFieldConfig, dictionaryControlData: DictionaryControlData): void;
|
|
200
|
+
addReferenceDictionaryFieldsIfNecessary(referrencedDictionaries: any[], parentDictionaryField: FormlyFieldConfig, type: any, relatedDictionariesTranslations: DictionaryLabelInfo[]): Promise<void>;
|
|
201
|
+
getExistingPercentage(fields: FormlyFieldConfig[], index: number): number;
|
|
202
|
+
calculateRemainingPercentageForRange(fields: FormlyFieldConfig[], startIndex: number, endIndex: number): number;
|
|
203
|
+
removeReferenceFields(currentFormlyFieldConfig: FormlyFieldConfig): void;
|
|
204
|
+
addChildDictionaryField(childDictionaryUuid: string, parentDictionaryField: FormlyFieldConfig, type: any, relatedDictionariesTranslations: DictionaryLabelInfo[]): Promise<void>;
|
|
205
|
+
onCompletion(): void;
|
|
206
|
+
findLastChildIndex(fields: FormlyFieldConfig[], parentIndex: number): number;
|
|
207
|
+
findFieldByKey(fields: FormlyFieldConfig[], key: string): FormlyFieldConfig | null;
|
|
208
|
+
removeChildFields(parentField: FormlyFieldConfig): void;
|
|
209
|
+
/**
|
|
210
|
+
* NEW: Load ALL dictionaries needed for this app using the new app-based endpoint
|
|
211
|
+
*/
|
|
212
|
+
private loadAllRequiredDictionaries;
|
|
213
|
+
clearFormControlValue(fieldKey: string): void;
|
|
214
|
+
findField(fields: FormlyFieldConfig[], key: string): FormlyFieldConfig | null;
|
|
215
|
+
private populateModelWithFillData;
|
|
216
|
+
private findAndMapDefaultValue;
|
|
217
|
+
updateFormlyConfig(): void;
|
|
218
|
+
private unsubscribeFromAllFields;
|
|
219
|
+
ngOnDestroy(): void;
|
|
220
|
+
constructButtons(buttonsConfig: any[]): any[];
|
|
221
|
+
private styleObjectToStringExceptBackground;
|
|
222
|
+
validateMethodApi(data: ApiValidateRequest): Observable<boolean>;
|
|
223
|
+
/**
|
|
224
|
+
* Public method to clear the saving after actions state
|
|
225
|
+
* Called by stepper component after saveAppDataStep completes
|
|
226
|
+
*/
|
|
227
|
+
clearSavingAfterActionsState(): void;
|
|
228
|
+
loadingMessage: string | null;
|
|
229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollectorFormComponent, never>;
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollectorFormComponent, "app-origin-form", never, { "configComponent": { "alias": "configComponent"; "required": false; }; "configUuid": { "alias": "configUuid"; "required": false; }; "currentStepId": { "alias": "currentStepId"; "required": false; }; "appModel": { "alias": "appModel"; "required": false; }; "signBaseUrl": { "alias": "signBaseUrl"; "required": false; }; "currentLanguageIso": { "alias": "currentLanguageIso"; "required": false; }; "fillData": { "alias": "fillData"; "required": false; }; "env": { "alias": "env"; "required": false; }; "showDisplayMode": { "alias": "showDisplayMode"; "required": false; }; "showLanguageSelector": { "alias": "showLanguageSelector"; "required": false; }; "isDemoMode": { "alias": "isDemoMode"; "required": false; }; "isDebug": { "alias": "isDebug"; "required": false; }; "appDataUuid": { "alias": "appDataUuid"; "required": false; }; "blockPreviousStep": { "alias": "blockPreviousStep"; "required": false; }; "dataUrlId": { "alias": "dataUrlId"; "required": false; }; "noButtonsInView": { "alias": "noButtonsInView"; "required": false; }; }, { "completionEvent": "completionEvent"; }, never, never, false, never>;
|
|
231
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ThemeInjectorService } from './theme-injector.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./others/translation.pipe";
|
|
4
|
+
import * as i2 from "./formly/custom-section-separator.component";
|
|
5
|
+
import * as i3 from "./formly/form-section-separator.component";
|
|
6
|
+
import * as i4 from "./formly/formly-action";
|
|
7
|
+
import * as i5 from "./formly/formly-checkbox/formly-checkbox.component";
|
|
8
|
+
import * as i6 from "./formly/formly-dictionary-dropdown-tree/formly-dictionary-dropdown-tree.component";
|
|
9
|
+
import * as i7 from "./formly/formly-download-documents/formly-download-documents.component";
|
|
10
|
+
import * as i8 from "./formly/formly-view-documents/formly-view-documents.component";
|
|
11
|
+
import * as i9 from "./formly/formly-field-stepper/formly-field-stepper.component";
|
|
12
|
+
import * as i10 from "./formly/formly-generate-documents/formly-generate-documents.component";
|
|
13
|
+
import * as i11 from "./formly/formly-identification.component";
|
|
14
|
+
import * as i12 from "./formly/formly-paragraph/formly-paragraph.component";
|
|
15
|
+
import * as i13 from "./formly/formly-radio/formly-radio-component";
|
|
16
|
+
import * as i14 from "./formly/formly-row-fille";
|
|
17
|
+
import * as i15 from "./formly/formly-scan-id/formly-scan-id.component";
|
|
18
|
+
import * as i16 from "./formly/formly-sign/formly-sign.component";
|
|
19
|
+
import * as i17 from "./formly/formly-upload-documents/formly-upload-documents.component";
|
|
20
|
+
import * as i18 from "./formly/formly-validate-contact-info/formly-validate-contact-info.component";
|
|
21
|
+
import * as i19 from "./formly/formly-view-offers/formly-view-offers.component";
|
|
22
|
+
import * as i20 from "./formly/formly-open-banking/formly-open-banking.component";
|
|
23
|
+
import * as i21 from "./others/picker.component";
|
|
24
|
+
import * as i22 from "./shared-components/treeview/treeview.component";
|
|
25
|
+
import * as i23 from "./shared-components/dictionaries-tree.component";
|
|
26
|
+
import * as i24 from "./shared-components/confirmation.component";
|
|
27
|
+
import * as i25 from "./shared-components/grid.component";
|
|
28
|
+
import * as i26 from "./origin-form.component";
|
|
29
|
+
import * as i27 from "./formly/formly-enrol-card/formly-enrol-card.component";
|
|
30
|
+
import * as i28 from "./others/external-link.directive";
|
|
31
|
+
import * as i29 from "@angular/common";
|
|
32
|
+
import * as i30 from "@angular/forms";
|
|
33
|
+
import * as i31 from "ngx-scrollbar";
|
|
34
|
+
import * as i32 from "sign-lib";
|
|
35
|
+
import * as i33 from "ng2-pdf-viewer";
|
|
36
|
+
import * as i34 from "ngx-markdown";
|
|
37
|
+
import * as i35 from "@angular/router";
|
|
38
|
+
import * as i36 from "@ngx-translate/core";
|
|
39
|
+
import * as i37 from "@angular/material/input";
|
|
40
|
+
import * as i38 from "@angular/material/form-field";
|
|
41
|
+
import * as i39 from "@angular/material/autocomplete";
|
|
42
|
+
import * as i40 from "@angular/material/checkbox";
|
|
43
|
+
import * as i41 from "@angular/material/datepicker";
|
|
44
|
+
import * as i42 from "@angular/material/core";
|
|
45
|
+
import * as i43 from "@angular/material/radio";
|
|
46
|
+
import * as i44 from "@angular/material/select";
|
|
47
|
+
import * as i45 from "@angular/material/slider";
|
|
48
|
+
import * as i46 from "@angular/material/slide-toggle";
|
|
49
|
+
import * as i47 from "@angular/material/menu";
|
|
50
|
+
import * as i48 from "@angular/material/sidenav";
|
|
51
|
+
import * as i49 from "@angular/material/toolbar";
|
|
52
|
+
import * as i50 from "@angular/material/card";
|
|
53
|
+
import * as i51 from "@angular/material/divider";
|
|
54
|
+
import * as i52 from "@angular/material/expansion";
|
|
55
|
+
import * as i53 from "@angular/material/grid-list";
|
|
56
|
+
import * as i54 from "@angular/material/list";
|
|
57
|
+
import * as i55 from "@angular/material/stepper";
|
|
58
|
+
import * as i56 from "@angular/material/tabs";
|
|
59
|
+
import * as i57 from "@angular/material/tree";
|
|
60
|
+
import * as i58 from "@angular/material/button";
|
|
61
|
+
import * as i59 from "@angular/material/button-toggle";
|
|
62
|
+
import * as i60 from "@angular/material/badge";
|
|
63
|
+
import * as i61 from "@angular/material/chips";
|
|
64
|
+
import * as i62 from "@angular/material/icon";
|
|
65
|
+
import * as i63 from "@angular/material/progress-spinner";
|
|
66
|
+
import * as i64 from "@angular/material/progress-bar";
|
|
67
|
+
import * as i65 from "@angular/material/bottom-sheet";
|
|
68
|
+
import * as i66 from "@angular/material/dialog";
|
|
69
|
+
import * as i67 from "@angular/material/snack-bar";
|
|
70
|
+
import * as i68 from "@angular/material/tooltip";
|
|
71
|
+
import * as i69 from "@angular/material/paginator";
|
|
72
|
+
import * as i70 from "@angular/material/sort";
|
|
73
|
+
import * as i71 from "@angular/material/table";
|
|
74
|
+
import * as i72 from "@ngx-formly/core";
|
|
75
|
+
import * as i73 from "@ngx-formly/material";
|
|
76
|
+
import * as i74 from "@ngx-formly/material/textarea";
|
|
77
|
+
import * as i75 from "@ngx-formly/material/datepicker";
|
|
78
|
+
export declare class OriginFormModule {
|
|
79
|
+
private themeInjector;
|
|
80
|
+
constructor(themeInjector: ThemeInjectorService);
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OriginFormModule, never>;
|
|
82
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OriginFormModule, [typeof i1.TranslatePipe, typeof i2.CustomSectionComponent, typeof i3.FormSectionSeparatorComponent, typeof i4.FormlyActionComponent, typeof i5.FormlyCheckboxComponent, typeof i6.FormlyDictionaryDropdownTreeComponent, typeof i7.FormlyDownloadDocumentsComponent, typeof i8.FormlyViewDocumentsComponent, typeof i9.FormlyFieldStepperComponent, typeof i10.FormlyGenerateDocumentsComponent, typeof i11.FormlyFieldIdentificationComponent, typeof i12.FormlyParagraphComponent, typeof i13.FormlyRadioComponent, typeof i14.RowFillerComponent, typeof i15.FormlyScanIdComponent, typeof i16.FormlySignComponent, typeof i17.FormlyUploadDocumentsComponent, typeof i18.FormlyValidateContactInfoComponent, typeof i19.FormlyViewOffersComponent, typeof i20.FormlyOpenBankingComponent, typeof i21.PickerComponent, typeof i22.AppTreeviewComponent, typeof i23.DictionariesTreeComponent, typeof i24.ConfirmationComponent, typeof i25.GridComponent, typeof i26.CollectorFormComponent, typeof i27.FormlyEnrolCardComponent, typeof i28.ExternalLinkDirective], [typeof i29.CommonModule, typeof i30.ReactiveFormsModule, typeof i30.FormsModule, typeof i31.NgScrollbarModule, typeof i32.SignLibModule, typeof i33.PdfViewerModule, typeof i34.MarkdownModule, typeof i35.RouterModule, typeof i36.TranslateModule, typeof i37.MatInputModule, typeof i38.MatFormFieldModule, typeof i39.MatAutocompleteModule, typeof i40.MatCheckboxModule, typeof i41.MatDatepickerModule, typeof i42.MatNativeDateModule, typeof i38.MatFormFieldModule, typeof i37.MatInputModule, typeof i43.MatRadioModule, typeof i44.MatSelectModule, typeof i45.MatSliderModule, typeof i46.MatSlideToggleModule, typeof i47.MatMenuModule, typeof i48.MatSidenavModule, typeof i49.MatToolbarModule, typeof i50.MatCardModule, typeof i51.MatDividerModule, typeof i52.MatExpansionModule, typeof i53.MatGridListModule, typeof i54.MatListModule, typeof i55.MatStepperModule, typeof i56.MatTabsModule, typeof i57.MatTreeModule, typeof i58.MatButtonModule, typeof i59.MatButtonToggleModule, typeof i60.MatBadgeModule, typeof i61.MatChipsModule, typeof i62.MatIconModule, typeof i63.MatProgressSpinnerModule, typeof i64.MatProgressBarModule, typeof i42.MatRippleModule, typeof i65.MatBottomSheetModule, typeof i66.MatDialogModule, typeof i67.MatSnackBarModule, typeof i68.MatTooltipModule, typeof i69.MatPaginatorModule, typeof i70.MatSortModule, typeof i71.MatTableModule, typeof i72.FormlyModule, typeof i73.FormlyMaterialModule, typeof i74.FormlyMatTextAreaModule, typeof i75.FormlyMatDatepickerModule], [typeof i26.CollectorFormComponent]>;
|
|
83
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<OriginFormModule>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import { ItemNode } from "../models/treeview.model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ChecklistDatabase {
|
|
5
|
+
dataChange: BehaviorSubject<ItemNode[]>;
|
|
6
|
+
initialData: ItemNode[];
|
|
7
|
+
get data(): ItemNode[];
|
|
8
|
+
constructor();
|
|
9
|
+
initialize(inputData: ItemNode[]): void;
|
|
10
|
+
insertItem(parent: ItemNode, name: string): void;
|
|
11
|
+
updateItem(node: ItemNode, name: string): void;
|
|
12
|
+
private filterData;
|
|
13
|
+
filter(filterText: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistDatabase, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChecklistDatabase>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpBackend } from '@angular/common/http';
|
|
2
|
+
import { InputConfig } from '../origin-form-config.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface AppConfig {
|
|
5
|
+
baseUrlGateway: string;
|
|
6
|
+
baseUrlAuthenticator: string;
|
|
7
|
+
baseUrlInfrastructure: string;
|
|
8
|
+
baseUrlPublicInfrastructure: string;
|
|
9
|
+
baseUrlDocuments: string;
|
|
10
|
+
baseUrlBusiness: string;
|
|
11
|
+
baseUrlSmartAccounts: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class ConfigService {
|
|
15
|
+
private readonly httpHandler;
|
|
16
|
+
private configuration;
|
|
17
|
+
constructor(httpHandler: HttpBackend);
|
|
18
|
+
updateConfigFromInput(input: InputConfig): void;
|
|
19
|
+
readConfig(): AppConfig;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ExternalLinkDirective implements AfterViewInit, OnDestroy {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private observer;
|
|
6
|
+
constructor(elementRef: ElementRef);
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
ngOnDestroy(): void;
|
|
9
|
+
private setExternalLinks;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalLinkDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ExternalLinkDirective, "[appExternalLink]", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Language } from '../models/language.model';
|
|
2
|
+
import { FluxType, FormModel } from '../models/forms.model';
|
|
3
|
+
import { TranslatePipe } from './translation.pipe';
|
|
4
|
+
import { StepData } from '../models/flux.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FluxHelper {
|
|
7
|
+
private translate;
|
|
8
|
+
constructor(translate: TranslatePipe);
|
|
9
|
+
/**
|
|
10
|
+
* Generate unique V1-compatible identifier
|
|
11
|
+
*/
|
|
12
|
+
generateUniqueId(prefix: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Create translations only for supported languages
|
|
15
|
+
*/
|
|
16
|
+
private createTranslationsIfSupported;
|
|
17
|
+
/**
|
|
18
|
+
* Create a manual input control
|
|
19
|
+
*/
|
|
20
|
+
private createManualInputControl;
|
|
21
|
+
/**
|
|
22
|
+
* Create a paragraph control
|
|
23
|
+
*/
|
|
24
|
+
private createParagraphControl;
|
|
25
|
+
/**
|
|
26
|
+
* Create a new row control
|
|
27
|
+
*/
|
|
28
|
+
private createNewRowControl;
|
|
29
|
+
/**
|
|
30
|
+
* Create KYC step with all default sections
|
|
31
|
+
*/
|
|
32
|
+
createKycStep(supportedLanguages: Language[]): StepData;
|
|
33
|
+
/**
|
|
34
|
+
* Create Email Verification step
|
|
35
|
+
*/
|
|
36
|
+
createCheckEmailStep(supportedLanguages: Language[]): StepData;
|
|
37
|
+
/**
|
|
38
|
+
* Create Phone Verification step
|
|
39
|
+
*/
|
|
40
|
+
createCheckPhoneStep(supportedLanguages: Language[]): StepData;
|
|
41
|
+
/**
|
|
42
|
+
* Create ID Scan step
|
|
43
|
+
*/
|
|
44
|
+
createScanStep(supportedLanguages: Language[]): StepData;
|
|
45
|
+
/**
|
|
46
|
+
* Create Sign step
|
|
47
|
+
*/
|
|
48
|
+
createSignStep(supportedLanguages: Language[]): StepData;
|
|
49
|
+
/**
|
|
50
|
+
* Create Generate Documents step
|
|
51
|
+
*/
|
|
52
|
+
createGenerateDocumentsStep(supportedLanguages: Language[]): StepData;
|
|
53
|
+
/**
|
|
54
|
+
* Create Pause step
|
|
55
|
+
*/
|
|
56
|
+
createPauseStep(supportedLanguages: Language[]): StepData;
|
|
57
|
+
/**
|
|
58
|
+
* Create Action step
|
|
59
|
+
*/
|
|
60
|
+
createActionStep(supportedLanguages: Language[]): StepData;
|
|
61
|
+
/**
|
|
62
|
+
* Create Status step with default section
|
|
63
|
+
*/
|
|
64
|
+
createStatusStep(supportedLanguages: Language[]): StepData;
|
|
65
|
+
/**
|
|
66
|
+
* Create Upload Document step
|
|
67
|
+
*/
|
|
68
|
+
createUploadDocumentStep(supportedLanguages: Language[]): StepData;
|
|
69
|
+
/**
|
|
70
|
+
* Create Download Document step
|
|
71
|
+
*/
|
|
72
|
+
createDownloadDocumentStep(supportedLanguages: Language[]): StepData;
|
|
73
|
+
/**
|
|
74
|
+
* Create View Document step
|
|
75
|
+
*/
|
|
76
|
+
createViewDocumentStep(supportedLanguages: Language[]): StepData;
|
|
77
|
+
/**
|
|
78
|
+
* Create View Offer step
|
|
79
|
+
*/
|
|
80
|
+
createViewOfferStep(supportedLanguages: Language[]): StepData;
|
|
81
|
+
/**
|
|
82
|
+
* Create NETOPIA Payment step
|
|
83
|
+
*/
|
|
84
|
+
createNetopiaStep(supportedLanguages: Language[]): StepData;
|
|
85
|
+
/**
|
|
86
|
+
* Create EUPLATESC Payment step
|
|
87
|
+
*/
|
|
88
|
+
createEuplatescStep(supportedLanguages: Language[]): StepData;
|
|
89
|
+
/**
|
|
90
|
+
* Create Open Banking step with default sections and controls
|
|
91
|
+
*/
|
|
92
|
+
createOpenBankingStep(supportedLanguages: Language[]): StepData;
|
|
93
|
+
/**
|
|
94
|
+
* Create Custom step with navigation section
|
|
95
|
+
*/
|
|
96
|
+
createCustomStep(supportedLanguages: Language[]): StepData;
|
|
97
|
+
/**
|
|
98
|
+
* Create Final step
|
|
99
|
+
*/
|
|
100
|
+
createFinalStep(supportedLanguages: Language[]): StepData;
|
|
101
|
+
/**
|
|
102
|
+
* Main factory method to create any step type
|
|
103
|
+
*/
|
|
104
|
+
createFluxStep(type: FluxType, supportedLanguages: Language[]): StepData | null;
|
|
105
|
+
/**
|
|
106
|
+
* Get document name by ID from form model
|
|
107
|
+
* Static method to match FluxHelper usage pattern in forms.model.ts
|
|
108
|
+
* @param documentId - The document ID to search for
|
|
109
|
+
* @param formModel - The form model containing documents array
|
|
110
|
+
* @returns The document name or empty string if not found
|
|
111
|
+
*/
|
|
112
|
+
static getDocumentNameById(documentId: string, formModel: FormModel): string;
|
|
113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FluxHelper, never>;
|
|
114
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FluxHelper>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PickerComponent implements OnInit {
|
|
6
|
+
private builder;
|
|
7
|
+
data: any;
|
|
8
|
+
selections: any[];
|
|
9
|
+
placeholder: string | undefined;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
inputVisible: boolean;
|
|
12
|
+
displayProperty: string;
|
|
13
|
+
iconProperty: string;
|
|
14
|
+
picked: EventEmitter<any>;
|
|
15
|
+
removed: EventEmitter<any>;
|
|
16
|
+
form: import("@angular/forms").FormGroup<{
|
|
17
|
+
picker: import("@angular/forms").FormControl<string | null>;
|
|
18
|
+
}>;
|
|
19
|
+
groups: Group[];
|
|
20
|
+
options: Observable<Group[]> | undefined;
|
|
21
|
+
constructor(builder: FormBuilder);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
refresh(): void;
|
|
25
|
+
getItems(data: any[]): void;
|
|
26
|
+
private filter;
|
|
27
|
+
selected(value: any): void;
|
|
28
|
+
remove(value: any): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PickerComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PickerComponent, "shared-picker", never, { "data": { "alias": "data"; "required": false; }; "selections": { "alias": "selections"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "inputVisible": { "alias": "inputVisible"; "required": false; }; "displayProperty": { "alias": "displayProperty"; "required": false; }; "iconProperty": { "alias": "iconProperty"; "required": false; }; }, { "picked": "picked"; "removed": "removed"; }, never, never, false, never>;
|
|
31
|
+
}
|
|
32
|
+
export interface Group {
|
|
33
|
+
key: string;
|
|
34
|
+
values: any[];
|
|
35
|
+
}
|
|
36
|
+
export declare const filter: (options: any[], selections: any[], value: string, displayProperty: string) => string[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslationService } from '../services/translation.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TranslatePipe implements PipeTransform {
|
|
5
|
+
private translationService;
|
|
6
|
+
constructor(translationService: TranslationService);
|
|
7
|
+
transform(value: any, args?: any): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StepControlType } from "../models/flux.model";
|
|
2
|
+
import { ErrorTranslations } from "../models/forms.model";
|
|
3
|
+
import { TranslationInfo, LabelInfo } from "../models/label-info.model";
|
|
4
|
+
import { Language } from "../models/language.model";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TranslationsHelper {
|
|
7
|
+
static createComponentErrorsTranslations(langs: Language[], componentType: StepControlType): ErrorTranslations[];
|
|
8
|
+
private static createDownloadErrorsTranslations;
|
|
9
|
+
private static createUploadErrorsTranslations;
|
|
10
|
+
private static createViewErrorsTranslations;
|
|
11
|
+
private static createInputErrorsTranslations;
|
|
12
|
+
private static createDefaultErrorsTranslations;
|
|
13
|
+
static createCheckEmailTranslations(langs: Language[]): TranslationInfo[];
|
|
14
|
+
static createCheckPhoneTranslations(langs: Language[]): TranslationInfo[];
|
|
15
|
+
static createIdScanTranslations(langs: Language[]): TranslationInfo[];
|
|
16
|
+
static createPauseTranslations(langs: Language[]): TranslationInfo[];
|
|
17
|
+
static createActionTranslations(langs: Language[]): TranslationInfo[];
|
|
18
|
+
static createStatusTranslations(langs: Language[]): TranslationInfo[];
|
|
19
|
+
static createKycTranslations(langs: Language[]): TranslationInfo[];
|
|
20
|
+
static createPaymentsTranslations(langs: Language[]): TranslationInfo[];
|
|
21
|
+
static createOpenBankingTranslations(langs: Language[]): TranslationInfo[];
|
|
22
|
+
static createCustomStepTranslations(langs: Language[]): TranslationInfo[];
|
|
23
|
+
static createViewOfferStepTranslations(langs: Language[]): TranslationInfo[];
|
|
24
|
+
static createSignTranslations(langs: Language[]): TranslationInfo[];
|
|
25
|
+
static createGenerateDocumentsTranslations(langs: Language[]): TranslationInfo[];
|
|
26
|
+
private static createTranslation;
|
|
27
|
+
static createLabelsInfo(supportedLanguages: Language[], enValue: string, roValue: string): LabelInfo[];
|
|
28
|
+
private static createLabelsInfoCore;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationsHelper, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationsHelper>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ErrorTranslations, FormModel } from '../models/forms.model';
|
|
2
|
+
import { LabelInfo, TranslationInfo } from '../models/label-info.model';
|
|
3
|
+
import { TranslationDto } from '../models/dictionary.model';
|
|
4
|
+
import { Language } from '../models/language.model';
|
|
5
|
+
export type CssRules = {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
[property: string]: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare class Utils {
|
|
11
|
+
static bigInt: number;
|
|
12
|
+
static json2csv(items: any[]): string;
|
|
13
|
+
static csv2json(csv: string): any[];
|
|
14
|
+
static parseCsvLine(line: string): string[];
|
|
15
|
+
static trim(str: string, ch: string): string;
|
|
16
|
+
static download(blob: Blob, name: string): void;
|
|
17
|
+
static generateUUID(): string;
|
|
18
|
+
static copyProperties(sourceObj: any, destObj: any): void;
|
|
19
|
+
static correctDate(date: Date): Date;
|
|
20
|
+
static formatString(str: string, val: string[]): string;
|
|
21
|
+
static removeNewLinesAndSpaces(str: string): string;
|
|
22
|
+
static removeNewLines(str: string): string;
|
|
23
|
+
static findTranslation(translations: LabelInfo[], langIso: string): string | undefined;
|
|
24
|
+
static findTranslationInfo(translationName: string, translations: TranslationInfo[], langIso: string): string | undefined;
|
|
25
|
+
static findLanguageIsoById(languages: Language[], languageId: number): string;
|
|
26
|
+
static findLanguageIdByIso(languages: Language[], iso: string): number;
|
|
27
|
+
static findValueTranslation(translations: TranslationDto[], languageId: number): string | undefined;
|
|
28
|
+
static findErrorTranslationValueOrDefault(errorsTranslations: ErrorTranslations[], langIso: string, errorCode: string): string;
|
|
29
|
+
static findErrorTranslationLabel(errorsTranslations: ErrorTranslations[], langIso: string, errorCode: string): LabelInfo | undefined;
|
|
30
|
+
static createErrorTranslationMssageWithParameters(errorsTranslations: ErrorTranslations[], langIso: string, errorCode: string, params: string[]): string;
|
|
31
|
+
static objectsAreEqual(obj1: any, obj2: any): boolean;
|
|
32
|
+
static removeUndefinedAndSortProperties(obj: any): any;
|
|
33
|
+
static getFileExtension(fileName: string): string | undefined;
|
|
34
|
+
static getFieldsFromState(state: FormModel, selectedMethodId: string, returnOwnFields?: boolean): import("../models/forms.model").MethodField[] | import("../models/forms.model").GetMethodField[];
|
|
35
|
+
static base64toBlob(b64Data: string, contentType?: string, sliceSize?: number): Blob;
|
|
36
|
+
static copyToClipboard(text: string): Promise<void>;
|
|
37
|
+
}
|