@digabi/exam-engine-core 19.8.0 → 19.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) 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.js +1 -1
  28. package/dist/components/attachments/Question.js +1 -1
  29. package/dist/components/attachments/Question.js.map +1 -1
  30. package/dist/components/context/CommonExamContext.js +1 -1
  31. package/dist/components/context/ExamContext.js +1 -1
  32. package/dist/components/context/QuestionContext.js +1 -1
  33. package/dist/components/context/ResultsContext.js +7 -6
  34. package/dist/components/context/ResultsContext.js.map +1 -1
  35. package/dist/components/context/SectionContext.js +2 -2
  36. package/dist/components/context/SectionContext.js.map +1 -1
  37. package/dist/components/exam/ChoiceAnswer.js +6 -6
  38. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  39. package/dist/components/exam/DropdownAnswer.js +10 -10
  40. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  41. package/dist/components/exam/Exam.d.ts +1 -0
  42. package/dist/components/exam/Exam.d.ts.map +1 -1
  43. package/dist/components/exam/Exam.js +69 -13
  44. package/dist/components/exam/Exam.js.map +1 -1
  45. package/dist/components/exam/ExternalMaterial.js +1 -1
  46. package/dist/components/exam/Hints.js +3 -3
  47. package/dist/components/exam/Hints.js.map +1 -1
  48. package/dist/components/exam/Question.d.ts +4 -0
  49. package/dist/components/exam/Question.d.ts.map +1 -1
  50. package/dist/components/exam/Question.js +42 -5
  51. package/dist/components/exam/Question.js.map +1 -1
  52. package/dist/components/exam/QuestionTitle.js +1 -1
  53. package/dist/components/exam/RichTextAnswer.d.ts +6 -1
  54. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  55. package/dist/components/exam/RichTextAnswer.js +14 -2
  56. package/dist/components/exam/RichTextAnswer.js.map +1 -1
  57. package/dist/components/exam/Section.js +2 -2
  58. package/dist/components/exam/Section.js.map +1 -1
  59. package/dist/components/exam/internal/ErrorIndicator.d.ts +1 -1
  60. package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
  61. package/dist/components/exam/internal/ErrorIndicator.js +4 -4
  62. package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
  63. package/dist/components/exam/internal/ProgressBar.js +1 -1
  64. package/dist/components/exam/internal/ProgressBar.js.map +1 -1
  65. package/dist/components/exam/internal/TextAnswerInput.d.ts.map +1 -1
  66. package/dist/components/exam/internal/TextAnswerInput.js +14 -13
  67. package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
  68. package/dist/components/grading/AnswerCharacterCounter.d.ts +1 -1
  69. package/dist/components/grading/AnswerCharacterCounter.d.ts.map +1 -1
  70. package/dist/components/grading/AnswerCharacterCounter.js +3 -3
  71. package/dist/components/grading/AnswerCharacterCounter.js.map +1 -1
  72. package/dist/components/grading/GradingAnswer.js +9 -9
  73. package/dist/components/grading/GradingAnswer.js.map +1 -1
  74. package/dist/components/grading/GradingAnswerAnnotationList.d.ts +1 -1
  75. package/dist/components/grading/GradingAnswerAnnotationList.d.ts.map +1 -1
  76. package/dist/components/grading/GradingAnswerAnnotationList.js +2 -2
  77. package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
  78. package/dist/components/grading/editAnnotations.js +14 -14
  79. package/dist/components/grading/editAnnotations.js.map +1 -1
  80. package/dist/components/grading/largeImageDetector.js +2 -2
  81. package/dist/components/grading/largeImageDetector.js.map +1 -1
  82. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  83. package/dist/components/grading-instructions/GradingInstructions.js +6 -3
  84. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  85. package/dist/components/grading-instructions/Question.js +1 -1
  86. package/dist/components/grading-instructions/QuestionTitle.js +1 -1
  87. package/dist/components/results/ChoiceAnswer.js +8 -7
  88. package/dist/components/results/ChoiceAnswer.js.map +1 -1
  89. package/dist/components/results/DropdownAnswer.js +5 -5
  90. package/dist/components/results/DropdownAnswer.js.map +1 -1
  91. package/dist/components/results/Question.js +3 -3
  92. package/dist/components/results/Question.js.map +1 -1
  93. package/dist/components/results/QuestionTitle.js +1 -1
  94. package/dist/components/results/Results.js +2 -2
  95. package/dist/components/results/Results.js.map +1 -1
  96. package/dist/components/results/Section.js +1 -1
  97. package/dist/components/results/Section.js.map +1 -1
  98. package/dist/components/results/SingleLineAnswer.d.ts +1 -1
  99. package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
  100. package/dist/components/results/SingleLineAnswer.js +1 -1
  101. package/dist/components/results/SingleLineAnswer.js.map +1 -1
  102. package/dist/components/results/internal/AnnotationList.js +2 -2
  103. package/dist/components/results/internal/AnnotationList.js.map +1 -1
  104. package/dist/components/results/internal/QuestionManualScore.js +3 -3
  105. package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -1
  106. package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
  107. package/dist/components/results/internal/QuestionScoresContainer.js +2 -2
  108. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  109. package/dist/components/shared/AnnotationLists.d.ts +1 -1
  110. package/dist/components/shared/AnnotationLists.d.ts.map +1 -1
  111. package/dist/components/shared/AnnotationLists.js +1 -1
  112. package/dist/components/shared/AnnotationLists.js.map +1 -1
  113. package/dist/components/shared/AnswerIndicator.d.ts +11 -0
  114. package/dist/components/shared/AnswerIndicator.d.ts.map +1 -0
  115. package/dist/components/shared/AnswerIndicator.js +22 -0
  116. package/dist/components/shared/AnswerIndicator.js.map +1 -0
  117. package/dist/components/shared/AttachmentLink.js +1 -1
  118. package/dist/components/shared/AttachmentLink.js.map +1 -1
  119. package/dist/components/shared/AttachmentLinks.js +3 -3
  120. package/dist/components/shared/AttachmentLinks.js.map +1 -1
  121. package/dist/components/shared/ImageOverlay.js +3 -3
  122. package/dist/components/shared/ImageOverlay.js.map +1 -1
  123. package/dist/components/shared/Reference.js +1 -1
  124. package/dist/components/shared/References.js +1 -1
  125. package/dist/components/shared/References.js.map +1 -1
  126. package/dist/components/shared/Score.js +1 -1
  127. package/dist/components/shared/TableOfContents.d.ts +1 -0
  128. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  129. package/dist/components/shared/TableOfContents.js +83 -26
  130. package/dist/components/shared/TableOfContents.js.map +1 -1
  131. package/dist/components/shared/internal/ResponsiveMediaContainer.js +3 -3
  132. package/dist/components/shared/internal/ResponsiveMediaContainer.js.map +1 -1
  133. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts +1 -1
  134. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
  135. package/dist/components/shared/internal/RestrictedAudioPlayer.js +2 -2
  136. package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
  137. package/dist/dom-utils.js +1 -1
  138. package/dist/dom-utils.js.map +1 -1
  139. package/dist/fonts.js +1 -1
  140. package/dist/fonts.js.map +1 -1
  141. package/dist/i18n/A_E.js +2 -2
  142. package/dist/i18n/BA.js +1 -1
  143. package/dist/i18n/CA.js +1 -1
  144. package/dist/i18n/EA.js +2 -2
  145. package/dist/i18n/FA.js +2 -2
  146. package/dist/i18n/GC.js +2 -2
  147. package/dist/i18n/I.js +3 -3
  148. package/dist/i18n/M.js +1 -1
  149. package/dist/i18n/O_E.js +2 -2
  150. package/dist/i18n/PA.js +2 -2
  151. package/dist/i18n/SA.js +2 -2
  152. package/dist/i18n/TC.js +2 -2
  153. package/dist/i18n/VA.js +2 -2
  154. package/dist/i18n/Z.js +3 -3
  155. package/dist/i18n/fi-FI.d.ts +3 -0
  156. package/dist/i18n/fi-FI.d.ts.map +1 -1
  157. package/dist/i18n/fi-FI.js +17 -14
  158. package/dist/i18n/fi-FI.js.map +1 -1
  159. package/dist/i18n/index.d.ts +2 -137
  160. package/dist/i18n/index.d.ts.map +1 -1
  161. package/dist/i18n/index.js +8 -8
  162. package/dist/i18n/index.js.map +1 -1
  163. package/dist/i18n/sv-FI.d.ts.map +1 -1
  164. package/dist/i18n/sv-FI.js +18 -14
  165. package/dist/i18n/sv-FI.js.map +1 -1
  166. package/dist/main-bundle.js +1 -1
  167. package/dist/main-bundle.js.LICENSE.txt +0 -5
  168. package/dist/main.css +1 -1
  169. package/dist/parser/parseExam.js +5 -5
  170. package/dist/parser/parseExam.js.map +1 -1
  171. package/dist/parser/parseExamStructure.js +4 -4
  172. package/dist/renderAnnotations.js +8 -8
  173. package/dist/renderAnnotations.js.map +1 -1
  174. package/dist/store/answers/reducer.js +2 -2
  175. package/dist/store/audio/reducer.js +3 -3
  176. package/dist/store/audio/sagas.js +1 -1
  177. package/dist/store/audio/sagas.js.map +1 -1
  178. package/dist/store/cas/reducer.js +1 -1
  179. package/dist/store/cas/sagas.js +1 -1
  180. package/dist/store/countdown.js +1 -1
  181. package/dist/store/countdown.js.map +1 -1
  182. package/dist/store/index.js +4 -4
  183. package/dist/validateAnswers.d.ts +1 -0
  184. package/dist/validateAnswers.d.ts.map +1 -1
  185. package/dist/validateAnswers.js +8 -7
  186. package/dist/validateAnswers.js.map +1 -1
  187. package/package.json +18 -18
@@ -41,17 +41,17 @@ beforeAll(async () => {
41
41
  {
42
42
  questions: [
43
43
  (0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)({ maxLength: 3 })]),
44
- (0, exam_engine_generator_1.question)({ questions: [(0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)({ maxLength: 3 })]), (0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()])] }),
45
- ],
44
+ (0, exam_engine_generator_1.question)({ questions: [(0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)({ maxLength: 3 })]), (0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()])] })
45
+ ]
46
46
  },
47
47
  {
48
48
  maxAnswers: 1,
49
49
  questions: [
50
50
  (0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()]),
51
- (0, exam_engine_generator_1.question)({ maxAnswers: 1, questions: [(0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()]), (0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()])] }),
52
- ],
53
- },
54
- ],
51
+ (0, exam_engine_generator_1.question)({ maxAnswers: 1, questions: [(0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()]), (0, exam_engine_generator_1.question)([(0, exam_engine_generator_1.textAnswer)()])] })
52
+ ]
53
+ }
54
+ ]
55
55
  });
56
56
  const [masteringResult] = await (0, exam_engine_mastering_1.masterExam)(exam, () => '', () => {
57
57
  throw new Error('Boom!');
@@ -66,7 +66,8 @@ describe('Answer length validation', () => {
66
66
  displayNumber: '1',
67
67
  type: 'AnswerTooLong',
68
68
  characterCount: 8,
69
- },
69
+ elementType: 'question'
70
+ }
70
71
  ]);
71
72
  });
72
73
  it('returns multiple errors if multiple answers are too long', () => {
@@ -75,12 +76,14 @@ describe('Answer length validation', () => {
75
76
  displayNumber: '1',
76
77
  type: 'AnswerTooLong',
77
78
  characterCount: 8,
79
+ elementType: 'question'
78
80
  },
79
81
  {
80
82
  displayNumber: '2.1',
81
83
  type: 'AnswerTooLong',
82
84
  characterCount: 8,
83
- },
85
+ elementType: 'question'
86
+ }
84
87
  ]);
85
88
  });
86
89
  it('does not return errors if answer is short enough', () => {
@@ -118,7 +121,7 @@ describe('Extra answers validation', () => {
118
121
  ['1', '4.2'],
119
122
  ['2.1', '4.2'],
120
123
  ['2.2', '4.2'],
121
- ['2.1', '2.2', '4.2'],
124
+ ['2.1', '2.2', '4.2']
122
125
  ];
123
126
  const invalidAnswerCombinations = _.differenceWith(allAnswerCombinations, validAnswerCombinations, _.isEqual);
124
127
  for (const questions of validAnswerCombinations) {
@@ -136,8 +139,8 @@ describe('Extra answers validation', () => {
136
139
  maxAnswers: 1,
137
140
  minAnswers: undefined,
138
141
  elementType: 'question',
139
- type: 'ExtraAnswer',
140
- },
142
+ type: 'ExtraAnswer'
143
+ }
141
144
  ]);
142
145
  });
143
146
  it('returns an error if section has too many answers', () => {
@@ -148,8 +151,8 @@ describe('Extra answers validation', () => {
148
151
  maxAnswers: 1,
149
152
  minAnswers: 0,
150
153
  elementType: 'section',
151
- type: 'ExtraAnswer',
152
- },
154
+ type: 'ExtraAnswer'
155
+ }
153
156
  ]);
154
157
  });
155
158
  it('returns an error if exam has too many answers', () => {
@@ -160,8 +163,8 @@ describe('Extra answers validation', () => {
160
163
  maxAnswers: 2,
161
164
  minAnswers: undefined,
162
165
  elementType: 'exam',
163
- type: 'ExtraAnswer',
164
- },
166
+ type: 'ExtraAnswer'
167
+ }
165
168
  ]);
166
169
  });
167
170
  it('returns two errors if both exam and section have too many answers', () => {
@@ -172,7 +175,7 @@ describe('Extra answers validation', () => {
172
175
  maxAnswers: 2,
173
176
  minAnswers: undefined,
174
177
  elementType: 'exam',
175
- type: 'ExtraAnswer',
178
+ type: 'ExtraAnswer'
176
179
  },
177
180
  {
178
181
  childQuestions: ['3', '4'],
@@ -180,8 +183,8 @@ describe('Extra answers validation', () => {
180
183
  maxAnswers: 1,
181
184
  minAnswers: 0,
182
185
  elementType: 'section',
183
- type: 'ExtraAnswer',
184
- },
186
+ type: 'ExtraAnswer'
187
+ }
185
188
  ]);
186
189
  });
187
190
  it('returns three errors if exam, section and question have too many answers', () => {
@@ -192,7 +195,7 @@ describe('Extra answers validation', () => {
192
195
  maxAnswers: 2,
193
196
  minAnswers: undefined,
194
197
  elementType: 'exam',
195
- type: 'ExtraAnswer',
198
+ type: 'ExtraAnswer'
196
199
  },
197
200
  {
198
201
  childQuestions: ['3', '4'],
@@ -200,7 +203,7 @@ describe('Extra answers validation', () => {
200
203
  maxAnswers: 1,
201
204
  minAnswers: 0,
202
205
  elementType: 'section',
203
- type: 'ExtraAnswer',
206
+ type: 'ExtraAnswer'
204
207
  },
205
208
  {
206
209
  childQuestions: ['4.1', '4.2'],
@@ -208,23 +211,23 @@ describe('Extra answers validation', () => {
208
211
  maxAnswers: 1,
209
212
  minAnswers: undefined,
210
213
  elementType: 'question',
211
- type: 'ExtraAnswer',
212
- },
214
+ type: 'ExtraAnswer'
215
+ }
213
216
  ]);
214
217
  });
215
218
  });
216
219
  const answerQuestions = (...displayNumbers) => answerQuestionsWithText('foo', ...displayNumbers);
217
220
  const answerQuestionsWithText = (text, ...displayNumbers) => {
218
- const findQuestionId = (displayNumber) => gradingStructure.questions.find((q) => q.displayNumber === displayNumber).id;
221
+ const findQuestionId = (displayNumber) => gradingStructure.questions.find(q => q.displayNumber === displayNumber).id;
219
222
  const createAnswer = (questionId) => ({
220
223
  questionId,
221
224
  type: 'text',
222
225
  value: text,
223
- characterCount: text.length,
226
+ characterCount: text.length
224
227
  });
225
228
  const questionIds = displayNumbers.map(findQuestionId);
226
229
  const answers = questionIds.map(createAnswer);
227
230
  return _.zipObject(questionIds, answers);
228
231
  };
229
- const subsets = (array) => array.reduce((subsets, value) => subsets.concat(subsets.map((set) => [...set, value])), [[]]);
232
+ const subsets = (array) => array.reduce((subsets, value) => subsets.concat(subsets.map(set => [...set, value])), [[]]);
230
233
  //# sourceMappingURL=validateAnswers.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateAnswers.test.js","sourceRoot":"","sources":["../../__tests__/validateAnswers.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAwD;AACxD,wEAA+C;AAC/C,yEAAkF;AAClF,yEAAkF;AAClF,yEAA0D;AAE1D,0CAA2B;AAE3B,IAAI,aAA0B,CAAA;AAC9B,IAAI,gBAAkC,CAAA;AAEtC,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,IAAI,GAAG,IAAA,oCAAY,EAAC;QACxB,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE;oBACT,IAAA,gCAAQ,EAAC,CAAC,IAAA,kCAAU,EAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;oBACxC,IAAA,gCAAQ,EAAC,EAAE,SAAS,EAAE,CAAC,IAAA,gCAAQ,EAAC,CAAC,IAAA,kCAAU,EAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAA,gCAAQ,EAAC,CAAC,IAAA,kCAAU,GAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9F;aACF;YACD;gBACE,UAAU,EAAE,CAAC;gBACb,SAAS,EAAE;oBACT,IAAA,gCAAQ,EAAC,CAAC,IAAA,kCAAU,GAAE,CAAC,CAAC;oBACxB,IAAA,gCAAQ,EAAC,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,IAAA,gCAAQ,EAAC,CAAC,IAA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gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,aAAa,CAAE,CAAC,EAAE,CAAA;IAE7E,MAAM,YAAY,GAAG,CAAC,UAAkB,EAAc,EAAE,CAAC,CAAC;QACxD,UAAU;QACV,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,IAAI,CAAC,MAAM;KAC5B,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IACtD,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;IAE7C,OAAO,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;AAC1C,CAAC,CAAA;AAED,MAAM,OAAO,GAAG,CAAI,KAAU,EAAS,EAAE,CACvC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAU,CAAC,CAAA"}
@@ -12,7 +12,7 @@ interface AnswerToolbarProps {
12
12
  showAnswerHistory?: boolean;
13
13
  supportsAnswerHistory?: boolean;
14
14
  }
15
- declare function AnswerToolbar({ answer, element, screenshotError, validationError, selectAnswerVersion, showAnswerHistory, supportsAnswerHistory, }: AnswerToolbarProps): JSX.Element;
15
+ declare function AnswerToolbar({ answer, element, screenshotError, validationError, selectAnswerVersion, showAnswerHistory, supportsAnswerHistory }: AnswerToolbarProps): JSX.Element;
16
16
  declare const _default: React.MemoExoticComponent<typeof AnswerToolbar>;
17
17
  export default _default;
18
18
  //# sourceMappingURL=AnswerToolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnswerToolbar.d.ts","sourceRoot":"","sources":["../../src/components/AnswerToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,IAAI,CAAA;AAG/C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,UAAU,GAAG,cAAc,CAAA;IACpC,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,eAAe,CAAC,EAAE,aAAa,CAAA;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,mBAAmB,CAAC,EAAE,OAAO,OAAO,CAAC,mBAAmB,CAAA;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,OAAO,EACP,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAyB,EACzB,qBAA6B,GAC9B,EAAE,kBAAkB,eAoDpB;;AAED,wBAAwC"}
1
+ {"version":3,"file":"AnswerToolbar.d.ts","sourceRoot":"","sources":["../../src/components/AnswerToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,IAAI,CAAA;AAG/C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,UAAU,GAAG,cAAc,CAAA;IACpC,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,eAAe,CAAC,EAAE,aAAa,CAAA;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,mBAAmB,CAAC,EAAE,OAAO,OAAO,CAAC,mBAAmB,CAAA;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,OAAO,EACP,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAyB,EACzB,qBAA6B,EAC9B,EAAE,kBAAkB,eAoDpB;;AAED,wBAAwC"}
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { findChildElement, getNumericAttribute, NBSP, queryAncestors } from '../dom-utils';
4
4
  import { useExamTranslation } from '../i18n';
5
- function AnswerToolbar({ answer, element, screenshotError, validationError, selectAnswerVersion, showAnswerHistory = false, supportsAnswerHistory = false, }) {
5
+ function AnswerToolbar({ answer, element, screenshotError, validationError, selectAnswerVersion, showAnswerHistory = false, supportsAnswerHistory = false }) {
6
6
  const { t } = useExamTranslation();
7
7
  const answerLength = answer === null || answer === void 0 ? void 0 : answer.characterCount;
8
8
  const maxLength = getNumericAttribute(element, 'max-length');
@@ -11,7 +11,7 @@ function AnswerToolbar({ answer, element, screenshotError, validationError, sele
11
11
  answer != null
12
12
  ? t(maxLength != null ? 'answer-length-with-max-length' : 'answer-length', {
13
13
  count: answerLength,
14
- maxLength: maxLength,
14
+ maxLength: maxLength
15
15
  })
16
16
  : NBSP,
17
17
  screenshotError ? (React.createElement("span", { className: "e-color-error", role: "alert" },
@@ -1 +1 @@
1
- {"version":3,"file":"AnswerToolbar.js","sourceRoot":"","sources":["../../src/components/AnswerToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC1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AY,CAAC,CAAA;iBACnE;YACH,CAAC,IAEA,CAAC,CAAC,0BAA0B,CAAC,CACvB,CACV,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CACG,CACP,CACG,CACF,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
@@ -2,7 +2,7 @@ import * as _ from 'lodash-es';
2
2
  import React from 'react';
3
3
  import { useExamTranslation } from '../i18n';
4
4
  function AnsweringInstructions({ maxAnswers, minAnswers, elementType, childQuestions }) {
5
- const childDisplayNumbers = childQuestions.map((question) => _.isString(question) ? question : question.getAttribute('display-number'));
5
+ const childDisplayNumbers = childQuestions.map(question => _.isString(question) ? question : question.getAttribute('display-number'));
6
6
  const { t } = useExamTranslation();
7
7
  const possibleTranslationStrings = cartesian([childDisplayNumbers.length, '*'], [maxAnswers, '*'], [minAnswers != null ? minAnswers : maxAnswers, '*']).map(([childQuestionCount, maxAnswerCount, minAnswerCount]) => `answering-instructions.${elementType}_${childQuestionCount}_${minAnswerCount}_${maxAnswerCount}`);
8
8
  const answerCount = [minAnswers, maxAnswers];
@@ -1 +1 @@
1
- {"version":3,"file":"AnsweringInstructions.js","sourceRoot":"","sources":["../../src/components/AnsweringInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAS5C,SAAS,qBAAqB,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAA6B;IAC/G,MAAM,mBAAmB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC1D,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAC3E,CAAA;IA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CAAA;IAE9B,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE;QAClB,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE;YAClB,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE;gBAClB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;aACvB;SACF;KACF;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React, { useLayoutEffect, useRef } from 'react';
2
2
  /** A helper component that sets document.title based on its contents. */
3
- const DocumentTitle = (props) => {
3
+ const DocumentTitle = props => {
4
4
  const ref = useRef(null);
5
5
  useLayoutEffect(() => {
6
6
  if (ref.current) {
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentTitle.js","sourceRoot":"","sources":["../../src/components/DocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAItD,yEAAyE;AACzE,MAAM,aAAa,GAAgD,CAAC,KAAK,EAAE,EAAE;IAC3E,MAAM,GAAG,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAA;IAC5C,eAAe,CAAC,GAAG,EAAE;QACnB,IAAI,GAAG,CAAC,OAAO,EAAE;YACf,QAAQ,CAAC,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,WAAY,CAAA;SAC1C;IACH,CAAC,CAAC,CAAA;IACF,OAAO,+BAAQ,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAA;AACpC,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
1
+ {"version":3,"file":"DocumentTitle.js","sourceRoot":"","sources":["../../src/components/DocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAItD,yEAAyE;AACzE,MAAM,aAAa,GAAgD,KAAK,CAAC,EAAE;IACzE,MAAM,GAAG,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAA;IAC5C,eAAe,CAAC,GAAG,EAAE;QACnB,IAAI,GAAG,CAAC,OAAO,EAAE;YACf,QAAQ,CAAC,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,WAAY,CAAA;SAC1C;IACH,CAAC,CAAC,CAAA;IACF,OAAO,+BAAQ,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAA;AACpC,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import classNames from 'classnames';
2
2
  import React from 'react';
3
- const SectionElement = (props) => {
3
+ const SectionElement = props => {
4
4
  const className = classNames('e-section e-bg-color-off-white e-pad-6', props.className);
5
5
  return React.createElement("section", { ...props, className }, props.children);
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../src/components/SectionElement.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,cAAc,GAEhB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,SAAS,GAAG,UAAU,CAAC,wCAAwC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IACvF,OAAO,iCAAe,GAAG,KAAK,EAAE,SAAS,IAAK,KAAK,CAAC,QAAQ,CAAW,CAAA;AACzE,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../src/components/SectionElement.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,cAAc,GAEhB,KAAK,CAAC,EAAE;IACV,MAAM,SAAS,GAAG,UAAU,CAAC,wCAAwC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IACvF,OAAO,iCAAe,GAAG,KAAK,EAAE,SAAS,IAAK,KAAK,CAAC,QAAQ,CAAW,CAAA;AACzE,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -21,7 +21,7 @@ const renderChildNodes = createRenderChildNodes({
21
21
  'external-material': AttachmentsExternalMaterial,
22
22
  'question-title': AttachmentsQuestionTitle,
23
23
  question: AttachmentsQuestion,
24
- section: withSectionContext(RenderChildNodes),
24
+ section: withSectionContext(RenderChildNodes)
25
25
  });
26
26
  const Attachments = () => {
27
27
  const { root, language, date, dateTimeFormatter, dayCode, examCode, resolveAttachment, subjectLanguage } = useContext(CommonExamContext);
@@ -31,7 +31,7 @@ const renderChildNodes = createRenderChildNodes({
31
31
  'question-number': QuestionNumber,
32
32
  translation: ExamTranslation,
33
33
  reference: surround(Reference, 'div', { className: 'e-mrg-y-2 e-font-size-s' }),
34
- 'image-overlay': ImageOverlay,
34
+ 'image-overlay': ImageOverlay
35
35
  });
36
36
  function ExternalMaterial({ element, forceRender = false }) {
37
37
  if (queryAncestors(element, 'question') == null && !forceRender) {
@@ -10,7 +10,7 @@ function Question({ element, renderChildNodes }) {
10
10
  function isTopmostQuestionContainingExternalMaterial(element, hasExternalMaterial, level) {
11
11
  return (hasExternalMaterial &&
12
12
  (level === 0 ||
13
- parentElements(element).every((parent) => parent.localName === 'question' ? !findChildElement(parent, 'external-material') : true)));
13
+ parentElements(element).every(parent => parent.localName === 'question' ? !findChildElement(parent, 'external-material') : true)));
14
14
  }
15
15
  export default React.memo(withQuestionContext(Question));
16
16
  //# sourceMappingURL=Question.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/attachments/Question.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,cA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,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,SAAS,QAAQ,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACjE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAEjF,OAAO,2CAA2C,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CACxF,oBAAC,cAAc,IAAC,EAAE,EAAE,aAAa,qBAAmB,eAAe,CAAC,aAAa,CAAC,IAC/E,gBAAgB,CAAC,OAAO,iCAAyB,CACnC,CAClB,CAAC,CAAC,CAAC,CACF,0CAAG,gBAAgB,CAAC,OAAO,iCAAyB,CAAI,CACzD,CAAA;AACH,CAAC;AAED,SAAS,2CAA2C,CAAC,OAAgB,EAAE,mBAA4B,EAAE,KAAa;IAChH,OAAO,CACL,mBAAmB;QACnB,CAAC,KAAK,KAAK,CAAC;YACV,cAAc,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CACrC,MAAM,CAAC,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,CACxF,CAAC,CACL,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA"}
@@ -20,7 +20,7 @@ export function withCommonExamContext(Component) {
20
20
  maxScore: getNumericAttribute(root, 'max-score'),
21
21
  sections: queryAll(root, 'section'),
22
22
  resolveAttachment,
23
- root,
23
+ root
24
24
  };
25
25
  })(Component);
26
26
  }
@@ -5,7 +5,7 @@ export const withExamContext = withContext(ExamContext, (props) => {
5
5
  const { casCountdownDuration, examServerApi } = props;
6
6
  return {
7
7
  casCountdownDuration: casCountdownDuration || 60,
8
- examServerApi,
8
+ examServerApi
9
9
  };
10
10
  });
11
11
  //# sourceMappingURL=ExamContext.js.map
@@ -21,7 +21,7 @@ export const withQuestionContext = withContext(QuestionContext, ({ element }) =>
21
21
  maxScore: getNumericAttribute(element, 'max-score'),
22
22
  level: parentElements(element, 'question').length,
23
23
  childQuestions,
24
- questionLabelIds,
24
+ questionLabelIds
25
25
  };
26
26
  });
27
27
  //# sourceMappingURL=QuestionContext.js.map
@@ -13,11 +13,11 @@ export const withResultsContext = withContext(ResultsContext, ({ scores, doc, gr
13
13
  scores,
14
14
  totalScore,
15
15
  gradingText,
16
- singleGrading,
16
+ singleGrading
17
17
  };
18
18
  });
19
19
  export function findMultiChoiceFromGradingStructure(gradingStructure, id) {
20
- const choiceGroups = gradingStructure.questions.filter((v) => v.type === 'choicegroup');
20
+ const choiceGroups = gradingStructure.questions.filter(v => v.type === 'choicegroup');
21
21
  for (let i = 0, length = choiceGroups.length; i < length; i++) {
22
22
  const choiceGroup = choiceGroups[i];
23
23
  for (let j = 0, choicesLength = choiceGroup.choices.length; j < choicesLength; j++) {
@@ -29,15 +29,16 @@ export function findMultiChoiceFromGradingStructure(gradingStructure, id) {
29
29
  return undefined;
30
30
  }
31
31
  export function findScore(scores, questionId) {
32
- return scores.find((a) => a.questionId === questionId);
32
+ return scores.find(a => a.questionId === questionId);
33
33
  }
34
34
  export function calculateQuestionsTotalSumScore(topLevelQuestions, gradingStructure, scores, answersByQuestionId) {
35
- return _.sum(topLevelQuestions.map((question) => calculateQuestionSumScore(question, gradingStructure, scores, answersByQuestionId)));
35
+ return _.sum(topLevelQuestions.map(question => calculateQuestionSumScore(question, gradingStructure, scores, answersByQuestionId)));
36
36
  }
37
37
  export function calculateQuestionSumScore(questionElement, gradingStructure, scores, answersById) {
38
38
  const choiceQuestionScore = (questionId, scoredAnswer) => {
39
+ var _a;
39
40
  const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
40
- return choice ? choice.options.find((o) => o.id === Number(scoredAnswer.value)).score : 0;
41
+ return choice ? (_a = choice.options.find(o => o.id === Number(scoredAnswer.value))) === null || _a === void 0 ? void 0 : _a.score : 0;
41
42
  };
42
43
  const textQuestionScore = (questionId) => {
43
44
  var _a, _b;
@@ -46,7 +47,7 @@ export function calculateQuestionSumScore(questionElement, gradingStructure, sco
46
47
  ? ((_b = [score.inspection, (_a = score.censoring) === null || _a === void 0 ? void 0 : _a.scores[0], score.autograding, score.pregrading].find(Boolean)) === null || _b === void 0 ? void 0 : _b.score) || 0
47
48
  : 0;
48
49
  };
49
- const sumScore = _.sum(findChildrenAnswers(questionElement).map((answer) => {
50
+ const sumScore = _.sum(findChildrenAnswers(questionElement).map(answer => {
50
51
  const questionId = getNumericAttribute(answer, 'question-id');
51
52
  const scoredAnswer = answersById[questionId];
52
53
  if (!scoredAnswer) {
@@ -1 +1 @@
1
- {"version":3,"file":"ResultsContext.js","sourceRoot":"","sources":["../../../src/components/context/ResultsContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAUpG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAY3C,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAAiB,EAAoB,CAAC,CAAA;AAEvF,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAC3C,cAAc,EACd,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;IACzE,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,YAAY,CAA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OAAO,CAAC,CAAA;SACT;QACD,IAAI,YAAY,CAAC,IAAI,KAAK,QAAQ,EAAE;YAClC,OAAO,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;SACrD;aAAM;YACL,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAA;SACrC;IACH,CAAC,CAAC,CACH,CAAA;IACD,oDAAoD;IACpD,IAAI,cAAc,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE;QAC5E,OAAO,CAAC,CAAA;KACT;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -8,14 +8,14 @@ export const withSectionContext = withContext(SectionContext, ({ element }) => {
8
8
  const maxAnswers = getNumericAttribute(element, 'max-answers');
9
9
  const minAnswers = getNumericAttribute(element, 'min-answers');
10
10
  const maxScore = getNumericAttribute(element, 'max-score');
11
- const childQuestions = mapChildElements(element, (childElement) => childElement).filter((parentNode) => parentNode.localName === 'question');
11
+ const childQuestions = mapChildElements(element, childElement => childElement).filter(parentNode => parentNode.localName === 'question');
12
12
  return {
13
13
  casForbidden,
14
14
  displayNumber,
15
15
  maxAnswers,
16
16
  minAnswers,
17
17
  maxScore,
18
- childQuestions,
18
+ childQuestions
19
19
  };
20
20
  });
21
21
  //# sourceMappingURL=SectionContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContext.js","sourceRoot":"","sources":["../../../src/components/context/SectionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAY3C,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAAiB,EAAoB,CAAC,CAAA;AAEvF,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAqC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Y,CAAC,gBAAgB,CAAE,CAAA;IAC7D,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAE,CAAA;IAC/D,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAE,CAAA;IAC/D,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAE,CAAA;IAC3D,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,MAAM,CACnF,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,KAAK,UAAU,CAClD,CAAA;IAED,OAAO;QACL,YAAY;QACZ,aAAa;QACb,UAAU;QACV,UAAU;QACV,QAAQ;QACR,cAAc;KACf,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -4,14 +4,14 @@ import { useDispatch, useSelector } from 'react-redux';
4
4
  import { getNumericAttribute, mapChildElements, query } from '../../dom-utils';
5
5
  import { QuestionContext } from '../context/QuestionContext';
6
6
  import { saveAnswer } from '../../store/answers/actions';
7
- const ChoiceAnswerOption = ({ selected, element, renderChildNodes, questionId, onSelect, direction, value, }) => {
7
+ const ChoiceAnswerOption = ({ selected, element, renderChildNodes, questionId, onSelect, direction, value }) => {
8
8
  const className = element.getAttribute('class');
9
9
  const content = (React.createElement("div", { className: classNames('e-choice-answer-option e-column', className, {
10
- 'e-choice-answer-option--selected': selected,
10
+ 'e-choice-answer-option--selected': selected
11
11
  }) }, renderChildNodes(element)));
12
12
  return direction === 'vertical' ? (React.createElement("div", { className: "e-mrg-b-1" },
13
13
  React.createElement("label", { className: classNames('e-columns', {
14
- 'e-columns--inline': query(element, ['image', 'video']) == null /* Force full width for options containing responsive media */,
14
+ 'e-columns--inline': query(element, ['image', 'video']) == null /* Force full width for options containing responsive media */
15
15
  }) },
16
16
  React.createElement("input", { type: "radio", className: "e-radio-button e-column e-column--narrow", name: String(questionId), onChange: onSelect, value: value, checked: selected }),
17
17
  content))) : (React.createElement("div", { className: "e-column e-mrg-b-1" },
@@ -27,12 +27,12 @@ const ChoiceAnswer = ({ element, renderChildNodes }) => {
27
27
  const { questionLabelIds } = useContext(QuestionContext);
28
28
  const answer = useSelector((state) => state.answers.answersById[questionId]);
29
29
  const dispatch = useDispatch();
30
- const onSelect = useCallback((event) => {
30
+ const onSelect = useCallback(event => {
31
31
  dispatch(saveAnswer({ type: 'choice', questionId, value: event.currentTarget.value, displayNumber }));
32
32
  }, [questionId, displayNumber]);
33
33
  return (React.createElement("div", { className: classNames('e-choice-answer e-mrg-b-4', className, {
34
- 'e-columns': direction === 'horizontal',
35
- }), "data-question-id": questionId, role: "radiogroup", "aria-labelledby": questionLabelIds }, mapChildElements(element, (childElement) => {
34
+ 'e-columns': direction === 'horizontal'
35
+ }), "data-question-id": questionId, role: "radiogroup", "aria-labelledby": questionLabelIds }, mapChildElements(element, childElement => {
36
36
  const optionId = childElement.getAttribute('option-id');
37
37
  const isNoAnswer = childElement.getAttribute('type') === 'no-answer';
38
38
  const value = isNoAnswer ? '' : optionId;
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/ChoiceAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAG9E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAWxD,MAAM,kBAAkB,GAAG,CAAC,EAC1B,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,S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E,CAAA;IAC9B,MAAM,QAAQ,GAAG,WAAW,CAC1B,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC,CAAA;IACvG,CAAC,EACD,CAAC,UAAU,EAAE,aAAa,CAAC,CAC5B,CAAA;IAED,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CAAC,2BAA2B,EAAE,SAAS,EAAE;YAC5D,WAAW,EAAE,SAAS,KAAK,YAAY;SACxC,CAAC,sBACgB,UAAU,EAC5B,IAAI,EAAC,YAAY,qBACA,gBAAgB,IAEhC,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE;QACxC,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,WAAW,CAAE,CAAA;QACxD,MAAM,UAAU,GAAG,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,WAAW,CAAA;QACpE,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAA;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,KAAK,KAAK,KAAK,CAAA;QAEzD,OAAO,CACL,oBAAC,kBAAkB,IAEf,OAAO,EAAE,YAAY;YACrB,QAAQ;YACR,gBAAgB;YAChB,UAAU;YACV,GAAG,EAAE,QAAQ;YACb,SAAS;YACT,QAAQ;YACR,KAAK,GAEP,CACH,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
@@ -24,7 +24,7 @@ const DropdownAnswer = ({ element, renderChildNodes }) => {
24
24
  const displayNumber = element.getAttribute('display-number');
25
25
  const currentlySelectedItem = answer &&
26
26
  answer.value &&
27
- findChildElement(element, (childElement) => answer.value === childElement.getAttribute('option-id'));
27
+ findChildElement(element, childElement => answer.value === childElement.getAttribute('option-id'));
28
28
  const labelRef = useRef(null);
29
29
  const menuRef = React.useRef(null);
30
30
  const [measuring, setMeasuring] = useState(true);
@@ -32,13 +32,13 @@ const DropdownAnswer = ({ element, renderChildNodes }) => {
32
32
  // Force a re-measure if element changes or fonts are loaded after this
33
33
  // component has been rendered.
34
34
  const [, setFontsLoaded] = useState(fonts.loaded);
35
- fonts.ready.then(() => setFontsLoaded(true)).catch((err) => console.error(err));
35
+ fonts.ready.then(() => setFontsLoaded(true)).catch(err => console.error(err));
36
36
  useEffect(() => setMeasuring(true), [element]);
37
37
  useEffect(() => {
38
38
  if (measuring && menuRef.current && labelRef.current) {
39
39
  const menuEl = menuRef.current;
40
40
  const labelEl = labelRef.current;
41
- const preferredWidth = _.max(mapChildElements(menuEl, (el) => el.firstElementChild.scrollWidth));
41
+ const preferredWidth = _.max(mapChildElements(menuEl, el => el.firstElementChild.scrollWidth));
42
42
  // Run the DOM mutations on the next frame to avoid layout trashing in exams with lots of dropdowns.
43
43
  const requestId = requestAnimationFrame(() => {
44
44
  labelEl.style.width = `${preferredWidth + menuBorderWidthPx + roundingErrorCompensationPx}px`;
@@ -52,22 +52,22 @@ const DropdownAnswer = ({ element, renderChildNodes }) => {
52
52
  const { answers, questionLabelIds } = useContext(QuestionContext);
53
53
  const { getItemProps, getMenuProps, getToggleButtonProps, highlightedIndex, isOpen, selectedItem } = useSelect({
54
54
  items,
55
- itemToString: (item) => (item ? item.textContent : ''),
55
+ itemToString: item => (item ? item.textContent : ''),
56
56
  onSelectedItemChange: ({ selectedItem }) => {
57
57
  const value = selectedItem ? selectedItem.getAttribute('option-id') : '';
58
58
  dispatch(saveAnswer({ type: 'choice', questionId, value, displayNumber }));
59
59
  },
60
- initialSelectedItem: currentlySelectedItem,
60
+ initialSelectedItem: currentlySelectedItem
61
61
  });
62
62
  const { t } = useExamTranslation();
63
63
  const scoreId = answerScoreId(element);
64
64
  return (React.createElement("span", { className: "e-nowrap" },
65
65
  React.createElement("span", { className: classNames('e-dropdown-answer e-normal'), "data-question-id": questionId },
66
66
  React.createElement("button", { className: classNames('e-dropdown-answer__toggle-button e-button-plain e-columns', {
67
- 'e-dropdown-answer__toggle-button--open': isOpen,
67
+ 'e-dropdown-answer__toggle-button--open': isOpen
68
68
  }), ...getToggleButtonProps({
69
69
  'aria-describedby': scoreId,
70
- 'aria-labelledby': questionLabelIds,
70
+ 'aria-labelledby': questionLabelIds
71
71
  }, { suppressRefError: !runningInBrowser }) },
72
72
  React.createElement("span", { className: "e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4" },
73
73
  React.createElement("span", { className: "e-ellipsis e-block", ref: labelRef }, selectedItem ? (renderChildNodes(selectedItem)) : (React.createElement("span", { "aria-label": t.raw('dropdown-answer.label') }, NBSP)))),
@@ -76,14 +76,14 @@ const DropdownAnswer = ({ element, renderChildNodes }) => {
76
76
  React.createElement("span", { ...getMenuProps({
77
77
  className: classNames('e-dropdown-answer__menu', { 'e-dropdown-answer__menu--open': isOpen }),
78
78
  'aria-labelledby': undefined,
79
- ref: menuRef,
79
+ ref: menuRef
80
80
  }, { suppressRefError: !runningInBrowser }) }, items.map((item, i) => (React.createElement("span", { className: classNames('e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4', {
81
81
  'e-dropdown-answer__menu-item--selected': item === selectedItem,
82
82
  'e-bg-color-off-white': highlightedIndex !== i,
83
- 'e-bg-color-link e-color-off-white': highlightedIndex === i,
83
+ 'e-bg-color-link e-color-off-white': highlightedIndex === i
84
84
  }), key: i, ...getItemProps({
85
85
  item,
86
- index: i,
86
+ index: i
87
87
  }) },
88
88
  React.createElement("span", { className: classNames('e-dropdown-answer__menu-item-inner e-block', { 'e-nowrap': measuring }) }, item ? renderChildNodes(item) : React.createElement("span", { "aria-label": t.raw('dropdown-answer.clear') }, NBSP))))))),
89
89
  answers.length > 1 && React.createElement(Score, { score: maxScore, size: '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AE,CAAC,IACjG,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,4CAAkB,CAAC,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAG,IAAI,CAAQ,CAC3F,CACF,CACR,CAAC,CACG,CACF;QACN,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,oBAAC,KAAK,IAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,GAAI,CACzE,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
@@ -26,6 +26,7 @@ export interface ExamProps extends CommonExamProps {
26
26
  restrictedAudioPlaybackStats: RestrictedAudioPlaybackStats[];
27
27
  /** Exam Server API implementation */
28
28
  examServerApi: ExamServerAPI;
29
+ type: 'normal' | 'visually-impaired' | 'hearing-impaired';
29
30
  }
30
31
  declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
31
32
  export default _default;