@piserve-tech/form-submission 1.2.1 → 1.2.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/README.md +24 -24
- package/esm2022/element-type/element-type.module.mjs +1 -1
- package/esm2022/element-type/form-elements/form-elements.component.mjs +3 -3
- package/esm2022/form-fields/check-box-fields/check-box-fields.component.mjs +10 -22
- package/esm2022/form-fields/date-time-fields/date-time-fields.component.mjs +3 -3
- package/esm2022/form-fields/drop-down-fields/drop-down-fields.component.mjs +20 -29
- package/esm2022/form-fields/file-picker-fields/file-picker-fields.component.mjs +5 -3
- package/esm2022/form-fields/form-fields.module.mjs +1 -1
- package/esm2022/form-fields/location-fields/location-fields.component.mjs +3 -3
- package/esm2022/form-fields/mail-fields/mail-fields.component.mjs +3 -3
- package/esm2022/form-fields/mobile-fields/mobile-fields.component.mjs +14 -12
- package/esm2022/form-fields/number-fields/number-fields.component.mjs +3 -3
- package/esm2022/form-fields/password-fields/password-fields.component.mjs +3 -3
- package/esm2022/form-fields/radio-button-fields/radio-button-fields.component.mjs +7 -29
- package/esm2022/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.mjs +3 -3
- package/esm2022/form-fields/section-fields/section-fields.component.mjs +3 -3
- package/esm2022/form-fields/selection-matrix-fields/selection-matrix-fields.component.mjs +3 -3
- package/esm2022/form-fields/signature-fields/signature-fields.component.mjs +3 -3
- package/esm2022/form-fields/slider-fields/slider-fields.component.mjs +3 -3
- package/esm2022/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.mjs +3 -3
- package/esm2022/form-fields/text-area-fields/text-area-fields.component.mjs +3 -3
- package/esm2022/form-fields/text-fields/text-fields.component.mjs +3 -3
- package/esm2022/form-fields/toggle-switch-fields/toggle-switch-fields.component.mjs +3 -3
- package/esm2022/form-fields/url-fields/url-fields.component.mjs +3 -3
- package/esm2022/form-submission/form-submission.module.mjs +1 -1
- package/esm2022/form-submission/header/header.component.mjs +3 -3
- package/esm2022/form-submission/navigation-tabs/navigation-tabs.component.mjs +3 -3
- package/esm2022/form-submission/next-prev-navigation/next-prev-navigation.component.mjs +3 -3
- package/esm2022/form-submission/submit-form/submit-form.component.mjs +26 -42
- package/esm2022/lib/form-submission.component.mjs +3 -3
- package/esm2022/lib/form-submission.module.mjs +1 -1
- package/esm2022/lib/form-submission.service.mjs +1 -1
- package/esm2022/logic/first-child/first-child.component.mjs +3 -3
- package/esm2022/logic/forth-child/forth-child.component.mjs +3 -3
- package/esm2022/logic/logic.module.mjs +1 -1
- package/esm2022/logic/second-child/second-child.component.mjs +3 -3
- package/esm2022/logic/third-child/third-child.component.mjs +3 -3
- package/esm2022/models/appearance.model.mjs +1 -1
- package/esm2022/models/attachment.model.mjs +1 -1
- package/esm2022/models/elementOptionAPI.model.mjs +1 -1
- package/esm2022/models/elementOptionAPIData.model.mjs +1 -1
- package/esm2022/models/elementOptionDB.model.mjs +1 -1
- package/esm2022/models/elementOptionDBCriteria.model.mjs +1 -1
- package/esm2022/models/enum/condition.enum.mjs +1 -1
- package/esm2022/models/enum/elementType .enum.mjs +1 -1
- package/esm2022/models/enum/entityType.enum.mjs +1 -1
- package/esm2022/models/formConfiguration.model.mjs +1 -1
- package/esm2022/models/formElement.model.mjs +1 -1
- package/esm2022/models/formElementType.model.mjs +1 -1
- package/esm2022/models/grid.model.mjs +1 -1
- package/esm2022/models/logic.model.mjs +1 -1
- package/esm2022/models/option.model.mjs +1 -1
- package/esm2022/models/page.model.mjs +1 -1
- package/esm2022/models/publicForm.model.mjs +1 -1
- package/esm2022/models/question.model.mjs +1 -1
- package/esm2022/models/row.model.mjs +1 -1
- package/esm2022/models/section.model.mjs +1 -1
- package/esm2022/models/subForm.model.mjs +1 -1
- package/esm2022/models/validation.model.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/question/question/question.component.mjs +3 -3
- package/esm2022/question/question.module.mjs +1 -1
- package/esm2022/services/countryService.mjs +1 -1
- package/esm2022/services/data.service.mjs +1 -1
- package/esm2022/services/form.service.mjs +1 -1
- package/esm2022/services/mapper.service.mjs +1 -1
- package/esm2022/sub-form/sub-form/sub-form.component.mjs +3 -3
- package/esm2022/sub-form/sub-form.module.mjs +1 -1
- package/fesm2022/piserve-tech-form-submission.mjs +124 -179
- package/fesm2022/piserve-tech-form-submission.mjs.map +1 -1
- package/form-fields/check-box-fields/check-box-fields.component.d.ts +0 -1
- package/form-fields/drop-down-fields/drop-down-fields.component.d.ts +2 -5
- package/form-fields/radio-button-fields/radio-button-fields.component.d.ts +1 -2
- package/form-submission/submit-form/submit-form.component.d.ts +8 -22
- package/package.json +2 -2
|
@@ -21,7 +21,6 @@ export declare class CheckBoxFieldsComponent {
|
|
|
21
21
|
constructor(formService: FormService);
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
valueAssigned(): void;
|
|
24
|
-
initializeCustomOption(): void;
|
|
25
24
|
onCheckboxChange(option: any, event: any): void;
|
|
26
25
|
updateChildLogics(question: any): void;
|
|
27
26
|
evaluateCondition(answer: any[], condition: string, inputValue: any): boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
1
|
import { FormService } from '../../services/form.service';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
interface DropDownData {
|
|
@@ -8,7 +7,6 @@ interface DropDownData {
|
|
|
8
7
|
}
|
|
9
8
|
export declare class DropDownFieldsComponent {
|
|
10
9
|
private formService;
|
|
11
|
-
private cdr;
|
|
12
10
|
question: any;
|
|
13
11
|
count: number;
|
|
14
12
|
required: boolean;
|
|
@@ -24,11 +22,10 @@ export declare class DropDownFieldsComponent {
|
|
|
24
22
|
selectedValue: any[];
|
|
25
23
|
validationFailed: boolean;
|
|
26
24
|
validationMessage: string;
|
|
27
|
-
constructor(formService: FormService
|
|
25
|
+
constructor(formService: FormService);
|
|
28
26
|
ngOnInit(): void;
|
|
29
27
|
onValueChange(newValue: any): void;
|
|
30
28
|
valueAssigned(): void;
|
|
31
|
-
initializeCustomOption(): void;
|
|
32
29
|
transformDatabaseObject(database: any): {
|
|
33
30
|
tableName: any;
|
|
34
31
|
valueField: any;
|
|
@@ -41,7 +38,7 @@ export declare class DropDownFieldsComponent {
|
|
|
41
38
|
extractDataByPath(data: any, path: string): any;
|
|
42
39
|
selectItems(): void;
|
|
43
40
|
updateChildLogics(question: any): void;
|
|
44
|
-
evaluateCondition(answer: any
|
|
41
|
+
evaluateCondition(answer: any, condition: string, inputValue: any): boolean;
|
|
45
42
|
evaluateMultipleCondition(answers: any[], condition: string, inputValue: any): boolean;
|
|
46
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownFieldsComponent, never>;
|
|
47
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownFieldsComponent, "lib-drop-down-fields", never, { "question": { "alias": "question"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -15,13 +15,12 @@ export declare class RadioButtonFieldsComponent {
|
|
|
15
15
|
database: any;
|
|
16
16
|
api: any;
|
|
17
17
|
apiOptions: any[];
|
|
18
|
-
selectedOption:
|
|
18
|
+
selectedOption: string;
|
|
19
19
|
validationFailed: boolean;
|
|
20
20
|
validationMessage: string;
|
|
21
21
|
constructor(formService: FormService);
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
valueAssigned(): void;
|
|
24
|
-
initializeOption(): void;
|
|
25
24
|
fetchDataFromLookup(): void;
|
|
26
25
|
fetchDataFromDatabase(): void;
|
|
27
26
|
transformDatabaseObject(database: any): {
|
|
@@ -2,29 +2,12 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { FormService } from '../../services/form.service';
|
|
3
3
|
import { PublicForm } from '../../models/publicForm.model';
|
|
4
4
|
import { ToastrService } from 'ngx-toastr';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface Answer {
|
|
7
|
-
questionId: string;
|
|
8
|
-
answer: any;
|
|
9
|
-
answerId?: string;
|
|
10
|
-
deleteFiles?: string[];
|
|
11
|
-
}
|
|
12
|
-
interface Submission {
|
|
13
|
-
submissionId: string;
|
|
14
|
-
answers: Answer[];
|
|
15
|
-
}
|
|
16
|
-
interface Form {
|
|
17
|
-
formId: string;
|
|
18
|
-
deletedSubmissions: any[];
|
|
19
|
-
submissions: Submission[];
|
|
20
|
-
}
|
|
21
|
-
interface QuestionAnswersWrapper {
|
|
22
|
-
answers: Answer[];
|
|
23
|
-
forms: Form[];
|
|
24
|
-
}
|
|
25
7
|
export declare class SubmitFormComponent implements OnInit {
|
|
26
8
|
private formService;
|
|
27
9
|
private toastr;
|
|
10
|
+
private router;
|
|
28
11
|
question: PublicForm | null;
|
|
29
12
|
moduleName: string;
|
|
30
13
|
edit: boolean;
|
|
@@ -51,12 +34,16 @@ export declare class SubmitFormComponent implements OnInit {
|
|
|
51
34
|
currentPage: any;
|
|
52
35
|
nextPage: any;
|
|
53
36
|
lastTab: boolean;
|
|
54
|
-
questionAnswers:
|
|
37
|
+
questionAnswers: {
|
|
38
|
+
questionId: string;
|
|
39
|
+
answer: any;
|
|
40
|
+
}[];
|
|
55
41
|
files: {
|
|
56
42
|
questionId: string;
|
|
57
43
|
file: any;
|
|
58
44
|
}[];
|
|
59
|
-
|
|
45
|
+
submission: any;
|
|
46
|
+
constructor(formService: FormService, toastr: ToastrService, router: Router);
|
|
60
47
|
ngOnInit(): void;
|
|
61
48
|
getFormData(): void;
|
|
62
49
|
getSubmittedFormData(): void;
|
|
@@ -78,4 +65,3 @@ export declare class SubmitFormComponent implements OnInit {
|
|
|
78
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitFormComponent, never>;
|
|
79
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitFormComponent, "lib-submit-form", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "submissionId": { "alias": "submissionId"; "required": false; }; }, { "submit": "submit"; }, never, never, false, never>;
|
|
80
67
|
}
|
|
81
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piserve-tech/form-submission",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/google-maps": "^16.2.14",
|
|
12
12
|
"@angular/material": "^16.2.14",
|
|
13
13
|
"@fortawesome/fontawesome-free": "^6.5.1",
|
|
14
|
-
"@piserve-tech/drop-down": "^1.
|
|
14
|
+
"@piserve-tech/drop-down": "^1.1.7",
|
|
15
15
|
"@piserve-tech/file-preview": "^1.0.0",
|
|
16
16
|
"@piserve-tech/file-upload": "^1.0.9",
|
|
17
17
|
"@syncfusion/ej2-material-theme": "~25.1.40",
|