@wg-npm/survey-core 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-core",
3
- "version": "0.5.172",
3
+ "version": "0.5.183",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -25,6 +25,7 @@ export class ExprEvaluationQuestion {
25
25
  _.forEach(this.questions, (question) => {
26
26
  questionMap[question.id] = question;
27
27
  if (question.type == "MATRIX") {
28
+ // @ts-ignore
28
29
  _.forEach(_.get(question, "subQuestions", []), (subQuestion) => {
29
30
  questionMap[subQuestion.id] = subQuestion;
30
31
  });
@@ -36,12 +37,16 @@ export class ExprEvaluationQuestion {
36
37
  checkedQuestion() {
37
38
  const questions = new Array();
38
39
  _.forEach(this.questions, (question) => {
40
+ // @ts-ignore
39
41
  if (_.get(question, "type") == "MATRIX") {
40
42
  const markedQuestions = new Array();
43
+ // @ts-ignore
41
44
  _.forEach(_.get(question, "subQuestions", []), (subQuestion) => {
42
45
  if (_.includes(this.scope, subQuestion.id)) {
43
46
  const newSubQuestion = _.cloneDeep(subQuestion);
47
+ // @ts-ignore
44
48
  _.set(newSubQuestion, "type", "MATRIX");
49
+ // @ts-ignore
45
50
  _.set(newSubQuestion, "parentId", _.get(question, "id"));
46
51
  markedQuestions.push(newSubQuestion);
47
52
  }