survery-lib 2.1.32 → 2.1.34
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 +5 -1
- package/esm2022/lib/components/question-cascade-template/question-cascade-template.component.mjs +7 -3
- package/esm2022/lib/components/question-check-box-template/question-check-box-template.component.mjs +6 -3
- package/esm2022/lib/components/question-dropdown-multi-template/question-dropdown-multi-template.component.mjs +4 -1
- package/esm2022/lib/components/question-dropdown-template/question-dropdown-template.component.mjs +4 -1
- package/esm2022/lib/components/question-feedback-template/question-feedback-template.component.mjs +4 -1
- package/esm2022/lib/components/question-institutions-template/question-institutions-template.component.mjs +1 -2
- package/esm2022/lib/components/question-matrix-template/question-matrix-template.component.mjs +4 -1
- package/esm2022/lib/components/question-radio-button-template/question-radio-button-template.component.mjs +4 -1
- package/esm2022/lib/core/states/survey-store/survey.effect.mjs +9 -9
- package/esm2022/shared/form-interfaces/question-cascade.form-interface.mjs +1 -1
- package/fesm2022/survery-lib.mjs +38 -13
- package/fesm2022/survery-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/form-interfaces/question-cascade.form-interface.d.ts +1 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlc3Rpb24tY2FzY2FkZS5mb3JtLWludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3N1cnZlcnktbGliL3NyYy9zaGFyZWQvZm9ybS1pbnRlcmZhY2VzL3F1ZXN0aW9uLWNhc2NhZGUuZm9ybS1pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEZvcm1BcnJheSwgRm9ybUNvbnRyb2wsIEZvcm1Hcm91cCB9IGZyb20gXCJAYW5ndWxhci9mb3Jtc1wiO1xyXG5pbXBvcnQgeyBRdWVzdGlvblR5cGVFbnVtIH0gZnJvbSBcIi4uL2VudW1zL3F1ZXN0aW9uLXR5cGUuZW51bVwiO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBRdWVzdGlvbkNhc2NhZGVUZW1wbGF0ZUZvcm1JbnRlcmZhY2Uge1xyXG4gICAgaXNTaG93OiBGb3JtQ29udHJvbDxib29sZWFuPjtcclxuICAgIHF1ZXN0aW9uQXJyOiBGb3JtQXJyYXk8Rm9ybUdyb3VwPCBRdWVzdGlvbkdyb3VwQ2hpbGRPZlF1ZXN0aW9uQ2FzY2FkZVRlbXBsYXRlRm9ybUludGVyZmFjZT4+O1xyXG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFF1ZXN0aW9uR3JvdXBDaGlsZE9mUXVlc3Rpb25DYXNjYWRlVGVtcGxhdGVGb3JtSW50ZXJmYWNlIHtcclxuICAgIGlkOiBGb3JtQ29udHJvbDxhbnk+O1xyXG4gICAgdHlwZUlkOkZvcm1Db250cm9sPFF1ZXN0aW9uVHlwZUVudW0+O1xyXG4gICAgYW5zd2VyOkZvcm1Db250cm9sPGFueT47XHJcbn0iXX0=
|
package/fesm2022/survery-lib.mjs
CHANGED
|
@@ -860,6 +860,9 @@ class QuestionRadioButtonTemplateComponent {
|
|
|
860
860
|
isSelected: new FormControl(false)
|
|
861
861
|
}));
|
|
862
862
|
});
|
|
863
|
+
if (value.isShow == true) {
|
|
864
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
865
|
+
}
|
|
863
866
|
if (value.isRequired == true) {
|
|
864
867
|
this.fCtrls.answer.addValidators([Validators.required]);
|
|
865
868
|
this.fCtrls.answer.updateValueAndValidity();
|
|
@@ -968,6 +971,9 @@ class QuestionCheckBoxTemplateComponent {
|
|
|
968
971
|
isSelected: new FormControl(false)
|
|
969
972
|
}));
|
|
970
973
|
});
|
|
974
|
+
if (value.isShow == true) {
|
|
975
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
976
|
+
}
|
|
971
977
|
if (value.isRequired == true) {
|
|
972
978
|
this.fCtrls.answer.addValidators([Validators.required]);
|
|
973
979
|
this.fCtrls.answer.updateValueAndValidity();
|
|
@@ -1058,11 +1064,11 @@ class QuestionCheckBoxTemplateComponent {
|
|
|
1058
1064
|
return element;
|
|
1059
1065
|
}
|
|
1060
1066
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: QuestionCheckBoxTemplateComponent, deps: [{ token: i1.FormBuilder }, { token: SurveyLibService }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1061
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: QuestionCheckBoxTemplateComponent, selector: "lib-question-check-box-template", inputs: { setQuestion: "setQuestion" }, ngImport: i0, template: "<div class=\"quastion\" [attr.id]=\"'question_'+fCtrls.id.value\" [ngClass]=\"{'invalid-question': fCtrls.answer.invalid , 'd-none':fCtrls.isShow.value != true}\">\r\n <h3 class=\"quastion-title \">\r\n <span [innerHTML]=\"fCtrls.title.value\"></span>\r\n <span style=\"color: red;\" *ngIf=\"surveyQuestion.isRequired\">*</span>\r\n </h3>\r\n\r\n <div class=\"checkbox-button-quastion\">\r\n <div class=\"form-check check-box-form-check\" *ngFor=\"let item of fCtrls.answerArray.controls ;let i = index\">\r\n <input type=\"checkbox\" class=\"form-check-input\" id=\"{{elemId}}__checkbox_{{i}}\" [disabled]=\"fCtrls.isDisabled.value\"\r\n (change)=\"onChangeAnswer(item ,$event)\" [checked]=\"item.value.isSelected == true? true : null\">\r\n <label class=\"form-check-label \" for=\"{{elemId}}__checkbox_{{i}}\" [innerHTML]=\"item.value.title\"></label>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1067
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: QuestionCheckBoxTemplateComponent, selector: "lib-question-check-box-template", inputs: { setQuestion: "setQuestion" }, ngImport: i0, template: "<div class=\"quastion\" [attr.id]=\"'question_'+fCtrls.id.value\" \r\n[ngClass]=\"{'invalid-question': fCtrls.answer.invalid , 'd-none':fCtrls.isShow.value != true}\">\r\n <h3 class=\"quastion-title \">\r\n <span [innerHTML]=\"fCtrls.title.value\"></span>\r\n <span style=\"color: red;\" *ngIf=\"surveyQuestion.isRequired\">*</span>\r\n </h3>\r\n\r\n <div class=\"checkbox-button-quastion\">\r\n <div class=\"form-check check-box-form-check\" *ngFor=\"let item of fCtrls.answerArray.controls ;let i = index\">\r\n <input type=\"checkbox\" class=\"form-check-input\" id=\"{{elemId}}__checkbox_{{i}}\" [disabled]=\"fCtrls.isDisabled.value\"\r\n (change)=\"onChangeAnswer(item ,$event)\" [checked]=\"item.value.isSelected == true? true : null\">\r\n <label class=\"form-check-label \" for=\"{{elemId}}__checkbox_{{i}}\" [innerHTML]=\"item.value.title\"></label>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
1062
1068
|
}
|
|
1063
1069
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: QuestionCheckBoxTemplateComponent, decorators: [{
|
|
1064
1070
|
type: Component,
|
|
1065
|
-
args: [{ selector: 'lib-question-check-box-template', template: "<div class=\"quastion\" [attr.id]=\"'question_'+fCtrls.id.value\" [ngClass]=\"{'invalid-question': fCtrls.answer.invalid , 'd-none':fCtrls.isShow.value != true}\">\r\n <h3 class=\"quastion-title \">\r\n <span [innerHTML]=\"fCtrls.title.value\"></span>\r\n <span style=\"color: red;\" *ngIf=\"surveyQuestion.isRequired\">*</span>\r\n </h3>\r\n\r\n <div class=\"checkbox-button-quastion\">\r\n <div class=\"form-check check-box-form-check\" *ngFor=\"let item of fCtrls.answerArray.controls ;let i = index\">\r\n <input type=\"checkbox\" class=\"form-check-input\" id=\"{{elemId}}__checkbox_{{i}}\" [disabled]=\"fCtrls.isDisabled.value\"\r\n (change)=\"onChangeAnswer(item ,$event)\" [checked]=\"item.value.isSelected == true? true : null\">\r\n <label class=\"form-check-label \" for=\"{{elemId}}__checkbox_{{i}}\" [innerHTML]=\"item.value.title\"></label>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1071
|
+
args: [{ selector: 'lib-question-check-box-template', template: "<div class=\"quastion\" [attr.id]=\"'question_'+fCtrls.id.value\" \r\n[ngClass]=\"{'invalid-question': fCtrls.answer.invalid , 'd-none':fCtrls.isShow.value != true}\">\r\n <h3 class=\"quastion-title \">\r\n <span [innerHTML]=\"fCtrls.title.value\"></span>\r\n <span style=\"color: red;\" *ngIf=\"surveyQuestion.isRequired\">*</span>\r\n </h3>\r\n\r\n <div class=\"checkbox-button-quastion\">\r\n <div class=\"form-check check-box-form-check\" *ngFor=\"let item of fCtrls.answerArray.controls ;let i = index\">\r\n <input type=\"checkbox\" class=\"form-check-input\" id=\"{{elemId}}__checkbox_{{i}}\" [disabled]=\"fCtrls.isDisabled.value\"\r\n (change)=\"onChangeAnswer(item ,$event)\" [checked]=\"item.value.isSelected == true? true : null\">\r\n <label class=\"form-check-label \" for=\"{{elemId}}__checkbox_{{i}}\" [innerHTML]=\"item.value.title\"></label>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
1066
1072
|
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: SurveyLibService }, { type: i3.Store }]; }, propDecorators: { setQuestion: [{
|
|
1067
1073
|
type: Input
|
|
1068
1074
|
}] } });
|
|
@@ -1086,6 +1092,9 @@ class QuestionDropdownTemplateComponent {
|
|
|
1086
1092
|
isDisabled: value.questionAllInfo.isReadOnly,
|
|
1087
1093
|
isShow: value.questionAllInfo.isVisable
|
|
1088
1094
|
});
|
|
1095
|
+
if (value.isShow == true) {
|
|
1096
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
1097
|
+
}
|
|
1089
1098
|
if (value.isRequired == true) {
|
|
1090
1099
|
this.fCtrls.answer.addValidators([Validators.required]);
|
|
1091
1100
|
this.fCtrls.answer.updateValueAndValidity();
|
|
@@ -1190,6 +1199,9 @@ class QuestionMatrixTemplateComponent {
|
|
|
1190
1199
|
questionTitle: new FormControl(x.questionTitle),
|
|
1191
1200
|
answer: new FormControl(null),
|
|
1192
1201
|
});
|
|
1202
|
+
if (value.isShow == true) {
|
|
1203
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
1204
|
+
}
|
|
1193
1205
|
if (value.isRequired == true) {
|
|
1194
1206
|
group.controls.answer.addValidators([Validators.required]);
|
|
1195
1207
|
group.controls.answer.updateValueAndValidity();
|
|
@@ -1308,6 +1320,9 @@ class QuestionBooleanTemplateComponent {
|
|
|
1308
1320
|
isSelected: new FormControl(false)
|
|
1309
1321
|
}));
|
|
1310
1322
|
});
|
|
1323
|
+
if (value.isShow == true) {
|
|
1324
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
1325
|
+
}
|
|
1311
1326
|
if (value.isRequired == true) {
|
|
1312
1327
|
this.fCtrls.answer.addValidators([Validators.required]);
|
|
1313
1328
|
this.fCtrls.answer.updateValueAndValidity();
|
|
@@ -1366,6 +1381,7 @@ class QuestionBooleanTemplateComponent {
|
|
|
1366
1381
|
if (oldValue?.isDisabled != newValue?.isDisabled) {
|
|
1367
1382
|
this.fCtrls.isDisabled.setValue(newValue?.isDisabled);
|
|
1368
1383
|
}
|
|
1384
|
+
console.log("newValue?.isShow", newValue?.isShow);
|
|
1369
1385
|
//updated isShow
|
|
1370
1386
|
if (oldValue?.isShow != newValue?.isShow) {
|
|
1371
1387
|
this.fCtrls.isShow.setValue(newValue?.isShow);
|
|
@@ -1417,6 +1433,9 @@ class QuestionDropdownMultiTemplateComponent {
|
|
|
1417
1433
|
isSelected: new FormControl(false)
|
|
1418
1434
|
}));
|
|
1419
1435
|
});
|
|
1436
|
+
if (value.isShow == true) {
|
|
1437
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
1438
|
+
}
|
|
1420
1439
|
if (value.isRequired == true) {
|
|
1421
1440
|
this.fCtrls.answer.addValidators([Validators.required]);
|
|
1422
1441
|
this.fCtrls.answer.updateValueAndValidity();
|
|
@@ -1575,6 +1594,9 @@ class QuestionCascadeTemplateComponent {
|
|
|
1575
1594
|
set setQuestion(value) {
|
|
1576
1595
|
if (this.surveyQuestionArr?.length == 0) {
|
|
1577
1596
|
this.setQuestions(value.questionAllInfo);
|
|
1597
|
+
if (value.isShow == true) {
|
|
1598
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
1599
|
+
}
|
|
1578
1600
|
var childQuestion1 = this.pageQuestions$().find(x => x.parentQuestionId == value.questionId);
|
|
1579
1601
|
if (childQuestion1) {
|
|
1580
1602
|
this.setQuestions(childQuestion1.questionAllInfo);
|
|
@@ -1599,6 +1621,7 @@ class QuestionCascadeTemplateComponent {
|
|
|
1599
1621
|
this.surveyKey = null;
|
|
1600
1622
|
this.applicantKey = null;
|
|
1601
1623
|
this.rForm = this._formBuilder.group({
|
|
1624
|
+
isShow: new FormControl(false),
|
|
1602
1625
|
questionArr: this._formBuilder.array([])
|
|
1603
1626
|
});
|
|
1604
1627
|
}
|
|
@@ -1763,11 +1786,11 @@ class QuestionCascadeTemplateComponent {
|
|
|
1763
1786
|
});
|
|
1764
1787
|
}
|
|
1765
1788
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: QuestionCascadeTemplateComponent, deps: [{ token: i1.FormBuilder }, { token: SurveyLibService }, { token: ApiService }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1766
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: QuestionCascadeTemplateComponent, selector: "lib-question-cascade-template", inputs: { pageId: "pageId", questionGroupId: "questionGroupId", isPre: "isPre", surveyLanguageId: "surveyLanguageId", surveyKey: "surveyKey", applicantKey: "applicantKey", setQuestion: "setQuestion" }, ngImport: i0, template: "<ng-container *ngFor=\"let item of questionFormArray.controls; trackBy:identify ; let i = index\">\r\n
|
|
1789
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: QuestionCascadeTemplateComponent, selector: "lib-question-cascade-template", inputs: { pageId: "pageId", questionGroupId: "questionGroupId", isPre: "isPre", surveyLanguageId: "surveyLanguageId", surveyKey: "surveyKey", applicantKey: "applicantKey", setQuestion: "setQuestion" }, ngImport: i0, template: "<div [ngClass]=\"{'d-none':fCtrls.isShow.value != true}\">\r\n <ng-container *ngFor=\"let item of questionFormArray.controls; trackBy:identify ; let i = index\">\r\n <lib-question-dropdown-template #questionDropdownTemplate\r\n *ngIf=\"(pageQuestions$() |findQuestion :item.value.id)?.questionType != questionTypeEnum.TextInput\"\r\n [setQuestion]=\"pageQuestions$() |findQuestion :item.value.id \" (emitter)=\"onUpdateAnswer($event)\">\r\n </lib-question-dropdown-template>\r\n\r\n <lib-question-text-template #questionTextTemplate\r\n *ngIf=\"(pageQuestions$() |findQuestion :item.value.id)?.questionType == questionTypeEnum.TextInput\"\r\n [setQuestion]=\"pageQuestions$() |findQuestion :item.value.id \"\r\n [isArabicLang]=\"true\"></lib-question-text-template>\r\n\r\n </ng-container>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: QuestionTextTemplateComponent, selector: "lib-question-text-template", inputs: ["isArabicLang", "setQuestion", "isDisabled"] }, { kind: "component", type: QuestionDropdownTemplateComponent, selector: "lib-question-dropdown-template", inputs: ["setQuestion"], outputs: ["emitter"] }, { kind: "pipe", type: FindQuestionPipe, name: "findQuestion" }] }); }
|
|
1767
1790
|
}
|
|
1768
1791
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: QuestionCascadeTemplateComponent, decorators: [{
|
|
1769
1792
|
type: Component,
|
|
1770
|
-
args: [{ selector: 'lib-question-cascade-template', template: "<ng-container *ngFor=\"let item of questionFormArray.controls; trackBy:identify ; let i = index\">\r\n
|
|
1793
|
+
args: [{ selector: 'lib-question-cascade-template', template: "<div [ngClass]=\"{'d-none':fCtrls.isShow.value != true}\">\r\n <ng-container *ngFor=\"let item of questionFormArray.controls; trackBy:identify ; let i = index\">\r\n <lib-question-dropdown-template #questionDropdownTemplate\r\n *ngIf=\"(pageQuestions$() |findQuestion :item.value.id)?.questionType != questionTypeEnum.TextInput\"\r\n [setQuestion]=\"pageQuestions$() |findQuestion :item.value.id \" (emitter)=\"onUpdateAnswer($event)\">\r\n </lib-question-dropdown-template>\r\n\r\n <lib-question-text-template #questionTextTemplate\r\n *ngIf=\"(pageQuestions$() |findQuestion :item.value.id)?.questionType == questionTypeEnum.TextInput\"\r\n [setQuestion]=\"pageQuestions$() |findQuestion :item.value.id \"\r\n [isArabicLang]=\"true\"></lib-question-text-template>\r\n\r\n </ng-container>\r\n</div>" }]
|
|
1771
1794
|
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: SurveyLibService }, { type: ApiService }, { type: i3.Store }]; }, propDecorators: { pageId: [{
|
|
1772
1795
|
type: Input
|
|
1773
1796
|
}], questionGroupId: [{
|
|
@@ -1815,6 +1838,9 @@ class QuestionFeedbackTemplateComponent {
|
|
|
1815
1838
|
this.fCtrls.inputTypeId.setValue(InputTypeEnum.Pagination);
|
|
1816
1839
|
}
|
|
1817
1840
|
}
|
|
1841
|
+
if (value.isShow == true) {
|
|
1842
|
+
this.fCtrls.isShow.setValue(value.isShow);
|
|
1843
|
+
}
|
|
1818
1844
|
if (value.isRequired == true) {
|
|
1819
1845
|
this.fCtrls.answer.addValidators([Validators.required]);
|
|
1820
1846
|
this.fCtrls.answer.updateValueAndValidity();
|
|
@@ -1929,7 +1955,6 @@ class QuestionInstitutionsTemplateComponent {
|
|
|
1929
1955
|
isShow: value.isShow
|
|
1930
1956
|
});
|
|
1931
1957
|
value.questionAllInfo.surveySubQuestionLevels.forEach(surveySubQuestionLevel => {
|
|
1932
|
-
console.log(surveySubQuestionLevel);
|
|
1933
1958
|
var question = this.pageQuestions$().find(x => x.questionId == value.questionId);
|
|
1934
1959
|
this.setQuestionFormGroup(surveySubQuestionLevel, question?.isRequired, question?.answerId);
|
|
1935
1960
|
});
|
|
@@ -2613,14 +2638,6 @@ class SurveyEffects {
|
|
|
2613
2638
|
}
|
|
2614
2639
|
});
|
|
2615
2640
|
});
|
|
2616
|
-
const showedQuestionIds = toggleShowedQuestionIds.filter(x => x.isShow == true).map(x => x.questionId);
|
|
2617
|
-
if (showedQuestionIds.length > 0) {
|
|
2618
|
-
console.log('showedQuestionIds', showedQuestionIds);
|
|
2619
|
-
this._store.dispatch(surveyActions.updateQuestionsShow({
|
|
2620
|
-
questionIds: showedQuestionIds,
|
|
2621
|
-
isShow: true
|
|
2622
|
-
}));
|
|
2623
|
-
}
|
|
2624
2641
|
const hiddenQuestionIds = toggleShowedQuestionIds.filter(x => x.isShow == false).map(x => x.questionId);
|
|
2625
2642
|
if (hiddenQuestionIds.length > 0) {
|
|
2626
2643
|
console.log('hiddenQuestionIds', hiddenQuestionIds);
|
|
@@ -2629,6 +2646,14 @@ class SurveyEffects {
|
|
|
2629
2646
|
isShow: false
|
|
2630
2647
|
}));
|
|
2631
2648
|
}
|
|
2649
|
+
const showedQuestionIds = toggleShowedQuestionIds.filter(x => x.isShow == true).map(x => x.questionId);
|
|
2650
|
+
if (showedQuestionIds.length > 0) {
|
|
2651
|
+
console.log('showedQuestionIds', showedQuestionIds);
|
|
2652
|
+
this._store.dispatch(surveyActions.updateQuestionsShow({
|
|
2653
|
+
questionIds: showedQuestionIds,
|
|
2654
|
+
isShow: true
|
|
2655
|
+
}));
|
|
2656
|
+
}
|
|
2632
2657
|
const disabledQuestionIds = toggleDisabledQuestionIds.filter(x => x.isDisabled == true).map(x => x.questionId);
|
|
2633
2658
|
if (disabledQuestionIds.length > 0) {
|
|
2634
2659
|
console.log('disabledQuestionIds', disabledQuestionIds);
|