survery-lib 0.2.1 → 2.1.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.
Files changed (55) hide show
  1. package/esm2022/lib/components/question-boolean-template/question-boolean-template.component.mjs +17 -17
  2. package/esm2022/lib/components/question-cascade-template/question-cascade-template.component.mjs +9 -9
  3. package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +18 -18
  4. package/esm2022/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.mjs +16 -17
  5. package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +13 -14
  6. package/esm2022/lib/components/question-feedback-template/question-feedback-template.component.mjs +129 -0
  7. package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +13 -14
  8. package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +17 -17
  9. package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +18 -19
  10. package/esm2022/lib/pipes/find-question.pipe.mjs +1 -1
  11. package/esm2022/lib/services/survey-lib.service.mjs +68 -46
  12. package/esm2022/lib/survery-lib.component.mjs +10 -5
  13. package/esm2022/lib/survery-lib.module.mjs +12 -8
  14. package/esm2022/lib/usecases/check-rule-exps.usecase.mjs +3 -3
  15. package/esm2022/shared/dtos/survey-answer.dto.mjs +1 -1
  16. package/esm2022/shared/enums/evaluation-type.enum.mjs +6 -0
  17. package/esm2022/shared/enums/input-type.enum.mjs +3 -1
  18. package/esm2022/shared/enums/question-type.enum.mjs +2 -1
  19. package/esm2022/shared/form-interfaces/question-boolean-template.form-interface.mjs +1 -1
  20. package/esm2022/shared/form-interfaces/question-cascade.form-interface.mjs +1 -1
  21. package/esm2022/shared/form-interfaces/question-check-box-template.form-interface.mjs +1 -1
  22. package/esm2022/shared/form-interfaces/question-dropdown-multi-template.form-interface.mjs +1 -1
  23. package/esm2022/shared/form-interfaces/question-dropdown-template.form-interface.mjs +1 -1
  24. package/esm2022/shared/form-interfaces/question-feedback-template.form-interface.mjs +2 -0
  25. package/esm2022/shared/form-interfaces/question-matrix-template.form-interface.mjs +1 -1
  26. package/esm2022/shared/form-interfaces/question-radio-button-template.form-interface.mjs +1 -1
  27. package/esm2022/shared/form-interfaces/question-text-template.form-interface.mjs +1 -1
  28. package/fesm2022/survery-lib.mjs +306 -157
  29. package/fesm2022/survery-lib.mjs.map +1 -1
  30. package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +3 -14
  31. package/lib/components/question-cascade-template/question-cascade-template.component.d.ts +4 -6
  32. package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +4 -15
  33. package/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.d.ts +3 -14
  34. package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +2 -12
  35. package/lib/components/question-feedback-template/question-feedback-template.component.d.ts +27 -0
  36. package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +3 -10
  37. package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +3 -14
  38. package/lib/components/question-text-template/question-text-template.component.d.ts +2 -17
  39. package/lib/services/survey-lib.service.d.ts +4 -1
  40. package/lib/survery-lib.component.d.ts +1 -0
  41. package/lib/survery-lib.module.d.ts +7 -5
  42. package/package.json +2 -2
  43. package/shared/dtos/survey-answer.dto.d.ts +3 -0
  44. package/shared/enums/evaluation-type.enum.d.ts +4 -0
  45. package/shared/enums/input-type.enum.d.ts +3 -1
  46. package/shared/enums/question-type.enum.d.ts +2 -1
  47. package/shared/form-interfaces/question-boolean-template.form-interface.d.ts +13 -12
  48. package/shared/form-interfaces/question-cascade.form-interface.d.ts +5 -4
  49. package/shared/form-interfaces/question-check-box-template.form-interface.d.ts +13 -12
  50. package/shared/form-interfaces/question-dropdown-multi-template.form-interface.d.ts +13 -12
  51. package/shared/form-interfaces/question-dropdown-template.form-interface.d.ts +9 -8
  52. package/shared/form-interfaces/question-feedback-template.form-interface.d.ts +15 -0
  53. package/shared/form-interfaces/question-matrix-template.form-interface.d.ts +9 -8
  54. package/shared/form-interfaces/question-radio-button-template.form-interface.d.ts +13 -12
  55. 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 '@ng-stack/forms';
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("@ng-stack/forms").FormArray<QuestionGroupChildOfQuestionCascadeTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
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>;
@@ -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 { AnswerChildOfQuestionCheckBoxTemplateFormInterface, QuestionCheckBoxTemplateFormInterface } from '../../../shared/form-interfaces/question-check-box-template.form-interface';
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, event: Event): void;
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 { AnswerChildOfQuestionDropDownMultiTemplateFormInterface, QuestionDropDownMultiTemplateFormInterface } from '../../../shared/form-interfaces/question-dropdown-multi-template.form-interface';
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, answer: SurveyAnswerDto): void;
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>;
@@ -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;
@@ -4,10 +4,13 @@ import { Store } from '@ngrx/store';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SurveyLibService {
6
6
  private _Store;
7
+ private reloadSurveySubject;
8
+ get reloadSurveyObsrv(): import("rxjs").Observable<string>;
7
9
  constructor(_Store: Store);
8
10
  setSurveyData(survey: SurveyDto): void;
9
- private addQuestion;
10
11
  setsurveyAnswers(model: surveyAnswersSubjectDto): void;
12
+ setReloadSurvey(): void;
13
+ private addQuestion;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<SurveyLibService, never>;
12
15
  static ɵprov: i0.ɵɵInjectableDeclaration<SurveyLibService>;
13
16
  }
@@ -24,6 +24,7 @@ export declare class SurveryLibComponent implements OnInit, AfterViewInit {
24
24
  isLastPage$: Observable<boolean>;
25
25
  curruntShowedSurveyPages$: Observable<number>;
26
26
  get fCtrls(): SurveryLibFormInterface;
27
+ get isFirstPage(): boolean;
27
28
  get questionTypeEnum(): typeof QuestionTypeEnum;
28
29
  get surveyResult(): {
29
30
  answers: SurveyQuestionResult[];
@@ -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 "@angular/common";
20
- import * as i17 from "@angular/common/http";
21
- import * as i18 from "@angular/forms";
22
- import * as i19 from "@ng-stack/forms";
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], [typeof i16.CommonModule, typeof i17.HttpClientModule, typeof i18.ReactiveFormsModule, typeof i18.FormsModule, typeof i19.NgsFormsModule, typeof i20.NgSelectModule, typeof i21.StoreFeatureModule, typeof i22.EffectsFeatureModule], [typeof i1.SurveryLibComponent, typeof i21.StoreModule]>;
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": "0.2.01",
3
+ "version": "2.1.0",
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
- "@ng-stack/forms": "^3.1.0",
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
  }
@@ -0,0 +1,4 @@
1
+ export declare enum EvaluationTypeEnum {
2
+ Stars = 1,
3
+ Pagination = 2
4
+ }
@@ -6,5 +6,7 @@ export declare enum InputTypeEnum {
6
6
  Number = 5,
7
7
  Password = 6,
8
8
  Text = 7,
9
- Phone = 8
9
+ Phone = 8,
10
+ Stars = 20,
11
+ Pagination = 21
10
12
  }
@@ -6,5 +6,6 @@ export declare enum QuestionTypeEnum {
6
6
  TextInput = 5,
7
7
  Matrix = 6,
8
8
  DropDownMulti = 7,
9
- Cascade = 8
9
+ Cascade = 8,
10
+ FeedBack = 9
10
11
  }
@@ -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: any;
4
- typeId: QuestionTypeEnum;
5
- name: any;
6
- title: any;
7
- description: any;
8
- answer: any;
9
- isShow: any;
10
- isDisabled: any;
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: any;
15
- title: any;
16
- isSelected: any;
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: any;
6
- title: any;
7
- description: any;
8
- answer: any;
9
- isShow: any;
10
- isDisabled: any;
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: any;
16
- isSelected: any;
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: any;
4
- typeId: QuestionTypeEnum;
5
- name: any;
6
- title: any;
7
- description: any;
8
- answer: any;
9
- isShow: any;
10
- isDisabled: any;
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: any;
15
- title: any;
16
- isSelected: any;
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: any;
4
- typeId: QuestionTypeEnum;
5
- name: any;
6
- title: any;
7
- description: any;
8
- answer: any;
9
- isShow: any;
10
- isDisabled: any;
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: any;
4
- typeId: QuestionTypeEnum;
5
- isShow: any;
6
- isDisabled: any;
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: any;
11
- questionTitle: any;
12
- answer: any;
11
+ subQuestionId: FormControl<number>;
12
+ questionTitle: FormControl<string>;
13
+ answer: FormControl<any>;
13
14
  }