@qbs-origin/origin-form 0.8.2 → 0.8.3
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/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/forms.model.mjs +24 -21
- package/esm2022/lib/origin-form.component.mjs +205 -141
- package/esm2022/lib/services/applicationData.service.mjs +15 -8
- package/fesm2022/qbs-origin-origin-form.mjs +367 -167
- package/fesm2022/qbs-origin-origin-form.mjs.map +1 -1
- 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 +3 -0
- package/lib/origin-form.component.d.ts +1 -2
- 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;
|
|
@@ -69,6 +69,7 @@ export declare class AppDataFill {
|
|
|
69
69
|
};
|
|
70
70
|
flux: AppDataStep[];
|
|
71
71
|
initFlowValues?: any;
|
|
72
|
+
inheritedFields?: Record<string, any>;
|
|
72
73
|
constructor(appDataId?: string, configurationId?: string, currentStepId?: string, statusId?: string, language?: string, flux?: AppDataStep[], offerId?: string, isSubmitted?: boolean, parentAppDataUuid?: string);
|
|
73
74
|
}
|
|
74
75
|
export declare class AppData {
|
|
@@ -318,6 +319,8 @@ export declare class MethodField {
|
|
|
318
319
|
fieldName: string;
|
|
319
320
|
fieldType: StepControlType | FluxType | string;
|
|
320
321
|
manulInputControlType?: ManualInputControlType | undefined;
|
|
322
|
+
fieldValue?: string | undefined;
|
|
323
|
+
expectedValue?: string | undefined;
|
|
321
324
|
}
|
|
322
325
|
export declare class GetMethodField {
|
|
323
326
|
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,7 +220,7 @@ 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
|
|
@@ -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>;
|