@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,36 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { SignLibComponent } from 'sign-lib';
|
|
3
|
+
import { ConfigService } from '../../others/config-service';
|
|
4
|
+
import { OriginFormAuthService } from '../../origin-form-auth.service';
|
|
5
|
+
import { DialogService } from '../../services/dialog.service';
|
|
6
|
+
import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FormlySignComponent extends BaseFormlyStepComponent implements OnDestroy {
|
|
9
|
+
authService: OriginFormAuthService;
|
|
10
|
+
private dialog;
|
|
11
|
+
signLib: SignLibComponent;
|
|
12
|
+
canProceed: boolean;
|
|
13
|
+
private _signButtonStyle;
|
|
14
|
+
config: any;
|
|
15
|
+
configService: ConfigService;
|
|
16
|
+
constructor(authService: OriginFormAuthService, cdr: ChangeDetectorRef, dialog: DialogService);
|
|
17
|
+
onInit(): void;
|
|
18
|
+
onPageSelectedAsync(): Promise<void>;
|
|
19
|
+
retryAsync(): Promise<void>;
|
|
20
|
+
getConfig(): Promise<{
|
|
21
|
+
AppDataId: any;
|
|
22
|
+
StepId: string;
|
|
23
|
+
Token: string;
|
|
24
|
+
BaseUrl: string;
|
|
25
|
+
AutoSign: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
private addPhoneNumbertoConfig;
|
|
28
|
+
canAdvance(): boolean;
|
|
29
|
+
libEvent(event: any): void;
|
|
30
|
+
get signButtonStyle(): {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySignComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlySignComponent, "formly-sign", never, {}, {}, never, never, false, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ApplicationDataService } from '../../services/applicationData.service';
|
|
3
|
+
import { UploadDocumentDetails } from '../../models/forms.model';
|
|
4
|
+
import { DialogService } from '../../services/dialog.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ApplicationUploadDocumentsDto } from '../../models/application.model';
|
|
7
|
+
import { BaseFormlyControlComponent } from '../baseFormlyControlComponent';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FormlyUploadDocumentsComponent extends BaseFormlyControlComponent {
|
|
10
|
+
private dialog;
|
|
11
|
+
private appDataService;
|
|
12
|
+
documents: UploadDocumentDetails[];
|
|
13
|
+
mandatoryDocuments: string[];
|
|
14
|
+
isDisabled: boolean;
|
|
15
|
+
constructor(dialog: DialogService, appDataService: ApplicationDataService, cdr: ChangeDetectorRef);
|
|
16
|
+
onInit(): void;
|
|
17
|
+
submitUploadAsync(doc: UploadDocumentDetails, uploadPayload: ApplicationUploadDocumentsDto): Promise<Observable<number>>;
|
|
18
|
+
pullFromUI(doc: UploadDocumentDetails, fileInput: File): Promise<ApplicationUploadDocumentsDto>;
|
|
19
|
+
isValid(): boolean;
|
|
20
|
+
selectFile(event: any, doc: UploadDocumentDetails): void;
|
|
21
|
+
canAdvance(): boolean;
|
|
22
|
+
getNewUploadPayload(): ApplicationUploadDocumentsDto;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyUploadDocumentsComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyUploadDocumentsComponent, "app-formly-upload-documents", never, {}, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { OnInit, AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { OtpService } from '../../services/otp.service';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { DialogService } from '../../services/dialog.service';
|
|
6
|
+
import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FormlyValidateContactInfoComponent extends BaseFormlyStepComponent implements OnInit, AfterViewInit {
|
|
9
|
+
private otpService;
|
|
10
|
+
private dialog;
|
|
11
|
+
private _otpButtonStyle;
|
|
12
|
+
control: FormControl;
|
|
13
|
+
otp: FormControl;
|
|
14
|
+
sent: BehaviorSubject<boolean>;
|
|
15
|
+
isEmail: boolean;
|
|
16
|
+
popMessageKeys: {
|
|
17
|
+
error: {
|
|
18
|
+
failedOtpValidation: string;
|
|
19
|
+
failedToLoadForm: string;
|
|
20
|
+
failedToParseForm: string;
|
|
21
|
+
failedToSaveForm: string;
|
|
22
|
+
failedToPublishDictionary: string;
|
|
23
|
+
failedToLoadDictionary: string;
|
|
24
|
+
failedValidation: string;
|
|
25
|
+
partnerFailed: string;
|
|
26
|
+
documentFailed: string;
|
|
27
|
+
documentWithSameNameAlreadyAdded: string;
|
|
28
|
+
mappingFailed: string;
|
|
29
|
+
invalidValues: string;
|
|
30
|
+
atLeastOneValue: string;
|
|
31
|
+
atLeastOneDependentValue: string;
|
|
32
|
+
atLeastOneLanguage: string;
|
|
33
|
+
mustSelectImageFormat: string;
|
|
34
|
+
cannotDeleteDocWithVersions: string;
|
|
35
|
+
cannotDeleteUsedDocs: string;
|
|
36
|
+
mustSelectDocFile: string;
|
|
37
|
+
insertValidFrom: string;
|
|
38
|
+
validFromOlderThan: string;
|
|
39
|
+
validDateGreaterThan: string;
|
|
40
|
+
insertVersion: string;
|
|
41
|
+
insertName: string;
|
|
42
|
+
documentWithSameVersion: string;
|
|
43
|
+
documentVersionCannotBeLower: string;
|
|
44
|
+
versionCannotBeDeleted: string;
|
|
45
|
+
saveAppBeforeAddingDoc: string;
|
|
46
|
+
needToCompleteVersionEdit: string;
|
|
47
|
+
selectedPartnerAlreadyAdded: string;
|
|
48
|
+
selectedMethodAlreadyAdded: string;
|
|
49
|
+
selectedDocumentAlreadyAdded: string;
|
|
50
|
+
completeCurrentMappingFirst: string;
|
|
51
|
+
selectApiMethod: string;
|
|
52
|
+
publishFail: string;
|
|
53
|
+
selectMethodBeforeAdding: string;
|
|
54
|
+
noStatusesAvailableToClean: string;
|
|
55
|
+
dictionaryCannotBeDeleted: string;
|
|
56
|
+
partnerUsedInActionStep: string;
|
|
57
|
+
methodCannotBeDeleted: string;
|
|
58
|
+
};
|
|
59
|
+
success: {
|
|
60
|
+
dictionarySaved: string;
|
|
61
|
+
succesfullyOtpValidation: string;
|
|
62
|
+
formSaved: string;
|
|
63
|
+
partnerSuccesfulyAdded: string;
|
|
64
|
+
publishSuccess: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
otpValidated: BehaviorSubject<boolean>;
|
|
68
|
+
buttonText: '';
|
|
69
|
+
constructor(otpService: OtpService, dialog: DialogService, cdr: ChangeDetectorRef);
|
|
70
|
+
ngAfterViewInit(): void;
|
|
71
|
+
onPageSelected(): void;
|
|
72
|
+
get otpButtonStyle(): {
|
|
73
|
+
[key: string]: string;
|
|
74
|
+
};
|
|
75
|
+
sendOtp(): void;
|
|
76
|
+
validateOtp(): void;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyValidateContactInfoComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyValidateContactInfoComponent, "app-formly-validate-contact-info", never, {}, {}, never, never, false, never>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ApplicationDataService } from '../../services/applicationData.service';
|
|
3
|
+
import { DialogService } from '../../services/dialog.service';
|
|
4
|
+
import { GeneratedDocument } from '../../models/application.model';
|
|
5
|
+
import { BaseFormlyControlComponent } from '../baseFormlyControlComponent';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FormlyViewDocumentsComponent extends BaseFormlyControlComponent {
|
|
8
|
+
private appDataService;
|
|
9
|
+
private dialog;
|
|
10
|
+
documents: GeneratedDocument[];
|
|
11
|
+
isDownloading: boolean;
|
|
12
|
+
currentIndex: number;
|
|
13
|
+
canGoBack: boolean;
|
|
14
|
+
canGoNext: boolean;
|
|
15
|
+
currentPdf: any;
|
|
16
|
+
currentDocument: GeneratedDocument;
|
|
17
|
+
cachedDocuments: any;
|
|
18
|
+
constructor(appDataService: ApplicationDataService, dialog: DialogService, cdr: ChangeDetectorRef);
|
|
19
|
+
onInit(): void;
|
|
20
|
+
getDocuments(): void;
|
|
21
|
+
orderDocumentsAsConfigured(documents: GeneratedDocument[]): GeneratedDocument[];
|
|
22
|
+
retry(): void;
|
|
23
|
+
onPageSelected(): void;
|
|
24
|
+
showDocument(doc: GeneratedDocument): Promise<void>;
|
|
25
|
+
setCurrentDocument(documentId: string, r: any): void;
|
|
26
|
+
blobToArrayBuffer(blob: any): Promise<unknown>;
|
|
27
|
+
nextDocument(): void;
|
|
28
|
+
prevDocument(): void;
|
|
29
|
+
checkCanGoBackNext(): void;
|
|
30
|
+
private convertToPdf;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyViewDocumentsComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyViewDocumentsComponent, "app-formly-view-documents", never, {}, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ApplicationDataService } from '../../services/applicationData.service';
|
|
3
|
+
import { FormModel } from '../../models/forms.model';
|
|
4
|
+
import { BaseFormlyStepComponent } from '../baseFormlyStepComponent';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FormlyViewOffersComponent extends BaseFormlyStepComponent {
|
|
7
|
+
private appDataService;
|
|
8
|
+
appModel: FormModel;
|
|
9
|
+
offers: any;
|
|
10
|
+
columns: any;
|
|
11
|
+
datasource: any[];
|
|
12
|
+
config: {
|
|
13
|
+
filter: boolean;
|
|
14
|
+
};
|
|
15
|
+
constructor(appDataService: ApplicationDataService, cdr: ChangeDetectorRef);
|
|
16
|
+
onInit(): void;
|
|
17
|
+
onPageSelected(): void;
|
|
18
|
+
configureColumns(): void;
|
|
19
|
+
configureDataSource(): void;
|
|
20
|
+
offerSelected(offer: any): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyViewOffersComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyViewOffersComponent, "app-formly-view-offers", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DictionaryDto, DictionaryValue } from "./models/dictionary.model";
|
|
2
|
+
import { Language } from "./models/language.model";
|
|
3
|
+
export declare class ModelPopulationHelper {
|
|
4
|
+
static populateModelWithFillData(fillData: any, flux: any[], dictionaryMap: Map<string, DictionaryDto>, availableLanguages: Language[]): Record<string, any>;
|
|
5
|
+
static applyDefaultsToModel(flux: any[], dictionaryMap: Map<string, DictionaryDto>, availableLanguages?: Language[]): any;
|
|
6
|
+
static mapDictionaryValueDto(dto: any, availableLanguages: Language[]): DictionaryValue | null;
|
|
7
|
+
static findAndMapDefaultValue(dictionary: DictionaryDto | undefined, defaultValueId: number, availableLanguages: Language[]): DictionaryValue | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class ApplicationTypeDto {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
code: string;
|
|
5
|
+
active: boolean;
|
|
6
|
+
columns: ApplicationTypeColumnDto[] | null;
|
|
7
|
+
created?: Date;
|
|
8
|
+
cretedBy: string;
|
|
9
|
+
lastModified?: Date;
|
|
10
|
+
lastModifiedBy: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class ApplicationTypeColumnDto {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
order: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class ApplicationMappings {
|
|
18
|
+
applicationTypeId: number;
|
|
19
|
+
columnMappings: ApplicationTypeColumnMapping[];
|
|
20
|
+
}
|
|
21
|
+
export declare class ApplicationTypeColumnMapping {
|
|
22
|
+
appDataId: string;
|
|
23
|
+
controlId: string;
|
|
24
|
+
columnId: number;
|
|
25
|
+
columnName: string;
|
|
26
|
+
columnOrder: number;
|
|
27
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ApiData, AppDocument, AppPartner, DesignModel, DisplayModel, GeneralDataModel, StatusModel, UploadDocument } from './forms.model';
|
|
2
|
+
import { ApplicationMappings } from './application-type.model';
|
|
3
|
+
import { CssRules } from '../others/utils';
|
|
4
|
+
import { EnvironmentType } from '../others/environment-type';
|
|
5
|
+
import { StepData } from './flux.model';
|
|
6
|
+
export declare class ApplicationDto {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
appTypeId: number;
|
|
10
|
+
configuration: ApplicationConfiguration;
|
|
11
|
+
canGetFromProd: boolean;
|
|
12
|
+
canGetFromTest: boolean;
|
|
13
|
+
canPublishInProd: boolean;
|
|
14
|
+
canPublishInTest: boolean;
|
|
15
|
+
uuid: string;
|
|
16
|
+
envType: EnvironmentType;
|
|
17
|
+
}
|
|
18
|
+
export declare class ApplicationConfiguration {
|
|
19
|
+
applicationId: number;
|
|
20
|
+
applicationUuid: string;
|
|
21
|
+
generalData: GeneralDataModel;
|
|
22
|
+
design: DesignModel;
|
|
23
|
+
flux: StepData[];
|
|
24
|
+
api: ApiData;
|
|
25
|
+
partners: AppPartner[];
|
|
26
|
+
documents: AppDocument[];
|
|
27
|
+
statuses: StatusModel[];
|
|
28
|
+
display: DisplayModel;
|
|
29
|
+
generatedCss: CssRules;
|
|
30
|
+
metadataFields: [];
|
|
31
|
+
errors: {
|
|
32
|
+
[tabName: string]: string[];
|
|
33
|
+
};
|
|
34
|
+
applicationMappings: ApplicationMappings;
|
|
35
|
+
}
|
|
36
|
+
export declare class ApplicationGenerateDocumentsDto {
|
|
37
|
+
appDataId: string;
|
|
38
|
+
appId: string;
|
|
39
|
+
stepId: string;
|
|
40
|
+
}
|
|
41
|
+
export declare class ApplicationEnrolCardDto {
|
|
42
|
+
appDataId: string;
|
|
43
|
+
appId: string;
|
|
44
|
+
stepId: string;
|
|
45
|
+
}
|
|
46
|
+
export declare class ApplicationGetGeneratedDocumentsDto {
|
|
47
|
+
appDataId: string;
|
|
48
|
+
controlId: string;
|
|
49
|
+
isDisplayMode?: boolean;
|
|
50
|
+
appConfigurationUUID?: string;
|
|
51
|
+
environment?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare class ApplicationUploadDocumentsDto {
|
|
54
|
+
appDataId: string;
|
|
55
|
+
appId: string;
|
|
56
|
+
documents: UploadDocument[];
|
|
57
|
+
env: string;
|
|
58
|
+
controlId: string;
|
|
59
|
+
}
|
|
60
|
+
export declare class ScanIdDto {
|
|
61
|
+
appId: number;
|
|
62
|
+
appDataId: string;
|
|
63
|
+
stepId: string;
|
|
64
|
+
oldIdCard: boolean;
|
|
65
|
+
photos: {
|
|
66
|
+
base64: string;
|
|
67
|
+
}[];
|
|
68
|
+
}
|
|
69
|
+
export declare class ApiValidateRequest {
|
|
70
|
+
appId: number;
|
|
71
|
+
apiId: string;
|
|
72
|
+
data: string;
|
|
73
|
+
}
|
|
74
|
+
export declare class ApiDocumentRequest {
|
|
75
|
+
appDataId: string;
|
|
76
|
+
documentId: string;
|
|
77
|
+
appConfigurationUUID?: string;
|
|
78
|
+
environment?: string;
|
|
79
|
+
}
|
|
80
|
+
export declare class MakeActionRequest {
|
|
81
|
+
appDataId: string;
|
|
82
|
+
stepId: string;
|
|
83
|
+
setNextStep: boolean;
|
|
84
|
+
}
|
|
85
|
+
export declare class GeneratedDocument {
|
|
86
|
+
documentId: string;
|
|
87
|
+
name: string;
|
|
88
|
+
fileName: string;
|
|
89
|
+
path: string;
|
|
90
|
+
version: number;
|
|
91
|
+
stepId: string;
|
|
92
|
+
isApiDocument: boolean;
|
|
93
|
+
content: string;
|
|
94
|
+
}
|
|
95
|
+
export declare class ConvertDocumentToPdfRequest {
|
|
96
|
+
content: string;
|
|
97
|
+
fileName: string;
|
|
98
|
+
documentId: string;
|
|
99
|
+
appDataId: string;
|
|
100
|
+
appConfigurationUUID?: string;
|
|
101
|
+
environment?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare class ConvertDocumentToPdfResponse {
|
|
104
|
+
pdfContent: string;
|
|
105
|
+
success: boolean;
|
|
106
|
+
errorMessage?: string;
|
|
107
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UserForAuthenticationDto {
|
|
2
|
+
client_id: string;
|
|
3
|
+
client_secret: string;
|
|
4
|
+
grant_type: string;
|
|
5
|
+
scope: string;
|
|
6
|
+
username: string;
|
|
7
|
+
password: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UserForAuthenticationDtoRefresh {
|
|
10
|
+
client_id: string;
|
|
11
|
+
refresh_token: string;
|
|
12
|
+
grant_type: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AuthResponseDto {
|
|
15
|
+
access_token: string;
|
|
16
|
+
expires_in: number;
|
|
17
|
+
token_type: string;
|
|
18
|
+
refresh_token: string;
|
|
19
|
+
scope: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { EnvironmentType } from "../others/environment-type";
|
|
2
|
+
export declare class DictionaryDto {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
parentId?: number | undefined;
|
|
6
|
+
referenceId?: number;
|
|
7
|
+
locked: boolean;
|
|
8
|
+
valuesLocked: boolean;
|
|
9
|
+
active: boolean;
|
|
10
|
+
values: DictionaryValueDto[] | null;
|
|
11
|
+
referenceDictionary?: DictionaryDto | null;
|
|
12
|
+
parentDictionary?: DictionaryDto | null;
|
|
13
|
+
languages?: LanguageDto[] | null;
|
|
14
|
+
uuid: string;
|
|
15
|
+
env: EnvironmentType;
|
|
16
|
+
canPublishInTest: boolean;
|
|
17
|
+
canPublishInProd: boolean;
|
|
18
|
+
canGetFromTest: boolean;
|
|
19
|
+
canGetFromProd: boolean;
|
|
20
|
+
referredInDictionariesUUIds: string[];
|
|
21
|
+
defaultValueId?: number | null;
|
|
22
|
+
}
|
|
23
|
+
export declare class DictionaryAppDependencyDto {
|
|
24
|
+
isUsed: boolean;
|
|
25
|
+
applicationsUUID: string[] | null;
|
|
26
|
+
}
|
|
27
|
+
export declare class DictionaryValueDto {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
dictionaryId: number;
|
|
31
|
+
dictionaryUUID: string;
|
|
32
|
+
parentDictionaryId?: number | null;
|
|
33
|
+
locked: boolean;
|
|
34
|
+
active: boolean;
|
|
35
|
+
childDictionaryId: number | null;
|
|
36
|
+
childDictionaryUUID: string | null;
|
|
37
|
+
valueTranslations: TranslationDto[];
|
|
38
|
+
referenceValues: DictionaryValueDto[];
|
|
39
|
+
}
|
|
40
|
+
export declare class TranslationDto {
|
|
41
|
+
id: number;
|
|
42
|
+
languageId: number;
|
|
43
|
+
value: string;
|
|
44
|
+
}
|
|
45
|
+
export declare class LanguageDto {
|
|
46
|
+
id: number;
|
|
47
|
+
name: string;
|
|
48
|
+
iso: string;
|
|
49
|
+
}
|
|
50
|
+
export declare class Dictionary {
|
|
51
|
+
id: number;
|
|
52
|
+
uuid: string;
|
|
53
|
+
env: EnvironmentType;
|
|
54
|
+
name: string;
|
|
55
|
+
active: boolean;
|
|
56
|
+
parentId?: number | null;
|
|
57
|
+
parentDictionaryValueId?: number | null;
|
|
58
|
+
referenceId?: number;
|
|
59
|
+
selectedLanguages: number[];
|
|
60
|
+
values?: DictionaryValue[];
|
|
61
|
+
}
|
|
62
|
+
export declare class DictionaryValue {
|
|
63
|
+
id: number | 0;
|
|
64
|
+
name: string | null;
|
|
65
|
+
translations: Translation[];
|
|
66
|
+
locked: boolean;
|
|
67
|
+
active: boolean;
|
|
68
|
+
dictionaryUUID?: string;
|
|
69
|
+
childDictionaryId?: number | null;
|
|
70
|
+
childDictionaryUUID?: string | null;
|
|
71
|
+
referenceValues: DictionaryValue[];
|
|
72
|
+
}
|
|
73
|
+
export declare class Translation {
|
|
74
|
+
languageId: number;
|
|
75
|
+
languageIso: string;
|
|
76
|
+
value: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ButtonConfig, DimensionType, ErrorTranslations } from "./forms.model";
|
|
2
|
+
import { LabelInfo, TranslationInfo } from "./label-info.model";
|
|
3
|
+
export declare class DependentDictionaryData {
|
|
4
|
+
isDictionaryDependent: boolean;
|
|
5
|
+
dictionaryControlIdentifier: string;
|
|
6
|
+
dependentValueIds: number[];
|
|
7
|
+
configuringType?: 'step' | 'section' | 'component';
|
|
8
|
+
configuringId?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TranslationItem {
|
|
11
|
+
languageId: number;
|
|
12
|
+
languageIso: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class SectionData {
|
|
16
|
+
identifier: string;
|
|
17
|
+
title: string;
|
|
18
|
+
type: number;
|
|
19
|
+
controls: ControlData[];
|
|
20
|
+
presentationControls?: PresentationControl[];
|
|
21
|
+
isNavigationSection?: boolean;
|
|
22
|
+
canDepend?: boolean;
|
|
23
|
+
translations?: LabelInfo[];
|
|
24
|
+
collapsed?: boolean;
|
|
25
|
+
showSectionTitle?: boolean;
|
|
26
|
+
showSectionSeparator?: boolean;
|
|
27
|
+
dependentDictionary?: DependentDictionaryData;
|
|
28
|
+
titleStyle?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class BaseControl {
|
|
31
|
+
title: string;
|
|
32
|
+
identifier: string;
|
|
33
|
+
translations: LabelInfo[];
|
|
34
|
+
dimension: number;
|
|
35
|
+
dimensionType: DimensionType;
|
|
36
|
+
autoDimension: boolean;
|
|
37
|
+
canEdit: boolean;
|
|
38
|
+
specificControlData: any;
|
|
39
|
+
isPresentationControl: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare enum StepControlType {
|
|
42
|
+
ManualInput = 0,
|
|
43
|
+
Paragraph = 1,
|
|
44
|
+
CheckBox = 2,
|
|
45
|
+
Dictionary = 3,
|
|
46
|
+
Buttons = 4,
|
|
47
|
+
FluxInfo = 5,
|
|
48
|
+
NewRow = 6,
|
|
49
|
+
Metadata = 7,
|
|
50
|
+
ApiMethodField = 8,
|
|
51
|
+
DownloadDocuments = 9,
|
|
52
|
+
ViewDocuments = 10,
|
|
53
|
+
UploadDocuments = 11
|
|
54
|
+
}
|
|
55
|
+
export declare enum PresentationControlType {
|
|
56
|
+
FluxComponent = 0,
|
|
57
|
+
Download = 1,
|
|
58
|
+
Paragraph = 2,
|
|
59
|
+
View = 3,
|
|
60
|
+
NewRow = 4,
|
|
61
|
+
Status = 5,
|
|
62
|
+
ApiMethod = 6
|
|
63
|
+
}
|
|
64
|
+
export declare class ControlData extends BaseControl {
|
|
65
|
+
type: StepControlType;
|
|
66
|
+
dependentDictionary: DependentDictionaryData;
|
|
67
|
+
canDepend: boolean;
|
|
68
|
+
isOnlyForConfig: boolean;
|
|
69
|
+
isMandatory: boolean;
|
|
70
|
+
errorsTranslations: ErrorTranslations[];
|
|
71
|
+
}
|
|
72
|
+
export declare class PresentationControl extends BaseControl {
|
|
73
|
+
type: PresentationControlType;
|
|
74
|
+
collectionControlIdentifier?: string | undefined;
|
|
75
|
+
apiMethodId?: string | undefined;
|
|
76
|
+
apiMethodFieldId?: string | undefined;
|
|
77
|
+
}
|
|
78
|
+
export interface StepData {
|
|
79
|
+
identifier: string;
|
|
80
|
+
name: string;
|
|
81
|
+
type: number;
|
|
82
|
+
sections: SectionData[];
|
|
83
|
+
isVisible?: boolean;
|
|
84
|
+
config?: any;
|
|
85
|
+
translations: TranslationInfo[];
|
|
86
|
+
panelOpenState?: boolean;
|
|
87
|
+
buttons: ButtonConfig[];
|
|
88
|
+
dependentDictionary?: DependentDictionaryData;
|
|
89
|
+
errorsTranslations: ErrorTranslations[];
|
|
90
|
+
hasNameAndDescription?: boolean;
|
|
91
|
+
canDepend?: boolean;
|
|
92
|
+
collapsed?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export declare const ComponentTypeDetails: Record<string, {
|
|
95
|
+
icon: string;
|
|
96
|
+
label: string;
|
|
97
|
+
}>;
|
|
98
|
+
export declare const StepTypeDetails: Record<string, {
|
|
99
|
+
icon: string;
|
|
100
|
+
label: string;
|
|
101
|
+
}>;
|