@digabi/exam-engine-core 19.15.6-alpha.2 → 19.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/dist/__tests__/results/ResultsContext.test.js +1 -1
  2. package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
  3. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  4. package/dist/components/exam/DropdownAnswer.d.ts.map +1 -1
  5. package/dist/components/exam/DropdownAnswer.js +1 -0
  6. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  7. package/dist/components/exam/Exam.d.ts.map +1 -1
  8. package/dist/components/exam/Exam.js +23 -18
  9. package/dist/components/exam/Exam.js.map +1 -1
  10. package/dist/components/exam/ExamineExam.d.ts.map +1 -1
  11. package/dist/components/exam/ExamineExam.js +3 -8
  12. package/dist/components/exam/ExamineExam.js.map +1 -1
  13. package/dist/components/exam/FinishExam.d.ts +5 -0
  14. package/dist/components/exam/FinishExam.d.ts.map +1 -0
  15. package/dist/components/exam/FinishExam.js +17 -0
  16. package/dist/components/exam/FinishExam.js.map +1 -0
  17. package/dist/components/exam/ProceedToExamineAnswers.d.ts +5 -0
  18. package/dist/components/exam/ProceedToExamineAnswers.d.ts.map +1 -0
  19. package/dist/components/exam/ProceedToExamineAnswers.js +20 -0
  20. package/dist/components/exam/ProceedToExamineAnswers.js.map +1 -0
  21. package/dist/components/results/DropdownAnswer.js +1 -1
  22. package/dist/components/results/EndExamSession.d.ts +6 -3
  23. package/dist/components/results/EndExamSession.d.ts.map +1 -1
  24. package/dist/components/results/EndExamSession.js +4 -27
  25. package/dist/components/results/EndExamSession.js.map +1 -1
  26. package/dist/components/results/QuestionTitle.js +1 -1
  27. package/dist/components/results/Results.d.ts.map +1 -1
  28. package/dist/components/results/Results.js +25 -4
  29. package/dist/components/results/Results.js.map +1 -1
  30. package/dist/components/results/internal/QuestionScoresContainer.js +1 -1
  31. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  32. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  33. package/dist/components/results/isExamFinishPageHook.js +7 -0
  34. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  35. package/dist/components/results/isExamineExamPageHook.d.ts +2 -0
  36. package/dist/components/results/isExamineExamPageHook.d.ts.map +1 -0
  37. package/dist/components/results/isExamineExamPageHook.js +7 -0
  38. package/dist/components/results/isExamineExamPageHook.js.map +1 -0
  39. package/dist/components/shared/AnswerIndicator.d.ts +1 -0
  40. package/dist/components/shared/AnswerIndicator.d.ts.map +1 -1
  41. package/dist/components/shared/AnswerIndicator.js +14 -12
  42. package/dist/components/shared/AnswerIndicator.js.map +1 -1
  43. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  44. package/dist/components/shared/TableOfContents.js +15 -5
  45. package/dist/components/shared/TableOfContents.js.map +1 -1
  46. package/dist/main-bundle.js +1 -1
  47. package/dist/main.css +1 -1
  48. package/dist/types/ExamServerAPI.d.ts +0 -1
  49. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  50. package/package.json +2 -2
@@ -51,7 +51,7 @@ export const mkTableOfContents = (options) => {
51
51
  const externalMaterial = showAttachmentLinks && displayNumber != null && query(element, 'external-material');
52
52
  const subquestions = [];
53
53
  let answersById = {};
54
- let hasQuestionValidationError;
54
+ let hasQuestionValidationError = false;
55
55
  if (isInSidebar) {
56
56
  const answers = useSelector((state) => state.answers);
57
57
  answersById = (answers === null || answers === void 0 ? void 0 : answers.answersById) || {};
@@ -59,12 +59,22 @@ export const mkTableOfContents = (options) => {
59
59
  const questionValidationErrors = (_a = answers.validationErrors) === null || _a === void 0 ? void 0 : _a.filter(i => (i === null || i === void 0 ? void 0 : i.elementType) === 'question');
60
60
  hasQuestionValidationError = !!(questionValidationErrors === null || questionValidationErrors === void 0 ? void 0 : questionValidationErrors.find(i => i.displayNumber === displayNumber));
61
61
  subquestionNodes.forEach(e => {
62
+ var _a;
62
63
  const id = Number(e.getAttribute('question-id'));
63
64
  const type = e.getAttribute('type') || '';
64
65
  const subQuestionDisplayNumber = e.getAttribute('display-number') || '';
65
- const error = !!(questionValidationErrors === null || questionValidationErrors === void 0 ? void 0 : questionValidationErrors.find(i => i.displayNumber === subQuestionDisplayNumber));
66
+ const hasError = !!(questionValidationErrors === null || questionValidationErrors === void 0 ? void 0 : questionValidationErrors.find(i => i.displayNumber === subQuestionDisplayNumber));
67
+ const childQuestionHasError = questionValidationErrors
68
+ .flatMap(i => ('childQuestions' in i ? i.childQuestions : []))
69
+ .includes(subQuestionDisplayNumber);
70
+ const hasAnswer = !!((_a = answersById[id]) === null || _a === void 0 ? void 0 : _a.value);
66
71
  if (id) {
67
- subquestions.push({ id, type, error });
72
+ subquestions.push({
73
+ id,
74
+ type,
75
+ error: hasError || (childQuestionHasError && hasAnswer),
76
+ displayNumber: Number(subQuestionDisplayNumber)
77
+ });
68
78
  }
69
79
  });
70
80
  }
@@ -72,7 +82,7 @@ export const mkTableOfContents = (options) => {
72
82
  const subquestionsAnswered = subquestions === null || subquestions === void 0 ? void 0 : subquestions.filter(i => { var _a; return (_a = answersById[i.id]) === null || _a === void 0 ? void 0 : _a.value; }).length;
73
83
  const maxAnswers = Number(element.getAttribute('max-answers'));
74
84
  const requiredAnswers = maxAnswers || subquestions.length;
75
- return (React.createElement("li", { "data-list-number": `${displayNumber}.`, onClick: () => (isInSidebar ? (window.location.href = `#question-nr-${displayNumber}`) : undefined), className: `level-${level} ${hasQuestionValidationError ? 'error' : ''}` },
85
+ return (React.createElement("li", { "data-list-number": `${displayNumber}.`, onClick: () => (isInSidebar ? (window.location.href = `#question-nr-${displayNumber}`) : undefined), className: classNames(`level-${level}`, { error: hasQuestionValidationError }) },
76
86
  React.createElement("span", { className: "e-column e-question-title" },
77
87
  React.createElement("a", { href: url('', { hash: `question-nr-${displayNumber}` }), tabIndex: isInSidebar ? -1 : undefined },
78
88
  React.createElement("span", null, renderChildNodes(questionTitle)))),
@@ -90,7 +100,7 @@ export const mkTableOfContents = (options) => {
90
100
  React.createElement("span", { className: "e-column e-column--narrow table-of-contents--score-column" }, t('points', { count: maxScore })),
91
101
  isInSidebar && (React.createElement("span", { className: "e-column e-column--narrow e-external-material" }, externalMaterial && React.createElement(FontAwesomeIcon, { size: "sm", icon: faPaperclip, fixedWidth: true }))),
92
102
  React.createElement("div", { className: "answers" },
93
- subquestions.map(i => (React.createElement(Indicator, { key: i.id, type: i.type, id: i.id, answer: answersById[i.id], error: i.error }))),
103
+ subquestions.map(i => (React.createElement(Indicator, { key: i.id, type: i.type, id: i.id, answer: answersById[i.id], error: i.error, displayNumber: i.displayNumber }))),
94
104
  ' ')));
95
105
  };
96
106
  const renderChildNodes = createRenderChildNodes({
@@ -1 +1 @@
1
- {"version":3,"file":"TableOfContents.js","sourceRoot":"","sources":["../../../src/components/shared/TableOfContents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAqC,MAAM,8BAA8B,CAAA;AACxG,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAE/D,OAAO,UAAU,MAAM,YAAY,CAAA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