survery-lib 0.2.2 → 2.1.1
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/components/question-boolean-template/question-boolean-template.component.mjs +17 -17
- package/esm2022/lib/components/question-cascade-template/question-cascade-template.component.mjs +9 -9
- package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +18 -18
- package/esm2022/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.mjs +16 -17
- package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +13 -14
- package/esm2022/lib/components/question-feedback-template/question-feedback-template.component.mjs +129 -0
- package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +13 -14
- package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +17 -17
- package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +18 -19
- package/esm2022/lib/core/states/survey-store/survey.reducer.mjs +2 -2
- package/esm2022/lib/pipes/find-question.pipe.mjs +1 -1
- package/esm2022/lib/services/survey-lib.service.mjs +34 -21
- package/esm2022/lib/survery-lib.component.mjs +5 -4
- package/esm2022/lib/survery-lib.module.mjs +12 -8
- package/esm2022/lib/usecases/check-rule-exps.usecase.mjs +3 -3
- package/esm2022/shared/dtos/survey-answer.dto.mjs +1 -1
- package/esm2022/shared/enums/evaluation-type.enum.mjs +6 -0
- package/esm2022/shared/enums/input-type.enum.mjs +3 -1
- package/esm2022/shared/enums/question-type.enum.mjs +2 -1
- package/esm2022/shared/form-interfaces/question-boolean-template.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-cascade.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-check-box-template.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-dropdown-multi-template.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-dropdown-template.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-feedback-template.form-interface.mjs +2 -0
- package/esm2022/shared/form-interfaces/question-matrix-template.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-radio-button-template.form-interface.mjs +1 -1
- package/esm2022/shared/form-interfaces/question-text-template.form-interface.mjs +1 -1
- package/fesm2022/survery-lib.mjs +269 -131
- package/fesm2022/survery-lib.mjs.map +1 -1
- package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +3 -14
- package/lib/components/question-cascade-template/question-cascade-template.component.d.ts +4 -6
- package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +4 -15
- package/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.d.ts +3 -14
- package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +2 -12
- package/lib/components/question-feedback-template/question-feedback-template.component.d.ts +27 -0
- package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +3 -10
- package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +3 -14
- package/lib/components/question-text-template/question-text-template.component.d.ts +2 -17
- package/lib/survery-lib.module.d.ts +7 -5
- package/package.json +2 -2
- package/shared/dtos/survey-answer.dto.d.ts +3 -0
- package/shared/enums/evaluation-type.enum.d.ts +4 -0
- package/shared/enums/input-type.enum.d.ts +3 -1
- package/shared/enums/question-type.enum.d.ts +2 -1
- package/shared/form-interfaces/question-boolean-template.form-interface.d.ts +13 -12
- package/shared/form-interfaces/question-cascade.form-interface.d.ts +5 -4
- package/shared/form-interfaces/question-check-box-template.form-interface.d.ts +13 -12
- package/shared/form-interfaces/question-dropdown-multi-template.form-interface.d.ts +13 -12
- package/shared/form-interfaces/question-dropdown-template.form-interface.d.ts +9 -8
- package/shared/form-interfaces/question-feedback-template.form-interface.d.ts +15 -0
- package/shared/form-interfaces/question-matrix-template.form-interface.d.ts +9 -8
- package/shared/form-interfaces/question-radio-button-template.form-interface.d.ts +13 -12
- package/shared/form-interfaces/question-text-template.form-interface.d.ts +13 -12
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { FormControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
4
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
5
5
|
import { AnswerChildOfQuestionBooleanTemplateFormInterface, QuestionBooleanTemplateFormInterface } from '../../../shared/form-interfaces/question-boolean-template.form-interface';
|
|
6
|
-
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
7
6
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
8
7
|
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
9
8
|
import { Store } from '@ngrx/store';
|
|
@@ -15,22 +14,12 @@ export declare class QuestionBooleanTemplateComponent implements OnInit {
|
|
|
15
14
|
elemId: string;
|
|
16
15
|
surveyQuestion: SurveyQuestionDto;
|
|
17
16
|
rForm: FormGroup<QuestionBooleanTemplateFormInterface>;
|
|
18
|
-
get fCtrls():
|
|
19
|
-
id: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
20
|
-
typeId: import("@ng-stack/forms").FormControl<QuestionTypeEnum, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
name: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
22
|
-
title: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
|
-
description: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
24
|
-
answer: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
25
|
-
isShow: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
|
-
isDisabled: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
27
|
-
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionBooleanTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
28
|
-
};
|
|
17
|
+
get fCtrls(): QuestionBooleanTemplateFormInterface;
|
|
29
18
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
30
19
|
set setQuestion(value: QuestionNgrxModel);
|
|
31
20
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
32
21
|
ngOnInit(): void;
|
|
33
|
-
onChangeAnswer(item: AnswerChildOfQuestionBooleanTemplateFormInterface): void;
|
|
22
|
+
onChangeAnswer(item: FormGroup<AnswerChildOfQuestionBooleanTemplateFormInterface>): void;
|
|
34
23
|
convertToFormControl(element: any): FormControl<any>;
|
|
35
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionBooleanTemplateComponent, never>;
|
|
36
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionBooleanTemplateComponent, "lib-question-boolean-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormBuilder, FormGroup } from '@
|
|
1
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
2
2
|
import { QuestionCascadeTemplateFormInterface, QuestionGroupChildOfQuestionCascadeTemplateFormInterface } from '../../../shared/form-interfaces/question-cascade.form-interface';
|
|
3
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
4
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
@@ -16,11 +16,9 @@ export declare class QuestionCascadeTemplateComponent {
|
|
|
16
16
|
surveyQuestionArr: SurveyQuestionDto[];
|
|
17
17
|
rForm: FormGroup<QuestionCascadeTemplateFormInterface>;
|
|
18
18
|
pageQuestions$: import("rxjs").Observable<QuestionNgrxModel[]>;
|
|
19
|
-
get fCtrls():
|
|
20
|
-
questionArr: import("@ng-stack/forms").FormArray<QuestionGroupChildOfQuestionCascadeTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
};
|
|
19
|
+
get fCtrls(): QuestionCascadeTemplateFormInterface;
|
|
22
20
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
23
|
-
get questionFormArray(): import("@
|
|
21
|
+
get questionFormArray(): import("@angular/forms").FormArray<FormGroup<QuestionGroupChildOfQuestionCascadeTemplateFormInterface>>;
|
|
24
22
|
pageId: number;
|
|
25
23
|
questionGroupId: number;
|
|
26
24
|
isPre: boolean;
|
|
@@ -30,7 +28,7 @@ export declare class QuestionCascadeTemplateComponent {
|
|
|
30
28
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _ApiService: ApiService, _Store: Store);
|
|
31
29
|
ngOnInit(): void;
|
|
32
30
|
onUpdateAnswer(model: QuestionAnswerModel): void;
|
|
33
|
-
identify(index: any, item: QuestionGroupChildOfQuestionCascadeTemplateFormInterface): any;
|
|
31
|
+
identify(index: any, item: FormGroup<QuestionGroupChildOfQuestionCascadeTemplateFormInterface>): any;
|
|
34
32
|
private setQuestions;
|
|
35
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionCascadeTemplateComponent, never>;
|
|
36
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionCascadeTemplateComponent, "lib-question-cascade-template", never, { "pageId": { "alias": "pageId"; "required": false; }; "questionGroupId": { "alias": "questionGroupId"; "required": false; }; "isPre": { "alias": "isPre"; "required": false; }; "surveyLanguageId": { "alias": "surveyLanguageId"; "required": false; }; "applicantKey": { "alias": "applicantKey"; "required": false; }; "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
package/lib/components/question-check-box-template/question-check-box-template.component.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
|
-
import {
|
|
5
|
+
import { QuestionCheckBoxTemplateFormInterface } from '../../../shared/form-interfaces/question-check-box-template.form-interface';
|
|
7
6
|
import { AnswerChildOfQuestionBooleanTemplateFormInterface } from '../../../shared/form-interfaces/question-boolean-template.form-interface';
|
|
8
7
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
9
8
|
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
@@ -16,22 +15,12 @@ export declare class QuestionCheckBoxTemplateComponent implements OnInit {
|
|
|
16
15
|
elemId: string;
|
|
17
16
|
surveyQuestion: SurveyQuestionDto;
|
|
18
17
|
rForm: FormGroup<QuestionCheckBoxTemplateFormInterface>;
|
|
19
|
-
get fCtrls():
|
|
20
|
-
id: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
typeId: import("@ng-stack/forms").FormControl<QuestionTypeEnum, import("@ng-stack/forms").ValidatorsModel>;
|
|
22
|
-
name: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
|
-
title: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
24
|
-
description: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
25
|
-
answer: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
|
-
isShow: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
27
|
-
isDisabled: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
28
|
-
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionCheckBoxTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
29
|
-
};
|
|
18
|
+
get fCtrls(): QuestionCheckBoxTemplateFormInterface;
|
|
30
19
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
31
20
|
set setQuestion(value: QuestionNgrxModel);
|
|
32
21
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
33
22
|
ngOnInit(): void;
|
|
34
|
-
onChangeAnswer(item: AnswerChildOfQuestionBooleanTemplateFormInterface
|
|
23
|
+
onChangeAnswer(item: FormGroup<AnswerChildOfQuestionBooleanTemplateFormInterface>, event: Event): void;
|
|
35
24
|
convertToFormControl(element: any): FormControl<any>;
|
|
36
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionCheckBoxTemplateComponent, never>;
|
|
37
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionCheckBoxTemplateComponent, "lib-question-check-box-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { FormGroup, FormBuilder } from '@ng-stack/forms';
|
|
1
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
2
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
4
3
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
5
|
-
import {
|
|
4
|
+
import { QuestionDropDownMultiTemplateFormInterface } from '../../../shared/form-interfaces/question-dropdown-multi-template.form-interface';
|
|
6
5
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
7
6
|
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
8
7
|
import { Store } from '@ngrx/store';
|
|
@@ -14,17 +13,7 @@ export declare class QuestionDropdownMultiTemplateComponent {
|
|
|
14
13
|
elemId: string;
|
|
15
14
|
surveyQuestion: SurveyQuestionDto;
|
|
16
15
|
rForm: FormGroup<QuestionDropDownMultiTemplateFormInterface>;
|
|
17
|
-
get fCtrls():
|
|
18
|
-
id: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
19
|
-
typeId: import("@ng-stack/forms").FormControl<QuestionTypeEnum, import("@ng-stack/forms").ValidatorsModel>;
|
|
20
|
-
name: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
title: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
22
|
-
description: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
|
-
answer: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
24
|
-
isShow: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
25
|
-
isDisabled: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
|
-
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionDropDownMultiTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
27
|
-
};
|
|
16
|
+
get fCtrls(): QuestionDropDownMultiTemplateFormInterface;
|
|
28
17
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
29
18
|
set setQuestion(value: QuestionNgrxModel);
|
|
30
19
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
5
|
import { QuestionDropdownTemplateFormInterface } from '../../../shared/form-interfaces/question-dropdown-template.form-interface';
|
|
@@ -15,16 +14,7 @@ export declare class QuestionDropdownTemplateComponent implements OnInit {
|
|
|
15
14
|
private _Store;
|
|
16
15
|
surveyQuestion: SurveyQuestionDto;
|
|
17
16
|
rForm: FormGroup<QuestionDropdownTemplateFormInterface>;
|
|
18
|
-
get fCtrls():
|
|
19
|
-
id: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
20
|
-
typeId: import("@ng-stack/forms").FormControl<QuestionTypeEnum, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
name: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
22
|
-
title: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
|
-
description: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
24
|
-
answer: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
25
|
-
isShow: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
|
-
isDisabled: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
27
|
-
};
|
|
17
|
+
get fCtrls(): QuestionDropdownTemplateFormInterface;
|
|
28
18
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
29
19
|
emitter: EventEmitter<QuestionAnswerModel>;
|
|
30
20
|
set setQuestion(value: QuestionNgrxModel);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
2
|
+
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
3
|
+
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
4
|
+
import { QuestionFeedbackTemplateFormInterface } from '../../../shared/form-interfaces/question-feedback-template.form-interface';
|
|
5
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
6
|
+
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
7
|
+
import { Store } from '@ngrx/store';
|
|
8
|
+
import { InputTypeEnum } from '../../../shared/enums/input-type.enum';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class QuestionFeedbackTemplateComponent {
|
|
11
|
+
private _formBuilder;
|
|
12
|
+
private _surveyLibService;
|
|
13
|
+
private _Store;
|
|
14
|
+
surveyQuestion: SurveyQuestionDto;
|
|
15
|
+
rForm: FormGroup<QuestionFeedbackTemplateFormInterface>;
|
|
16
|
+
get fCtrls(): QuestionFeedbackTemplateFormInterface;
|
|
17
|
+
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
18
|
+
get inputTypeEnum(): typeof InputTypeEnum;
|
|
19
|
+
isArabicLang: boolean;
|
|
20
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
21
|
+
set isDisabled(value: boolean);
|
|
22
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
private toggleEnableAnswer;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionFeedbackTemplateComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionFeedbackTemplateComponent, "lib-question-feedback-template", never, { "isArabicLang": { "alias": "isArabicLang"; "required": false; }; "setQuestion": { "alias": "setQuestion"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
3
|
import { SurveyAnswerDto } from '../../../shared/dtos/survey-answer.dto';
|
|
5
4
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
6
5
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
@@ -16,18 +15,12 @@ export declare class QuestionMatrixTemplateComponent implements OnInit {
|
|
|
16
15
|
elemId: string;
|
|
17
16
|
surveyQuestion: SurveyQuestionDto;
|
|
18
17
|
rForm: FormGroup<QuestionMatrixTemplateFormInterface>;
|
|
19
|
-
get fCtrls():
|
|
20
|
-
id: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
typeId: import("@ng-stack/forms").FormControl<QuestionTypeEnum, import("@ng-stack/forms").ValidatorsModel>;
|
|
22
|
-
isShow: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
|
-
isDisabled: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
24
|
-
subQuestionArray: import("@ng-stack/forms").FormArray<SubQuestionChildOfQuestionMatrixTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
25
|
-
};
|
|
18
|
+
get fCtrls(): QuestionMatrixTemplateFormInterface;
|
|
26
19
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
27
20
|
set setQuestion(value: QuestionNgrxModel);
|
|
28
21
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
29
22
|
ngOnInit(): void;
|
|
30
|
-
onChangeAnswer(question: SubQuestionChildOfQuestionMatrixTemplateFormInterface
|
|
23
|
+
onChangeAnswer(question: FormGroup<SubQuestionChildOfQuestionMatrixTemplateFormInterface>, answer: SurveyAnswerDto): void;
|
|
31
24
|
convertToFormControl(element: any): FormControl<any>;
|
|
32
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionMatrixTemplateComponent, never>;
|
|
33
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionMatrixTemplateComponent, "lib-question-matrix-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
5
|
import { AnswerChildOfQuestionRadioButtonTemplateFormInterface, QuestionRadioButtonTemplateFormInterface } from '../../../shared/form-interfaces/question-radio-button-template.form-interface';
|
|
@@ -15,22 +14,12 @@ export declare class QuestionRadioButtonTemplateComponent implements OnInit {
|
|
|
15
14
|
elemId: string;
|
|
16
15
|
surveyQuestion: SurveyQuestionDto;
|
|
17
16
|
rForm: FormGroup<QuestionRadioButtonTemplateFormInterface>;
|
|
18
|
-
get fCtrls():
|
|
19
|
-
id: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
20
|
-
typeId: import("@ng-stack/forms").FormControl<QuestionTypeEnum, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
name: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
22
|
-
title: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
|
-
description: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
24
|
-
answer: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
25
|
-
isShow: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
|
-
isDisabled: FormGroup<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormControl<any, import("@ng-stack/forms").ValidatorsModel> | import("@ng-stack/forms").FormArray<any, import("@ng-stack/forms").ValidatorsModel>;
|
|
27
|
-
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionRadioButtonTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
28
|
-
};
|
|
17
|
+
get fCtrls(): QuestionRadioButtonTemplateFormInterface;
|
|
29
18
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
30
19
|
set setQuestion(value: QuestionNgrxModel);
|
|
31
20
|
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
32
21
|
ngOnInit(): void;
|
|
33
|
-
onChangeAnswer(item: AnswerChildOfQuestionRadioButtonTemplateFormInterface): void;
|
|
22
|
+
onChangeAnswer(item: FormGroup<AnswerChildOfQuestionRadioButtonTemplateFormInterface>): void;
|
|
34
23
|
convertToFormControl(element: any): FormControl<any>;
|
|
35
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionRadioButtonTemplateComponent, never>;
|
|
36
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionRadioButtonTemplateComponent, "lib-question-radio-button-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FormBuilder, FormGroup, FormControl as FormControlStack, ValidatorsModel } from '@ng-stack/forms';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
5
|
import { QuestionTextTemplateFormInterface } from '../../../shared/form-interfaces/question-text-template.form-interface';
|
|
7
6
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
8
|
-
import { InputTypeEnum } from '../../../shared/enums/input-type.enum';
|
|
9
7
|
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
10
8
|
import { Store } from '@ngrx/store';
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
@@ -17,20 +15,7 @@ export declare class QuestionTextTemplateComponent implements OnInit {
|
|
|
17
15
|
rForm: FormGroup<QuestionTextTemplateFormInterface>;
|
|
18
16
|
customPatterns: null;
|
|
19
17
|
isTextArea: boolean;
|
|
20
|
-
get fCtrls():
|
|
21
|
-
id: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
22
|
-
typeId: FormControlStack<QuestionTypeEnum, ValidatorsModel>;
|
|
23
|
-
name: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
24
|
-
title: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
25
|
-
description: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
26
|
-
answer: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
27
|
-
surveyAnswerId: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
28
|
-
isShow: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
29
|
-
isDisabled: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
30
|
-
inputTypeId: FormControlStack<InputTypeEnum, ValidatorsModel>;
|
|
31
|
-
inputMin: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
32
|
-
inputMax: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
33
|
-
};
|
|
18
|
+
get fCtrls(): QuestionTextTemplateFormInterface;
|
|
34
19
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
35
20
|
get questionMinMaxIndicator(): string;
|
|
36
21
|
isArabicLang: boolean;
|
|
@@ -16,17 +16,19 @@ import * as i12 from "./pipes/text-box-type-attr.pipe";
|
|
|
16
16
|
import * as i13 from "./components/question-cascade-template/question-cascade-template.component";
|
|
17
17
|
import * as i14 from "./directives/masked-for-min-max.directive";
|
|
18
18
|
import * as i15 from "./pipes/find-question.pipe";
|
|
19
|
-
import * as i16 from "
|
|
20
|
-
import * as i17 from "@angular/common
|
|
21
|
-
import * as i18 from "@angular/
|
|
22
|
-
import * as i19 from "@
|
|
19
|
+
import * as i16 from "./components/question-feedback-template/question-feedback-template.component";
|
|
20
|
+
import * as i17 from "@angular/common";
|
|
21
|
+
import * as i18 from "@angular/common/http";
|
|
22
|
+
import * as i19 from "@angular/forms";
|
|
23
23
|
import * as i20 from "@ng-select/ng-select";
|
|
24
24
|
import * as i21 from "@ngrx/store";
|
|
25
25
|
import * as i22 from "@ngrx/effects";
|
|
26
|
+
import * as i23 from "ngx-bootstrap/rating";
|
|
27
|
+
import * as i24 from "ngx-bootstrap/pagination";
|
|
26
28
|
export declare class SurveryLibModule {
|
|
27
29
|
static forRoot(config: LibConfigModel): ModuleWithProviders<SurveryLibModule>;
|
|
28
30
|
static forChild(): ModuleWithProviders<SurveryLibModule>;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveryLibModule, never>;
|
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveryLibModule, [typeof i1.SurveryLibComponent, typeof i2.QuestionTextTemplateComponent, typeof i3.QuestionRadioButtonTemplateComponent, typeof i4.QuestionCheckBoxTemplateComponent, typeof i5.QuestionDropdownTemplateComponent, typeof i6.QuestionMatrixTemplateComponent, typeof i7.QuestionBooleanTemplateComponent, typeof i8.QuestionDropdownMultiTemplateComponent, typeof i9.FilterQuestionPipe, typeof i10.DefaultQuestionAnswerPipe, typeof i11.DefaultQuestionAnswersPipe, typeof i12.TextBoxTypeAttrPipe, typeof i13.QuestionCascadeTemplateComponent, typeof i14.MaskedForMinMaxDirective, typeof i15.FindQuestionPipe
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveryLibModule, [typeof i1.SurveryLibComponent, typeof i2.QuestionTextTemplateComponent, typeof i3.QuestionRadioButtonTemplateComponent, typeof i4.QuestionCheckBoxTemplateComponent, typeof i5.QuestionDropdownTemplateComponent, typeof i6.QuestionMatrixTemplateComponent, typeof i7.QuestionBooleanTemplateComponent, typeof i8.QuestionDropdownMultiTemplateComponent, typeof i9.FilterQuestionPipe, typeof i10.DefaultQuestionAnswerPipe, typeof i11.DefaultQuestionAnswersPipe, typeof i12.TextBoxTypeAttrPipe, typeof i13.QuestionCascadeTemplateComponent, typeof i14.MaskedForMinMaxDirective, typeof i15.FindQuestionPipe, typeof i16.QuestionFeedbackTemplateComponent], [typeof i17.CommonModule, typeof i18.HttpClientModule, typeof i19.ReactiveFormsModule, typeof i19.FormsModule, typeof i20.NgSelectModule, typeof i21.StoreFeatureModule, typeof i22.EffectsFeatureModule, typeof i23.RatingModule, typeof i24.PaginationModule], [typeof i1.SurveryLibComponent, typeof i21.StoreModule]>;
|
|
31
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveryLibModule>;
|
|
32
34
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survery-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0",
|
|
10
|
-
"
|
|
10
|
+
"ngx-bootstrap": "^11.0.2",
|
|
11
11
|
"uuid": "^8.3.2",
|
|
12
12
|
"@ng-select/ng-select": "^11.2.0"
|
|
13
13
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EvaluationTypeEnum } from "../enums/evaluation-type.enum";
|
|
1
2
|
import { InputTypeEnum } from "../enums/input-type.enum";
|
|
2
3
|
export interface SurveyAnswerDto {
|
|
3
4
|
answerId: number;
|
|
@@ -14,4 +15,6 @@ export interface SurveyAnswerDto {
|
|
|
14
15
|
answerDescription?: string;
|
|
15
16
|
placeHolder?: any;
|
|
16
17
|
inputTypeId?: InputTypeEnum;
|
|
18
|
+
evaluationTypeId: EvaluationTypeEnum;
|
|
19
|
+
maxValue: number;
|
|
17
20
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export interface QuestionBooleanTemplateFormInterface {
|
|
3
|
-
id:
|
|
4
|
-
typeId: QuestionTypeEnum
|
|
5
|
-
name:
|
|
6
|
-
title:
|
|
7
|
-
description:
|
|
8
|
-
answer: any
|
|
9
|
-
isShow:
|
|
10
|
-
isDisabled:
|
|
11
|
-
answerArray: AnswerChildOfQuestionBooleanTemplateFormInterface
|
|
4
|
+
id: FormControl<number>;
|
|
5
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
6
|
+
name: FormControl<string>;
|
|
7
|
+
title: FormControl<string>;
|
|
8
|
+
description: FormControl<string>;
|
|
9
|
+
answer: FormControl<any>;
|
|
10
|
+
isShow: FormControl<boolean>;
|
|
11
|
+
isDisabled: FormControl<boolean>;
|
|
12
|
+
answerArray: FormArray<FormGroup<AnswerChildOfQuestionBooleanTemplateFormInterface>>;
|
|
12
13
|
}
|
|
13
14
|
export interface AnswerChildOfQuestionBooleanTemplateFormInterface {
|
|
14
|
-
id:
|
|
15
|
-
title:
|
|
16
|
-
isSelected:
|
|
15
|
+
id: FormControl<number>;
|
|
16
|
+
title: FormControl<string>;
|
|
17
|
+
isSelected: FormControl<boolean>;
|
|
17
18
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export interface QuestionCascadeTemplateFormInterface {
|
|
3
|
-
questionArr: QuestionGroupChildOfQuestionCascadeTemplateFormInterface
|
|
4
|
+
questionArr: FormArray<FormGroup<QuestionGroupChildOfQuestionCascadeTemplateFormInterface>>;
|
|
4
5
|
}
|
|
5
6
|
export interface QuestionGroupChildOfQuestionCascadeTemplateFormInterface {
|
|
6
|
-
id: any
|
|
7
|
-
typeId: QuestionTypeEnum
|
|
8
|
-
answer: any
|
|
7
|
+
id: FormControl<any>;
|
|
8
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
9
|
+
answer: FormControl<any>;
|
|
9
10
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export declare class QuestionCheckBoxTemplateFormInterface {
|
|
3
|
-
id: any
|
|
4
|
-
typeId: QuestionTypeEnum
|
|
5
|
-
name:
|
|
6
|
-
title:
|
|
7
|
-
description:
|
|
8
|
-
answer: any
|
|
9
|
-
isShow:
|
|
10
|
-
isDisabled:
|
|
11
|
-
answerArray: AnswerChildOfQuestionCheckBoxTemplateFormInterface
|
|
4
|
+
id: FormControl<any>;
|
|
5
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
6
|
+
name: FormControl<string>;
|
|
7
|
+
title: FormControl<string>;
|
|
8
|
+
description: FormControl<string>;
|
|
9
|
+
answer: FormControl<any>;
|
|
10
|
+
isShow: FormControl<boolean>;
|
|
11
|
+
isDisabled: FormControl<boolean>;
|
|
12
|
+
answerArray: FormArray<FormGroup<AnswerChildOfQuestionCheckBoxTemplateFormInterface>>;
|
|
12
13
|
}
|
|
13
14
|
export interface AnswerChildOfQuestionCheckBoxTemplateFormInterface {
|
|
14
|
-
id: any
|
|
15
|
-
title:
|
|
16
|
-
isSelected:
|
|
15
|
+
id: FormControl<any>;
|
|
16
|
+
title: FormControl<string>;
|
|
17
|
+
isSelected: FormControl<boolean>;
|
|
17
18
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export declare class QuestionDropDownMultiTemplateFormInterface {
|
|
3
|
-
id:
|
|
4
|
-
typeId: QuestionTypeEnum
|
|
5
|
-
name:
|
|
6
|
-
title:
|
|
7
|
-
description:
|
|
8
|
-
answer: any
|
|
9
|
-
isShow:
|
|
10
|
-
isDisabled:
|
|
11
|
-
answerArray: AnswerChildOfQuestionDropDownMultiTemplateFormInterface
|
|
4
|
+
id: FormControl<number>;
|
|
5
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
6
|
+
name: FormControl<string>;
|
|
7
|
+
title: FormControl<string>;
|
|
8
|
+
description: FormControl<string>;
|
|
9
|
+
answer: FormControl<any>;
|
|
10
|
+
isShow: FormControl<boolean>;
|
|
11
|
+
isDisabled: FormControl<boolean>;
|
|
12
|
+
answerArray: FormArray<FormGroup<AnswerChildOfQuestionDropDownMultiTemplateFormInterface>>;
|
|
12
13
|
}
|
|
13
14
|
export interface AnswerChildOfQuestionDropDownMultiTemplateFormInterface {
|
|
14
|
-
id:
|
|
15
|
-
title:
|
|
16
|
-
isSelected:
|
|
15
|
+
id: FormControl<number>;
|
|
16
|
+
title: FormControl<string>;
|
|
17
|
+
isSelected: FormControl<boolean>;
|
|
17
18
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { FormControl } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export declare class QuestionDropdownTemplateFormInterface {
|
|
3
|
-
id:
|
|
4
|
-
typeId: QuestionTypeEnum
|
|
5
|
-
name:
|
|
6
|
-
title:
|
|
7
|
-
description:
|
|
8
|
-
answer: any
|
|
9
|
-
isShow:
|
|
10
|
-
isDisabled:
|
|
4
|
+
id: FormControl<number>;
|
|
5
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
6
|
+
name: FormControl<string>;
|
|
7
|
+
title: FormControl<string>;
|
|
8
|
+
description: FormControl<string>;
|
|
9
|
+
answer: FormControl<any>;
|
|
10
|
+
isShow: FormControl<boolean>;
|
|
11
|
+
isDisabled: FormControl<boolean>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormControl } from "@angular/forms";
|
|
2
|
+
import { InputTypeEnum } from "../enums/input-type.enum";
|
|
3
|
+
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
4
|
+
export interface QuestionFeedbackTemplateFormInterface {
|
|
5
|
+
id: FormControl<number>;
|
|
6
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
7
|
+
name: FormControl<string>;
|
|
8
|
+
title: FormControl<string>;
|
|
9
|
+
description: FormControl<string>;
|
|
10
|
+
answer: FormControl<any>;
|
|
11
|
+
surveyAnswerId: FormControl<number>;
|
|
12
|
+
isShow: FormControl<boolean>;
|
|
13
|
+
isDisabled: FormControl<boolean>;
|
|
14
|
+
inputTypeId: FormControl<InputTypeEnum>;
|
|
15
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export interface QuestionMatrixTemplateFormInterface {
|
|
3
|
-
id:
|
|
4
|
-
typeId: QuestionTypeEnum
|
|
5
|
-
isShow:
|
|
6
|
-
isDisabled:
|
|
7
|
-
subQuestionArray: SubQuestionChildOfQuestionMatrixTemplateFormInterface
|
|
4
|
+
id: FormControl<number>;
|
|
5
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
6
|
+
isShow: FormControl<boolean>;
|
|
7
|
+
isDisabled: FormControl<boolean>;
|
|
8
|
+
subQuestionArray: FormArray<FormGroup<SubQuestionChildOfQuestionMatrixTemplateFormInterface>>;
|
|
8
9
|
}
|
|
9
10
|
export interface SubQuestionChildOfQuestionMatrixTemplateFormInterface {
|
|
10
|
-
subQuestionId:
|
|
11
|
-
questionTitle:
|
|
12
|
-
answer: any
|
|
11
|
+
subQuestionId: FormControl<number>;
|
|
12
|
+
questionTitle: FormControl<string>;
|
|
13
|
+
answer: FormControl<any>;
|
|
13
14
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
1
2
|
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
2
3
|
export declare class QuestionRadioButtonTemplateFormInterface {
|
|
3
|
-
id:
|
|
4
|
-
typeId: QuestionTypeEnum
|
|
5
|
-
name:
|
|
6
|
-
title:
|
|
7
|
-
description:
|
|
8
|
-
answer: any
|
|
9
|
-
isShow:
|
|
10
|
-
isDisabled:
|
|
11
|
-
answerArray: AnswerChildOfQuestionRadioButtonTemplateFormInterface
|
|
4
|
+
id: FormControl<number>;
|
|
5
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
6
|
+
name: FormControl<string>;
|
|
7
|
+
title: FormControl<string>;
|
|
8
|
+
description: FormControl<string>;
|
|
9
|
+
answer: FormControl<any>;
|
|
10
|
+
isShow: FormControl<boolean>;
|
|
11
|
+
isDisabled: FormControl<boolean>;
|
|
12
|
+
answerArray: FormArray<FormGroup<AnswerChildOfQuestionRadioButtonTemplateFormInterface>>;
|
|
12
13
|
}
|
|
13
14
|
export interface AnswerChildOfQuestionRadioButtonTemplateFormInterface {
|
|
14
|
-
id:
|
|
15
|
-
title:
|
|
16
|
-
isSelected:
|
|
15
|
+
id: FormControl<number>;
|
|
16
|
+
title: FormControl<string>;
|
|
17
|
+
isSelected: FormControl<boolean>;
|
|
17
18
|
}
|