@digabi/exam-engine-core 16.4.11 → 16.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  2. package/dist/assets/redoButton.svg +5 -0
  3. package/dist/assets/undoButton.svg +5 -0
  4. package/dist/components/RenderExamElements.js +1 -1
  5. package/dist/components/RenderExamElements.js.map +1 -1
  6. package/dist/components/ScreenReaderOnly.d.ts +3 -1
  7. package/dist/components/ScreenReaderOnly.d.ts.map +1 -1
  8. package/dist/components/ScreenReaderOnly.js.map +1 -1
  9. package/dist/components/attachments/Question.js +1 -1
  10. package/dist/components/attachments/Question.js.map +1 -1
  11. package/dist/components/exam/ChoiceAnswer.d.ts.map +1 -1
  12. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  13. package/dist/components/exam/DropdownAnswer.d.ts.map +1 -1
  14. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  15. package/dist/components/exam/ExternalMaterial.js +1 -1
  16. package/dist/components/exam/ExternalMaterial.js.map +1 -1
  17. package/dist/components/exam/Hints.d.ts.map +1 -1
  18. package/dist/components/exam/Hints.js.map +1 -1
  19. package/dist/components/exam/Question.d.ts.map +1 -1
  20. package/dist/components/exam/Question.js.map +1 -1
  21. package/dist/components/exam/Section.js.map +1 -1
  22. package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
  23. package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
  24. package/dist/components/exam/internal/TextAnswerInput.d.ts.map +1 -1
  25. package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
  26. package/dist/components/{results/Hvp.d.ts → grading/Grading.d.ts} +4 -4
  27. package/dist/components/grading/Grading.d.ts.map +1 -0
  28. package/dist/components/{results/Hvp.js → grading/Grading.js} +32 -33
  29. package/dist/components/grading/Grading.js.map +1 -0
  30. package/dist/components/{results/ResultsMultiLineAnswer.d.ts → grading/MultiLineAnswer.d.ts} +2 -2
  31. package/dist/components/grading/MultiLineAnswer.d.ts.map +1 -0
  32. package/dist/components/{results/ResultsMultiLineAnswer.js → grading/MultiLineAnswer.js} +2 -2
  33. package/dist/components/grading/MultiLineAnswer.js.map +1 -0
  34. package/dist/components/{results/ResultsExamSection.d.ts → grading/Question.d.ts} +1 -1
  35. package/dist/components/grading/Question.d.ts.map +1 -0
  36. package/dist/components/{results/ResultsExamQuestion.js → grading/Question.js} +6 -6
  37. package/dist/components/grading/Question.js.map +1 -0
  38. package/dist/components/grading/QuestionTitle.d.ts +6 -0
  39. package/dist/components/grading/QuestionTitle.d.ts.map +1 -0
  40. package/dist/components/{results/ResultsExamQuestionTitle.js → grading/QuestionTitle.js} +5 -5
  41. package/dist/components/grading/QuestionTitle.js.map +1 -0
  42. package/dist/components/grading/ScoredTextAnswer.d.ts +6 -0
  43. package/dist/components/grading/ScoredTextAnswer.d.ts.map +1 -0
  44. package/dist/components/{results/ResultsScoredTextAnswer.js → grading/ScoredTextAnswer.js} +7 -7
  45. package/dist/components/grading/ScoredTextAnswer.js.map +1 -0
  46. package/dist/components/{results/ResultsExamQuestion.d.ts → grading/Section.d.ts} +1 -1
  47. package/dist/components/grading/Section.d.ts.map +1 -0
  48. package/dist/components/{results/ResultsExamSection.js → grading/Section.js} +7 -7
  49. package/dist/components/grading/Section.js.map +1 -0
  50. package/dist/components/{results/ResultsSingleLineAnswer.d.ts → grading/SingleLineAnswer.d.ts} +3 -3
  51. package/dist/components/grading/SingleLineAnswer.d.ts.map +1 -0
  52. package/dist/components/{results/ResultsSingleLineAnswer.js → grading/SingleLineAnswer.js} +3 -3
  53. package/dist/components/grading/SingleLineAnswer.js.map +1 -0
  54. package/dist/components/grading/TextAnswer.d.ts +7 -0
  55. package/dist/components/grading/TextAnswer.d.ts.map +1 -0
  56. package/dist/components/{results/ResultsTextAnswer.js → grading/TextAnswer.js} +23 -20
  57. package/dist/components/grading/TextAnswer.js.map +1 -0
  58. package/dist/components/{results → grading/internal}/AnnotationList.d.ts +0 -0
  59. package/dist/components/grading/internal/AnnotationList.d.ts.map +1 -0
  60. package/dist/components/{results → grading/internal}/AnnotationList.js +6 -6
  61. package/dist/components/grading/internal/AnnotationList.js.map +1 -0
  62. package/dist/components/grading/internal/QuestionAutoScore.d.ts +10 -0
  63. package/dist/components/grading/internal/QuestionAutoScore.d.ts.map +1 -0
  64. package/dist/components/{results/ResultsExamQuestionAutoScore.js → grading/internal/QuestionAutoScore.js} +8 -8
  65. package/dist/components/grading/internal/QuestionAutoScore.js.map +1 -0
  66. package/dist/components/grading/internal/QuestionManualScore.d.ts +12 -0
  67. package/dist/components/grading/internal/QuestionManualScore.d.ts.map +1 -0
  68. package/dist/components/{results/ResultsExamQuestionManualScore.js → grading/internal/QuestionManualScore.js} +9 -9
  69. package/dist/components/grading/internal/QuestionManualScore.js.map +1 -0
  70. package/dist/components/grading/internal/QuestionScoresContainer.d.ts +10 -0
  71. package/dist/components/grading/internal/QuestionScoresContainer.d.ts.map +1 -0
  72. package/dist/components/{results/ResultsExamQuestionScoresContainer.js → grading/internal/QuestionScoresContainer.js} +3 -3
  73. package/dist/components/grading/internal/QuestionScoresContainer.js.map +1 -0
  74. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  75. package/dist/components/grading-instructions/GradingInstructions.js +3 -0
  76. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  77. package/dist/components/grading-instructions/Question.js +1 -1
  78. package/dist/components/grading-instructions/Question.js.map +1 -1
  79. package/dist/components/shared/TableOfContents.js +1 -1
  80. package/dist/components/shared/TableOfContents.js.map +1 -1
  81. package/dist/components/shared/internal/AttachmentLinkAnchor.d.ts +1 -0
  82. package/dist/components/shared/internal/AttachmentLinkAnchor.d.ts.map +1 -1
  83. package/dist/components/shared/internal/AttachmentLinkAnchor.js +1 -1
  84. package/dist/components/shared/internal/AttachmentLinkAnchor.js.map +1 -1
  85. package/dist/createRenderChildNodes.js +3 -3
  86. package/dist/createRenderChildNodes.js.map +1 -1
  87. package/dist/editAnnotations.d.ts +3 -0
  88. package/dist/editAnnotations.d.ts.map +1 -0
  89. package/dist/editAnnotations.js +340 -0
  90. package/dist/editAnnotations.js.map +1 -0
  91. package/dist/i18n/index.d.ts +1 -1
  92. package/dist/i18n/index.d.ts.map +1 -1
  93. package/dist/main-bundle.js +1 -1
  94. package/dist/main-bundle.js.LICENSE.txt +2 -2
  95. package/dist/main.css +1 -1
  96. package/dist/store/answers/sagas.d.ts +1 -1
  97. package/dist/store/answers/sagas.d.ts.map +1 -1
  98. package/dist/store/selectors.d.ts +3 -3
  99. package/dist/store/selectors.d.ts.map +1 -1
  100. package/package.json +6 -6
  101. package/dist/032571103548be919ea4.svg +0 -1
  102. package/dist/05b997c32de96820299c.ttf +0 -1
  103. package/dist/0bbf71d1d4392f153c80.woff +0 -1
  104. package/dist/0c33cb9e2547951a529d.woff2 +0 -1
  105. package/dist/0e631a351ab7d12cb881.woff +0 -1
  106. package/dist/158c3f3e39ef2f860f3c.woff +0 -1
  107. package/dist/1fd4142f8fb913351a8c.woff +0 -1
  108. package/dist/25b533bdd316dba31ce6.ttf +0 -1
  109. package/dist/25dc2905824b1cc2f841.ttf +0 -1
  110. package/dist/3dafcda0c2071de0adf0.eot +0 -1
  111. package/dist/3fc918a1e278a729aae1.svg +0 -1
  112. package/dist/4037eb2ea1584d07790c.ttf +0 -1
  113. package/dist/4787a4eaaf81830c4214.woff2 +0 -1
  114. package/dist/509fb00a12ecb5a0b838.woff +0 -1
  115. package/dist/5482eca6702bf41ffcf3.svg +0 -1
  116. package/dist/66d4e3e31198d14dffa1.woff +0 -1
  117. package/dist/7388d1c5bbed9c7f9e59.woff +0 -1
  118. package/dist/79e93a666eafbaa7ce39.woff +0 -1
  119. package/dist/8323fa32ebf82f2bd1b5.woff2 +0 -1
  120. package/dist/8cbb0b95c6b1ba23ad5a.ttf +0 -1
  121. package/dist/92052c4f04e537af96a9.ttf +0 -1
  122. package/dist/9c4cabf3d704a40efb3b.woff2 +0 -1
  123. package/dist/9cbea1a491d9a4e95d26.ttf +0 -1
  124. package/dist/a0ece6cc28a65ad4217b.ttf +0 -1
  125. package/dist/a7b76401dc2fc68f0bb0.svg +0 -1
  126. package/dist/aa0a4911e7f05c377821.svg +0 -1
  127. package/dist/b805daaf2d8daeefd985.woff +0 -1
  128. package/dist/bd94be52b68121426c3d.woff2 +0 -1
  129. package/dist/c1012b8a8777fddabc64.woff2 +0 -1
  130. package/dist/c6cc135e102c5a628838.woff2 +0 -1
  131. package/dist/c7eb142e7ff24be6b5fa.ttf +0 -1
  132. package/dist/components/AttachmentContext.d.ts +0 -14
  133. package/dist/components/AttachmentContext.d.ts.map +0 -1
  134. package/dist/components/AttachmentContext.js +0 -12
  135. package/dist/components/AttachmentContext.js.map +0 -1
  136. package/dist/components/AttachmentLink.d.ts +0 -5
  137. package/dist/components/AttachmentLink.d.ts.map +0 -1
  138. package/dist/components/AttachmentLink.js +0 -28
  139. package/dist/components/AttachmentLink.js.map +0 -1
  140. package/dist/components/AttachmentLinkAnchor.d.ts +0 -7
  141. package/dist/components/AttachmentLinkAnchor.d.ts.map +0 -1
  142. package/dist/components/AttachmentLinkAnchor.js +0 -4
  143. package/dist/components/AttachmentLinkAnchor.js.map +0 -1
  144. package/dist/components/AttachmentLinks.d.ts +0 -5
  145. package/dist/components/AttachmentLinks.d.ts.map +0 -1
  146. package/dist/components/AttachmentLinks.js +0 -62
  147. package/dist/components/AttachmentLinks.js.map +0 -1
  148. package/dist/components/Attachments.d.ts +0 -6
  149. package/dist/components/Attachments.d.ts.map +0 -1
  150. package/dist/components/Attachments.js +0 -55
  151. package/dist/components/Attachments.js.map +0 -1
  152. package/dist/components/AttachmentsAttachment.d.ts +0 -5
  153. package/dist/components/AttachmentsAttachment.d.ts.map +0 -1
  154. package/dist/components/AttachmentsAttachment.js +0 -8
  155. package/dist/components/AttachmentsAttachment.js.map +0 -1
  156. package/dist/components/AttachmentsAttachmentTitle.d.ts +0 -6
  157. package/dist/components/AttachmentsAttachmentTitle.d.ts.map +0 -1
  158. package/dist/components/AttachmentsAttachmentTitle.js +0 -12
  159. package/dist/components/AttachmentsAttachmentTitle.js.map +0 -1
  160. package/dist/components/AttachmentsExternalMaterial.d.ts +0 -9
  161. package/dist/components/AttachmentsExternalMaterial.d.ts.map +0 -1
  162. package/dist/components/AttachmentsExternalMaterial.js +0 -40
  163. package/dist/components/AttachmentsExternalMaterial.js.map +0 -1
  164. package/dist/components/AttachmentsQuestion.d.ts +0 -5
  165. package/dist/components/AttachmentsQuestion.d.ts.map +0 -1
  166. package/dist/components/AttachmentsQuestion.js +0 -17
  167. package/dist/components/AttachmentsQuestion.js.map +0 -1
  168. package/dist/components/AttachmentsQuestionTitle.d.ts +0 -6
  169. package/dist/components/AttachmentsQuestionTitle.d.ts.map +0 -1
  170. package/dist/components/AttachmentsQuestionTitle.js +0 -13
  171. package/dist/components/AttachmentsQuestionTitle.js.map +0 -1
  172. package/dist/components/Audio.d.ts +0 -6
  173. package/dist/components/Audio.d.ts.map +0 -1
  174. package/dist/components/Audio.js +0 -31
  175. package/dist/components/Audio.js.map +0 -1
  176. package/dist/components/AudioGroup.d.ts +0 -6
  177. package/dist/components/AudioGroup.d.ts.map +0 -1
  178. package/dist/components/AudioGroup.js +0 -9
  179. package/dist/components/AudioGroup.js.map +0 -1
  180. package/dist/components/AudioPlaybackError.d.ts +0 -7
  181. package/dist/components/AudioPlaybackError.d.ts.map +0 -1
  182. package/dist/components/AudioPlaybackError.js +0 -13
  183. package/dist/components/AudioPlaybackError.js.map +0 -1
  184. package/dist/components/AudioTest.d.ts +0 -6
  185. package/dist/components/AudioTest.d.ts.map +0 -1
  186. package/dist/components/AudioTest.js +0 -29
  187. package/dist/components/AudioTest.js.map +0 -1
  188. package/dist/components/ChoiceAnswer.d.ts +0 -12
  189. package/dist/components/ChoiceAnswer.d.ts.map +0 -1
  190. package/dist/components/ChoiceAnswer.js +0 -62
  191. package/dist/components/ChoiceAnswer.js.map +0 -1
  192. package/dist/components/CommonExamContext.d.ts +0 -19
  193. package/dist/components/CommonExamContext.d.ts.map +0 -1
  194. package/dist/components/CommonExamContext.js +0 -25
  195. package/dist/components/CommonExamContext.js.map +0 -1
  196. package/dist/components/DropdownAnswer.d.ts +0 -12
  197. package/dist/components/DropdownAnswer.d.ts.map +0 -1
  198. package/dist/components/DropdownAnswer.js +0 -100
  199. package/dist/components/DropdownAnswer.js.map +0 -1
  200. package/dist/components/ErrorIndicator.d.ts +0 -4
  201. package/dist/components/ErrorIndicator.d.ts.map +0 -1
  202. package/dist/components/ErrorIndicator.js +0 -43
  203. package/dist/components/ErrorIndicator.js.map +0 -1
  204. package/dist/components/Exam.d.ts +0 -32
  205. package/dist/components/Exam.d.ts.map +0 -1
  206. package/dist/components/Exam.js +0 -103
  207. package/dist/components/Exam.js.map +0 -1
  208. package/dist/components/ExamAttachment.d.ts +0 -5
  209. package/dist/components/ExamAttachment.d.ts.map +0 -1
  210. package/dist/components/ExamAttachment.js +0 -8
  211. package/dist/components/ExamAttachment.js.map +0 -1
  212. package/dist/components/ExamContext.d.ts +0 -10
  213. package/dist/components/ExamContext.d.ts.map +0 -1
  214. package/dist/components/ExamContext.js +0 -11
  215. package/dist/components/ExamContext.js.map +0 -1
  216. package/dist/components/ExamFooter.d.ts +0 -6
  217. package/dist/components/ExamFooter.d.ts.map +0 -1
  218. package/dist/components/ExamFooter.js +0 -7
  219. package/dist/components/ExamFooter.js.map +0 -1
  220. package/dist/components/ExamInstruction.d.ts +0 -6
  221. package/dist/components/ExamInstruction.d.ts.map +0 -1
  222. package/dist/components/ExamInstruction.js +0 -6
  223. package/dist/components/ExamInstruction.js.map +0 -1
  224. package/dist/components/ExamQuestion.d.ts +0 -5
  225. package/dist/components/ExamQuestion.d.ts.map +0 -1
  226. package/dist/components/ExamQuestion.js +0 -16
  227. package/dist/components/ExamQuestion.js.map +0 -1
  228. package/dist/components/ExamQuestionInstruction.d.ts +0 -6
  229. package/dist/components/ExamQuestionInstruction.d.ts.map +0 -1
  230. package/dist/components/ExamQuestionInstruction.js +0 -6
  231. package/dist/components/ExamQuestionInstruction.js.map +0 -1
  232. package/dist/components/ExamQuestionTitle.d.ts +0 -5
  233. package/dist/components/ExamQuestionTitle.d.ts.map +0 -1
  234. package/dist/components/ExamQuestionTitle.js +0 -24
  235. package/dist/components/ExamQuestionTitle.js.map +0 -1
  236. package/dist/components/ExamSection.d.ts +0 -5
  237. package/dist/components/ExamSection.d.ts.map +0 -1
  238. package/dist/components/ExamSection.js +0 -31
  239. package/dist/components/ExamSection.js.map +0 -1
  240. package/dist/components/ExamSectionTitle.d.ts +0 -6
  241. package/dist/components/ExamSectionTitle.d.ts.map +0 -1
  242. package/dist/components/ExamSectionTitle.js +0 -22
  243. package/dist/components/ExamSectionTitle.js.map +0 -1
  244. package/dist/components/ExternalMaterialList.d.ts +0 -10
  245. package/dist/components/ExternalMaterialList.d.ts.map +0 -1
  246. package/dist/components/ExternalMaterialList.js +0 -33
  247. package/dist/components/ExternalMaterialList.js.map +0 -1
  248. package/dist/components/File.d.ts +0 -6
  249. package/dist/components/File.d.ts.map +0 -1
  250. package/dist/components/File.js +0 -15
  251. package/dist/components/File.js.map +0 -1
  252. package/dist/components/Formula.d.ts +0 -6
  253. package/dist/components/Formula.d.ts.map +0 -1
  254. package/dist/components/Formula.js +0 -13
  255. package/dist/components/Formula.js.map +0 -1
  256. package/dist/components/Hints.d.ts +0 -5
  257. package/dist/components/Hints.d.ts.map +0 -1
  258. package/dist/components/Hints.js +0 -30
  259. package/dist/components/Hints.js.map +0 -1
  260. package/dist/components/Image.d.ts +0 -6
  261. package/dist/components/Image.d.ts.map +0 -1
  262. package/dist/components/Image.js +0 -28
  263. package/dist/components/Image.js.map +0 -1
  264. package/dist/components/ImageOverlay.d.ts +0 -6
  265. package/dist/components/ImageOverlay.d.ts.map +0 -1
  266. package/dist/components/ImageOverlay.js +0 -44
  267. package/dist/components/ImageOverlay.js.map +0 -1
  268. package/dist/components/ProgressBar.d.ts +0 -7
  269. package/dist/components/ProgressBar.d.ts.map +0 -1
  270. package/dist/components/ProgressBar.js +0 -19
  271. package/dist/components/ProgressBar.js.map +0 -1
  272. package/dist/components/QuestionContext.d.ts +0 -14
  273. package/dist/components/QuestionContext.d.ts.map +0 -1
  274. package/dist/components/QuestionContext.js +0 -20
  275. package/dist/components/QuestionContext.js.map +0 -1
  276. package/dist/components/Reference.d.ts +0 -6
  277. package/dist/components/Reference.d.ts.map +0 -1
  278. package/dist/components/Reference.js +0 -71
  279. package/dist/components/Reference.js.map +0 -1
  280. package/dist/components/References.d.ts +0 -6
  281. package/dist/components/References.d.ts.map +0 -1
  282. package/dist/components/References.js +0 -25
  283. package/dist/components/References.js.map +0 -1
  284. package/dist/components/ResponsiveMediaContainer.d.ts +0 -18
  285. package/dist/components/ResponsiveMediaContainer.d.ts.map +0 -1
  286. package/dist/components/ResponsiveMediaContainer.js +0 -21
  287. package/dist/components/ResponsiveMediaContainer.js.map +0 -1
  288. package/dist/components/RestrictedAudioPlayer.d.ts +0 -12
  289. package/dist/components/RestrictedAudioPlayer.d.ts.map +0 -1
  290. package/dist/components/RestrictedAudioPlayer.js +0 -32
  291. package/dist/components/RestrictedAudioPlayer.js.map +0 -1
  292. package/dist/components/RichTextAnswer.d.ts +0 -33
  293. package/dist/components/RichTextAnswer.d.ts.map +0 -1
  294. package/dist/components/RichTextAnswer.js +0 -61
  295. package/dist/components/RichTextAnswer.js.map +0 -1
  296. package/dist/components/SaveIndicator.d.ts +0 -5
  297. package/dist/components/SaveIndicator.d.ts.map +0 -1
  298. package/dist/components/SaveIndicator.js +0 -16
  299. package/dist/components/SaveIndicator.js.map +0 -1
  300. package/dist/components/Score.d.ts +0 -8
  301. package/dist/components/Score.d.ts.map +0 -1
  302. package/dist/components/Score.js +0 -13
  303. package/dist/components/Score.js.map +0 -1
  304. package/dist/components/Section.d.ts +0 -4
  305. package/dist/components/Section.d.ts.map +0 -1
  306. package/dist/components/Section.js +0 -8
  307. package/dist/components/Section.js.map +0 -1
  308. package/dist/components/SectionContext.d.ts +0 -13
  309. package/dist/components/SectionContext.d.ts.map +0 -1
  310. package/dist/components/SectionContext.js +0 -21
  311. package/dist/components/SectionContext.js.map +0 -1
  312. package/dist/components/SectionInstruction.d.ts +0 -6
  313. package/dist/components/SectionInstruction.d.ts.map +0 -1
  314. package/dist/components/SectionInstruction.js +0 -6
  315. package/dist/components/SectionInstruction.js.map +0 -1
  316. package/dist/components/TableOfContents.d.ts +0 -13
  317. package/dist/components/TableOfContents.d.ts.map +0 -1
  318. package/dist/components/TableOfContents.js +0 -66
  319. package/dist/components/TableOfContents.js.map +0 -1
  320. package/dist/components/TextAnswer.d.ts +0 -6
  321. package/dist/components/TextAnswer.d.ts.map +0 -1
  322. package/dist/components/TextAnswer.js +0 -17
  323. package/dist/components/TextAnswer.js.map +0 -1
  324. package/dist/components/TextAnswerInput.d.ts +0 -36
  325. package/dist/components/TextAnswerInput.d.ts.map +0 -1
  326. package/dist/components/TextAnswerInput.js +0 -145
  327. package/dist/components/TextAnswerInput.js.map +0 -1
  328. package/dist/components/Video.d.ts +0 -6
  329. package/dist/components/Video.d.ts.map +0 -1
  330. package/dist/components/Video.js +0 -15
  331. package/dist/components/Video.js.map +0 -1
  332. package/dist/components/exam/TableOfContents.d.ts +0 -13
  333. package/dist/components/exam/TableOfContents.d.ts.map +0 -1
  334. package/dist/components/exam/TableOfContents.js +0 -66
  335. package/dist/components/exam/TableOfContents.js.map +0 -1
  336. package/dist/components/grading-instruction/AnswerGradingInstruction.d.ts +0 -5
  337. package/dist/components/grading-instruction/AnswerGradingInstruction.d.ts.map +0 -1
  338. package/dist/components/grading-instruction/AnswerGradingInstruction.js +0 -6
  339. package/dist/components/grading-instruction/AnswerGradingInstruction.js.map +0 -1
  340. package/dist/components/grading-instruction/Audio.d.ts +0 -5
  341. package/dist/components/grading-instruction/Audio.d.ts.map +0 -1
  342. package/dist/components/grading-instruction/Audio.js +0 -6
  343. package/dist/components/grading-instruction/Audio.js.map +0 -1
  344. package/dist/components/grading-instruction/AudioTitle.d.ts +0 -5
  345. package/dist/components/grading-instruction/AudioTitle.d.ts.map +0 -1
  346. package/dist/components/grading-instruction/AudioTitle.js +0 -10
  347. package/dist/components/grading-instruction/AudioTitle.js.map +0 -1
  348. package/dist/components/grading-instruction/AutogradedAnswer.d.ts +0 -5
  349. package/dist/components/grading-instruction/AutogradedAnswer.d.ts.map +0 -1
  350. package/dist/components/grading-instruction/AutogradedAnswer.js +0 -31
  351. package/dist/components/grading-instruction/AutogradedAnswer.js.map +0 -1
  352. package/dist/components/grading-instruction/AutogradedAnswerOption.d.ts +0 -5
  353. package/dist/components/grading-instruction/AutogradedAnswerOption.d.ts.map +0 -1
  354. package/dist/components/grading-instruction/AutogradedAnswerOption.js +0 -14
  355. package/dist/components/grading-instruction/AutogradedAnswerOption.js.map +0 -1
  356. package/dist/components/grading-instruction/ExamGradingInstruction.d.ts +0 -5
  357. package/dist/components/grading-instruction/ExamGradingInstruction.d.ts.map +0 -1
  358. package/dist/components/grading-instruction/ExamGradingInstruction.js +0 -6
  359. package/dist/components/grading-instruction/ExamGradingInstruction.js.map +0 -1
  360. package/dist/components/grading-instruction/GradingInstruction.d.ts +0 -5
  361. package/dist/components/grading-instruction/GradingInstruction.d.ts.map +0 -1
  362. package/dist/components/grading-instruction/GradingInstruction.js +0 -85
  363. package/dist/components/grading-instruction/GradingInstruction.js.map +0 -1
  364. package/dist/components/grading-instruction/Question.d.ts +0 -5
  365. package/dist/components/grading-instruction/Question.d.ts.map +0 -1
  366. package/dist/components/grading-instruction/Question.js +0 -12
  367. package/dist/components/grading-instruction/Question.js.map +0 -1
  368. package/dist/components/grading-instruction/QuestionTitle.d.ts +0 -5
  369. package/dist/components/grading-instruction/QuestionTitle.d.ts.map +0 -1
  370. package/dist/components/grading-instruction/QuestionTitle.js +0 -19
  371. package/dist/components/grading-instruction/QuestionTitle.js.map +0 -1
  372. package/dist/components/grading-instruction/Section.d.ts +0 -5
  373. package/dist/components/grading-instruction/Section.d.ts.map +0 -1
  374. package/dist/components/grading-instruction/Section.js +0 -10
  375. package/dist/components/grading-instruction/Section.js.map +0 -1
  376. package/dist/components/grading-instruction/SectionTitle.d.ts +0 -5
  377. package/dist/components/grading-instruction/SectionTitle.d.ts.map +0 -1
  378. package/dist/components/grading-instruction/SectionTitle.js +0 -16
  379. package/dist/components/grading-instruction/SectionTitle.js.map +0 -1
  380. package/dist/components/grading-instructions/Audio.d.ts +0 -5
  381. package/dist/components/grading-instructions/Audio.d.ts.map +0 -1
  382. package/dist/components/grading-instructions/Audio.js +0 -8
  383. package/dist/components/grading-instructions/Audio.js.map +0 -1
  384. package/dist/components/grading-instructions/AudioTitle.d.ts +0 -5
  385. package/dist/components/grading-instructions/AudioTitle.d.ts.map +0 -1
  386. package/dist/components/grading-instructions/AudioTitle.js +0 -11
  387. package/dist/components/grading-instructions/AudioTitle.js.map +0 -1
  388. package/dist/components/results/AnnotationList.d.ts.map +0 -1
  389. package/dist/components/results/AnnotationList.js.map +0 -1
  390. package/dist/components/results/GradingStructure.d.ts +0 -5
  391. package/dist/components/results/GradingStructure.d.ts.map +0 -1
  392. package/dist/components/results/GradingStructure.js +0 -21
  393. package/dist/components/results/GradingStructure.js.map +0 -1
  394. package/dist/components/results/Hvp.d.ts.map +0 -1
  395. package/dist/components/results/Hvp.js.map +0 -1
  396. package/dist/components/results/HvpTextAnswer.d.ts +0 -6
  397. package/dist/components/results/HvpTextAnswer.d.ts.map +0 -1
  398. package/dist/components/results/HvpTextAnswer.js +0 -51
  399. package/dist/components/results/HvpTextAnswer.js.map +0 -1
  400. package/dist/components/results/ResultsChoiceAnswer.d.ts +0 -6
  401. package/dist/components/results/ResultsChoiceAnswer.d.ts.map +0 -1
  402. package/dist/components/results/ResultsChoiceAnswer.js +0 -57
  403. package/dist/components/results/ResultsChoiceAnswer.js.map +0 -1
  404. package/dist/components/results/ResultsContext.d.ts +0 -18
  405. package/dist/components/results/ResultsContext.d.ts.map +0 -1
  406. package/dist/components/results/ResultsContext.js +0 -68
  407. package/dist/components/results/ResultsContext.js.map +0 -1
  408. package/dist/components/results/ResultsDropdownAnswer.d.ts +0 -6
  409. package/dist/components/results/ResultsDropdownAnswer.d.ts.map +0 -1
  410. package/dist/components/results/ResultsDropdownAnswer.js +0 -43
  411. package/dist/components/results/ResultsDropdownAnswer.js.map +0 -1
  412. package/dist/components/results/ResultsExamQuestion.d.ts.map +0 -1
  413. package/dist/components/results/ResultsExamQuestion.js.map +0 -1
  414. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +0 -10
  415. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +0 -1
  416. package/dist/components/results/ResultsExamQuestionAutoScore.js.map +0 -1
  417. package/dist/components/results/ResultsExamQuestionManualScore.d.ts +0 -12
  418. package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +0 -1
  419. package/dist/components/results/ResultsExamQuestionManualScore.js.map +0 -1
  420. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +0 -10
  421. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +0 -1
  422. package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +0 -1
  423. package/dist/components/results/ResultsExamQuestionTitle.d.ts +0 -6
  424. package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +0 -1
  425. package/dist/components/results/ResultsExamQuestionTitle.js.map +0 -1
  426. package/dist/components/results/ResultsExamSection.d.ts.map +0 -1
  427. package/dist/components/results/ResultsExamSection.js.map +0 -1
  428. package/dist/components/results/ResultsMultiLineAnswer.d.ts.map +0 -1
  429. package/dist/components/results/ResultsMultiLineAnswer.js.map +0 -1
  430. package/dist/components/results/ResultsScoredTextAnswer.d.ts +0 -6
  431. package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +0 -1
  432. package/dist/components/results/ResultsScoredTextAnswer.js.map +0 -1
  433. package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +0 -1
  434. package/dist/components/results/ResultsSingleLineAnswer.js.map +0 -1
  435. package/dist/components/results/ResultsTextAnswer.d.ts +0 -6
  436. package/dist/components/results/ResultsTextAnswer.d.ts.map +0 -1
  437. package/dist/components/results/ResultsTextAnswer.js.map +0 -1
  438. package/dist/components/results/helpers.d.ts +0 -9
  439. package/dist/components/results/helpers.d.ts.map +0 -1
  440. package/dist/components/results/helpers.js +0 -11
  441. package/dist/components/results/helpers.js.map +0 -1
  442. package/dist/components/withContext.d.ts +0 -3
  443. package/dist/components/withContext.d.ts.map +0 -1
  444. package/dist/components/withContext.js +0 -12
  445. package/dist/components/withContext.js.map +0 -1
  446. package/dist/d5f084867b29732eabe0.woff2 +0 -1
  447. package/dist/dccecb74715e0fc8ebfa.woff2 +0 -1
  448. package/dist/e1202f940129338e167b.woff +0 -1
  449. package/dist/e77508f22c51d072c677.ttf +0 -1
  450. package/dist/fb3cbcef9225ce0e9ed5.woff2 +0 -1
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { getNumericAttribute, queryAll } from '../dom-utils';
3
- import { withContext } from './withContext';
4
- export const CommonExamContext = React.createContext({});
5
- export function withCommonExamContext(Component) {
6
- return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc }) => {
7
- const root = doc.documentElement;
8
- const maybeDate = root.getAttribute('date');
9
- const language = root.getAttribute('exam-lang');
10
- const subjectLanguage = root.getAttribute('lang') || language;
11
- return {
12
- attachmentsURL,
13
- date: maybeDate ? new Date(maybeDate) : undefined,
14
- dateTimeFormatter: new Intl.DateTimeFormat('fi-FI', { timeZone: 'UTC' }),
15
- language,
16
- subjectLanguage,
17
- maxAnswers: getNumericAttribute(root, 'max-answers'),
18
- maxScore: getNumericAttribute(root, 'max-score'),
19
- numberOfSections: queryAll(root, 'section').length,
20
- resolveAttachment,
21
- root,
22
- };
23
- })(Component);
24
- }
25
- //# sourceMappingURL=CommonExamContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonExamContext.js","sourceRoot":"","sources":["../../src/components/CommonExamContext.tsx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enderChildNodes';
3
- import * as actions from '../store/answers/actions';
4
- import { ChoiceAnswer as ChoiceAnswerT } from '../types/ExamAnswer';
5
- interface DropdownAnswerProps extends ExamComponentProps {
6
- saveAnswer: typeof actions.saveAnswer;
7
- answer?: ChoiceAnswerT;
8
- }
9
- declare function DropdownAnswer({ element, renderChildNodes, saveAnswer, answer }: DropdownAnswerProps): JSX.Element;
10
- declare const _default: import("react-redux").ConnectedComponent<typeof DropdownAnswer, import("react-redux").Omit<DropdownAnswerProps, "answer" | "saveAnswer"> & ExamComponentProps>;
11
- export default _default;
12
- //# sourceMappingURL=DropdownAnswer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropdownAnswer.d.ts","sourceRoot":"","sources":["../../src/components/DropdownAnswer.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAM9D,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAInE,UAAU,mBAAoB,SAAQ,kBAAkB;IACtD,UAAU,EAAE,OAAO,OAAO,CAAC,UAAU,CAAA;IACrC,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB;AASD,iBAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,mBAAmB,eA+H7F;;AAOD,wBAEkB"}
@@ -1,100 +0,0 @@
1
- import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons';
2
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import classNames from 'classnames';
4
- import { useSelect, } from 'downshift';
5
- import * as _ from 'lodash-es';
6
- import React, { useContext, useEffect, useRef, useState } from 'react';
7
- import { connect } from 'react-redux';
8
- import { findChildElement, getNumericAttribute, mapChildElements, NBSP } from '../dom-utils';
9
- import * as fonts from '../fonts';
10
- import { useExamTranslation } from '../i18n';
11
- import { answerScoreId } from '../ids';
12
- import * as actions from '../store/answers/actions';
13
- import { QuestionContext } from './QuestionContext';
14
- import { Score } from './Score';
15
- const menuBorderWidthPx = 2;
16
- const roundingErrorCompensationPx = 1;
17
- const noAnswer = '';
18
- const runningInBrowser = !navigator.userAgent.includes('jsdom/');
19
- function DropdownAnswer({ element, renderChildNodes, saveAnswer, answer }) {
20
- const questionId = getNumericAttribute(element, 'question-id');
21
- const maxScore = getNumericAttribute(element, 'max-score');
22
- const displayNumber = element.getAttribute('display-number');
23
- const currentlySelectedItem = answer &&
24
- answer.value &&
25
- findChildElement(element, (childElement) => answer.value === childElement.getAttribute('option-id'));
26
- const labelRef = useRef(null);
27
- const menuRef = React.useRef(null);
28
- const [measuring, setMeasuring] = useState(true);
29
- if (runningInBrowser) {
30
- // Force a re-measure if element changes or fonts are loaded after this
31
- // component has been rendered.
32
- const [, setFontsLoaded] = useState(fonts.loaded);
33
- fonts.ready.then(() => setFontsLoaded(true)).catch((err) => console.error(err));
34
- useEffect(() => setMeasuring(true), [element]);
35
- useEffect(() => {
36
- if (measuring && menuRef.current && labelRef.current) {
37
- const menuEl = menuRef.current;
38
- const labelEl = labelRef.current;
39
- const preferredWidth = _.max(mapChildElements(menuEl, (el) => el.firstElementChild.scrollWidth));
40
- // Run the DOM mutations on the next frame to avoid layout trashing in exams with lots of dropdowns.
41
- const requestId = requestAnimationFrame(() => {
42
- labelEl.style.width = `${preferredWidth + menuBorderWidthPx + roundingErrorCompensationPx}px`;
43
- setMeasuring(false);
44
- });
45
- return () => cancelAnimationFrame(requestId);
46
- }
47
- });
48
- }
49
- const items = [noAnswer, ...element.children];
50
- const { answers } = useContext(QuestionContext);
51
- const { getItemProps, getMenuProps, getToggleButtonProps, highlightedIndex, isOpen, selectedItem } = useSelect({
52
- items,
53
- itemToString: (item) => (item ? item.textContent : ''),
54
- onSelectedItemChange: ({ selectedItem }) => {
55
- const value = selectedItem ? selectedItem.getAttribute('option-id') : '';
56
- saveAnswer({ type: 'choice', questionId, value, displayNumber });
57
- },
58
- initialSelectedItem: currentlySelectedItem,
59
- });
60
- // Until the typings are fixed at https://github.com/downshift-js/downshift/pull/1123/files
61
- const getMenuPropsFixed = getMenuProps;
62
- const getToggleButtonPropsFixed = getToggleButtonProps;
63
- const { t } = useExamTranslation();
64
- const scoreId = answerScoreId(element);
65
- return (React.createElement("span", { className: "e-nowrap" },
66
- React.createElement("span", { className: classNames('e-dropdown-answer e-normal'), "data-question-id": questionId },
67
- React.createElement("button", Object.assign({ className: classNames('e-dropdown-answer__toggle-button e-button-plain e-columns', {
68
- 'e-dropdown-answer__toggle-button--open': isOpen,
69
- }) }, getToggleButtonPropsFixed({
70
- 'aria-describedby': scoreId,
71
- // The label text is inside the button, so we don't want an aria-labelledby attribute.
72
- 'aria-labelledby': undefined,
73
- }, { suppressRefError: !runningInBrowser })),
74
- React.createElement("span", { className: "e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4" },
75
- 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
- React.createElement("span", { className: classNames('e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link') },
77
- React.createElement(FontAwesomeIcon, { icon: isOpen ? faChevronUp : faChevronDown }))),
78
- React.createElement("span", Object.assign({}, getMenuPropsFixed({
79
- className: classNames('e-dropdown-answer__menu', { 'e-dropdown-answer__menu--open': isOpen }),
80
- ref: menuRef,
81
- }, { suppressRefError: !runningInBrowser })), items.map((item, i) => (React.createElement("span", Object.assign({ className: classNames('e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4', {
82
- 'e-dropdown-answer__menu-item--selected': item === selectedItem,
83
- 'e-bg-color-off-white': highlightedIndex !== i,
84
- 'e-bg-color-lighterblue': highlightedIndex === i,
85
- }), key: i }, getItemProps({
86
- item,
87
- index: i,
88
- })),
89
- 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))))))),
90
- answers.length > 1 && React.createElement(Score, { score: maxScore, size: 'inline', id: scoreId })));
91
- }
92
- function mapStateToprops(state, { element }) {
93
- const questionId = getNumericAttribute(element, 'question-id');
94
- const answer = state.answers.answersById[questionId];
95
- return { answer };
96
- }
97
- export default connect(mapStateToprops, {
98
- saveAnswer: actions.saveAnswer,
99
- })(DropdownAnswer);
100
- //# sourceMappingURL=DropdownAnswer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropdownAnswer.js","sourceRoot":"","sources":["../../src/components/DropdownAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAEL,SAAS,GAGV,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC5F,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAEtC,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA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A;AACnB,CAAC;AAED,eAAe,OAAO,CAAC,eAAe,EAAE;IACtC,UAAU,EAAE,OAAO,CAAC,UAAU;CAC/B,CAAC,CAAC,cAAc,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.NamedExoticComponent<{}>;
3
- export default _default;
4
- //# sourceMappingURL=ErrorIndicator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorIndicator.d.ts","sourceRoot":"","sources":["../../src/components/ErrorIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAA;;AA2DzC,wBAAyC"}
@@ -1,43 +0,0 @@
1
- import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
2
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import React, { useContext } from 'react';
4
- import { useSelector } from 'react-redux';
5
- import { findChildElement } from '../dom-utils';
6
- import { useExamTranslation } from '../i18n';
7
- import AnsweringInstructions from './AnsweringInstructions';
8
- import { CommonExamContext } from './CommonExamContext';
9
- const ErrorIndicator = () => {
10
- const extraAnswers = useSelector((state) => state.answers.extraAnswers);
11
- const { t } = useExamTranslation();
12
- return extraAnswers.length > 0 ? (React.createElement("div", { className: "error-indicator e-columns e-columns--inline e-bg-color-error e-color-off-white e-font-size-xs e-pad-1 e-mrg-r-1", role: "alert" },
13
- React.createElement("div", { className: "e-column e-column--narrow" },
14
- React.createElement(FontAwesomeIcon, { size: "lg", icon: faExclamationTriangle, fixedWidth: true, className: "e-mrg-r-1" })),
15
- React.createElement("div", { className: "e-column e-column--gapless" }, extraAnswers.map((extraAnswer) => {
16
- const { displayNumber, type } = extraAnswer;
17
- return (React.createElement("div", { key: type + displayNumber },
18
- type !== 'exam' && type !== 'toc-section'
19
- ? t(type, { displayNumber }) || React.createElement(FallbackTitle, Object.assign({}, extraAnswer))
20
- : '',
21
- ' ',
22
- React.createElement(AnsweringInstructions, Object.assign({}, extraAnswer))));
23
- })))) : null;
24
- };
25
- const FallbackTitle = ({ type, displayNumber }) => {
26
- // Hack. M/N exams have set the section translation title to an empty string,
27
- // so they can hide the "Osa 1:" text within the exam. In these cases, display
28
- // the text content of the corresponding <e:section-title> instead. Hopefully
29
- // we can delete this code on some day. 💩
30
- if (type === 'section') {
31
- const { root } = useContext(CommonExamContext);
32
- const section = findChildElement(root, (e) => e.localName === 'section' && e.getAttribute('display-number') === displayNumber);
33
- if (section) {
34
- const sectionTitle = findChildElement(section, 'section-title');
35
- if (sectionTitle) {
36
- return React.createElement(React.Fragment, null, sectionTitle.textContent.trim() + ':');
37
- }
38
- }
39
- }
40
- return null;
41
- };
42
- export default React.memo(ErrorIndicator);
43
- //# sourceMappingURL=ErrorIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorIndicator.js","sourceRoot":"","sources":["../../src/components/ErrorIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,OAAO,qBAAqB,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,cAAc,GAA4B,GAAG,EAAE;IACnD,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IACjF,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC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E,eAAe,CAAC,CAAA;YAC/D,IAAI,YAAY,EAAE;gBAChB,OAAO,0CAAG,YAAY,CAAC,WAAY,CAAC,IAAI,EAAE,GAAG,GAAG,CAAI,CAAA;aACrD;SACF;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { ExamAnswer, ExamServerAPI, InitialCasStatus, RestrictedAudioPlaybackStats } from '..';
3
- /** Props common to taking the exams and viewing results */
4
- export interface CommonExamProps {
5
- /** Initial answers */
6
- answers: ExamAnswer[];
7
- /** The URL for the attachments page */
8
- attachmentsURL: string;
9
- /** A function that maps an attachment filename to a full URI. */
10
- resolveAttachment: (filename: string) => string;
11
- /** The exam XML */
12
- doc: XMLDocument;
13
- /** @deprecated Not used anymore */
14
- language?: string;
15
- }
16
- /** Props related to taking the exam, 'executing' it */
17
- export interface ExamProps extends CommonExamProps {
18
- /** The status of CAS software on the OS */
19
- casStatus: InitialCasStatus;
20
- /** The CAS countdown duration in seconds. 60 seconds by default. */
21
- casCountdownDuration?: number;
22
- /**
23
- * Playback statistics about restricted audio files. Used for calculating
24
- * whether the user can listen to them any more.
25
- */
26
- restrictedAudioPlaybackStats: RestrictedAudioPlaybackStats[];
27
- /** Exam Server API implementation */
28
- examServerApi: ExamServerAPI;
29
- }
30
- declare const _default: React.MemoExoticComponent<React.ComponentType<ExamProps>>;
31
- export default _default;
32
- //# sourceMappingURL=Exam.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../src/components/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAGpD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,IAAI,CAAA;AA0C9F,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,mBAAmB;IACnB,GAAG,EAAE,WAAW,CAAA;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,4BAA4B,EAAE,CAAA;IAC5D,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAA;CAC7B;;AAuFD,wBAAuE"}
@@ -1,103 +0,0 @@
1
- import React, { useContext, useEffect } from 'react';
2
- import { I18nextProvider } from 'react-i18next';
3
- import { Provider } from 'react-redux';
4
- import { createRenderChildNodes } from '../createRenderChildNodes';
5
- import { findChildElement } from '../dom-utils';
6
- import { changeLanguage, initI18n } from '../i18n';
7
- import { examTitleId } from '../ids';
8
- import { parseExamStructure } from '../parser/parseExamStructure';
9
- import { scrollToHash } from '../scrollToHash';
10
- import { initializeExamStore } from '../store';
11
- import { useCached } from '../useCached';
12
- import mkAttachmentLink from './AttachmentLink';
13
- import mkAttachmentLinks from './AttachmentLinks';
14
- import Audio from './Audio';
15
- import AudioGroup from './AudioGroup';
16
- import AudioTest from './AudioTest';
17
- import ChoiceAnswer from './ChoiceAnswer';
18
- import { CommonExamContext, withCommonExamContext } from './CommonExamContext';
19
- import DocumentTitle from './DocumentTitle';
20
- import DropdownAnswer from './DropdownAnswer';
21
- import ErrorIndicator from './ErrorIndicator';
22
- import ExamAttachment from './ExamAttachment';
23
- import { withExamContext } from './ExamContext';
24
- import ExamFooter from './ExamFooter';
25
- import ExamInstruction from './ExamInstruction';
26
- import ExamQuestion from './ExamQuestion';
27
- import ExamQuestionInstruction from './ExamQuestionInstruction';
28
- import ExamQuestionTitle from './ExamQuestionTitle';
29
- import ExamSection from './ExamSection';
30
- import ExamSectionTitle from './ExamSectionTitle';
31
- import ExternalMaterialList from './ExternalMaterialList';
32
- import File from './File';
33
- import Formula from './Formula';
34
- import Hints from './Hints';
35
- import Image from './Image';
36
- import ImageOverlay from './ImageOverlay';
37
- import References from './References';
38
- import SaveIndicator from './SaveIndicator';
39
- import Section from './Section';
40
- import SectionInstruction from './SectionInstruction';
41
- import TableOfContents from './TableOfContents';
42
- import TextAnswer from './TextAnswer';
43
- import Video from './Video';
44
- const renderChildNodes = createRenderChildNodes({
45
- attachment: ExamAttachment,
46
- 'attachment-link': mkAttachmentLink('link'),
47
- 'attachment-links': mkAttachmentLinks('link'),
48
- audio: Audio,
49
- 'audio-group': AudioGroup,
50
- 'audio-test': AudioTest,
51
- 'choice-answer': ChoiceAnswer,
52
- 'dropdown-answer': DropdownAnswer,
53
- 'exam-footer': ExamFooter,
54
- 'external-material': ExternalMaterialList,
55
- file: File,
56
- formula: Formula,
57
- image: Image,
58
- question: ExamQuestion,
59
- 'question-instruction': ExamQuestionInstruction,
60
- 'question-title': ExamQuestionTitle,
61
- hints: Hints,
62
- references: References,
63
- 'scored-text-answer': TextAnswer,
64
- 'scored-text-answers': Hints,
65
- 'section-instruction': SectionInstruction,
66
- section: ExamSection,
67
- 'section-title': ExamSectionTitle,
68
- 'text-answer': TextAnswer,
69
- video: Video,
70
- 'image-overlay': ImageOverlay,
71
- });
72
- const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi, }) => {
73
- const { date, dateTimeFormatter, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
74
- const examTitle = findChildElement(root, 'exam-title');
75
- const examInstruction = findChildElement(root, 'exam-instruction');
76
- const tableOfContents = findChildElement(root, 'table-of-contents');
77
- const externalMaterial = findChildElement(root, 'external-material');
78
- const examStylesheet = root.getAttribute('exam-stylesheet');
79
- const store = useCached(() => initializeExamStore(parseExamStructure(doc), casStatus, answers, restrictedAudioPlaybackStats, examServerApi));
80
- const examCode = root.getAttribute('exam-code');
81
- const dayCode = root.getAttribute('day-code');
82
- const i18n = useCached(() => initI18n(language, examCode, dayCode));
83
- useEffect(changeLanguage(i18n, language));
84
- useEffect(scrollToHash, []);
85
- return (React.createElement(Provider, { store: store },
86
- React.createElement(I18nextProvider, { i18n: i18n },
87
- React.createElement("main", { className: "e-exam", lang: subjectLanguage, "aria-labelledby": examTitleId },
88
- React.createElement(React.StrictMode, null),
89
- examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
90
- React.createElement(Section, { "aria-labelledby": examTitleId },
91
- examTitle && React.createElement(DocumentTitle, { id: examTitleId }, renderChildNodes(examTitle)),
92
- date && (React.createElement("p", null,
93
- React.createElement("strong", null, dateTimeFormatter.format(date)))),
94
- examInstruction && React.createElement(ExamInstruction, Object.assign({}, { element: examInstruction, renderChildNodes })),
95
- tableOfContents && React.createElement(TableOfContents, Object.assign({}, { element: tableOfContents, renderChildNodes })),
96
- externalMaterial && (React.createElement(ExternalMaterialList, Object.assign({}, { element: externalMaterial, renderChildNodes, forceRender: true })))),
97
- renderChildNodes(root),
98
- React.createElement("div", { className: "e-footer" },
99
- React.createElement(ErrorIndicator, null),
100
- React.createElement(SaveIndicator, null))))));
101
- };
102
- export default React.memo(withExamContext(withCommonExamContext(Exam)));
103
- //# sourceMappingURL=Exam.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../src/components/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,s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S,EAAC,QAAQ,EAAC,IAAI,EAAE,eAAe,qBAAmB,WAAW;gBAC1E,oBAAC,KAAK,CAAC,UAAU,OAAG;gBACnB,cAAc,IAAI,8BAAM,GAAG,EAAC,YAAY,EAAC,IAAI,EAAE,iBAAiB,CAAC,cAAc,CAAC,GAAI;gBACrF,oBAAC,OAAO,uBAAkB,WAAW;oBAClC,SAAS,IAAI,oBAAC,aAAa,IAAC,EAAE,EAAE,WAAW,IAAG,gBAAgB,CAAC,SAAS,CAAC,CAAiB;oBAC1F,IAAI,IAAI,CACP;wBACE,oCAAS,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAU,CAC/C,CACL;oBACA,eAAe,IAAI,oBAAC,eAAe,oBAAK,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAI;oBAC1F,eAAe,IAAI,oBAAC,eAAe,oBAAK,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,EAAI;oBAC1F,gBAAgB,IAAI,CACnB,oBAAC,oBAAoB,oBAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,EAAI,CACjG,CACO;gBACT,gBAAgB,CAAC,IAAI,CAAC;gBACvB,6BAAK,SAAS,EAAC,UAAU;oBACvB,oBAAC,cAAc,OAAG;oBAClB,oBAAC,aAAa,OAAG,CACb,CACD,CACS,CACT,CACZ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare const _default: React.MemoExoticComponent<React.ComponentType<ExamComponentProps>>;
4
- export default _default;
5
- //# sourceMappingURL=ExamAttachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamAttachment.d.ts","sourceRoot":"","sources":["../../src/components/ExamAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;;AAO9D,wBAAgE"}
@@ -1,8 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { AttachmentContext, withAttachmentContext } from './AttachmentContext';
3
- function ExamAttachment({ element, renderChildNodes }) {
4
- const { isExternal } = useContext(AttachmentContext);
5
- return !isExternal ? React.createElement("span", { className: "exam-attachment e-mrg-b-2" }, renderChildNodes(element)) : null;
6
- }
7
- export default React.memo(withAttachmentContext(ExamAttachment));
8
- //# sourceMappingURL=ExamAttachment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamAttachment.js","sourceRoot":"","sources":["../../src/components/ExamAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAG9E,SAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACvE,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IACpD,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,8BAAM,SAAS,EAAC,2BAA2B,IAAE,gBAAgB,CAAC,OAAO,CAAC,CAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;AAC5G,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { ExamProps } from './Exam';
3
- import { ExamServerAPI } from '..';
4
- export interface ExamContext {
5
- casCountdownDuration: number;
6
- examServerApi: ExamServerAPI;
7
- }
8
- export declare const ExamContext: React.Context<ExamContext>;
9
- export declare const withExamContext: (Component: React.ComponentType<ExamProps>) => React.ComponentType<ExamProps>;
10
- //# sourceMappingURL=ExamContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamContext.d.ts","sourceRoot":"","sources":["../../src/components/ExamContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAA;AAElC,MAAM,WAAW,WAAW;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,aAAa,EAAE,aAAa,CAAA;CAC7B;AAED,eAAO,MAAM,WAAW,4BAAyC,CAAA;AAEjE,eAAO,MAAM,eAAe,+EAO1B,CAAA"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { withContext } from './withContext';
3
- export const ExamContext = React.createContext({});
4
- export const withExamContext = withContext(ExamContext, (props) => {
5
- const { casCountdownDuration, examServerApi } = props;
6
- return {
7
- casCountdownDuration: casCountdownDuration || 60,
8
- examServerApi,
9
- };
10
- });
11
- //# sourceMappingURL=ExamContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamContext.js","sourceRoot":"","sources":["../../src/components/ExamContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAQ3C,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,EAAiB,CAAC,CAAA;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAyB,WAAW,EAAE,CAAC,KAAgB,EAAE,EAAE;IACnG,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,GAAG,KAAK,CAAA;IAErD,OAAO;QACL,oBAAoB,EAAE,oBAAoB,IAAI,EAAE;QAChD,aAAa;KACd,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare function ExamFooter({ element, renderChildNodes }: ExamComponentProps): JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof ExamFooter>;
5
- export default _default;
6
- //# sourceMappingURL=ExamFooter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamFooter.d.ts","sourceRoot":"","sources":["../../src/components/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,eAEpE;;AAED,wBAAqC"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import Section from './Section';
3
- function ExamFooter({ element, renderChildNodes }) {
4
- return React.createElement(Section, null, renderChildNodes(element));
5
- }
6
- export default React.memo(ExamFooter);
7
- //# sourceMappingURL=ExamFooter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamFooter.js","sourceRoot":"","sources":["../../src/components/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,WAAW,CAAA;AAG/B,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACnE,OAAO,oBAAC,OAAO,QAAE,gBAAgB,CAAC,OAAO,CAAC,CAAW,CAAA;AACvD,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare function ExamInstruction({ element, renderChildNodes }: ExamComponentProps): JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof ExamInstruction>;
5
- export default _default;
6
- //# sourceMappingURL=ExamInstruction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamInstruction.d.ts","sourceRoot":"","sources":["../../src/components/ExamInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,iBAAS,eAAe,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,eAEzE;;AAED,wBAA0C"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- function ExamInstruction({ element, renderChildNodes }) {
3
- return React.createElement("div", { className: "exam-instruction notification e-pad-4" }, renderChildNodes(element));
4
- }
5
- export default React.memo(ExamInstruction);
6
- //# sourceMappingURL=ExamInstruction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamInstruction.js","sourceRoot":"","sources":["../../src/components/ExamInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,SAAS,eAAe,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACxE,OAAO,6BAAK,SAAS,EAAC,uCAAuC,IAAE,gBAAgB,CAAC,OAAO,CAAC,CAAO,CAAA;AACjG,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare const _default: React.MemoExoticComponent<React.ComponentType<ExamComponentProps>>;
4
- export default _default;
5
- //# sourceMappingURL=ExamQuestion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamQuestion.d.ts","sourceRoot":"","sources":["../../src/components/ExamQuestion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;;AAoB9D,wBAA4D"}
@@ -1,16 +0,0 @@
1
- import classNames from 'classnames';
2
- import React, { useContext } from 'react';
3
- import { useSelector } from 'react-redux';
4
- import { QuestionContext, withQuestionContext } from './QuestionContext';
5
- import { SectionContext } from './SectionContext';
6
- function ExamQuestion({ element, renderChildNodes }) {
7
- const casStatus = useSelector((state) => state.cas.casStatus);
8
- const { casForbidden } = useContext(SectionContext);
9
- const { displayNumber, level } = useContext(QuestionContext);
10
- return !casForbidden || casStatus === 'forbidden' ? (React.createElement("div", { className: classNames('exam-question', {
11
- 'e-mrg-b-8 e-clearfix': level === 0,
12
- 'e-mrg-l-8 e-mrg-y-4': level > 0,
13
- }), id: displayNumber }, renderChildNodes(element))) : null;
14
- }
15
- export default React.memo(withQuestionContext(ExamQuestion));
16
- //# sourceMappingURL=ExamQuestion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamQuestion.js","sourceRoot":"","sources":["../../src/components/ExamQuestion.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,SAAS,YAAY,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACrE,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACvE,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IACnD,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAE5D,OAAO,CAAC,YAAY,IAAI,SAAS,KAAK,WAAW,CAAC,CAAC,CAAC,CAClD,6BACE,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE;YACrC,sBAAsB,EAAE,KAAK,KAAK,CAAC;YACnC,qBAAqB,EAAE,KAAK,GAAG,CAAC;SACjC,CAAC,EACF,EAAE,EAAE,aAAa,IAEhB,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare function QuestionInstruction({ element, renderChildNodes }: ExamComponentProps): JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof QuestionInstruction>;
5
- export default _default;
6
- //# sourceMappingURL=ExamQuestionInstruction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamQuestionInstruction.d.ts","sourceRoot":"","sources":["../../src/components/ExamQuestionInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,iBAAS,mBAAmB,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,eAE7E;;AAED,wBAA8C"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- function QuestionInstruction({ element, renderChildNodes }) {
3
- return React.createElement("div", { className: "exam-question-instruction e-mrg-b-2" }, renderChildNodes(element));
4
- }
5
- export default React.memo(QuestionInstruction);
6
- //# sourceMappingURL=ExamQuestionInstruction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamQuestionInstruction.js","sourceRoot":"","sources":["../../src/components/ExamQuestionInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,SAAS,mBAAmB,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IAC5E,OAAO,6BAAK,SAAS,EAAC,qCAAqC,IAAE,gBAAgB,CAAC,OAAO,CAAC,CAAO,CAAA;AAC/F,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare const _default: React.NamedExoticComponent<ExamComponentProps>;
4
- export default _default;
5
- //# sourceMappingURL=ExamQuestionTitle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamQuestionTitle.d.ts","sourceRoot":"","sources":["../../src/components/ExamQuestionTitle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;;AA6B9D,wBAA4C"}
@@ -1,24 +0,0 @@
1
- import classNames from 'classnames';
2
- import React, { useContext } from 'react';
3
- import AnsweringInstructions from './AnsweringInstructions';
4
- import NotificationIcon from './NotificationIcon';
5
- import { QuestionContext } from './QuestionContext';
6
- import { Score } from './Score';
7
- import { formatQuestionDisplayNumber } from '../formatting';
8
- const ExamQuestionTitle = ({ element, renderChildNodes }) => {
9
- const { displayNumber, maxScore, level, maxAnswers, childQuestions } = useContext(QuestionContext);
10
- const Tag = `h${Math.min(3 + level, 6)}`;
11
- return (React.createElement(React.Fragment, null,
12
- React.createElement(Tag, { className: classNames('exam-question-title', { 'e-normal e-font-size-m': level > 0 }) },
13
- React.createElement("strong", { className: classNames('exam-question-title__display-number', {
14
- 'exam-question-title__display-number--indented': level > 0,
15
- }) }, formatQuestionDisplayNumber(displayNumber) + ' '),
16
- renderChildNodes(element),
17
- " ",
18
- React.createElement(Score, { score: maxScore, size: level === 0 ? 'large' : 'small' })),
19
- maxAnswers != null && childQuestions.length > 0 && (React.createElement("p", { className: "e-italic" },
20
- React.createElement(NotificationIcon, null),
21
- React.createElement(AnsweringInstructions, Object.assign({}, { maxAnswers, childQuestions, type: 'question' }))))));
22
- };
23
- export default React.memo(ExamQuestionTitle);
24
- //# sourceMappingURL=ExamQuestionTitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamQuestionTitle.js","sourceRoot":"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rB,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,qBAAqB,oBAAK,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,EAAI,CAC7E,CACL,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../createRenderChildNodes';
3
- declare const _default: React.MemoExoticComponent<React.ComponentType<ExamComponentProps>>;
4
- export default _default;
5
- //# sourceMappingURL=ExamSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamSection.d.ts","sourceRoot":"","sources":["../../src/components/ExamSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;;AAyD9D,wBAA0D"}