@qbs-origin/origin-form 0.7.0 → 0.8.2

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.
@@ -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,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,32 +65,40 @@ 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
- constructor(appDataId?: string, configurationId?: string, currentStepId?: string, statusId?: string, language?: string, flux?: AppDataStep[], offerId?: string, isSubmitted?: boolean);
71
+ initFlowValues?: any;
72
+ constructor(appDataId?: string, configurationId?: string, currentStepId?: string, statusId?: string, language?: string, flux?: AppDataStep[], offerId?: string, isSubmitted?: boolean, parentAppDataUuid?: string);
56
73
  }
57
74
  export declare class AppData {
58
75
  id?: number;
59
76
  appDataId: string;
60
77
  appConfigurationId: number;
61
78
  fillData?: AppDataFill;
79
+ initFlowValues?: string;
62
80
  withNextStep: boolean;
63
81
  blockPreviousStep: boolean;
64
82
  env: string;
65
83
  status: AppDataStatus;
84
+ parentAppDataUuid?: string;
66
85
  constructor(data: {
67
86
  id?: number;
68
87
  appDataId: string;
69
88
  appConfigurationId: number;
70
89
  fillData?: AppDataFill;
90
+ initFlowValues?: string;
71
91
  withNextStep: boolean;
72
92
  blockPreviousStep: boolean;
73
93
  env: string;
94
+ parentAppDataUuid?: string;
74
95
  });
75
96
  }
76
97
  export declare class FormModelExtenxions {
77
98
  formModel: FormModel;
78
99
  constructor(model: FormModel);
100
+ private addInitFlowValuesItems;
101
+ private buildInitFlowField;
79
102
  fluxItems(untilStepIdentifier?: string | undefined): MethodField[];
80
103
  private extractSectionsFluxItems;
81
104
  private extractDocumentsFluxItems;
@@ -211,6 +234,7 @@ export declare class GeneralDataModel {
211
234
  showNameStep: boolean;
212
235
  showAllSteps: boolean;
213
236
  showProgressBar: boolean;
237
+ initFlowValues?: string;
214
238
  }
215
239
  export interface FormsState {
216
240
  data: FormModel;
@@ -399,7 +423,8 @@ export declare class StatusModel {
399
423
  final: boolean;
400
424
  isActive: boolean;
401
425
  actions: StatusAction[];
402
- constructor(id: string, denumire: string, ordine: number, final: boolean, isActive: boolean, actions: StatusAction[]);
426
+ childApplicationUuids: string[];
427
+ constructor(id: string, denumire: string, ordine: number, final: boolean, isActive: boolean, actions: StatusAction[], childApplicationUuids?: string[]);
403
428
  }
404
429
  export declare class StatusAction {
405
430
  id?: string;
@@ -44,6 +44,7 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
44
44
  signBaseUrl: string;
45
45
  currentLanguageIso: string;
46
46
  fillData: any;
47
+ initFlowValues: string;
47
48
  env: string;
48
49
  showDisplayMode: boolean;
49
50
  showLanguageSelector: boolean;
@@ -129,6 +130,7 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
129
130
  private buildFormlyConfigAsync;
130
131
  private onSelectedPageChanging;
131
132
  private executeActionStepsAfterCurrentStep;
133
+ private executeLeadingActionSteps;
132
134
  private onSelectedPageChanged;
133
135
  private setPresentationControlValuesRecursively;
134
136
  private findControlInFillDataControls;
@@ -227,5 +229,5 @@ export declare class CollectorFormComponent implements OnChanges, OnDestroy {
227
229
  clearSavingAfterActionsState(): void;
228
230
  loadingMessage: string | null;
229
231
  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>;
232
+ 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>;
231
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qbs-origin/origin-form",
3
- "version": "0.7.0",
3
+ "version": "0.8.2",
4
4
  "dependencies": {
5
5
  "@qbs-origin/sign-lib": "^2.1.22",
6
6
  "@ekyc_qoobiss/qbs-ect-cmp": "^5.3.2",