@qbs-origin/origin-form 0.8.0 → 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/action-step-handler.mjs +17 -1
- package/esm2022/lib/formly/formly-field-stepper/formly-field-stepper.component.mjs +8 -6
- 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 +49 -21
- package/esm2022/lib/origin-form.component.mjs +290 -165
- package/esm2022/lib/services/applicationData.service.mjs +15 -8
- package/fesm2022/qbs-origin-origin-form.mjs +500 -196
- package/fesm2022/qbs-origin-origin-form.mjs.map +1 -1
- package/lib/action-step-handler.d.ts +5 -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 +24 -2
- package/lib/origin-form.component.d.ts +2 -2
- package/lib/services/applicationData.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,11 @@ export declare class ActionStepHandler {
|
|
|
24
24
|
* Filters out action steps from the visible steps array
|
|
25
25
|
*/
|
|
26
26
|
filterVisibleSteps(steps: StepData[], stepIds?: string[]): StepData[];
|
|
27
|
+
/**
|
|
28
|
+
* Gets action steps that appear before the first visible step in the flux.
|
|
29
|
+
* These need to be executed on form initialization.
|
|
30
|
+
*/
|
|
31
|
+
getActionStepsBeforeFirstVisibleStep(allSteps: StepData[]): StepData[];
|
|
27
32
|
/**
|
|
28
33
|
* Gets action steps that should be executed when moving to the next step
|
|
29
34
|
*/
|
|
@@ -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;
|
|
@@ -4,6 +4,20 @@ import { DictionaryLabelInfo } from '../others/dictionary-label-info';
|
|
|
4
4
|
import { ApplicationMappings } from './application-type.model';
|
|
5
5
|
import { CssRules } from '../others/utils';
|
|
6
6
|
import { PresentationControl, SectionData, StepData } from './flux.model';
|
|
7
|
+
export declare class NotificationConfig {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
titleTemplate: string;
|
|
10
|
+
messageTemplate: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class InheritedField {
|
|
13
|
+
id: string;
|
|
14
|
+
fieldName: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class ParentChildConfig {
|
|
17
|
+
parentApplicationUuid: string | null;
|
|
18
|
+
inheritedFields: InheritedField[];
|
|
19
|
+
notificationConfig: NotificationConfig;
|
|
20
|
+
}
|
|
7
21
|
export declare class FormModel {
|
|
8
22
|
applicationId: number;
|
|
9
23
|
applicationUuid: string;
|
|
@@ -21,6 +35,7 @@ export declare class FormModel {
|
|
|
21
35
|
[tabName: string]: string[];
|
|
22
36
|
};
|
|
23
37
|
applicationMappings: ApplicationMappings;
|
|
38
|
+
parentChildConfig?: ParentChildConfig;
|
|
24
39
|
}
|
|
25
40
|
export declare class AppDataControl {
|
|
26
41
|
controlId: string;
|
|
@@ -50,10 +65,12 @@ export declare class AppDataFill {
|
|
|
50
65
|
language: string;
|
|
51
66
|
offerId: string;
|
|
52
67
|
isSubmitted: boolean;
|
|
68
|
+
parentAppDataUuid?: string;
|
|
53
69
|
};
|
|
54
70
|
flux: AppDataStep[];
|
|
55
71
|
initFlowValues?: any;
|
|
56
|
-
|
|
72
|
+
inheritedFields?: Record<string, any>;
|
|
73
|
+
constructor(appDataId?: string, configurationId?: string, currentStepId?: string, statusId?: string, language?: string, flux?: AppDataStep[], offerId?: string, isSubmitted?: boolean, parentAppDataUuid?: string);
|
|
57
74
|
}
|
|
58
75
|
export declare class AppData {
|
|
59
76
|
id?: number;
|
|
@@ -65,6 +82,7 @@ export declare class AppData {
|
|
|
65
82
|
blockPreviousStep: boolean;
|
|
66
83
|
env: string;
|
|
67
84
|
status: AppDataStatus;
|
|
85
|
+
parentAppDataUuid?: string;
|
|
68
86
|
constructor(data: {
|
|
69
87
|
id?: number;
|
|
70
88
|
appDataId: string;
|
|
@@ -74,6 +92,7 @@ export declare class AppData {
|
|
|
74
92
|
withNextStep: boolean;
|
|
75
93
|
blockPreviousStep: boolean;
|
|
76
94
|
env: string;
|
|
95
|
+
parentAppDataUuid?: string;
|
|
77
96
|
});
|
|
78
97
|
}
|
|
79
98
|
export declare class FormModelExtenxions {
|
|
@@ -300,6 +319,8 @@ export declare class MethodField {
|
|
|
300
319
|
fieldName: string;
|
|
301
320
|
fieldType: StepControlType | FluxType | string;
|
|
302
321
|
manulInputControlType?: ManualInputControlType | undefined;
|
|
322
|
+
fieldValue?: string | undefined;
|
|
323
|
+
expectedValue?: string | undefined;
|
|
303
324
|
}
|
|
304
325
|
export declare class GetMethodField {
|
|
305
326
|
id: string;
|
|
@@ -405,7 +426,8 @@ export declare class StatusModel {
|
|
|
405
426
|
final: boolean;
|
|
406
427
|
isActive: boolean;
|
|
407
428
|
actions: StatusAction[];
|
|
408
|
-
|
|
429
|
+
childApplicationUuids: string[];
|
|
430
|
+
constructor(id: string, denumire: string, ordine: number, final: boolean, isActive: boolean, actions: StatusAction[], childApplicationUuids?: string[]);
|
|
409
431
|
}
|
|
410
432
|
export declare class StatusAction {
|
|
411
433
|
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';
|
|
@@ -130,6 +129,7 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
|
|
|
130
129
|
private buildFormlyConfigAsync;
|
|
131
130
|
private onSelectedPageChanging;
|
|
132
131
|
private executeActionStepsAfterCurrentStep;
|
|
132
|
+
private executeLeadingActionSteps;
|
|
133
133
|
private onSelectedPageChanged;
|
|
134
134
|
private setPresentationControlValuesRecursively;
|
|
135
135
|
private findControlInFillDataControls;
|
|
@@ -220,7 +220,7 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
|
|
|
220
220
|
ngOnDestroy(): void;
|
|
221
221
|
constructButtons(buttonsConfig: any[]): any[];
|
|
222
222
|
private styleObjectToStringExceptBackground;
|
|
223
|
-
validateMethodApi(data: ApiValidateRequest):
|
|
223
|
+
validateMethodApi(data: ApiValidateRequest): Promise<boolean>;
|
|
224
224
|
/**
|
|
225
225
|
* Public method to clear the saving after actions state
|
|
226
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>;
|