@digabi/exam-engine-core 19.7.1 → 19.8.0-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. package/dist/__tests__/AnsweringInstructions.test.js +11 -11
  2. package/dist/__tests__/AnsweringInstructions.test.js.map +1 -1
  3. package/dist/__tests__/examServerApi.js +2 -2
  4. package/dist/__tests__/examServerApi.js.map +1 -1
  5. package/dist/__tests__/renderAnnotations.test.js +18 -18
  6. package/dist/__tests__/results/AnnotationList.test.js +27 -27
  7. package/dist/__tests__/results/ResultsContext.test.js +37 -37
  8. package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
  9. package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +4 -4
  10. package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +19 -19
  11. package/dist/__tests__/testExamRendering.js +14 -15
  12. package/dist/__tests__/testExamRendering.js.map +1 -1
  13. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  14. package/dist/__tests__/validateAnswers.test.js +28 -25
  15. package/dist/__tests__/validateAnswers.test.js.map +1 -1
  16. package/dist/components/AnswerToolbar.d.ts +1 -1
  17. package/dist/components/AnswerToolbar.d.ts.map +1 -1
  18. package/dist/components/AnswerToolbar.js +2 -2
  19. package/dist/components/AnswerToolbar.js.map +1 -1
  20. package/dist/components/AnsweringInstructions.js +1 -1
  21. package/dist/components/AnsweringInstructions.js.map +1 -1
  22. package/dist/components/DocumentTitle.js +1 -1
  23. package/dist/components/DocumentTitle.js.map +1 -1
  24. package/dist/components/SectionElement.js +1 -1
  25. package/dist/components/SectionElement.js.map +1 -1
  26. package/dist/components/attachments/Attachments.js +1 -1
  27. package/dist/components/attachments/ExternalMaterial.d.ts.map +1 -1
  28. package/dist/components/attachments/ExternalMaterial.js +5 -1
  29. package/dist/components/attachments/ExternalMaterial.js.map +1 -1
  30. package/dist/components/attachments/Question.js +1 -1
  31. package/dist/components/attachments/Question.js.map +1 -1
  32. package/dist/components/context/CommonExamContext.js +1 -1
  33. package/dist/components/context/ExamContext.js +1 -1
  34. package/dist/components/context/QuestionContext.js +1 -1
  35. package/dist/components/context/ResultsContext.js +7 -6
  36. package/dist/components/context/ResultsContext.js.map +1 -1
  37. package/dist/components/context/SectionContext.js +2 -2
  38. package/dist/components/context/SectionContext.js.map +1 -1
  39. package/dist/components/exam/ChoiceAnswer.js +6 -6
  40. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  41. package/dist/components/exam/DropdownAnswer.js +10 -10
  42. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  43. package/dist/components/exam/Exam.d.ts +1 -0
  44. package/dist/components/exam/Exam.d.ts.map +1 -1
  45. package/dist/components/exam/Exam.js +75 -16
  46. package/dist/components/exam/Exam.js.map +1 -1
  47. package/dist/components/exam/ExternalMaterial.js +1 -1
  48. package/dist/components/exam/Hints.js +3 -3
  49. package/dist/components/exam/Hints.js.map +1 -1
  50. package/dist/components/exam/Question.d.ts +4 -0
  51. package/dist/components/exam/Question.d.ts.map +1 -1
  52. package/dist/components/exam/Question.js +41 -5
  53. package/dist/components/exam/Question.js.map +1 -1
  54. package/dist/components/exam/QuestionTitle.js +1 -1
  55. package/dist/components/exam/RichTextAnswer.d.ts +6 -1
  56. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  57. package/dist/components/exam/RichTextAnswer.js +14 -2
  58. package/dist/components/exam/RichTextAnswer.js.map +1 -1
  59. package/dist/components/exam/Section.js +2 -2
  60. package/dist/components/exam/Section.js.map +1 -1
  61. package/dist/components/exam/internal/ErrorIndicator.d.ts +1 -1
  62. package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
  63. package/dist/components/exam/internal/ErrorIndicator.js +4 -4
  64. package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
  65. package/dist/components/exam/internal/ProgressBar.js +1 -1
  66. package/dist/components/exam/internal/ProgressBar.js.map +1 -1
  67. package/dist/components/exam/internal/TextAnswerInput.d.ts.map +1 -1
  68. package/dist/components/exam/internal/TextAnswerInput.js +14 -13
  69. package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
  70. package/dist/components/grading/AnswerCharacterCounter.d.ts +1 -1
  71. package/dist/components/grading/AnswerCharacterCounter.d.ts.map +1 -1
  72. package/dist/components/grading/AnswerCharacterCounter.js +3 -3
  73. package/dist/components/grading/AnswerCharacterCounter.js.map +1 -1
  74. package/dist/components/grading/GradingAnswer.js +9 -9
  75. package/dist/components/grading/GradingAnswer.js.map +1 -1
  76. package/dist/components/grading/GradingAnswerAnnotationList.d.ts +1 -1
  77. package/dist/components/grading/GradingAnswerAnnotationList.d.ts.map +1 -1
  78. package/dist/components/grading/GradingAnswerAnnotationList.js +2 -2
  79. package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
  80. package/dist/components/grading/editAnnotations.js +14 -14
  81. package/dist/components/grading/editAnnotations.js.map +1 -1
  82. package/dist/components/grading/largeImageDetector.js +2 -2
  83. package/dist/components/grading/largeImageDetector.js.map +1 -1
  84. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  85. package/dist/components/grading-instructions/GradingInstructions.js +10 -3
  86. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  87. package/dist/components/grading-instructions/Question.js +1 -1
  88. package/dist/components/grading-instructions/QuestionTitle.js +1 -1
  89. package/dist/components/results/ChoiceAnswer.js +8 -7
  90. package/dist/components/results/ChoiceAnswer.js.map +1 -1
  91. package/dist/components/results/DropdownAnswer.js +5 -5
  92. package/dist/components/results/DropdownAnswer.js.map +1 -1
  93. package/dist/components/results/Question.js +3 -3
  94. package/dist/components/results/Question.js.map +1 -1
  95. package/dist/components/results/QuestionTitle.js +1 -1
  96. package/dist/components/results/Results.d.ts.map +1 -1
  97. package/dist/components/results/Results.js +6 -2
  98. package/dist/components/results/Results.js.map +1 -1
  99. package/dist/components/results/Section.js +1 -1
  100. package/dist/components/results/Section.js.map +1 -1
  101. package/dist/components/results/SingleLineAnswer.d.ts +1 -1
  102. package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
  103. package/dist/components/results/SingleLineAnswer.js +1 -1
  104. package/dist/components/results/SingleLineAnswer.js.map +1 -1
  105. package/dist/components/results/internal/AnnotationList.js +2 -2
  106. package/dist/components/results/internal/AnnotationList.js.map +1 -1
  107. package/dist/components/results/internal/QuestionManualScore.js +3 -3
  108. package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -1
  109. package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
  110. package/dist/components/results/internal/QuestionScoresContainer.js +2 -2
  111. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  112. package/dist/components/shared/AnnotationLists.d.ts +1 -1
  113. package/dist/components/shared/AnnotationLists.d.ts.map +1 -1
  114. package/dist/components/shared/AnnotationLists.js +1 -1
  115. package/dist/components/shared/AnnotationLists.js.map +1 -1
  116. package/dist/components/shared/AnswerIndicator.d.ts +11 -0
  117. package/dist/components/shared/AnswerIndicator.d.ts.map +1 -0
  118. package/dist/components/shared/AnswerIndicator.js +22 -0
  119. package/dist/components/shared/AnswerIndicator.js.map +1 -0
  120. package/dist/components/shared/AttachmentLink.js +1 -1
  121. package/dist/components/shared/AttachmentLink.js.map +1 -1
  122. package/dist/components/shared/AttachmentLinks.js +3 -3
  123. package/dist/components/shared/AttachmentLinks.js.map +1 -1
  124. package/dist/components/shared/ExamTranslation.d.ts +6 -0
  125. package/dist/components/shared/ExamTranslation.d.ts.map +1 -0
  126. package/dist/components/shared/ExamTranslation.js +10 -0
  127. package/dist/components/shared/ExamTranslation.js.map +1 -0
  128. package/dist/components/shared/ImageOverlay.js +3 -3
  129. package/dist/components/shared/ImageOverlay.js.map +1 -1
  130. package/dist/components/shared/QuestionNumber.d.ts +4 -0
  131. package/dist/components/shared/QuestionNumber.d.ts.map +1 -0
  132. package/dist/components/shared/QuestionNumber.js +12 -0
  133. package/dist/components/shared/QuestionNumber.js.map +1 -0
  134. package/dist/components/shared/Reference.js +1 -1
  135. package/dist/components/shared/References.js +1 -1
  136. package/dist/components/shared/References.js.map +1 -1
  137. package/dist/components/shared/Score.js +1 -1
  138. package/dist/components/shared/TableOfContents.d.ts +1 -0
  139. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  140. package/dist/components/shared/TableOfContents.js +86 -26
  141. package/dist/components/shared/TableOfContents.js.map +1 -1
  142. package/dist/components/shared/internal/ResponsiveMediaContainer.js +3 -3
  143. package/dist/components/shared/internal/ResponsiveMediaContainer.js.map +1 -1
  144. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts +1 -1
  145. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
  146. package/dist/components/shared/internal/RestrictedAudioPlayer.js +2 -2
  147. package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
  148. package/dist/dom-utils.js +1 -1
  149. package/dist/dom-utils.js.map +1 -1
  150. package/dist/fonts.js +1 -1
  151. package/dist/fonts.js.map +1 -1
  152. package/dist/i18n/A_E.js +2 -2
  153. package/dist/i18n/BA.js +1 -1
  154. package/dist/i18n/CA.js +1 -1
  155. package/dist/i18n/EA.js +2 -2
  156. package/dist/i18n/FA.js +2 -2
  157. package/dist/i18n/GC.js +2 -2
  158. package/dist/i18n/I.js +3 -3
  159. package/dist/i18n/M.js +1 -1
  160. package/dist/i18n/O_E.js +2 -2
  161. package/dist/i18n/PA.js +2 -2
  162. package/dist/i18n/SA.js +2 -2
  163. package/dist/i18n/TC.js +2 -2
  164. package/dist/i18n/VA.js +2 -2
  165. package/dist/i18n/Z.js +3 -3
  166. package/dist/i18n/fi-FI.d.ts +3 -0
  167. package/dist/i18n/fi-FI.d.ts.map +1 -1
  168. package/dist/i18n/fi-FI.js +17 -14
  169. package/dist/i18n/fi-FI.js.map +1 -1
  170. package/dist/i18n/index.d.ts +2 -137
  171. package/dist/i18n/index.d.ts.map +1 -1
  172. package/dist/i18n/index.js +8 -8
  173. package/dist/i18n/index.js.map +1 -1
  174. package/dist/i18n/sv-FI.d.ts.map +1 -1
  175. package/dist/i18n/sv-FI.js +18 -14
  176. package/dist/i18n/sv-FI.js.map +1 -1
  177. package/dist/main-bundle.js +1 -1
  178. package/dist/main-bundle.js.LICENSE.txt +0 -5
  179. package/dist/main.css +1 -1
  180. package/dist/parser/parseExam.js +5 -5
  181. package/dist/parser/parseExam.js.map +1 -1
  182. package/dist/parser/parseExamStructure.js +4 -4
  183. package/dist/renderAnnotations.js +8 -8
  184. package/dist/renderAnnotations.js.map +1 -1
  185. package/dist/store/answers/reducer.js +2 -2
  186. package/dist/store/audio/reducer.js +3 -3
  187. package/dist/store/audio/sagas.js +1 -1
  188. package/dist/store/audio/sagas.js.map +1 -1
  189. package/dist/store/cas/reducer.js +1 -1
  190. package/dist/store/cas/sagas.js +1 -1
  191. package/dist/store/countdown.js +1 -1
  192. package/dist/store/countdown.js.map +1 -1
  193. package/dist/store/index.js +4 -4
  194. package/dist/validateAnswers.d.ts +1 -0
  195. package/dist/validateAnswers.d.ts.map +1 -1
  196. package/dist/validateAnswers.js +8 -7
  197. package/dist/validateAnswers.js.map +1 -1
  198. package/package.json +18 -18
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceAnswer.js","sourceRoot":"","sources":["../../../src/components/results/ChoiceAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mCAAmC,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/F,OAAO,4BAA4B,MAAM,8BAA8B,CAAA;AASvE,SAAS,kBAAkB,CAAC,EAC1B,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAA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AE,CAAA;YACtE,OAAO,CACL,oBAAC,kBAAkB,IAEf,OAAO,EAAE,YAAY;gBACrB,gBAAgB;gBAChB,UAAU;gBACV,GAAG,EAAE,QAAQ;gBACb,SAAS;gBACT,QAAQ;gBACR,SAAS,EAAE,OAAO,CAAC,OAAO,GAE5B,CACH,CAAA;QACH,CAAC,CAAC,CACE,CACL,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
@@ -13,20 +13,20 @@ function DropdownAnswer({ element, renderChildNodes }) {
13
13
  const { answers } = useContext(QuestionContext);
14
14
  const questionId = getNumericAttribute(element, 'question-id');
15
15
  const answer = answersByQuestionId[questionId];
16
- const selectedOption = findChildElement(element, (childElement) => (answer === null || answer === void 0 ? void 0 : answer.value) === childElement.getAttribute('option-id'));
16
+ const selectedOption = findChildElement(element, childElement => (answer === null || answer === void 0 ? void 0 : answer.value) === childElement.getAttribute('option-id'));
17
17
  const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
18
18
  if (selectedOption) {
19
- const correctIds = choice.options.filter((o) => o.correct).map((o) => o.id);
20
- const correctOptions = Array.from(element.children).filter((childElement) => correctIds.includes(getNumericAttribute(childElement, 'option-id')));
19
+ const correctIds = choice.options.filter(o => o.correct).map(o => o.id);
20
+ const correctOptions = Array.from(element.children).filter(childElement => correctIds.includes(getNumericAttribute(childElement, 'option-id')));
21
21
  const isAnswerCorrect = correctIds.includes(getNumericAttribute(selectedOption, 'option-id'));
22
22
  const displayNumber = shortDisplayNumber(element.getAttribute('display-number'));
23
- const scoreValue = answer && choice.options.find((option) => option.id === Number(answer.value)).score;
23
+ const scoreValue = answer && choice.options.find(option => option.id === Number(answer.value)).score;
24
24
  const maxScore = getNumericAttribute(element, 'max-score');
25
25
  return (React.createElement(React.Fragment, null,
26
26
  answers.length > 1 && React.createElement("sup", null, displayNumber),
27
27
  React.createElement("span", { className: classNames('e-dropdown-answer__answered', {
28
28
  'e-dropdown-answer__answered--correct': isAnswerCorrect,
29
- 'e-dropdown-answer__answered--wrong': !isAnswerCorrect,
29
+ 'e-dropdown-answer__answered--wrong': !isAnswerCorrect
30
30
  }) },
31
31
  React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
32
32
  renderChildNodes(selectedOption),
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownAnswer.js","sourceRoot":"","sources":["../../../src/components/results/DropdownAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mCAAmC,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/F,OAAO,4BAA4B,MAAM,8BAA8B,CAAA;AAEvE,SAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACvE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC5E,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC/C,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAE,CAAA;IAC/D,MAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAA6B,CAAA;IAE1E,MAAM,cAAc,GAAG,gBAAgB,CACrC,OAAO,EACP,CAAC,YAAY,EA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B,oBAAC,4BAA4B,IAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,GAAI,CACtG,CACA,CACJ,CAAA;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
@@ -8,16 +8,16 @@ function Question({ element, renderChildNodes }) {
8
8
  const { answersByQuestionId } = useContext(ResultsContext);
9
9
  const { displayNumber, level } = useContext(QuestionContext);
10
10
  const hasAnswers = questionHasAnswers(element, answersByQuestionId);
11
- return hasAnswers ? (React.createElement("div", { className: classNames('exam-question', {
11
+ return hasAnswers ? (React.createElement("div", { className: classNames('e-exam-question', {
12
12
  'e-mrg-b-8 e-clearfix': level === 0,
13
- 'e-mrg-l-8 e-mrg-y-4': level > 0,
13
+ 'e-mrg-l-8 e-mrg-y-4': level > 0
14
14
  }), id: displayNumber },
15
15
  renderChildNodes(element),
16
16
  React.createElement(AnnotationList, null))) : null;
17
17
  }
18
18
  function questionHasAnswers(element, answers) {
19
19
  const answerElems = findChildrenAnswers(element);
20
- return answerElems.some((e) => answers[getNumericAttribute(e, 'question-id')]);
20
+ return answerElems.some(e => answers[getNumericAttribute(e, 'question-id')]);
21
21
  }
22
22
  export default React.memo(withQuestionContext(Question));
23
23
  //# sourceMappingURL=Question.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/results/Question.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE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,CAAA;AACjF,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAI1D,SAAS,QAAQ,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACjE,MAAM,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC1D,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC5D,MAAM,UAAU,GAAG,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAA;IAEnE,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,6BACE,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE;YACvC,sBAAsB,EAAE,KAAK,KAAK,CAAC;YACnC,qBAAqB,EAAE,KAAK,GAAG,CAAC;SACjC,CAAC,EACF,EAAE,EAAE,aAAa;QAEhB,gBAAgB,CAAC,OAAO,CAAC;QAC1B,oBAAC,cAAc,OAAG,CACd,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAgB,EAAE,OAAmC;IAC/E,MAAM,WAAW,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAChD,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,aAAa,CAAE,CAAC,CAAC,CAAA;AAC/E,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA"}
@@ -10,7 +10,7 @@ function QuestionTitle({ element, renderChildNodes }) {
10
10
  return (React.createElement(React.Fragment, null,
11
11
  React.createElement(Tag, { className: classNames('exam-question-title', { 'e-normal e-font-size-m': level > 0 }) },
12
12
  React.createElement("strong", { className: classNames('exam-question-title__display-number', {
13
- 'exam-question-title__display-number--indented': level > 0,
13
+ 'exam-question-title__display-number--indented': level > 0
14
14
  }) }, `${formatQuestionDisplayNumber(displayNumber)} `),
15
15
  renderChildNodes(element)),
16
16
  maxAnswers != null && childQuestions.length > 0 && (React.createElement("p", { className: "e-italic" },
@@ -1 +1 @@
1
- {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU/C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAmB9C,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,8GAA8G;IAC9G,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;;AAkFD,wBAA6E"}
1
+ {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU/C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAqB9C,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,8GAA8G;IAC9G,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;;AAoFD,wBAA6E"}
@@ -26,6 +26,8 @@ import TextAnswer from './TextAnswer';
26
26
  import { ErrorIndicatorForErrors } from '../exam/internal/ErrorIndicator';
27
27
  import { validateAnswers } from '../../validateAnswers';
28
28
  import { parseExamStructure } from '../../parser/parseExamStructure';
29
+ import { QuestionNumber } from '../shared/QuestionNumber';
30
+ import ExamTranslation from '../shared/ExamTranslation';
29
31
  const renderChildNodes = createRenderChildNodes({
30
32
  attachment: RenderChildNodes,
31
33
  'attachment-link': mkAttachmentLink('plain'),
@@ -38,12 +40,14 @@ const renderChildNodes = createRenderChildNodes({
38
40
  hints: RenderChildNodes,
39
41
  image: renderIf(({ element }) => queryAncestors(element, 'choice-answer') != null)(Image),
40
42
  'question-instruction': ExamQuestionInstruction,
43
+ 'question-number': QuestionNumber,
44
+ translation: ExamTranslation,
41
45
  'question-title': QuestionTitle,
42
46
  section: Section,
43
47
  'section-title': ExamSectionTitle,
44
48
  'text-answer': TextAnswer,
45
49
  'scored-text-answer': ScoredTextAnswer,
46
- 'scored-text-answers': RenderChildNodes,
50
+ 'scored-text-answers': RenderChildNodes
47
51
  });
48
52
  const Results = ({ doc }) => {
49
53
  const { date, dateTimeFormatter, dayCode, examCode, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
@@ -54,7 +58,7 @@ const Results = ({ doc }) => {
54
58
  useEffect(changeLanguage(i18n, language));
55
59
  useEffect(scrollToHash, []);
56
60
  return (React.createElement(I18nextProvider, { i18n: i18n },
57
- React.createElement("main", { className: "e-exam", lang: subjectLanguage },
61
+ React.createElement("main", { className: "e-exam e-results", lang: subjectLanguage },
58
62
  React.createElement(React.StrictMode, null),
59
63
  examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
60
64
  React.createElement("div", { className: "e-columns e-columns--bottom-v e-mrg-b-4" },
@@ -1 +1 @@
1
- {"version":3,"file":"Results.js","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAE,sBAAsB,EA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AAmB,OAAG,CACnB;YACN,oBAAC,uBAAuB,IACtB,gBAAgB,EAAE,eAAe,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,EAC/E,MAAM,EAAE,KAAK,GACb;YACD,gBAAgB,CAAC,IAAI,CAAC,CAClB,CACS,CACnB,CAAA;AACH,CAAC,CAAA;AAED,SAAS,mBAAmB;IAC1B,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC9D,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,kBAAkB;QAC/B,+BAAO,SAAS,EAAC,uCAAuC;YACtD;gBACE;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,eAAe,CAAC,CAAM;oBAC5D,4BAAI,SAAS,EAAC,mCAAmC,IAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAM,CACxF;gBACJ,WAAW,IAAI,CACd;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,OAAO,CAAC,CAAM;oBACpD,4BAAI,SAAS,EAAC,mCAAmC,IAAE,WAAW,CAAM,CACjE,CACN,CACK,CACF,CACJ,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA"}
@@ -7,7 +7,7 @@ import { sectionTitleId } from '../../ids';
7
7
  function Section({ element, renderChildNodes }) {
8
8
  const { displayNumber } = useContext(SectionContext);
9
9
  const { answersByQuestionId } = useContext(ResultsContext);
10
- const containsAnswers = query(element, (e) => {
10
+ const containsAnswers = query(element, e => {
11
11
  const maybeQuestionId = e.getAttribute('question-id');
12
12
  return maybeQuestionId != null && Object.prototype.hasOwnProperty.call(answersByQuestionId, maybeQuestionId);
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Section.js","sourceRoot":"","sources":["../../../src/components/results/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,SAAS,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IAChE,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IACpD,MAAM,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC1D,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;QAC3C,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAA;QACrD,OAAO,eAAe,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAA;IAC9G,CAAC,CAAC,CAAA;IAEF,OAAO,eAAe,CAAC,CAAC,CAAC,CACvB,oBAAC,cAAc,uBAAkB,cAAc,CAAC,aAAa,CAAC;QAC5D,6BAAK,SAAS,EAAC,2BAA2B,IAAE,gBAAgB,CAAC,OAAO,CAAC,CAAO,CAC7D,CAClB,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"Section.js","sourceRoot":"","sources":["../../../src/components/results/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,SAAS,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IAChE,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IACpD,MAAM,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC1D,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;QACzC,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC,aAAa,CAAC,CAAA;QACrD,OAAO,eAAe,IAAI,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAA;IAC9G,CAAC,CAAC,CAAA;IAEF,OAAO,eAAe,CAAC,CAAC,CAAC,CACvB,oBAAC,cAAc,uBAAkB,cAAc,CAAC,aAAa,CAAC;QAC5D,6BAAK,SAAS,EAAC,2BAA2B,IAAE,gBAAgB,CAAC,OAAO,CAAC,CAAO,CAC7D,CAClB,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Score } from '../..';
3
- declare function SingleLineAnswer({ displayNumber, score, value, children, }: {
3
+ declare function SingleLineAnswer({ displayNumber, score, value, children }: {
4
4
  answers: Element[];
5
5
  score?: Score;
6
6
  displayNumber?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleLineAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAK7B,iBAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,eAuBA;;AAED,wBAA2C"}
1
+ {"version":3,"file":"SingleLineAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAK7B,iBAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EACT,EAAE;IACD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,eAuBA;;AAED,wBAA2C"}
@@ -2,7 +2,7 @@ import React, { useLayoutEffect, useRef } from 'react';
2
2
  import { useExamTranslation } from '../../i18n';
3
3
  import { renderAnnotations } from '../../renderAnnotations';
4
4
  import { ScreenReaderOnly } from '../ScreenReaderOnly';
5
- function SingleLineAnswer({ displayNumber, score, value, children, }) {
5
+ function SingleLineAnswer({ displayNumber, score, value, children }) {
6
6
  const { t } = useExamTranslation();
7
7
  const answerRef = useRef(null);
8
8
  useLayoutEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"SingleLineAnswer.js","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,SAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,GAOT;IACC,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,SAAS,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAE/C,eAAe,CAAC,GAAG,EAAE;;QACnB,IAAI,SAAS,CAAC,OAAO,EAAE;YACrB,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,WAAW,mCAAI,EAAE,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,0CAAE,WAAW,mCAAI,EAAE,CAAC,CAAA;SAChH;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,CACL;QACG,aAAa,IAAI,iCAAM,aAAa,CAAO;QAC5C,8BAAM,SAAS,EAAC,sCAAsC;YACpD,oBAAC,gBAAgB,QAAE,CAAC,CAAC,4BAA4B,CAAC,CAAoB;YACtE,8BAAM,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,SAAS,IAC5C,KAAK,CACD;YACP,oBAAC,gBAAgB,QAAE,CAAC,CAAC,0BAA0B,CAAC,CAAoB,CAC/D;QACN,QAAQ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ACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA"}
@@ -11,14 +11,14 @@ const getPrefix = (answers, answer) => answers.length > 1 ? shortDisplayNumber(a
11
11
  function ResultsAnnotationList() {
12
12
  const { answers } = useContext(QuestionContext);
13
13
  const { scores, singleGrading } = useContext(ResultsContext);
14
- const answersAndScores = mapMaybe(answers || [], (answer) => {
14
+ const answersAndScores = mapMaybe(answers || [], answer => {
15
15
  const questionId = getNumericAttribute(answer, 'question-id');
16
16
  const score = findScore(scores, questionId);
17
17
  return score && answer && hasAnnotations(score) ? [answer, score] : undefined;
18
18
  });
19
19
  const getListOfAnnotations = (answerElementAndScores, annotationsFrom, listNumberOffset = 0) => _.flatMap(answerElementAndScores, ([answer, score]) => {
20
20
  var _a, _b, _c;
21
- return (_c = (_b = (_a = score[annotationsFrom]) === null || _a === void 0 ? void 0 : _a.annotations) === null || _b === void 0 ? void 0 : _b.filter((a) => a.message.length).map((annotation, i) => {
21
+ return (_c = (_b = (_a = score[annotationsFrom]) === null || _a === void 0 ? void 0 : _a.annotations) === null || _b === void 0 ? void 0 : _b.filter(a => a.message.length).map((annotation, i) => {
22
22
  const numbering = `${getPrefix(answers, answer) + String(listNumberOffset + i + 1)})`;
23
23
  const message = annotation.message;
24
24
  return { numbering, message };
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotationList.js","sourceRoot":"","sources":["../../../../src/components/results/internal/AnnotationList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BA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,gBAAgB,GAAG,CAAC,EACpB,EAAE,CACF,CAAC,CAAC,OAAO,CACP,sBAAsB,EACtB,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;;QAClB,OAAA,MAAA,MAAA,MAAA,KAAK,CAAC,eAAe,CAAC,0CAAE,WAAW,0CAC/B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAC/B,GAAG,CAAC,CAAC,UAAsB,EAAE,CAAS,EAAE,EAAE;YACzC,MAAM,SAAS,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,gBAAgB,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAA;YACrF,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAA;YAClC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;QAC/B,CAAC,CAAC,mCAAI,EAAE,CAAA;KAAA,CACb,CAAA;IAEH,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAA;IAClF,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,gBAAgB,EAAE,WAAW,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IAE9G,OAAO,CACL,oBAAC,eAAe,IACd,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,CAAC,CAAC,aAAa,GAC9B,CACH,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA"}
1
+ {"version":3,"file":"AnnotationList.js","sourceRoot":"","sources":["../../../../src/components/results/internal/AnnotationList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,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ectionScore(scores.inspection),
18
18
  ...(scores.censoring ? normalizeCensoringScores(scores.censoring) : []),
19
- scores.pregrading && normalizePregradingScore(scores.pregrading),
19
+ scores.pregrading && normalizePregradingScore(scores.pregrading)
20
20
  ].filter(Boolean);
21
21
  return normalizedScores.map((score, i) => React.createElement(ScoreRow, { key: i, ...score, latest: i === 0, maxScore: maxScore }));
22
22
  }
@@ -52,14 +52,14 @@ function normalizeCensoringScores(score) {
52
52
  return score.scores.map((s, i) => ({
53
53
  score: s.score,
54
54
  shortCode: s.shortCode || '',
55
- type: `grading.round.${score.scores.length - i}`,
55
+ type: `grading.round.${score.scores.length - i}`
56
56
  }));
57
57
  }
58
58
  function normalizeInspectionScore(score) {
59
59
  return {
60
60
  score: score.score,
61
61
  shortCode: score.shortCodes ? score.shortCodes.join(', ') : '',
62
- type: 'grading.inspection-grading-abbrev',
62
+ type: 'grading.inspection-grading-abbrev'
63
63
  };
64
64
  }
65
65
  export default React.memo(QuestionManualScore);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare function QuestionScoresContainer({ answers, displayNumber, children, multilineAnswer, }: {
2
+ declare function QuestionScoresContainer({ answers, displayNumber, children, multilineAnswer }: {
3
3
  answers: Element[];
4
4
  displayNumber?: string;
5
5
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionScoresContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionScoresContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,iBAAS,uBAAuB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,eAAe,GAChB,EAAE;IACD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,eAoBA;;AAED,wBAAkD"}
1
+ {"version":3,"file":"QuestionScoresContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionScoresContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,iBAAS,uBAAuB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,eAAe,EAChB,EAAE;IACD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,eAoBA;;AAED,wBAAkD"}
@@ -1,11 +1,11 @@
1
1
  import React, { useContext } from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { QuestionContext } from '../../context/QuestionContext';
4
- function QuestionScoresContainer({ answers, displayNumber, children, multilineAnswer, }) {
4
+ function QuestionScoresContainer({ answers, displayNumber, children, multilineAnswer }) {
5
5
  const { displayNumber: topLevelDisplayNumber } = useContext(QuestionContext);
6
6
  const fullDisplayNumber = displayNumber ? `${topLevelDisplayNumber}.${displayNumber === null || displayNumber === void 0 ? void 0 : displayNumber.replace('.', '')}` : undefined;
7
7
  return (React.createElement("span", { className: classnames('e-result-scorecount', 'e-float-right', {
8
- 'e-result-scorecount-multiline-answer': multilineAnswer,
8
+ 'e-result-scorecount-multiline-answer': multilineAnswer
9
9
  }), id: fullDisplayNumber },
10
10
  React.createElement("span", { className: "e-result-scorecount-border-wrap" },
11
11
  answers.length > 1 && displayNumber && (React.createElement("sup", { className: "e-result-scorecount-sup e-mrg-r-1", "aria-hidden": "true" }, displayNumber)),
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionScoresContainer.js","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionScoresContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,SAAS,uBAAuB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,eAAe,GAMhB;IACC,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC5E,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,qBAAqB,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACnH,OAAO,CACL,8BACE,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,eAAe,EAAE;YAC5D,sCAAsC,EAAE,eAAe;SACxD,CAAC,EACF,EAAE,EAAE,iBAAiB;QAErB,8BAAM,SAAS,EAAC,iCAAiC;YAC9C,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,aAAa,IAAI,CACtC,6BAAK,SAAS,EAAC,mCAAmC,iBAAa,MAAM,IAClE,aAAa,CACV,CACP;YACA,QAAQ,CACJ,CACF,CACR,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"QuestionScoresContainer.js","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionScoresContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,SAAS,uBAAuB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,eAAe,EAMhB;IACC,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC5E,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,qBAAqB,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IACnH,OAAO,CACL,8BACE,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,eAAe,EAAE;YAC5D,sCAAsC,EAAE,eAAe;SACxD,CAAC,EACF,EAAE,EAAE,iBAAiB;QAErB,8BAAM,SAAS,EAAC,iCAAiC;YAC9C,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,aAAa,IAAI,CACtC,6BAAK,SAAS,EAAC,mCAAmC,iBAAa,MAAM,IAClE,aAAa,CACV,CACP;YACA,QAAQ,CACJ,CACF,CACR,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare function AnnotationLists({ pregradingAnnotations, censoringAnnotations, singleGrading, }: {
2
+ export declare function AnnotationLists({ pregradingAnnotations, censoringAnnotations, singleGrading }: {
3
3
  pregradingAnnotations: {
4
4
  numbering: string;
5
5
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotationLists.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationLists.tsx"],"names":[],"mappings":";AAGA,wBAAgB,eAAe,CAAC,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,GACd,EAAE;IACD,qBAAqB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC/D,oBAAoB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,aAAa,EAAE,OAAO,CAAA;CACvB,sBAsBA"}
1
+ {"version":3,"file":"AnnotationLists.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationLists.tsx"],"names":[],"mappings":";AAGA,wBAAgB,eAAe,CAAC,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACd,EAAE;IACD,qBAAqB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC/D,oBAAoB,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC9D,aAAa,EAAE,OAAO,CAAA;CACvB,sBAsBA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useExamTranslation } from '../../i18n';
3
- export function AnnotationLists({ pregradingAnnotations, censoringAnnotations, singleGrading, }) {
3
+ export function AnnotationLists({ pregradingAnnotations, censoringAnnotations, singleGrading }) {
4
4
  return pregradingAnnotations.length || censoringAnnotations.length ? (React.createElement("div", { className: "e-annotation-list e-columns e-mrg-t-2" }, singleGrading ? (React.createElement("div", { className: "e-column e-column--10" },
5
5
  React.createElement(AnnotationListComponent, { annotations: pregradingAnnotations }))) : (React.createElement(React.Fragment, null,
6
6
  React.createElement("div", { className: "e-column e-column--6" },
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotationLists.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationLists.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,UAAU,eAAe,CAAC,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,GAKd;IACC,OAAO,qBAAqB,CAAC,MAAM,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CACnE,6BAAK,SAAS,EAAC,uCAAuC,IACnD,aAAa,CAAC,CAAC,CAAC,CACf,6BAAK,SAAS,EAAC,uBAAuB;QACpC,oBAAC,uBAAuB,IAAC,WAAW,EAAE,qBAAqB,GAAI,CAC3D,CACP,CAAC,CAAC,CAAC,CACF;QACE,6BAAK,SAAS,EAAC,sBAAsB;YACnC,oBAAC,uBAAuB,IACtB,YAAY,EAAE,gCAAgC,EAC9C,WAAW,EAAE,qBAAqB,GAClC,CACE;QACN,6BAAK,SAAS,EAAC,sBAAsB;YACnC,oBAAC,uBAAuB,IAAC,YAAY,EAAE,4BAA4B,EAAE,WAAW,EAAE,oBAAoB,GAAI,CACtG,CACL,CACJ,CACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,MAAM,uBAAuB,GAAG,CAAC,EAAE,YAAY,EAAE,WAAW,EAAuB,EAAE,EAAE;IACrF,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,WAAW,CAAC,CAAC,CAAC,CACnB;QACG,YAAY,IAAI,gCAAK,CAAC,CAAC,YAAY,CAAC,CAAM;QAC3C,4BAAI,SAAS,EAAC,qCAAqC,IAChD,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC3C,gDAAsB,SAAS,EAAE,GAAG,EAAE,SAAS,IAC5C,OAAO,CACL,CACN,CAAC,CACC,CACJ,CACJ,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA"}
1
+ {"version":3,"file":"AnnotationLists.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationLists.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,UAAU,eAAe,CAAC,EAC9B,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EAKd;IACC,OAAO,qBAAqB,CAAC,MAAM,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CACnE,6BAAK,SAAS,EAAC,uCAAuC,IACnD,aAAa,CAAC,CAAC,CAAC,CACf,6BAAK,SAAS,EAAC,uBAAuB;QACpC,oBAAC,uBAAuB,IAAC,WAAW,EAAE,qBAAqB,GAAI,CAC3D,CACP,CAAC,CAAC,CAAC,CACF;QACE,6BAAK,SAAS,EAAC,sBAAsB;YACnC,oBAAC,uBAAuB,IACtB,YAAY,EAAE,gCAAgC,EAC9C,WAAW,EAAE,qBAAqB,GAClC,CACE;QACN,6BAAK,SAAS,EAAC,sBAAsB;YACnC,oBAAC,uBAAuB,IAAC,YAAY,EAAE,4BAA4B,EAAE,WAAW,EAAE,oBAAoB,GAAI,CACtG,CACL,CACJ,CACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,MAAM,uBAAuB,GAAG,CAAC,EAAE,YAAY,EAAE,WAAW,EAAuB,EAAE,EAAE;IACrF,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,WAAW,CAAC,CAAC,CAAC,CACnB;QACG,YAAY,IAAI,gCAAK,CAAC,CAAC,YAAY,CAAC,CAAM;QAC3C,4BAAI,SAAS,EAAC,qCAAqC,IAChD,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC3C,gDAAsB,SAAS,EAAE,GAAG,EAAE,SAAS,IAC5C,OAAO,CACL,CACN,CAAC,CACC,CACJ,CACJ,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ExamAnswer } from '../../types/ExamAnswer';
3
+ type Props = {
4
+ id: number;
5
+ type: string;
6
+ answer: ExamAnswer;
7
+ error: boolean;
8
+ };
9
+ export declare const Indicator: React.MemoExoticComponent<(props: Props) => JSX.Element>;
10
+ export {};
11
+ //# sourceMappingURL=AnswerIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnswerIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnswerIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAInD,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAiCD,eAAO,MAAM,SAAS,oCA/BU,KAAK,iBA+BS,CAAA"}
@@ -0,0 +1,22 @@
1
+ import React, { memo } from 'react';
2
+ import classNames from 'classnames';
3
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
+ import { faImage } from '@fortawesome/free-solid-svg-icons';
5
+ const AnswerIndicator = (props) => {
6
+ const { id, type, answer, error } = props;
7
+ const answerIsFormula = answer === null || answer === void 0 ? void 0 : answer.value.includes('math.svg');
8
+ const answerIsImage = answer === null || answer === void 0 ? void 0 : answer.value.includes('data:image');
9
+ const answerIsLongText = (answer === null || answer === void 0 ? void 0 : answer.type) === 'richText' && !answerIsFormula && !answerIsImage;
10
+ return (React.createElement(React.Fragment, null,
11
+ React.createElement("div", { key: id, className: classNames('answer-indicator', {
12
+ ok: answer === null || answer === void 0 ? void 0 : answer.value,
13
+ error,
14
+ big: type === 'rich-text'
15
+ }), "data-indicator-id": id }, (answer === null || answer === void 0 ? void 0 : answer.type) === 'richText' && (React.createElement(React.Fragment, null,
16
+ answerIsFormula && '∑',
17
+ answerIsImage && React.createElement(FontAwesomeIcon, { icon: faImage, size: "lg" }),
18
+ (answerIsLongText && (answer === null || answer === void 0 ? void 0 : answer.characterCount)) || ''))),
19
+ error && React.createElement("div", { className: "error-mark" }, "!")));
20
+ };
21
+ export const Indicator = memo(AnswerIndicator);
22
+ //# sourceMappingURL=AnswerIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnswerIndicator.js","sourceRoot":"","sources":["../../../src/components/shared/AnswerIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EA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AA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,CAAA"}
@@ -10,7 +10,7 @@ const mkAttachmentLink = (type) => {
10
10
  const { root } = useContext(CommonExamContext);
11
11
  const { attachmentsURL } = useContext(CommonExamContext);
12
12
  const { t } = useExamTranslation();
13
- const attachment = query(root, (el) => el.localName === 'attachment' && el.getAttribute('name') === name);
13
+ const attachment = query(root, el => el.localName === 'attachment' && el.getAttribute('name') === name);
14
14
  const displayNumber = attachment.getAttribute('display-number');
15
15
  const isShort = element.getAttribute('type') === 'short';
16
16
  const href = url(attachmentsURL, { hash: displayNumber });
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentLink.js","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,oBAAoB,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAEhE,MAAM,gBAAgB,GAAG,CAAC,IAAsB,EAA+C,EAAE;IAC/F,MAAM,cAAc,GAAgD,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QAClF,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;QAC9C,MAAM,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;QACxD,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;QAClC,MAAM,UAAU,GAAG,KAAK,CAAC,I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const { root, attachmentsURL } = useContext(CommonExamContext);
10
10
  const { t } = useExamTranslation();
11
- const displayNumbers = mapChildElements(element, (attachmentLink) => {
11
+ const displayNumbers = mapChildElements(element, attachmentLink => {
12
12
  const name = attachmentLink.getAttribute('ref');
13
- const attachment = query(root, (el) => el.localName === 'attachment' && el.getAttribute('name') === name);
13
+ const attachment = query(root, el => el.localName === 'attachment' && el.getAttribute('name') === name);
14
14
  return attachment.getAttribute('display-number');
15
15
  });
16
16
  const groupedDisplayNumbers = splitWhen(displayNumbers, (displayNumber, i) => i > 0 && !isSuccessive(displayNumbers[i - 1], displayNumber));
17
17
  const isShort = element.getAttribute('type') === 'short';
18
18
  const href = url(attachmentsURL, { hash: displayNumbers[0] });
19
19
  const displayNumbersString = groupedDisplayNumbers
20
- .map((group) => (group.length > 1 ? `${group[0]}–${group[group.length - 1]}` : group[0]))
20
+ .map(group => (group.length > 1 ? `${group[0]}–${group[group.length - 1]}` : group[0]))
21
21
  .join(', ');
22
22
  const count = groupedDisplayNumbers[0].length;
23
23
  return isShort ? (React.createElement(AttachmentLinkAnchor, { href, type }, displayNumbersString)) : (React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentLinks.js","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,oBAAoB,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAEhE,MAAM,iBAAiB,GAAG,CAAC,IAAsB,EAA+C,EAAE;IAChG,MAAM,eAAe,GAAgD,CAAC,EAAE,OAA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
+ import React from 'react';
2
+ import { ExamComponentProps } from '../../createRenderChildNodes';
3
+ declare function ExamTranslation({ element }: ExamComponentProps): JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof ExamTranslation>;
5
+ export default _default;
6
+ //# sourceMappingURL=ExamTranslation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExamTranslation.d.ts","sourceRoot":"","sources":["../../../src/components/shared/ExamTranslation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,eAMvD;;AAED,wBAA0C"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { useExamTranslation } from '../../i18n';
3
+ function ExamTranslation({ element }) {
4
+ const { t } = useExamTranslation();
5
+ const key = element.getAttribute('key');
6
+ // @ts-ignore
7
+ return React.createElement(React.Fragment, null, t(key));
8
+ }
9
+ export default React.memo(ExamTranslation);
10
+ //# sourceMappingURL=ExamTranslation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExamTranslation.js","sourceRoot":"","sources":["../../../src/components/shared/ExamTranslation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,SAAS,eAAe,CAAC,EAAE,OAAO,EAAsB;IACtD,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA;IAExC,aAAa;IACb,OAAO,0CAAG,CAAC,CAAC,GAAG,CAAC,CAAI,CAAA;AACtB,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA"}
@@ -7,7 +7,7 @@ import { findChildElement, getNumericAttribute, mapChildElements } from '../../d
7
7
  import { CommonExamContext } from '../context/CommonExamContext';
8
8
  import ResponsiveMediaContainer from './internal/ResponsiveMediaContainer';
9
9
  function ImageOverlay({ element, renderChildNodes }) {
10
- const [opacities, setOpacities] = useState(() => _.times(element.children.length, (i) => (i === 0 ? 1 : 0)));
10
+ const [opacities, setOpacities] = useState(() => _.times(element.children.length, i => (i === 0 ? 1 : 0)));
11
11
  const mkSetOpacity = (index) => (opacity) => {
12
12
  const updatedOpacities = [...opacities];
13
13
  updatedOpacities[index] = opacity;
@@ -24,7 +24,7 @@ function Slider({ opacity, setOpacity, element, renderChildNodes }) {
24
24
  return (React.createElement("div", { className: "e-columns e-columns--center-v e-mrg-b-1" },
25
25
  React.createElement("div", { className: "e-column e-text-right e-mrg-r-1" }, title && renderChildNodes(title)),
26
26
  React.createElement(FontAwesomeIcon, { icon: faEyeSlash, className: "e-mrg-r-1 e-pointer", onClick: () => setOpacity(0) }),
27
- React.createElement("input", { type: "range", min: 0, max: 1, step: 0.01, value: opacity, onChange: (e) => setOpacity(Number(e.target.value)) }),
27
+ React.createElement("input", { type: "range", min: 0, max: 1, step: 0.01, value: opacity, onChange: e => setOpacity(Number(e.target.value)) }),
28
28
  React.createElement(FontAwesomeIcon, { icon: faEye, className: "e-mrg-l-1 e-pointer", onClick: () => setOpacity(1) })));
29
29
  }
30
30
  function ImageOverlayImage({ element, absolute, opacity }) {
@@ -33,7 +33,7 @@ function ImageOverlayImage({ element, absolute, opacity }) {
33
33
  const height = getNumericAttribute(element, 'height');
34
34
  const imgUrl = useContext(CommonExamContext).resolveAttachment(src);
35
35
  return (React.createElement("div", { className: classNames('e-columns e-columns--center-h', { 'e-image-overlay__image-absolute': absolute }), style: {
36
- opacity: opacity,
36
+ opacity: opacity
37
37
  } },
38
38
  React.createElement(ResponsiveMediaContainer, { width,
39
39
  height },
@@ -1 +1 @@
1
- {"version":3,"file":"ImageOverlay.js","sourceRoot":"","sources":["../../../src/components/shared/ImageOverlay.tsx"],"names":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M,MAAM,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAA;IACnE,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CAAC,+BAA+B,EAAE,EAAE,iCAAiC,EAAE,QAAQ,EAAE,CAAC,EACvG,KAAK,EAAE;YACL,OAAO,EAAE,OAAO;SACjB;QAED,oBAAC,wBAAwB,IAErB,KAAK;YACL,MAAM;YAGR,6BAAK,SAAS,EAAC,SAAS,EAAC,GAAG,EAAE,MAAM,GAAI,CACf,CACvB,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ExamComponentProps } from '../../createRenderChildNodes';
3
+ export declare function QuestionNumber({ element }: ExamComponentProps): JSX.Element;
4
+ //# sourceMappingURL=QuestionNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionNumber.d.ts","sourceRoot":"","sources":["../../../src/components/shared/QuestionNumber.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,eAS7D"}
@@ -0,0 +1,12 @@
1
+ import React, { useContext } from 'react';
2
+ import { QuestionContext } from '../context/QuestionContext';
3
+ import * as _ from 'lodash-es';
4
+ export function QuestionNumber({ element }) {
5
+ const suffix = element.getAttribute('suffix');
6
+ const { displayNumber } = useContext(QuestionContext);
7
+ return (React.createElement(React.Fragment, null,
8
+ _.first(displayNumber.split('.')),
9
+ ".",
10
+ suffix));
11
+ }
12
+ //# sourceMappingURL=QuestionNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionNumber.js","sourceRoot":"","sources":["../../../src/components/shared/QuestionNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,MAAM,UAAU,cAAc,CAAC,EAAE,OAAO,EAAsB;IAC5D,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAE,CAAA;IAC9C,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAErD,OAAO,CACL;QACG,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAE;;QAAG,MAAM,CAC3C,CACJ,CAAA;AACH,CAAC"}
@@ -38,7 +38,7 @@ function Reference({ element, renderChildNodes }) {
38
38
  renderWithPrefix('reference-date', 'references.reference-date', AsDate),
39
39
  renderWithPrefix('translator', 'references.translator', RenderChildNodes),
40
40
  renderWithPrefix('modified-by', 'references.modified-by', RenderChildNodes),
41
- renderWith('note', RenderChildNodes),
41
+ renderWith('note', RenderChildNodes)
42
42
  ])));
43
43
  }
44
44
  function Italic({ element, renderChildNodes }) {
@@ -11,7 +11,7 @@ const renderChildNodes = createRenderChildNodes({});
11
11
  function References(_props) {
12
12
  const { root } = useContext(CommonExamContext);
13
13
  const { t } = useExamTranslation();
14
- const internalReferences = queryAll(root, 'reference').filter((reference) => queryAncestors(reference, 'external-material') == null);
14
+ const internalReferences = queryAll(root, 'reference').filter(reference => queryAncestors(reference, 'external-material') == null);
15
15
  return internalReferences.length > 0 ? (React.createElement(SectionElement, { "aria-labelledby": referencesTitleId },
16
16
  React.createElement("h2", { id: referencesTitleId }, t('references.heading')),
17
17
  React.createElement("ol", { className: "e-list-data" }, internalReferences.map((reference, i) => {