survery-lib 0.1.60 → 0.2.2
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 +57 -55
- package/esm2022/lib/components/question-cascade-template/question-cascade-template.component.mjs +46 -20
- package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +63 -56
- package/esm2022/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.mjs +60 -53
- package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +53 -38
- package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +66 -54
- package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +60 -52
- package/esm2022/lib/components/question-text-template/question-text-template.component.mjs +75 -70
- package/esm2022/lib/core/states/entites/question-group.entity.mjs +8 -0
- package/esm2022/lib/core/states/entites/question.entity.mjs +8 -0
- package/esm2022/lib/core/states/entites/rule.entity.mjs +8 -0
- package/esm2022/lib/core/states/survey-store/question-group.selector.mjs +9 -0
- package/esm2022/lib/core/states/survey-store/question.selector.mjs +22 -0
- package/esm2022/lib/core/states/survey-store/survey.action.mjs +18 -0
- package/esm2022/lib/core/states/survey-store/survey.reducer.mjs +102 -0
- package/esm2022/lib/core/states/survey-store/survey.selector.mjs +33 -0
- package/esm2022/lib/pipes/filter-question.pipe.mjs +3 -3
- package/esm2022/lib/pipes/find-question.pipe.mjs +19 -0
- package/esm2022/lib/services/survey-lib.service.mjs +99 -41
- package/esm2022/lib/survery-lib.component.mjs +84 -285
- package/esm2022/lib/survery-lib.module.mjs +21 -7
- package/esm2022/lib/usecases/check-rule-exps.usecase.mjs +1 -1
- package/esm2022/shared/form-interfaces/survery-lib.form-interface.mjs +1 -1
- package/fesm2022/survery-lib.mjs +823 -706
- package/fesm2022/survery-lib.mjs.map +1 -1
- package/lib/components/question-boolean-template/question-boolean-template.component.d.ts +7 -6
- package/lib/components/question-cascade-template/question-cascade-template.component.d.ts +9 -6
- package/lib/components/question-check-box-template/question-check-box-template.component.d.ts +7 -6
- package/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.d.ts +6 -6
- package/lib/components/question-dropdown-template/question-dropdown-template.component.d.ts +5 -2
- package/lib/components/question-matrix-template/question-matrix-template.component.d.ts +7 -6
- package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts +7 -6
- package/lib/components/question-text-template/question-text-template.component.d.ts +8 -7
- package/lib/core/states/entites/question-group.entity.d.ts +11 -0
- package/lib/core/states/entites/question.entity.d.ts +27 -0
- package/lib/core/states/entites/rule.entity.d.ts +8 -0
- package/lib/core/states/survey-store/question-group.selector.d.ts +4 -0
- package/lib/core/states/survey-store/question.selector.d.ts +7 -0
- package/lib/core/states/survey-store/survey.action.d.ts +54 -0
- package/lib/core/states/survey-store/survey.reducer.d.ts +12 -0
- package/lib/core/states/survey-store/survey.selector.d.ts +9 -0
- package/lib/pipes/filter-question.pipe.d.ts +2 -3
- package/lib/pipes/find-question.pipe.d.ts +8 -0
- package/lib/services/survey-lib.service.d.ts +4 -29
- package/lib/survery-lib.component.d.ts +16 -23
- package/lib/survery-lib.module.d.ts +9 -6
- package/lib/usecases/check-rule-exps.usecase.d.ts +2 -3
- package/package.json +1 -1
- package/shared/form-interfaces/survery-lib.form-interface.d.ts +3 -3
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
4
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
5
|
-
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
6
5
|
import { AnswerChildOfQuestionBooleanTemplateFormInterface, QuestionBooleanTemplateFormInterface } from '../../../shared/form-interfaces/question-boolean-template.form-interface';
|
|
7
6
|
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
8
7
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
8
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
9
|
+
import { Store } from '@ngrx/store';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class QuestionBooleanTemplateComponent implements OnInit {
|
|
11
12
|
private _formBuilder;
|
|
12
13
|
private _surveyLibService;
|
|
14
|
+
private _Store;
|
|
13
15
|
elemId: string;
|
|
14
16
|
surveyQuestion: SurveyQuestionDto;
|
|
15
17
|
rForm: FormGroup<QuestionBooleanTemplateFormInterface>;
|
|
@@ -25,12 +27,11 @@ export declare class QuestionBooleanTemplateComponent implements OnInit {
|
|
|
25
27
|
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionBooleanTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
28
|
};
|
|
27
29
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
30
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
31
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
31
32
|
ngOnInit(): void;
|
|
32
33
|
onChangeAnswer(item: AnswerChildOfQuestionBooleanTemplateFormInterface): void;
|
|
33
34
|
convertToFormControl(element: any): FormControl<any>;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionBooleanTemplateComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionBooleanTemplateComponent, "lib-question-boolean-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionBooleanTemplateComponent, "lib-question-boolean-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
37
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
3
2
|
import { QuestionCascadeTemplateFormInterface, QuestionGroupChildOfQuestionCascadeTemplateFormInterface } from '../../../shared/form-interfaces/question-cascade.form-interface';
|
|
4
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
@@ -6,29 +5,33 @@ import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
|
6
5
|
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
7
6
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
8
7
|
import { ApiService } from '../../services/api.service';
|
|
8
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
9
|
+
import { Store } from '@ngrx/store';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class QuestionCascadeTemplateComponent {
|
|
11
12
|
private _formBuilder;
|
|
12
13
|
private _surveyLibService;
|
|
13
14
|
private _ApiService;
|
|
15
|
+
private _Store;
|
|
14
16
|
surveyQuestionArr: SurveyQuestionDto[];
|
|
15
17
|
rForm: FormGroup<QuestionCascadeTemplateFormInterface>;
|
|
18
|
+
pageQuestions$: import("rxjs").Observable<QuestionNgrxModel[]>;
|
|
16
19
|
get fCtrls(): {
|
|
17
20
|
questionArr: import("@ng-stack/forms").FormArray<QuestionGroupChildOfQuestionCascadeTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
18
21
|
};
|
|
19
22
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
20
23
|
get questionFormArray(): import("@ng-stack/forms").FormArray<QuestionGroupChildOfQuestionCascadeTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
pageId: number;
|
|
25
|
+
questionGroupId: number;
|
|
23
26
|
isPre: boolean;
|
|
24
27
|
surveyLanguageId: number;
|
|
25
28
|
applicantKey: string;
|
|
26
|
-
set setQuestion(value:
|
|
27
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _ApiService: ApiService);
|
|
29
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
30
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _ApiService: ApiService, _Store: Store);
|
|
28
31
|
ngOnInit(): void;
|
|
29
32
|
onUpdateAnswer(model: QuestionAnswerModel): void;
|
|
30
33
|
identify(index: any, item: QuestionGroupChildOfQuestionCascadeTemplateFormInterface): any;
|
|
31
34
|
private setQuestions;
|
|
32
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionCascadeTemplateComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionCascadeTemplateComponent, "lib-question-cascade-template", never, { "
|
|
36
|
+
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>;
|
|
34
37
|
}
|
package/lib/components/question-check-box-template/question-check-box-template.component.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
4
4
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
5
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
6
|
import { AnswerChildOfQuestionCheckBoxTemplateFormInterface, QuestionCheckBoxTemplateFormInterface } from '../../../shared/form-interfaces/question-check-box-template.form-interface';
|
|
7
|
-
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
8
7
|
import { AnswerChildOfQuestionBooleanTemplateFormInterface } from '../../../shared/form-interfaces/question-boolean-template.form-interface';
|
|
9
8
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
9
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
10
|
+
import { Store } from '@ngrx/store';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class QuestionCheckBoxTemplateComponent implements OnInit {
|
|
12
13
|
private _formBuilder;
|
|
13
14
|
private _surveyLibService;
|
|
15
|
+
private _Store;
|
|
14
16
|
elemId: string;
|
|
15
17
|
surveyQuestion: SurveyQuestionDto;
|
|
16
18
|
rForm: FormGroup<QuestionCheckBoxTemplateFormInterface>;
|
|
@@ -26,12 +28,11 @@ export declare class QuestionCheckBoxTemplateComponent implements OnInit {
|
|
|
26
28
|
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionCheckBoxTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
27
29
|
};
|
|
28
30
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
31
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
32
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
32
33
|
ngOnInit(): void;
|
|
33
34
|
onChangeAnswer(item: AnswerChildOfQuestionBooleanTemplateFormInterface, event: Event): void;
|
|
34
35
|
convertToFormControl(element: any): FormControl<any>;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionCheckBoxTemplateComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionCheckBoxTemplateComponent, "lib-question-check-box-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionCheckBoxTemplateComponent, "lib-question-check-box-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
37
38
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { FormControl } from '@angular/forms';
|
|
3
2
|
import { FormGroup, FormBuilder } from '@ng-stack/forms';
|
|
4
3
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
4
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
|
-
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
7
5
|
import { AnswerChildOfQuestionDropDownMultiTemplateFormInterface, QuestionDropDownMultiTemplateFormInterface } from '../../../shared/form-interfaces/question-dropdown-multi-template.form-interface';
|
|
8
6
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
7
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
8
|
+
import { Store } from '@ngrx/store';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class QuestionDropdownMultiTemplateComponent {
|
|
11
11
|
private _formBuilder;
|
|
12
12
|
private _surveyLibService;
|
|
13
|
+
private _Store;
|
|
13
14
|
elemId: string;
|
|
14
15
|
surveyQuestion: SurveyQuestionDto;
|
|
15
16
|
rForm: FormGroup<QuestionDropDownMultiTemplateFormInterface>;
|
|
@@ -25,11 +26,10 @@ export declare class QuestionDropdownMultiTemplateComponent {
|
|
|
25
26
|
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionDropDownMultiTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
27
|
};
|
|
27
28
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
29
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
30
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
convertToFormControl(element: any): FormControl<any>;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionDropdownMultiTemplateComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionDropdownMultiTemplateComponent, "lib-question-dropdown-multi-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionDropdownMultiTemplateComponent, "lib-question-dropdown-multi-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
35
|
}
|
|
@@ -6,10 +6,13 @@ import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
|
6
6
|
import { QuestionDropdownTemplateFormInterface } from '../../../shared/form-interfaces/question-dropdown-template.form-interface';
|
|
7
7
|
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
8
8
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
9
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
10
|
+
import { Store } from '@ngrx/store';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare class QuestionDropdownTemplateComponent implements OnInit {
|
|
11
13
|
private _formBuilder;
|
|
12
14
|
private _surveyLibService;
|
|
15
|
+
private _Store;
|
|
13
16
|
surveyQuestion: SurveyQuestionDto;
|
|
14
17
|
rForm: FormGroup<QuestionDropdownTemplateFormInterface>;
|
|
15
18
|
get fCtrls(): {
|
|
@@ -24,8 +27,8 @@ export declare class QuestionDropdownTemplateComponent implements OnInit {
|
|
|
24
27
|
};
|
|
25
28
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
26
29
|
emitter: EventEmitter<QuestionAnswerModel>;
|
|
27
|
-
set setQuestion(value:
|
|
28
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
30
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
31
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
29
32
|
ngOnInit(): void;
|
|
30
33
|
convertToFormControl(element: any): FormControl<any>;
|
|
31
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionDropdownTemplateComponent, never>;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
4
4
|
import { SurveyAnswerDto } from '../../../shared/dtos/survey-answer.dto';
|
|
5
5
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
6
6
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
7
7
|
import { QuestionMatrixTemplateFormInterface, SubQuestionChildOfQuestionMatrixTemplateFormInterface } from '../../../shared/form-interfaces/question-matrix-template.form-interface';
|
|
8
|
-
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
9
8
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
9
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
10
|
+
import { Store } from '@ngrx/store';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class QuestionMatrixTemplateComponent implements OnInit {
|
|
12
13
|
private _formBuilder;
|
|
13
14
|
private _surveyLibService;
|
|
15
|
+
private _Store;
|
|
14
16
|
elemId: string;
|
|
15
17
|
surveyQuestion: SurveyQuestionDto;
|
|
16
18
|
rForm: FormGroup<QuestionMatrixTemplateFormInterface>;
|
|
@@ -22,12 +24,11 @@ export declare class QuestionMatrixTemplateComponent implements OnInit {
|
|
|
22
24
|
subQuestionArray: import("@ng-stack/forms").FormArray<SubQuestionChildOfQuestionMatrixTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
23
25
|
};
|
|
24
26
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
27
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
28
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
28
29
|
ngOnInit(): void;
|
|
29
30
|
onChangeAnswer(question: SubQuestionChildOfQuestionMatrixTemplateFormInterface, answer: SurveyAnswerDto): void;
|
|
30
31
|
convertToFormControl(element: any): FormControl<any>;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionMatrixTemplateComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionMatrixTemplateComponent, "lib-question-matrix-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionMatrixTemplateComponent, "lib-question-matrix-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
34
|
}
|
package/lib/components/question-radio-button-template/question-radio-button-template.component.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
4
4
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
5
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
6
|
import { AnswerChildOfQuestionRadioButtonTemplateFormInterface, QuestionRadioButtonTemplateFormInterface } from '../../../shared/form-interfaces/question-radio-button-template.form-interface';
|
|
7
|
-
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
8
7
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
8
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
9
|
+
import { Store } from '@ngrx/store';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class QuestionRadioButtonTemplateComponent implements OnInit {
|
|
11
12
|
private _formBuilder;
|
|
12
13
|
private _surveyLibService;
|
|
14
|
+
private _Store;
|
|
13
15
|
elemId: string;
|
|
14
16
|
surveyQuestion: SurveyQuestionDto;
|
|
15
17
|
rForm: FormGroup<QuestionRadioButtonTemplateFormInterface>;
|
|
@@ -25,12 +27,11 @@ export declare class QuestionRadioButtonTemplateComponent implements OnInit {
|
|
|
25
27
|
answerArray: import("@ng-stack/forms").FormArray<AnswerChildOfQuestionRadioButtonTemplateFormInterface, import("@ng-stack/forms").ValidatorsModel>;
|
|
26
28
|
};
|
|
27
29
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
30
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
31
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
31
32
|
ngOnInit(): void;
|
|
32
33
|
onChangeAnswer(item: AnswerChildOfQuestionRadioButtonTemplateFormInterface): void;
|
|
33
34
|
convertToFormControl(element: any): FormControl<any>;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionRadioButtonTemplateComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionRadioButtonTemplateComponent, "lib-question-radio-button-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionRadioButtonTemplateComponent, "lib-question-radio-button-template", never, { "setQuestion": { "alias": "setQuestion"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
37
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FormBuilder, FormGroup, FormControl as FormControlStack, ValidatorsModel } from '@ng-stack/forms';
|
|
4
4
|
import { SurveyQuestionDto } from '../../../shared/dtos/survey-question.dto';
|
|
5
5
|
import { QuestionTypeEnum } from '../../../shared/enums/question-type.enum';
|
|
6
6
|
import { QuestionTextTemplateFormInterface } from '../../../shared/form-interfaces/question-text-template.form-interface';
|
|
7
|
-
import { QuestionAnswerModel } from '../../../shared/models/question-answer.model';
|
|
8
7
|
import { SurveyLibService } from '../../services/survey-lib.service';
|
|
9
8
|
import { InputTypeEnum } from '../../../shared/enums/input-type.enum';
|
|
9
|
+
import { QuestionNgrxModel } from '../../core/states/entites/question.entity';
|
|
10
|
+
import { Store } from '@ngrx/store';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class QuestionTextTemplateComponent implements OnInit {
|
|
12
13
|
private _formBuilder;
|
|
13
14
|
private _surveyLibService;
|
|
15
|
+
private _Store;
|
|
14
16
|
surveyQuestion: SurveyQuestionDto;
|
|
15
17
|
rForm: FormGroup<QuestionTextTemplateFormInterface>;
|
|
16
18
|
customPatterns: null;
|
|
19
|
+
isTextArea: boolean;
|
|
17
20
|
get fCtrls(): {
|
|
18
21
|
id: FormGroup<any, ValidatorsModel> | FormControlStack<any, ValidatorsModel> | import("@ng-stack/forms").FormArray<any, ValidatorsModel>;
|
|
19
22
|
typeId: FormControlStack<QuestionTypeEnum, ValidatorsModel>;
|
|
@@ -30,15 +33,13 @@ export declare class QuestionTextTemplateComponent implements OnInit {
|
|
|
30
33
|
};
|
|
31
34
|
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
32
35
|
get questionMinMaxIndicator(): string;
|
|
33
|
-
emitter: EventEmitter<QuestionAnswerModel>;
|
|
34
36
|
isArabicLang: boolean;
|
|
35
|
-
|
|
36
|
-
set setQuestion(value: SurveyQuestionDto);
|
|
37
|
+
set setQuestion(value: QuestionNgrxModel);
|
|
37
38
|
set isDisabled(value: boolean);
|
|
38
|
-
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService);
|
|
39
|
+
constructor(_formBuilder: FormBuilder, _surveyLibService: SurveyLibService, _Store: Store);
|
|
39
40
|
ngOnInit(): void;
|
|
40
41
|
convertToFormControl(element: any): FormControl<any>;
|
|
41
42
|
private toggleEnableAnswer;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionTextTemplateComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionTextTemplateComponent, "lib-question-text-template", never, { "isArabicLang": { "alias": "isArabicLang"; "required": false; }; "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionTextTemplateComponent, "lib-question-text-template", never, { "isArabicLang": { "alias": "isArabicLang"; "required": false; }; "setQuestion": { "alias": "setQuestion"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
44
45
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntityAdapter, EntityState } from "@ngrx/entity";
|
|
2
|
+
export declare function selectQuestionGroupId(a: QuestionGroupNgrxModel): number;
|
|
3
|
+
export declare const questionGroupAdapter: EntityAdapter<QuestionGroupNgrxModel>;
|
|
4
|
+
export interface QuestionGroupEntityState extends EntityState<QuestionGroupNgrxModel> {
|
|
5
|
+
}
|
|
6
|
+
export interface QuestionGroupNgrxModel {
|
|
7
|
+
questionGroupId: number;
|
|
8
|
+
questionGroupName: string;
|
|
9
|
+
questionGroupDescription: string;
|
|
10
|
+
surveyPageId: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EntityAdapter, EntityState } from "@ngrx/entity";
|
|
2
|
+
import { QuestionTypeEnum } from "../../../../shared/enums/question-type.enum";
|
|
3
|
+
import { InputTypeEnum } from "../../../../shared/enums/input-type.enum";
|
|
4
|
+
import { SurveyQuestionDto } from "../../../../shared/dtos/survey-question.dto";
|
|
5
|
+
export declare function selectQuestionId(a: QuestionNgrxModel): any;
|
|
6
|
+
export declare const questionAdapter: EntityAdapter<QuestionNgrxModel>;
|
|
7
|
+
export interface QuestionEntityState extends EntityState<QuestionNgrxModel> {
|
|
8
|
+
}
|
|
9
|
+
export interface QuestionNgrxModel {
|
|
10
|
+
surveyPageId: number;
|
|
11
|
+
questionGroupId: number;
|
|
12
|
+
questionId: any;
|
|
13
|
+
questionType: QuestionTypeEnum;
|
|
14
|
+
inputTypeId: InputTypeEnum;
|
|
15
|
+
isMatrixGroup: boolean;
|
|
16
|
+
answerId: any;
|
|
17
|
+
answerIdArr: any;
|
|
18
|
+
answerText: any;
|
|
19
|
+
isRequired: boolean;
|
|
20
|
+
isValid: boolean;
|
|
21
|
+
isDisabled: boolean;
|
|
22
|
+
isShow: boolean;
|
|
23
|
+
isDisabled_default: boolean;
|
|
24
|
+
isShow_default: boolean;
|
|
25
|
+
parentQuestionId: any;
|
|
26
|
+
questionAllInfo: SurveyQuestionDto;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityAdapter, EntityState } from "@ngrx/entity";
|
|
2
|
+
import { SurveyRuleDto } from "../../../../shared/dtos/survey-rule.dto";
|
|
3
|
+
export declare function selectRuleId(a: RuleNgrxModel): number;
|
|
4
|
+
export declare const ruleAdapter: EntityAdapter<RuleNgrxModel>;
|
|
5
|
+
export interface RuleEntityState extends EntityState<RuleNgrxModel> {
|
|
6
|
+
}
|
|
7
|
+
export interface RuleNgrxModel extends SurveyRuleDto {
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SurveyState } from "./survey.reducer";
|
|
2
|
+
export declare const questionGroupSelectors: {
|
|
3
|
+
pageQuestionGroups: import("@ngrx/store").MemoizedSelector<object, import("../entites/question-group.entity").QuestionGroupNgrxModel[], (s1: SurveyState) => import("../entites/question-group.entity").QuestionGroupNgrxModel[]>;
|
|
4
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SurveyState } from "./survey.reducer";
|
|
2
|
+
import { SurveyQuestionResult } from "../../../../shared/models/survery-question-result.model";
|
|
3
|
+
export declare const questionSelectors: {
|
|
4
|
+
allQuestions: import("@ngrx/store").MemoizedSelector<object, import("../entites/question.entity").QuestionNgrxModel[], (s1: SurveyState) => import("../entites/question.entity").QuestionNgrxModel[]>;
|
|
5
|
+
pageQuestions: import("@ngrx/store").MemoizedSelector<object, import("../entites/question.entity").QuestionNgrxModel[], (s1: SurveyState) => import("../entites/question.entity").QuestionNgrxModel[]>;
|
|
6
|
+
questionAnswers: import("@ngrx/store").MemoizedSelector<object, SurveyQuestionResult[], (s1: SurveyState) => SurveyQuestionResult[]>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { QuestionNgrxModel } from "../entites/question.entity";
|
|
2
|
+
import { RuleNgrxModel } from "../entites/rule.entity";
|
|
3
|
+
import { QuestionGroupNgrxModel } from "../entites/question-group.entity";
|
|
4
|
+
export declare const surveyActions: {
|
|
5
|
+
loadSurvey: import("@ngrx/store").ActionCreator<"[Survey library] Load Survey", (props: {
|
|
6
|
+
questionArr: QuestionNgrxModel[];
|
|
7
|
+
ruleArr: RuleNgrxModel[];
|
|
8
|
+
questionGroupArr: QuestionGroupNgrxModel[];
|
|
9
|
+
selectedPageId: number;
|
|
10
|
+
}) => {
|
|
11
|
+
questionArr: QuestionNgrxModel[];
|
|
12
|
+
ruleArr: RuleNgrxModel[];
|
|
13
|
+
questionGroupArr: QuestionGroupNgrxModel[];
|
|
14
|
+
selectedPageId: number;
|
|
15
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Load Survey">>;
|
|
16
|
+
addQuestion: import("@ngrx/store").ActionCreator<"[Survey library] Add Question", (props: {
|
|
17
|
+
question: QuestionNgrxModel;
|
|
18
|
+
}) => {
|
|
19
|
+
question: QuestionNgrxModel;
|
|
20
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Add Question">>;
|
|
21
|
+
updateQuestionAnswer: import("@ngrx/store").ActionCreator<"[Survey library] Update Question Answer", (props: {
|
|
22
|
+
questionId: any;
|
|
23
|
+
answer: any;
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
}) => {
|
|
26
|
+
questionId: any;
|
|
27
|
+
answer: any;
|
|
28
|
+
isValid: boolean;
|
|
29
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Answer">>;
|
|
30
|
+
updateQuestionShow: import("@ngrx/store").ActionCreator<"[Survey library] Update Question Show", (props: {
|
|
31
|
+
questionId: any;
|
|
32
|
+
isShow: boolean;
|
|
33
|
+
}) => {
|
|
34
|
+
questionId: any;
|
|
35
|
+
isShow: boolean;
|
|
36
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Show">>;
|
|
37
|
+
updateQuestionDisable: import("@ngrx/store").ActionCreator<"[Survey library] Update Question Disable", (props: {
|
|
38
|
+
questionId: any;
|
|
39
|
+
isDisabled: boolean;
|
|
40
|
+
}) => {
|
|
41
|
+
questionId: any;
|
|
42
|
+
isDisabled: boolean;
|
|
43
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Question Disable">>;
|
|
44
|
+
removeQuestion: import("@ngrx/store").ActionCreator<"[Survey library] Remove Question", (props: {
|
|
45
|
+
questionId: any;
|
|
46
|
+
}) => {
|
|
47
|
+
questionId: any;
|
|
48
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Remove Question">>;
|
|
49
|
+
updatePageId: import("@ngrx/store").ActionCreator<"[Survey library] Update Page Id", (props: {
|
|
50
|
+
pageId: number;
|
|
51
|
+
}) => {
|
|
52
|
+
pageId: number;
|
|
53
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Survey library] Update Page Id">>;
|
|
54
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QuestionEntityState } from "../entites/question.entity";
|
|
2
|
+
import { RuleEntityState } from "../entites/rule.entity";
|
|
3
|
+
import { QuestionGroupEntityState } from "../entites/question-group.entity";
|
|
4
|
+
export interface SurveyState {
|
|
5
|
+
selectedPageId: number;
|
|
6
|
+
questionGroupArr: QuestionGroupEntityState;
|
|
7
|
+
questionArr: QuestionEntityState;
|
|
8
|
+
ruleArr: RuleEntityState;
|
|
9
|
+
}
|
|
10
|
+
export declare const initialSurveyState: SurveyState;
|
|
11
|
+
export declare const _surveyReducer: import("@ngrx/store").ActionReducer<SurveyState, import("@ngrx/store").Action>;
|
|
12
|
+
export declare function surveyReducer(state: any, action: any): SurveyState;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SurveyState } from "./survey.reducer";
|
|
2
|
+
export declare const surveySelectors: {
|
|
3
|
+
selectedPageId: import("@ngrx/store").MemoizedSelector<object, number, (s1: SurveyState) => number>;
|
|
4
|
+
selectedPageIndex: import("@ngrx/store").MemoizedSelector<object, number, (s1: number[], s2: SurveyState) => number>;
|
|
5
|
+
showedSurveyPages: import("@ngrx/store").MemoizedSelector<object, number[], (s1: SurveyState) => number[]>;
|
|
6
|
+
isFirstPage: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: number[], s2: SurveyState) => boolean>;
|
|
7
|
+
isLastPage: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: number[], s2: SurveyState) => boolean>;
|
|
8
|
+
ruleArr: import("@ngrx/store").MemoizedSelector<object, import("../entites/rule.entity").RuleNgrxModel[], (s1: SurveyState) => import("../entites/rule.entity").RuleNgrxModel[]>;
|
|
9
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { QuestionChildOfSurveryLibFormInterface } from '../../shared/form-interfaces/survery-lib.form-interface';
|
|
2
|
+
import { QuestionNgrxModel } from '../core/states/entites/question.entity';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class FilterQuestionPipe implements PipeTransform {
|
|
6
|
-
transform(
|
|
5
|
+
transform(arr: QuestionNgrxModel[], questionGroupId: any): QuestionNgrxModel[];
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterQuestionPipe, never>;
|
|
8
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterQuestionPipe, "filterQuestion", false>;
|
|
9
8
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { QuestionNgrxModel } from '../core/states/entites/question.entity';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FindQuestionPipe implements PipeTransform {
|
|
5
|
+
transform(arr: QuestionNgrxModel[], questionId: any): QuestionNgrxModel;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FindQuestionPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FindQuestionPipe, "findQuestion", false>;
|
|
8
|
+
}
|
|
@@ -1,41 +1,16 @@
|
|
|
1
1
|
import { SurveyDto } from '../../shared/dtos/survey.dto';
|
|
2
2
|
import { surveyAnswersSubjectDto } from '../../shared/dtos/survey-answers-subject.dto';
|
|
3
|
-
import {
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SurveyLibService {
|
|
6
|
-
private
|
|
7
|
-
private surveyAnswersSubject;
|
|
6
|
+
private _Store;
|
|
8
7
|
private reloadSurveySubject;
|
|
9
|
-
private questionIsShowSubject;
|
|
10
|
-
private questionIsDisabledSubject;
|
|
11
|
-
private addQuestionSubject;
|
|
12
|
-
private removeQuestionSubject;
|
|
13
|
-
get surveyDataObsrv(): import("rxjs").Observable<SurveyDto>;
|
|
14
|
-
get surveyAnswersObsrv(): import("rxjs").Observable<surveyAnswersSubjectDto>;
|
|
15
8
|
get reloadSurveyObsrv(): import("rxjs").Observable<string>;
|
|
16
|
-
|
|
17
|
-
questionId: number;
|
|
18
|
-
isShow: boolean;
|
|
19
|
-
}>;
|
|
20
|
-
get questionIsDisabledObsrv(): import("rxjs").Observable<{
|
|
21
|
-
questionId: number;
|
|
22
|
-
isDisabled: boolean;
|
|
23
|
-
}>;
|
|
24
|
-
get addQuestionObsrv(): import("rxjs").Observable<{
|
|
25
|
-
question: SurveyQuestionDto;
|
|
26
|
-
pageIndex: number;
|
|
27
|
-
}>;
|
|
28
|
-
get removeQuestionObsrv(): import("rxjs").Observable<{
|
|
29
|
-
questionId: number;
|
|
30
|
-
}>;
|
|
31
|
-
constructor();
|
|
9
|
+
constructor(_Store: Store);
|
|
32
10
|
setSurveyData(survey: SurveyDto): void;
|
|
33
11
|
setsurveyAnswers(model: surveyAnswersSubjectDto): void;
|
|
34
|
-
setQuestionIsShow(questionId: number, isShow: boolean): void;
|
|
35
|
-
setQuestionIsDisabled(questionId: number, isDisabled: boolean): void;
|
|
36
12
|
setReloadSurvey(): void;
|
|
37
|
-
|
|
38
|
-
setRemoveQuestion(questionId: number): void;
|
|
13
|
+
private addQuestion;
|
|
39
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyLibService, never>;
|
|
40
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<SurveyLibService>;
|
|
41
16
|
}
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { SurveyLibService } from './services/survey-lib.service';
|
|
3
|
-
import {
|
|
4
|
-
import { FormBuilder, FormGroup } from '@ng-stack/forms';
|
|
5
|
-
import { QuestionChildOfSurveryLibFormInterface, RuleQuestionChildOfSurveryLibFormInterface, SurveryLibFormInterface } from '../shared/form-interfaces/survery-lib.form-interface';
|
|
3
|
+
import { SurveryLibFormInterface } from '../shared/form-interfaces/survery-lib.form-interface';
|
|
6
4
|
import { QuestionTypeEnum } from '../shared/enums/question-type.enum';
|
|
7
|
-
import {
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
8
6
|
import { CheckRuleExpsUsecase } from './usecases/check-rule-exps.usecase';
|
|
9
7
|
import { SurveyQuestionResult } from '../shared/models/survery-question-result.model';
|
|
10
|
-
import {
|
|
8
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
9
|
+
import { Store } from '@ngrx/store';
|
|
10
|
+
import { QuestionNgrxModel } from './core/states/entites/question.entity';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class SurveryLibComponent implements OnInit, AfterViewInit {
|
|
13
13
|
private _surveyLibService;
|
|
14
|
+
private _Store;
|
|
14
15
|
private _formBuilder;
|
|
15
16
|
private _checkRuleExpsUsecase;
|
|
16
17
|
surveryLibraryDivId: string;
|
|
17
18
|
reloadDefaultAnswerId: string;
|
|
18
|
-
surveyData: SurveyDto;
|
|
19
|
-
defaultAnswers: DefaultQuestionAnswerDto[];
|
|
20
19
|
rForm: FormGroup<SurveryLibFormInterface>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
questionAnswerArr: SurveyQuestionResult[];
|
|
21
|
+
pageQuestionGroups$: Observable<import("./core/states/entites/question-group.entity").QuestionGroupNgrxModel[]>;
|
|
22
|
+
pageQuestions$: Observable<QuestionNgrxModel[]>;
|
|
23
|
+
isFirstPage$: Observable<boolean>;
|
|
24
|
+
isLastPage$: Observable<boolean>;
|
|
25
|
+
curruntShowedSurveyPages$: Observable<number>;
|
|
26
|
+
get fCtrls(): SurveryLibFormInterface;
|
|
27
27
|
get isFirstPage(): boolean;
|
|
28
|
-
get
|
|
29
|
-
get showedSurveyPages(): number[];
|
|
30
|
-
get curruntShowedSurveyPages(): number;
|
|
28
|
+
get questionTypeEnum(): typeof QuestionTypeEnum;
|
|
31
29
|
get surveyResult(): {
|
|
32
30
|
answers: SurveyQuestionResult[];
|
|
33
31
|
currentPageIndex: number;
|
|
@@ -38,20 +36,15 @@ export declare class SurveryLibComponent implements OnInit, AfterViewInit {
|
|
|
38
36
|
isArabicLang: boolean;
|
|
39
37
|
surveyResultEmit: EventEmitter<SurveyQuestionResult[]>;
|
|
40
38
|
selectLanguageEmit: EventEmitter<string>;
|
|
41
|
-
constructor(_surveyLibService: SurveyLibService, _formBuilder: FormBuilder, _checkRuleExpsUsecase: CheckRuleExpsUsecase);
|
|
39
|
+
constructor(_surveyLibService: SurveyLibService, _Store: Store, _formBuilder: FormBuilder, _checkRuleExpsUsecase: CheckRuleExpsUsecase);
|
|
42
40
|
ngAfterViewInit(): void;
|
|
41
|
+
questionIdentify(index: any, item: QuestionNgrxModel): any;
|
|
43
42
|
ngOnInit(): void;
|
|
44
43
|
onPaggingNext(): void;
|
|
45
44
|
onPaggingBack(): void;
|
|
46
|
-
onUpdateAnswers(model: QuestionAnswerModel[]): void;
|
|
47
|
-
onUpdateAnswer(model: QuestionAnswerModel): void;
|
|
48
|
-
private loadQuestions;
|
|
49
45
|
private haveInValidateQuestions;
|
|
50
|
-
private checkRules;
|
|
51
46
|
private getNextShowedPage;
|
|
52
47
|
private getPrevShowedPage;
|
|
53
|
-
private addQuestionGroup;
|
|
54
|
-
private loadQuestionUpdates;
|
|
55
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveryLibComponent, never>;
|
|
56
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<SurveryLibComponent, "lib-survery-lib", never, { "isPre": { "alias": "isPre"; "required": false; }; "surveyLanguageId": { "alias": "surveyLanguageId"; "required": false; }; "applicantKey": { "alias": "applicantKey"; "required": false; }; "isArabicLang": { "alias": "isArabicLang"; "required": false; }; }, { "surveyResultEmit": "surveyResultEmit"; "selectLanguageEmit": "selectLanguageEmit"; }, never, never, false, never>;
|
|
57
50
|
}
|
|
@@ -15,15 +15,18 @@ import * as i11 from "./pipes/default-question-answers.pipe";
|
|
|
15
15
|
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
|
-
import * as i15 from "
|
|
19
|
-
import * as i16 from "@angular/common
|
|
20
|
-
import * as i17 from "@angular/
|
|
21
|
-
import * as i18 from "@
|
|
22
|
-
import * as i19 from "@ng-
|
|
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";
|
|
23
|
+
import * as i20 from "@ng-select/ng-select";
|
|
24
|
+
import * as i21 from "@ngrx/store";
|
|
25
|
+
import * as i22 from "@ngrx/effects";
|
|
23
26
|
export declare class SurveryLibModule {
|
|
24
27
|
static forRoot(config: LibConfigModel): ModuleWithProviders<SurveryLibModule>;
|
|
25
28
|
static forChild(): ModuleWithProviders<SurveryLibModule>;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveryLibModule, never>;
|
|
27
|
-
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
|
|
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]>;
|
|
28
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveryLibModule>;
|
|
29
32
|
}
|