@piserve-tech/form-submission 0.0.0-watch
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/element-type/element-type.module.d.ts +12 -0
- package/element-type/form-elements/form-elements.component.d.ts +7 -0
- package/element-type/question/question.component.d.ts +14 -0
- package/element-type/sub-form/sub-form.component.d.ts +6 -0
- package/esm2022/element-type/element-type.module.mjs +36 -0
- package/esm2022/element-type/form-elements/form-elements.component.mjs +23 -0
- package/esm2022/element-type/question/question.component.mjs +52 -0
- package/esm2022/element-type/sub-form/sub-form.component.mjs +17 -0
- package/esm2022/form-fields/check-box-fields/check-box-fields.component.mjs +198 -0
- package/esm2022/form-fields/date-time-fields/date-time-fields.component.mjs +155 -0
- package/esm2022/form-fields/drop-down-fields/drop-down-fields.component.mjs +147 -0
- package/esm2022/form-fields/file-picker-fields/file-picker-fields.component.mjs +77 -0
- package/esm2022/form-fields/form-fields.module.mjs +154 -0
- package/esm2022/form-fields/location-fields/location-fields.component.mjs +79 -0
- package/esm2022/form-fields/mail-fields/mail-fields.component.mjs +75 -0
- package/esm2022/form-fields/mobile-fields/mobile-fields.component.mjs +81 -0
- package/esm2022/form-fields/number-fields/number-fields.component.mjs +59 -0
- package/esm2022/form-fields/password-fields/password-fields.component.mjs +172 -0
- package/esm2022/form-fields/radio-button-fields/radio-button-fields.component.mjs +129 -0
- package/esm2022/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.mjs +89 -0
- package/esm2022/form-fields/section-fields/section-fields.component.mjs +16 -0
- package/esm2022/form-fields/selection-matrix-fields/selection-matrix-fields.component.mjs +27 -0
- package/esm2022/form-fields/signature-fields/signature-fields.component.mjs +29 -0
- package/esm2022/form-fields/slider-fields/slider-fields.component.mjs +60 -0
- package/esm2022/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.mjs +27 -0
- package/esm2022/form-fields/text-area-fields/text-area-fields.component.mjs +61 -0
- package/esm2022/form-fields/text-fields/text-fields.component.mjs +86 -0
- package/esm2022/form-fields/toggle-switch-fields/toggle-switch-fields.component.mjs +42 -0
- package/esm2022/form-fields/url-fields/url-fields.component.mjs +59 -0
- package/esm2022/form-submission/form-submission.module.mjs +42 -0
- package/esm2022/form-submission/header/header.component.mjs +16 -0
- package/esm2022/form-submission/logic/logic.component.mjs +17 -0
- package/esm2022/form-submission/navigation-tabs/navigation-tabs.component.mjs +27 -0
- package/esm2022/form-submission/next-prev-navigation/next-prev-navigation.component.mjs +42 -0
- package/esm2022/form-submission/submit-form/submit-form.component.mjs +157 -0
- package/esm2022/lib/form-submission.component.mjs +23 -0
- package/esm2022/lib/form-submission.module.mjs +45 -0
- package/esm2022/lib/form-submission.service.mjs +14 -0
- package/esm2022/logic/logic/logic.component.mjs +17 -0
- package/esm2022/logic/logic.module.mjs +20 -0
- package/esm2022/models/appearance.model.mjs +2 -0
- package/esm2022/models/elementOptionAPI.model.mjs +2 -0
- package/esm2022/models/elementOptionAPIData.model.mjs +2 -0
- package/esm2022/models/elementOptionDB.model.mjs +2 -0
- package/esm2022/models/elementOptionDBCriteria.model.mjs +2 -0
- package/esm2022/models/enum/condition.enum.mjs +18 -0
- package/esm2022/models/enum/elementType .enum.mjs +24 -0
- package/esm2022/models/enum/entityType.enum.mjs +12 -0
- package/esm2022/models/formConfiguration.model.mjs +2 -0
- package/esm2022/models/formElement.model.mjs +2 -0
- package/esm2022/models/formElementType.model.mjs +2 -0
- package/esm2022/models/grid.model.mjs +2 -0
- package/esm2022/models/logic.model.mjs +2 -0
- package/esm2022/models/option.model.mjs +2 -0
- package/esm2022/models/page.model.mjs +2 -0
- package/esm2022/models/publicForm.model.mjs +2 -0
- package/esm2022/models/question.model.mjs +2 -0
- package/esm2022/models/row.model.mjs +2 -0
- package/esm2022/models/section.model.mjs +2 -0
- package/esm2022/models/subForm.model.mjs +2 -0
- package/esm2022/models/validation.model.mjs +2 -0
- package/esm2022/piserve-tech-form-submission.mjs +5 -0
- package/esm2022/public-api.mjs +7 -0
- package/esm2022/services/countryService.mjs +65 -0
- package/esm2022/services/data.service.mjs +26 -0
- package/esm2022/services/form.service.mjs +43 -0
- package/esm2022/services/mapper.service.mjs +256 -0
- package/fesm2022/piserve-tech-form-submission.mjs +2558 -0
- package/fesm2022/piserve-tech-form-submission.mjs.map +1 -0
- package/form-fields/check-box-fields/check-box-fields.component.d.ts +42 -0
- package/form-fields/date-time-fields/date-time-fields.component.d.ts +41 -0
- package/form-fields/drop-down-fields/drop-down-fields.component.d.ts +45 -0
- package/form-fields/file-picker-fields/file-picker-fields.component.d.ts +24 -0
- package/form-fields/form-fields.module.d.ts +36 -0
- package/form-fields/location-fields/location-fields.component.d.ts +24 -0
- package/form-fields/mail-fields/mail-fields.component.d.ts +21 -0
- package/form-fields/mobile-fields/mobile-fields.component.d.ts +45 -0
- package/form-fields/number-fields/number-fields.component.d.ts +22 -0
- package/form-fields/password-fields/password-fields.component.d.ts +35 -0
- package/form-fields/radio-button-fields/radio-button-fields.component.d.ts +39 -0
- package/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.d.ts +24 -0
- package/form-fields/section-fields/section-fields.component.d.ts +6 -0
- package/form-fields/selection-matrix-fields/selection-matrix-fields.component.d.ts +10 -0
- package/form-fields/signature-fields/signature-fields.component.d.ts +12 -0
- package/form-fields/slider-fields/slider-fields.component.d.ts +25 -0
- package/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.d.ts +10 -0
- package/form-fields/text-area-fields/text-area-fields.component.d.ts +22 -0
- package/form-fields/text-fields/text-fields.component.d.ts +30 -0
- package/form-fields/toggle-switch-fields/toggle-switch-fields.component.d.ts +16 -0
- package/form-fields/url-fields/url-fields.component.d.ts +22 -0
- package/form-submission/form-submission.module.d.ts +14 -0
- package/form-submission/header/header.component.d.ts +6 -0
- package/form-submission/logic/logic.component.d.ts +6 -0
- package/form-submission/navigation-tabs/navigation-tabs.component.d.ts +10 -0
- package/form-submission/next-prev-navigation/next-prev-navigation.component.d.ts +15 -0
- package/form-submission/submit-form/submit-form.component.d.ts +43 -0
- package/index.d.ts +5 -0
- package/lib/form-submission.component.d.ts +10 -0
- package/lib/form-submission.module.d.ts +14 -0
- package/lib/form-submission.service.d.ts +6 -0
- package/logic/logic/logic.component.d.ts +6 -0
- package/logic/logic.module.d.ts +8 -0
- package/models/appearance.model.d.ts +48 -0
- package/models/elementOptionAPI.model.d.ts +11 -0
- package/models/elementOptionAPIData.model.d.ts +5 -0
- package/models/elementOptionDB.model.d.ts +7 -0
- package/models/elementOptionDBCriteria.model.d.ts +7 -0
- package/models/enum/condition.enum.d.ts +16 -0
- package/models/enum/elementType .enum.d.ts +22 -0
- package/models/enum/entityType.enum.d.ts +10 -0
- package/models/formConfiguration.model.d.ts +16 -0
- package/models/formElement.model.d.ts +12 -0
- package/models/formElementType.model.d.ts +5 -0
- package/models/grid.model.d.ts +8 -0
- package/models/logic.model.d.ts +8 -0
- package/models/option.model.d.ts +11 -0
- package/models/page.model.d.ts +5 -0
- package/models/publicForm.model.d.ts +7 -0
- package/models/question.model.d.ts +14 -0
- package/models/row.model.d.ts +4 -0
- package/models/section.model.d.ts +5 -0
- package/models/subForm.model.d.ts +8 -0
- package/models/validation.model.d.ts +44 -0
- package/package.json +43 -0
- package/public-api.d.ts +3 -0
- package/services/countryService.d.ts +21 -0
- package/services/data.service.d.ts +13 -0
- package/services/form.service.d.ts +17 -0
- package/services/mapper.service.d.ts +10 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormService } from '../../services/form.service';
|
|
3
|
+
import { PublicForm } from '../../models/publicForm.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SubmitFormComponent implements OnInit {
|
|
6
|
+
private formService;
|
|
7
|
+
question: PublicForm | null;
|
|
8
|
+
moduleName: string;
|
|
9
|
+
name: string;
|
|
10
|
+
saveAutomatically: boolean;
|
|
11
|
+
saveInterval: number;
|
|
12
|
+
customizeFont: boolean;
|
|
13
|
+
fontFamily: string;
|
|
14
|
+
fontSize: number;
|
|
15
|
+
enableDataExport: boolean;
|
|
16
|
+
fileFormats: string[];
|
|
17
|
+
enableQuestionNumbering: boolean;
|
|
18
|
+
questionNumbering: string;
|
|
19
|
+
enableGoogleRecaptcha: boolean;
|
|
20
|
+
googleRecaptchaKey: string;
|
|
21
|
+
googleRecaptchaSecret: string;
|
|
22
|
+
navigation: string;
|
|
23
|
+
markAllQuestionsAsRequired: boolean;
|
|
24
|
+
pages: any;
|
|
25
|
+
currentPageIndex: number;
|
|
26
|
+
previousPage: any;
|
|
27
|
+
currentPage: any;
|
|
28
|
+
nextPage: any;
|
|
29
|
+
lastTab: boolean;
|
|
30
|
+
validations: any;
|
|
31
|
+
questionAnswers: {
|
|
32
|
+
questionId: string;
|
|
33
|
+
answer: any;
|
|
34
|
+
}[];
|
|
35
|
+
constructor(formService: FormService);
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
navigateToNextPage(): void;
|
|
38
|
+
navigateToPreviousPage(): void;
|
|
39
|
+
setCurrentPage(index: number): void;
|
|
40
|
+
generateQuestionAnswers(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitFormComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitFormComponent, "lib-submit-form", never, { "moduleName": { "alias": "moduleName"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataService } from '../services/data.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormSubmissionComponent {
|
|
4
|
+
private dataService;
|
|
5
|
+
formData: any;
|
|
6
|
+
constructor(dataService: DataService);
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmissionComponent, "lib-formSubmission", never, { "formData": { "alias": "formData"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./form-submission.component";
|
|
3
|
+
import * as i2 from "@piserve-tech/drop-down";
|
|
4
|
+
import * as i3 from "@piserve-tech/file-preview";
|
|
5
|
+
import * as i4 from "@piserve-tech/file-upload";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/material/tabs";
|
|
8
|
+
import * as i7 from "../form-fields/form-fields.module";
|
|
9
|
+
import * as i8 from "../form-submission/form-submission.module";
|
|
10
|
+
export declare class FormSubmissionModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormSubmissionModule, [typeof i1.FormSubmissionComponent], [typeof i2.DropdownModule, typeof i3.FilePreviewModule, typeof i4.DocUploadModule, typeof i5.FormsModule, typeof i6.MatTabsModule, typeof i7.FormFieldsModule, typeof i8.FormSubmitModule], [typeof i1.FormSubmissionComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormSubmissionModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class LogicComponent {
|
|
3
|
+
childLogics: any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogicComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LogicComponent, "lib-logic", never, { "childLogics": { "alias": "childLogics"; "required": false; }; }, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./logic/logic.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class LogicModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogicModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LogicModule, [typeof i1.LogicComponent], [typeof i2.CommonModule], [typeof i1.LogicComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LogicModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface Appearance {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
fontSize?: number;
|
|
4
|
+
textAlign?: string;
|
|
5
|
+
font?: string;
|
|
6
|
+
underline?: boolean;
|
|
7
|
+
bold?: boolean;
|
|
8
|
+
italics?: boolean;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
numberOfRows?: number;
|
|
11
|
+
singleSelection?: boolean;
|
|
12
|
+
displayCountryCode?: boolean;
|
|
13
|
+
displayFlag?: boolean;
|
|
14
|
+
displayCode?: boolean;
|
|
15
|
+
showCountryName?: boolean;
|
|
16
|
+
beautifyNumbers?: boolean;
|
|
17
|
+
upAndDownButton?: boolean;
|
|
18
|
+
allowNegativeValues?: boolean;
|
|
19
|
+
showPreviewButton?: boolean;
|
|
20
|
+
confirmPassword?: boolean;
|
|
21
|
+
viewButton?: boolean;
|
|
22
|
+
displayStrong?: boolean;
|
|
23
|
+
dateType?: string;
|
|
24
|
+
format?: string;
|
|
25
|
+
setCurrentPosition?: boolean;
|
|
26
|
+
defaultZoomLevel?: number;
|
|
27
|
+
allowFullScreen?: boolean;
|
|
28
|
+
latitude?: string;
|
|
29
|
+
longitude?: string;
|
|
30
|
+
showAcceptButton?: boolean;
|
|
31
|
+
labelOnValue?: string;
|
|
32
|
+
labelOffValue?: string;
|
|
33
|
+
labelOnColor?: string;
|
|
34
|
+
labelOffColor?: string;
|
|
35
|
+
minValue?: number;
|
|
36
|
+
maxValue?: number;
|
|
37
|
+
stepValue?: number;
|
|
38
|
+
changeSliderColor?: boolean;
|
|
39
|
+
sliderColor?: string;
|
|
40
|
+
canvasOption?: string;
|
|
41
|
+
selectionType?: string;
|
|
42
|
+
dragAndDrop?: boolean;
|
|
43
|
+
previewUploadedFiles?: boolean;
|
|
44
|
+
multiFileUploads?: boolean;
|
|
45
|
+
selectionColorRequired?: boolean;
|
|
46
|
+
selectionColor?: string;
|
|
47
|
+
color?: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { elementOptionAPIData } from "./elementOptionAPIData.model";
|
|
2
|
+
export interface ElementOptionAPI {
|
|
3
|
+
external?: boolean;
|
|
4
|
+
url?: string;
|
|
5
|
+
valueField?: string;
|
|
6
|
+
labelField?: string;
|
|
7
|
+
pathToValue?: string;
|
|
8
|
+
headers?: elementOptionAPIData[];
|
|
9
|
+
params?: elementOptionAPIData[];
|
|
10
|
+
pathVariables?: elementOptionAPIData[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum Condition {
|
|
2
|
+
EQUAL = "=",
|
|
3
|
+
GREATER_THAN = ">",
|
|
4
|
+
LESS_THAN = "<",
|
|
5
|
+
GREATER_THAN_OR_EQUAL = ">=",
|
|
6
|
+
LESS_THAN_OR_EQUAL = "<=",
|
|
7
|
+
NOT_EQUAL = "!=",
|
|
8
|
+
CONTAINS = "LIKE",
|
|
9
|
+
NOT_CONTAINS = "NOT LIKE",
|
|
10
|
+
BEGIN_WITH = "BEGIN WITH",
|
|
11
|
+
END_WITH = "END WITH",
|
|
12
|
+
IN = "IN",
|
|
13
|
+
NOT_IN = "NOT IN",
|
|
14
|
+
IS_NULL = "IS NULL",
|
|
15
|
+
IS_NOT_NULL = "IS NOT NULL"
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum ElementType {
|
|
2
|
+
TEXT_AREA = "TEXT_AREA",
|
|
3
|
+
TEXT_BOX = "TEXT_BOX",
|
|
4
|
+
RICH_TEXT_EDITOR = "RICH_TEXT_EDITOR",
|
|
5
|
+
DROP_DOWN = "DROP_DOWN",
|
|
6
|
+
MOBILE = "MOBILE",
|
|
7
|
+
EMAIL = "EMAIL",
|
|
8
|
+
NUMBER = "NUMBER",
|
|
9
|
+
URL = "URL",
|
|
10
|
+
PASSWORD = "PASSWORD",
|
|
11
|
+
DATE_TIME = "DATE_TIME",
|
|
12
|
+
LOCATION = "LOCATION",
|
|
13
|
+
TERMS_AND_CONDITION = "TERMS_AND_CONDITION",
|
|
14
|
+
TOGGLE_SWITCH = "TOGGLE_SWITCH",
|
|
15
|
+
SLIDER = "SLIDER",
|
|
16
|
+
SIGNATURE = "SIGNATURE",
|
|
17
|
+
CHECK_BOX = "CHECK_BOX",
|
|
18
|
+
FILE_PICKER = "FILE_PICKER",
|
|
19
|
+
RADIO_BUTTON = "RADIO_BUTTON",
|
|
20
|
+
HELP_TEXT = "HELP_TEXT",
|
|
21
|
+
SELECTION_MATRIX = "SELECTION_MATRIX"
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface FormConfiguration {
|
|
2
|
+
saveAutomatically: boolean;
|
|
3
|
+
saveInterval: number;
|
|
4
|
+
customizeFont: boolean;
|
|
5
|
+
fontFamily: string;
|
|
6
|
+
fontSize: number;
|
|
7
|
+
enableDataExport: boolean;
|
|
8
|
+
fileFormats: string[];
|
|
9
|
+
enableQuestionNumbering: boolean;
|
|
10
|
+
questionNumbering: string;
|
|
11
|
+
enableGoogleRecaptcha: boolean;
|
|
12
|
+
googleRecaptchaKey: string;
|
|
13
|
+
googleRecaptchaSecret: string;
|
|
14
|
+
navigation: string;
|
|
15
|
+
markAllQuestionsAsRequired: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Appearance } from './appearance.model';
|
|
2
|
+
import { Validation } from './validation.model';
|
|
3
|
+
import { Option } from './option.model';
|
|
4
|
+
import { ElementType } from './enum/elementType .enum';
|
|
5
|
+
export interface FormElement {
|
|
6
|
+
elementType: ElementType;
|
|
7
|
+
appearance: Appearance;
|
|
8
|
+
validation: Validation;
|
|
9
|
+
option: Option;
|
|
10
|
+
selectionMatrixLabel?: string[];
|
|
11
|
+
selectionMatrixColumn?: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityType } from './enum/entityType.enum';
|
|
2
|
+
import { Question } from './question.model';
|
|
3
|
+
import { Section } from './section.model';
|
|
4
|
+
import { SubForm } from './subForm.model';
|
|
5
|
+
export interface Grid {
|
|
6
|
+
entityType: EntityType;
|
|
7
|
+
formElementType: Section | Question | SubForm;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementOptionAPI } from "./elementOptionAPI.model";
|
|
2
|
+
import { ElementOptionDB } from "./elementOptionDB.model";
|
|
3
|
+
export interface Option {
|
|
4
|
+
optionType?: string;
|
|
5
|
+
lookupTable?: string | null;
|
|
6
|
+
customOptions?: Array<{
|
|
7
|
+
value: string;
|
|
8
|
+
}>;
|
|
9
|
+
database?: ElementOptionDB;
|
|
10
|
+
api?: ElementOptionAPI;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormElement } from './formElement.model';
|
|
2
|
+
import { Logic } from './logic.model';
|
|
3
|
+
export interface Question {
|
|
4
|
+
count: number;
|
|
5
|
+
id: string;
|
|
6
|
+
questionNumber: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
hint: string | null;
|
|
9
|
+
question: string;
|
|
10
|
+
answer: any;
|
|
11
|
+
validation: boolean;
|
|
12
|
+
formElement: FormElement;
|
|
13
|
+
childLogics: Logic[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface Validation {
|
|
2
|
+
regexValidation?: boolean;
|
|
3
|
+
regex?: string;
|
|
4
|
+
validationMessage?: string;
|
|
5
|
+
limitedCharacters?: boolean;
|
|
6
|
+
count?: number;
|
|
7
|
+
minimumSelection?: number;
|
|
8
|
+
maximumSelection?: number;
|
|
9
|
+
countryWiseValidation?: boolean;
|
|
10
|
+
restrictCountry?: boolean;
|
|
11
|
+
allowedCountry?: string;
|
|
12
|
+
blockedCountry?: string;
|
|
13
|
+
regularExpression?: string;
|
|
14
|
+
expectedDomains?: string;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
minLength?: number;
|
|
18
|
+
maxLength?: number;
|
|
19
|
+
requireLowercaseLetters?: boolean;
|
|
20
|
+
requireUppercaseLetters?: boolean;
|
|
21
|
+
requireNumbers?: boolean;
|
|
22
|
+
requireSpecialCharacters?: boolean;
|
|
23
|
+
allowedSpecialCharacters?: string;
|
|
24
|
+
minDateOption?: string;
|
|
25
|
+
minDate?: string;
|
|
26
|
+
maxDateOption?: string;
|
|
27
|
+
maxDate?: string;
|
|
28
|
+
regionBoundary?: boolean;
|
|
29
|
+
region?: string;
|
|
30
|
+
preventFromProceedingWithoutAgree?: boolean;
|
|
31
|
+
buttonColour?: string;
|
|
32
|
+
maxFileSize?: number;
|
|
33
|
+
minFileSize?: number;
|
|
34
|
+
minSelection?: number;
|
|
35
|
+
maxSelection?: number;
|
|
36
|
+
fileTypes?: string;
|
|
37
|
+
fileSize?: number;
|
|
38
|
+
fileSizeUnit?: string;
|
|
39
|
+
totalFileSize?: number;
|
|
40
|
+
minSelectionRequired?: boolean;
|
|
41
|
+
minSelectionValue?: string;
|
|
42
|
+
validation?: string;
|
|
43
|
+
validationType?: string;
|
|
44
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@piserve-tech/form-submission",
|
|
3
|
+
"version": "0.0.0-watch+1717673142843",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^16.1.0",
|
|
6
|
+
"@angular/core": "^16.1.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0",
|
|
10
|
+
"@kolkov/angular-editor": "^3.0.0-beta.0",
|
|
11
|
+
"@angular/google-maps": "^16.2.14",
|
|
12
|
+
"@angular/material": "^16.2.14",
|
|
13
|
+
"@fortawesome/fontawesome-free": "^6.5.1",
|
|
14
|
+
"@piserve-tech/drop-down": "^1.1.7",
|
|
15
|
+
"@piserve-tech/file-preview": "^1.0.0",
|
|
16
|
+
"@piserve-tech/file-upload": "^1.0.1",
|
|
17
|
+
"@syncfusion/ej2-material-theme": "~25.1.40",
|
|
18
|
+
"@types/google.maps": "^3.55.8",
|
|
19
|
+
"@types/googlemaps": "^3.43.3",
|
|
20
|
+
"bootstrap": "^5.3.2",
|
|
21
|
+
"bootstrap-icons": "^1.11.3",
|
|
22
|
+
"ng2-file-upload": "^5.0.0",
|
|
23
|
+
"ngx-bootstrap": "^11.0.2"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "http://192.168.1.208/form-builder/form-submission-component"
|
|
29
|
+
},
|
|
30
|
+
"module": "fesm2022/piserve-tech-form-submission.mjs",
|
|
31
|
+
"typings": "index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
"./package.json": {
|
|
34
|
+
"default": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./index.d.ts",
|
|
38
|
+
"esm2022": "./esm2022/piserve-tech-form-submission.mjs",
|
|
39
|
+
"esm": "./esm2022/piserve-tech-form-submission.mjs",
|
|
40
|
+
"default": "./fesm2022/piserve-tech-form-submission.mjs"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DataService } from './data.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface CountryData {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
image: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class CountryService {
|
|
11
|
+
private http;
|
|
12
|
+
private dataService;
|
|
13
|
+
private apiUrl;
|
|
14
|
+
header: any;
|
|
15
|
+
constructor(http: HttpClient, dataService: DataService);
|
|
16
|
+
loadCountryDetails(): Observable<any>;
|
|
17
|
+
processCountryDetails(data: any[], displayFlag: boolean, displayCode: boolean, showCountryName: boolean): CountryData[];
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CountryService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CountryService>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DataService {
|
|
4
|
+
constructor();
|
|
5
|
+
private dataSubject;
|
|
6
|
+
apiUrl$: Observable<string>;
|
|
7
|
+
private headerSubject;
|
|
8
|
+
header$: Observable<any>;
|
|
9
|
+
setApiUrl(data: string): void;
|
|
10
|
+
setHeader(data: any): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { DataService } from './data.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormService {
|
|
6
|
+
private http;
|
|
7
|
+
private dataService;
|
|
8
|
+
private apiUrl;
|
|
9
|
+
header: any;
|
|
10
|
+
constructor(http: HttpClient, dataService: DataService);
|
|
11
|
+
getQuestions(moduleName: string): Observable<Object>;
|
|
12
|
+
fetchDataFromDatabase(database: any): Observable<any>;
|
|
13
|
+
fetchDataFromLookup(tableName: string): Observable<any>;
|
|
14
|
+
fetchDataFromExternalAPI(url: string): Observable<any>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PublicForm } from '../models/publicForm.model';
|
|
2
|
+
import { Question } from '../models/question.model';
|
|
3
|
+
import { Section } from '../models/section.model';
|
|
4
|
+
import { SubForm } from '../models/subForm.model';
|
|
5
|
+
import { FormElementType } from '../models/formElementType.model';
|
|
6
|
+
export declare function mapPublicFormToModel(apiPublicForm: any): PublicForm;
|
|
7
|
+
export declare function mapSectionToModel(apiSection: any): Section;
|
|
8
|
+
export declare function mapQuestionToModel(apiQuestion: any): Question;
|
|
9
|
+
export declare function mapSubFormToModel(apiSubForm: any): SubForm;
|
|
10
|
+
export declare function mapFormElementTypeToModel(apiFormElementType: any): FormElementType<any>;
|