@qbs-origin/origin-form 0.8.2 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/action-step-handler.mjs +7 -3
- package/esm2022/lib/enums/label.keys.mjs +2 -1
- package/esm2022/lib/formly/formly-field-stepper/formly-field-stepper.component.mjs +3 -1
- package/esm2022/lib/formly/formly-paragraph/formly-paragraph.component.mjs +16 -2
- package/esm2022/lib/model-population.helper.mjs +115 -3
- package/esm2022/lib/models/application.model.mjs +1 -1
- package/esm2022/lib/models/flux.model.mjs +2 -2
- package/esm2022/lib/models/forms.model.mjs +36 -22
- package/esm2022/lib/origin-form.component.mjs +236 -141
- package/esm2022/lib/others/flux-helper.mjs +31 -1
- package/esm2022/lib/others/translations-helper.mjs +7 -1
- package/esm2022/lib/services/applicationData.service.mjs +15 -8
- package/fesm2022/qbs-origin-origin-form.mjs +456 -171
- package/fesm2022/qbs-origin-origin-form.mjs.map +1 -1
- package/lib/enums/label.keys.d.ts +1 -0
- package/lib/formly/formly-enrol-card/formly-enrol-card.component.d.ts +1 -0
- package/lib/formly/formly-paragraph/formly-paragraph.component.d.ts +1 -0
- package/lib/models/application.model.d.ts +3 -3
- package/lib/models/forms.model.d.ts +14 -2
- package/lib/origin-form.component.d.ts +6 -2
- package/lib/others/flux-helper.d.ts +1 -0
- package/lib/others/translations-helper.d.ts +1 -0
- package/lib/services/applicationData.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export declare class FormlyParagraphComponent extends BaseFormlyStepComponent {
|
|
|
4
4
|
cssMargins: any;
|
|
5
5
|
onInit(): void;
|
|
6
6
|
get formattedLabel(): string;
|
|
7
|
+
private normalizeValue;
|
|
7
8
|
private formatDateIfNeeded;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyParagraphComponent, never>;
|
|
9
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyParagraphComponent, "formly-paragraph", never, {}, {}, never, never, false, never>;
|
|
@@ -67,9 +67,9 @@ export declare class ScanIdDto {
|
|
|
67
67
|
}[];
|
|
68
68
|
}
|
|
69
69
|
export declare class ApiValidateRequest {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
appDataId: string;
|
|
71
|
+
apiMethodId: string;
|
|
72
|
+
controlIdentifier: string;
|
|
73
73
|
}
|
|
74
74
|
export declare class ApiDocumentRequest {
|
|
75
75
|
appDataId: string;
|
|
@@ -18,6 +18,12 @@ export declare class ParentChildConfig {
|
|
|
18
18
|
inheritedFields: InheritedField[];
|
|
19
19
|
notificationConfig: NotificationConfig;
|
|
20
20
|
}
|
|
21
|
+
export declare class ContactMethodConfig {
|
|
22
|
+
emailFieldId: string | null;
|
|
23
|
+
phoneFieldId: string | null;
|
|
24
|
+
preferredMethod: 'email' | 'phone' | 'both';
|
|
25
|
+
continuationBaseUrl: string;
|
|
26
|
+
}
|
|
21
27
|
export declare class FormModel {
|
|
22
28
|
applicationId: number;
|
|
23
29
|
applicationUuid: string;
|
|
@@ -36,6 +42,7 @@ export declare class FormModel {
|
|
|
36
42
|
};
|
|
37
43
|
applicationMappings: ApplicationMappings;
|
|
38
44
|
parentChildConfig?: ParentChildConfig;
|
|
45
|
+
contactMethodConfig?: ContactMethodConfig;
|
|
39
46
|
}
|
|
40
47
|
export declare class AppDataControl {
|
|
41
48
|
controlId: string;
|
|
@@ -69,6 +76,7 @@ export declare class AppDataFill {
|
|
|
69
76
|
};
|
|
70
77
|
flux: AppDataStep[];
|
|
71
78
|
initFlowValues?: any;
|
|
79
|
+
inheritedFields?: Record<string, any>;
|
|
72
80
|
constructor(appDataId?: string, configurationId?: string, currentStepId?: string, statusId?: string, language?: string, flux?: AppDataStep[], offerId?: string, isSubmitted?: boolean, parentAppDataUuid?: string);
|
|
73
81
|
}
|
|
74
82
|
export declare class AppData {
|
|
@@ -318,6 +326,8 @@ export declare class MethodField {
|
|
|
318
326
|
fieldName: string;
|
|
319
327
|
fieldType: StepControlType | FluxType | string;
|
|
320
328
|
manulInputControlType?: ManualInputControlType | undefined;
|
|
329
|
+
fieldValue?: string | undefined;
|
|
330
|
+
expectedValue?: string | undefined;
|
|
321
331
|
}
|
|
322
332
|
export declare class GetMethodField {
|
|
323
333
|
id: string;
|
|
@@ -373,7 +383,8 @@ export declare enum FluxType {
|
|
|
373
383
|
ViewDocument = 14,
|
|
374
384
|
NETOPIA = 15,
|
|
375
385
|
EUPLATESC = 16,
|
|
376
|
-
OpenBanking = 17
|
|
386
|
+
OpenBanking = 17,
|
|
387
|
+
Validation = 18
|
|
377
388
|
}
|
|
378
389
|
export declare enum SectionType {
|
|
379
390
|
Presentation = 0,
|
|
@@ -424,7 +435,8 @@ export declare class StatusModel {
|
|
|
424
435
|
isActive: boolean;
|
|
425
436
|
actions: StatusAction[];
|
|
426
437
|
childApplicationUuids: string[];
|
|
427
|
-
|
|
438
|
+
sendNotifications: boolean;
|
|
439
|
+
constructor(id: string, denumire: string, ordine: number, final: boolean, isActive: boolean, actions: StatusAction[], childApplicationUuids?: string[], sendNotifications?: boolean);
|
|
428
440
|
}
|
|
429
441
|
export declare class StatusAction {
|
|
430
442
|
id?: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormlyField, FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
4
|
import { ApiValidateRequest } from './models/application.model';
|
|
6
5
|
import { DictionaryDto } from './models/dictionary.model';
|
|
7
6
|
import { FormModel, DictionaryControlData } from './models/forms.model';
|
|
@@ -221,13 +220,18 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
|
|
|
221
220
|
ngOnDestroy(): void;
|
|
222
221
|
constructButtons(buttonsConfig: any[]): any[];
|
|
223
222
|
private styleObjectToStringExceptBackground;
|
|
224
|
-
validateMethodApi(data: ApiValidateRequest):
|
|
223
|
+
validateMethodApi(data: ApiValidateRequest): Promise<boolean>;
|
|
225
224
|
/**
|
|
226
225
|
* Public method to clear the saving after actions state
|
|
227
226
|
* Called by stepper component after saveAppDataStep completes
|
|
228
227
|
*/
|
|
229
228
|
clearSavingAfterActionsState(): void;
|
|
230
229
|
loadingMessage: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* Reads Validation step results from fillData, sets model values,
|
|
232
|
+
* and recalculates visible steps so dependents become visible.
|
|
233
|
+
*/
|
|
234
|
+
applyValidationStepResults(fillData: any): void;
|
|
231
235
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollectorFormComponent, never>;
|
|
232
236
|
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; }; "initFlowValues": { "alias": "initFlowValues"; "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>;
|
|
233
237
|
}
|
|
@@ -16,6 +16,7 @@ export declare class TranslationsHelper {
|
|
|
16
16
|
static createPauseTranslations(langs: Language[]): TranslationInfo[];
|
|
17
17
|
static createActionTranslations(langs: Language[]): TranslationInfo[];
|
|
18
18
|
static createStatusTranslations(langs: Language[]): TranslationInfo[];
|
|
19
|
+
static createValidationTranslations(langs: Language[]): TranslationInfo[];
|
|
19
20
|
static createKycTranslations(langs: Language[]): TranslationInfo[];
|
|
20
21
|
static createPaymentsTranslations(langs: Language[]): TranslationInfo[];
|
|
21
22
|
static createOpenBankingTranslations(langs: Language[]): TranslationInfo[];
|
|
@@ -17,7 +17,7 @@ export declare class ApplicationDataService {
|
|
|
17
17
|
saveApp(appData: AppData): Observable<any>;
|
|
18
18
|
saveStep(appDataId: string, currentStep: any, selectedOfferId?: any): Observable<any>;
|
|
19
19
|
getPreviousStep(appDataId: string): Observable<any>;
|
|
20
|
-
validateApi(apiValidateRequest: ApiValidateRequest):
|
|
20
|
+
validateApi(apiValidateRequest: ApiValidateRequest): Promise<boolean>;
|
|
21
21
|
doDocumentRequest(apiValidateRequest: ApiDocumentRequest): Observable<any[]>;
|
|
22
22
|
convertDocumentToPdf(request: ConvertDocumentToPdfRequest): Observable<ConvertDocumentToPdfResponse>;
|
|
23
23
|
makeActionApiCall(actionRequest: MakeActionRequest): Observable<any>;
|