@wg-npm/survey-response 0.5.172 → 0.5.183
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.
|
@@ -1239,6 +1239,7 @@ class ExprEvaluationQuestion {
|
|
|
1239
1239
|
_.forEach(this.questions, (question) => {
|
|
1240
1240
|
questionMap[question.id] = question;
|
|
1241
1241
|
if (question.type == "MATRIX") {
|
|
1242
|
+
// @ts-ignore
|
|
1242
1243
|
_.forEach(_.get(question, "subQuestions", []), (subQuestion) => {
|
|
1243
1244
|
questionMap[subQuestion.id] = subQuestion;
|
|
1244
1245
|
});
|
|
@@ -1250,12 +1251,16 @@ class ExprEvaluationQuestion {
|
|
|
1250
1251
|
checkedQuestion() {
|
|
1251
1252
|
const questions = new Array();
|
|
1252
1253
|
_.forEach(this.questions, (question) => {
|
|
1254
|
+
// @ts-ignore
|
|
1253
1255
|
if (_.get(question, "type") == "MATRIX") {
|
|
1254
1256
|
const markedQuestions = new Array();
|
|
1257
|
+
// @ts-ignore
|
|
1255
1258
|
_.forEach(_.get(question, "subQuestions", []), (subQuestion) => {
|
|
1256
1259
|
if (_.includes(this.scope, subQuestion.id)) {
|
|
1257
1260
|
const newSubQuestion = _.cloneDeep(subQuestion);
|
|
1261
|
+
// @ts-ignore
|
|
1258
1262
|
_.set(newSubQuestion, "type", "MATRIX");
|
|
1263
|
+
// @ts-ignore
|
|
1259
1264
|
_.set(newSubQuestion, "parentId", _.get(question, "id"));
|
|
1260
1265
|
markedQuestions.push(newSubQuestion);
|
|
1261
1266
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wg-npm/survey-response",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.183",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@wg-npm/survey-core": "0.5.
|
|
16
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
15
|
+
"@wg-npm/survey-core": "0.5.183",
|
|
16
|
+
"@wg-npm/survey-service-api": "0.5.183",
|
|
17
17
|
"axios": "^0.19.2",
|
|
18
18
|
"deepmerge": "^4.2.2",
|
|
19
19
|
"lodash": "^4.17.15",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@typescript-eslint/parser": "^3.6.0",
|
|
35
35
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
36
36
|
"@vue/eslint-config-typescript": "^5.0.2",
|
|
37
|
-
"@wg-npm/survey-core": "0.5.
|
|
38
|
-
"@wg-npm/survey-service-api": "0.5.
|
|
37
|
+
"@wg-npm/survey-core": "0.5.183",
|
|
38
|
+
"@wg-npm/survey-service-api": "0.5.183",
|
|
39
39
|
"acorn": "^7.3.1",
|
|
40
40
|
"axios": "^0.19.2",
|
|
41
41
|
"babelrc-rollup": "^3.0.0",
|
|
@@ -133,7 +133,8 @@ export default Vue.extend({
|
|
|
133
133
|
},
|
|
134
134
|
getCustomQuestion(questionId) {
|
|
135
135
|
return _.find(
|
|
136
|
-
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
_.get(this.customQuestions, "chosenQuestions", []),
|
|
137
138
|
(q) => q.id === questionId
|
|
138
139
|
);
|
|
139
140
|
},
|
|
@@ -142,7 +143,9 @@ export default Vue.extend({
|
|
|
142
143
|
},
|
|
143
144
|
parseQuestionAnswers() {
|
|
144
145
|
if (
|
|
145
|
-
_.isEmpty(
|
|
146
|
+
_.isEmpty(
|
|
147
|
+
// @ts-ignore
|
|
148
|
+
_.get(this.responseSurveyAnswers, "moreSurveyAnswers", []))
|
|
146
149
|
) {
|
|
147
150
|
_.each(this.surveys, (s) => {
|
|
148
151
|
let surveyAnswer = {
|