survery-lib 2.1.7 → 2.1.8
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-cascade-template/question-cascade-template.component.mjs +2 -2
- package/esm2022/lib/components/question-institutions-template/question-institutions-template.component.mjs +252 -0
- package/esm2022/lib/core/states/entites/question.entity.mjs +1 -1
- package/esm2022/lib/core/states/survey-store/question-group.selector.mjs +1 -1
- package/esm2022/lib/core/states/survey-store/question.selector.mjs +2 -2
- package/esm2022/lib/core/states/survey-store/survey.action.mjs +9 -1
- package/esm2022/lib/core/states/survey-store/survey.effect.mjs +13 -6
- package/esm2022/lib/core/states/survey-store/survey.reducer.mjs +42 -2
- package/esm2022/lib/core/states/survey-store/survey.selector.mjs +4 -2
- package/esm2022/lib/services/api.service.mjs +21 -2
- package/esm2022/lib/services/survey-lib.service.mjs +32 -5
- package/esm2022/lib/survery-lib.component.mjs +6 -5
- package/esm2022/lib/survery-lib.module.mjs +6 -3
- package/esm2022/shared/dtos/base/result.dto.mjs +2 -0
- package/esm2022/shared/dtos/institution-branch.dto.mjs +2 -0
- package/esm2022/shared/dtos/institution-collage.dto.mjs +2 -0
- package/esm2022/shared/dtos/institution-program.dto.mjs +2 -0
- package/esm2022/shared/dtos/institution-section.dto.mjs +2 -0
- package/esm2022/shared/dtos/institution.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-question.dto.mjs +1 -1
- package/esm2022/shared/dtos/survey-sub-question-level-answer.dto.mjs +2 -0
- package/esm2022/shared/dtos/survey-sub-question-level.dto.mjs +2 -0
- package/esm2022/shared/enums/question-type.enum.mjs +2 -1
- package/esm2022/shared/enums/survey-language.enum.mjs +6 -0
- package/esm2022/shared/form-interfaces/question-Institutions-template.form-interface.mjs +2 -0
- package/fesm2022/survery-lib.mjs +363 -19
- package/fesm2022/survery-lib.mjs.map +1 -1
- package/lib/components/question-institutions-template/question-institutions-template.component.d.ts +44 -0
- package/lib/core/states/entites/question.entity.d.ts +3 -1
- package/lib/core/states/survey-store/survey.action.d.ts +27 -0
- package/lib/core/states/survey-store/survey.effect.d.ts +6 -1
- package/lib/core/states/survey-store/survey.reducer.d.ts +2 -0
- package/lib/core/states/survey-store/survey.selector.d.ts +1 -0
- package/lib/services/api.service.d.ts +22 -0
- package/lib/survery-lib.module.d.ts +10 -9
- package/package.json +1 -1
- package/shared/dtos/base/result.dto.d.ts +6 -0
- package/shared/dtos/institution-branch.dto.d.ts +6 -0
- package/shared/dtos/institution-collage.dto.d.ts +6 -0
- package/shared/dtos/institution-program.dto.d.ts +5 -0
- package/shared/dtos/institution-section.dto.d.ts +6 -0
- package/shared/dtos/institution.dto.d.ts +6 -0
- package/shared/dtos/survey-question.dto.d.ts +3 -0
- package/shared/dtos/survey-sub-question-level-answer.dto.d.ts +20 -0
- package/shared/dtos/survey-sub-question-level.dto.d.ts +19 -0
- package/shared/enums/question-type.enum.d.ts +2 -1
- package/shared/enums/survey-language.enum.d.ts +4 -0
- package/shared/form-interfaces/question-Institutions-template.form-interface.d.ts +30 -0
package/lib/components/question-institutions-template/question-institutions-template.component.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
4
|
+
import { Store } from '@ngrx/store';
|
|
5
|
+
import { QuestionGroupChildOfQuestionInstitutionsTemplateFormInterface, QuestionInstitutionsTemplateFormInterface } from '../../../shared/form-interfaces/question-Institutions-template.form-interface';
|
|
6
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
7
|
+
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
8
|
+
import { ApiService } from '../../services/api.service';
|
|
9
|
+
import { SurveyLanguageEnum } from 'projects/survery-lib/src/shared/enums/survey-language.enum';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class QuestionInstitutionsTemplateComponent implements OnInit {
|
|
12
|
+
private _Store;
|
|
13
|
+
private _formBuilder;
|
|
14
|
+
private _ApiService;
|
|
15
|
+
institutionsQuestion: SurveyQuestionDto;
|
|
16
|
+
rForm: FormGroup<QuestionInstitutionsTemplateFormInterface>;
|
|
17
|
+
pageQuestions$: import("@angular/core").Signal<QuestionNgrxModel[]>;
|
|
18
|
+
institutionsArr$: import("@angular/core").Signal<import("../../../shared/dtos/institution.dto").InstitutionDto[]>;
|
|
19
|
+
get fCtrls(): QuestionInstitutionsTemplateFormInterface;
|
|
20
|
+
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
21
|
+
get questionFormArray(): import("@angular/forms").FormArray<FormGroup<QuestionGroupChildOfQuestionInstitutionsTemplateFormInterface>>;
|
|
22
|
+
institutionsQuestionArr: import("@angular/core").Signal<{
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
}[]>;
|
|
26
|
+
pageId: number;
|
|
27
|
+
questionGroupId: number;
|
|
28
|
+
isPre: boolean;
|
|
29
|
+
surveyLanguageId: SurveyLanguageEnum;
|
|
30
|
+
applicantKey: string;
|
|
31
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
32
|
+
constructor(_Store: Store, _formBuilder: FormBuilder, _ApiService: ApiService);
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
onUpdateAnswer(model: {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
}, groupIndex: number): void;
|
|
38
|
+
identify(index: any, item: FormGroup<QuestionGroupChildOfQuestionInstitutionsTemplateFormInterface>): any;
|
|
39
|
+
private setQuestionFormGroup;
|
|
40
|
+
private fillQuestionAnswers;
|
|
41
|
+
private resetAnswersOfFormGroupinHigherLevel;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionInstitutionsTemplateComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionInstitutionsTemplateComponent, "lib-question-institutions-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>;
|
|
44
|
+
}
|
|
@@ -12,10 +12,11 @@ export interface QuestionNgrxModel {
|
|
|
12
12
|
questionId: any;
|
|
13
13
|
questionType: QuestionTypeEnum;
|
|
14
14
|
inputTypeId: InputTypeEnum;
|
|
15
|
-
|
|
15
|
+
isQuestionGroup: boolean;
|
|
16
16
|
answerId: any;
|
|
17
17
|
answerIdArr: any;
|
|
18
18
|
answerText: any;
|
|
19
|
+
levelAnswerId?: number;
|
|
19
20
|
isRequired: boolean;
|
|
20
21
|
isValid: boolean;
|
|
21
22
|
isDisabled: boolean;
|
|
@@ -24,4 +25,5 @@ export interface QuestionNgrxModel {
|
|
|
24
25
|
isShow_default: boolean;
|
|
25
26
|
parentQuestionId: any;
|
|
26
27
|
questionAllInfo: SurveyQuestionDto;
|
|
28
|
+
maxLevelValue?: number;
|
|
27
29
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { QuestionNgrxModel } from "../entites/question.entity";
|
|
2
2
|
import { RuleNgrxModel } from "../entites/rule.entity";
|
|
3
3
|
import { QuestionGroupNgrxModel } from "../entites/question-group.entity";
|
|
4
|
+
import { InstitutionDto } from "projects/survery-lib/src/shared/dtos/institution.dto";
|
|
4
5
|
export declare const surveyActions: {
|
|
5
6
|
loadSurvey: import("@ngrx/store").ActionCreator<"[Survey library] Load Survey", (props: {
|
|
6
7
|
questionArr: QuestionNgrxModel[];
|
|
@@ -27,6 +28,19 @@ export declare const surveyActions: {
|
|
|
27
28
|
answer: any;
|
|
28
29
|
isValid: boolean;
|
|
29
30
|
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Answer">>;
|
|
31
|
+
updateInstitutionQuestionAnswer: import("@ngrx/store").ActionCreator<"[Survey library] Update Institution Question Answer", (props: {
|
|
32
|
+
questionId: any;
|
|
33
|
+
answer: any;
|
|
34
|
+
answerId: any;
|
|
35
|
+
levelAnswerId: any;
|
|
36
|
+
isValid: boolean;
|
|
37
|
+
}) => {
|
|
38
|
+
questionId: any;
|
|
39
|
+
answer: any;
|
|
40
|
+
answerId: any;
|
|
41
|
+
levelAnswerId: any;
|
|
42
|
+
isValid: boolean;
|
|
43
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Institution Question Answer">>;
|
|
30
44
|
updateQuestionShow: import("@ngrx/store").ActionCreator<"[Survey library] Update Question Show", (props: {
|
|
31
45
|
questionId: any;
|
|
32
46
|
isShow: boolean;
|
|
@@ -41,6 +55,13 @@ export declare const surveyActions: {
|
|
|
41
55
|
questionId: any;
|
|
42
56
|
isDisabled: boolean;
|
|
43
57
|
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Disable">>;
|
|
58
|
+
updateQuestionRequired: import("@ngrx/store").ActionCreator<"[Survey library] Update Question Required", (props: {
|
|
59
|
+
questionId: any;
|
|
60
|
+
isRequired: boolean;
|
|
61
|
+
}) => {
|
|
62
|
+
questionId: any;
|
|
63
|
+
isRequired: boolean;
|
|
64
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Required">>;
|
|
44
65
|
removeQuestion: import("@ngrx/store").ActionCreator<"[Survey library] Remove Question", (props: {
|
|
45
66
|
questionId: any;
|
|
46
67
|
}) => {
|
|
@@ -51,4 +72,10 @@ export declare const surveyActions: {
|
|
|
51
72
|
}) => {
|
|
52
73
|
pageId: number;
|
|
53
74
|
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Page Id">>;
|
|
75
|
+
loadInstitutionArr: import("@ngrx/store").ActionCreator<"[Survey library] Load Institution Arr", () => import("@ngrx/store/src/models").TypedAction<"[Survey library] Load Institution Arr">>;
|
|
76
|
+
loadInstitutionArrSuccess: import("@ngrx/store").ActionCreator<"[Survey library] Load Institution Arr Success", (props: {
|
|
77
|
+
institutionArr: InstitutionDto[];
|
|
78
|
+
}) => {
|
|
79
|
+
institutionArr: InstitutionDto[];
|
|
80
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Load Institution Arr Success">>;
|
|
54
81
|
};
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { Actions } from "@ngrx/effects";
|
|
2
2
|
import { Store } from "@ngrx/store";
|
|
3
3
|
import { CheckRuleExpsUsecase } from "../../../usecases/check-rule-exps.usecase";
|
|
4
|
+
import { ApiService } from "../../../services/api.service";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SurveyEffects {
|
|
6
7
|
private _actions;
|
|
7
8
|
private _store;
|
|
8
9
|
private _checkRuleExpsUsecase;
|
|
9
|
-
|
|
10
|
+
private _apiService;
|
|
11
|
+
constructor(_actions: Actions, _store: Store, _checkRuleExpsUsecase: CheckRuleExpsUsecase, _apiService: ApiService);
|
|
10
12
|
updateQuestionAnswer$: import("rxjs").Observable<any[]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
13
|
+
loadInstitutionArr$: import("rxjs").Observable<{
|
|
14
|
+
institutionArr: import("../../../../shared/dtos/institution.dto").InstitutionDto[];
|
|
15
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Load Institution Arr Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyEffects, never>;
|
|
12
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<SurveyEffects>;
|
|
13
18
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { QuestionEntityState } from "../entites/question.entity";
|
|
2
2
|
import { RuleEntityState } from "../entites/rule.entity";
|
|
3
3
|
import { QuestionGroupEntityState } from "../entites/question-group.entity";
|
|
4
|
+
import { InstitutionDto } from "projects/survery-lib/src/shared/dtos/institution.dto";
|
|
4
5
|
export interface SurveyState {
|
|
5
6
|
selectedPageId: number;
|
|
6
7
|
questionGroupArr: QuestionGroupEntityState;
|
|
7
8
|
questionArr: QuestionEntityState;
|
|
8
9
|
ruleArr: RuleEntityState;
|
|
10
|
+
InstitutionArr: InstitutionDto[];
|
|
9
11
|
}
|
|
10
12
|
export declare const initialSurveyState: SurveyState;
|
|
11
13
|
export declare const _surveyReducer: import("@ngrx/store").ActionReducer<SurveyState, import("@ngrx/store").Action>;
|
|
@@ -6,4 +6,5 @@ export declare const surveySelectors: {
|
|
|
6
6
|
isFirstPage: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: number[], s2: SurveyState) => boolean>;
|
|
7
7
|
isLastPage: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: number[], s2: SurveyState) => boolean>;
|
|
8
8
|
ruleArr: import("@ngrx/store").MemoizedSelector<object, import("../entites/rule.entity").RuleNgrxModel[], (s1: SurveyState) => import("../entites/rule.entity").RuleNgrxModel[]>;
|
|
9
|
+
institutionArr: import("@ngrx/store").MemoizedSelector<object, import("../../../../shared/dtos/institution.dto").InstitutionDto[], (s1: SurveyState) => import("../../../../shared/dtos/institution.dto").InstitutionDto[]>;
|
|
9
10
|
};
|
|
@@ -2,6 +2,12 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { LibConfigModel } from './lib-config.service';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { GetNextQuestionResult } from '../../shared/results/api.result';
|
|
5
|
+
import { ResultDto } from '../../shared/dtos/base/result.dto';
|
|
6
|
+
import { InstitutionDto } from '../../shared/dtos/institution.dto';
|
|
7
|
+
import { InstitutionBranchDto } from '../../shared/dtos/institution-branch.dto';
|
|
8
|
+
import { InstitutionCollageDto } from '../../shared/dtos/institution-collage.dto';
|
|
9
|
+
import { InstitutionSectionDto } from '../../shared/dtos/institution-section.dto';
|
|
10
|
+
import { InstitutionProgramDto } from '../../shared/dtos/institution-program.dto';
|
|
5
11
|
import * as i0 from "@angular/core";
|
|
6
12
|
export declare class ApiService {
|
|
7
13
|
private _HttpClient;
|
|
@@ -14,6 +20,22 @@ export declare class ApiService {
|
|
|
14
20
|
applicantKey: any;
|
|
15
21
|
isPre: any;
|
|
16
22
|
}): Observable<GetNextQuestionResult>;
|
|
23
|
+
getAllInstitutions(): Observable<ResultDto<InstitutionDto>>;
|
|
24
|
+
getAllBranches(filter: {
|
|
25
|
+
submissionId: string;
|
|
26
|
+
}): Observable<ResultDto<InstitutionBranchDto>>;
|
|
27
|
+
getAllCollages(filter: {
|
|
28
|
+
submissionId: string;
|
|
29
|
+
branchSubmissionId: string;
|
|
30
|
+
}): Observable<ResultDto<InstitutionCollageDto>>;
|
|
31
|
+
getAllSections(filter: {
|
|
32
|
+
submissionId: string;
|
|
33
|
+
collageSubmissionId: string;
|
|
34
|
+
}): Observable<ResultDto<InstitutionSectionDto>>;
|
|
35
|
+
getAllPrograms(filter: {
|
|
36
|
+
submissionId: string;
|
|
37
|
+
sectionGeneratedKey: string;
|
|
38
|
+
}): Observable<ResultDto<InstitutionProgramDto>>;
|
|
17
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
|
|
18
40
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
|
|
19
41
|
}
|
|
@@ -18,18 +18,19 @@ import * as i14 from "./directives/masked-for-min-max.directive";
|
|
|
18
18
|
import * as i15 from "./pipes/find-question.pipe";
|
|
19
19
|
import * as i16 from "./components/question-feedback-template/question-feedback-template.component";
|
|
20
20
|
import * as i17 from "./directives/masked-for-max-length.directive";
|
|
21
|
-
import * as i18 from "
|
|
22
|
-
import * as i19 from "@angular/common
|
|
23
|
-
import * as i20 from "@angular/
|
|
24
|
-
import * as i21 from "@
|
|
25
|
-
import * as i22 from "@
|
|
26
|
-
import * as i23 from "@ngrx/
|
|
27
|
-
import * as i24 from "
|
|
28
|
-
import * as i25 from "ngx-bootstrap/
|
|
21
|
+
import * as i18 from "./components/question-institutions-template/question-institutions-template.component";
|
|
22
|
+
import * as i19 from "@angular/common";
|
|
23
|
+
import * as i20 from "@angular/common/http";
|
|
24
|
+
import * as i21 from "@angular/forms";
|
|
25
|
+
import * as i22 from "@ng-select/ng-select";
|
|
26
|
+
import * as i23 from "@ngrx/store";
|
|
27
|
+
import * as i24 from "@ngrx/effects";
|
|
28
|
+
import * as i25 from "ngx-bootstrap/rating";
|
|
29
|
+
import * as i26 from "ngx-bootstrap/pagination";
|
|
29
30
|
export declare class SurveryLibModule {
|
|
30
31
|
static forRoot(config: LibConfigModel): ModuleWithProviders<SurveryLibModule>;
|
|
31
32
|
static forChild(): ModuleWithProviders<SurveryLibModule>;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveryLibModule, never>;
|
|
33
|
-
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.MaskedForMaxLengthDirective], [typeof
|
|
34
|
+
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.MaskedForMaxLengthDirective, typeof i18.QuestionInstitutionsTemplateComponent], [typeof i19.CommonModule, typeof i20.HttpClientModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.StoreFeatureModule, typeof i24.EffectsFeatureModule, typeof i25.RatingModule, typeof i26.PaginationModule], [typeof i1.SurveryLibComponent, typeof i23.StoreModule]>;
|
|
34
35
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveryLibModule>;
|
|
35
36
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SurveyAnswerDto } from "./survey-answer.dto";
|
|
2
|
+
import { SurveySubQuestionLevelDto } from "./survey-sub-question-level.dto";
|
|
2
3
|
import { SurveySubQuestionDto } from "./survey-sub-question.dto";
|
|
3
4
|
export interface SurveyQuestionDto {
|
|
4
5
|
questionId: number;
|
|
@@ -13,6 +14,8 @@ export interface SurveyQuestionDto {
|
|
|
13
14
|
isReadOnly: boolean;
|
|
14
15
|
isPreDefine: boolean;
|
|
15
16
|
isAdvanceTextArea: boolean;
|
|
17
|
+
maxLevelValue: number;
|
|
16
18
|
surveyAnswers: SurveyAnswerDto[];
|
|
17
19
|
surveySubQuestions: SurveySubQuestionDto[];
|
|
20
|
+
surveySubQuestionLevels: SurveySubQuestionLevelDto[];
|
|
18
21
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SurveySubQuestionLevelAnswerDto {
|
|
2
|
+
maxValue: null;
|
|
3
|
+
evaluationTypeId: null;
|
|
4
|
+
answerId: number;
|
|
5
|
+
score: number;
|
|
6
|
+
inputMax: null;
|
|
7
|
+
level: number;
|
|
8
|
+
inputMin: null;
|
|
9
|
+
isAddByPreDefine: boolean;
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
selectedAnswer: null;
|
|
12
|
+
order: number;
|
|
13
|
+
answerTitle: null;
|
|
14
|
+
answerName: null;
|
|
15
|
+
questionTitle: null;
|
|
16
|
+
regex: null;
|
|
17
|
+
answerDescription: null;
|
|
18
|
+
placeHolder: null;
|
|
19
|
+
inputTypeId: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SurveySubQuestionLevelAnswerDto } from "./survey-sub-question-level-answer.dto";
|
|
2
|
+
export interface SurveySubQuestionLevelDto {
|
|
3
|
+
level: number;
|
|
4
|
+
questionId: number;
|
|
5
|
+
questionTypeId: number;
|
|
6
|
+
questionTopicId: null;
|
|
7
|
+
topicId: null;
|
|
8
|
+
questionTopicName: null;
|
|
9
|
+
questionTitle: string;
|
|
10
|
+
questionName: null;
|
|
11
|
+
isVisable: boolean;
|
|
12
|
+
isReadOnly: boolean;
|
|
13
|
+
questionDescription: null;
|
|
14
|
+
applicantAnswer: null;
|
|
15
|
+
selectedAnswerId: number;
|
|
16
|
+
questionWeight: number;
|
|
17
|
+
order: number;
|
|
18
|
+
levelAnswer: SurveySubQuestionLevelAnswerDto;
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
import { QuestionTypeEnum } from "../enums/question-type.enum";
|
|
3
|
+
export interface QuestionInstitutionsTemplateFormInterface {
|
|
4
|
+
maxLevelValue: FormControl<number>;
|
|
5
|
+
id: FormControl<any>;
|
|
6
|
+
title: FormControl<string>;
|
|
7
|
+
isRequired: FormControl<boolean>;
|
|
8
|
+
isShow: FormControl<boolean>;
|
|
9
|
+
isDisabled: FormControl<boolean>;
|
|
10
|
+
institutionId: FormControl<any>;
|
|
11
|
+
branchId: FormControl<any>;
|
|
12
|
+
collageId: FormControl<any>;
|
|
13
|
+
sectionId: FormControl<any>;
|
|
14
|
+
questionArr: FormArray<FormGroup<QuestionGroupChildOfQuestionInstitutionsTemplateFormInterface>>;
|
|
15
|
+
}
|
|
16
|
+
export interface QuestionGroupChildOfQuestionInstitutionsTemplateFormInterface {
|
|
17
|
+
id: FormControl<any>;
|
|
18
|
+
name: FormControl<string>;
|
|
19
|
+
title: FormControl<string>;
|
|
20
|
+
description: FormControl<string>;
|
|
21
|
+
level: FormControl<number>;
|
|
22
|
+
levelAnswerId: FormControl<number>;
|
|
23
|
+
typeId: FormControl<QuestionTypeEnum>;
|
|
24
|
+
answers: FormControl<{
|
|
25
|
+
id: any;
|
|
26
|
+
name: any;
|
|
27
|
+
}[]>;
|
|
28
|
+
answerValue: FormControl<string>;
|
|
29
|
+
answerId: FormControl<number>;
|
|
30
|
+
}
|