@digabi/exam-engine-core 19.15.4-y.1 → 19.15.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. package/dist/__tests__/results/ResultsContext.test.js +1 -1
  2. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  3. package/dist/components/exam/Hints.d.ts.map +1 -1
  4. package/dist/components/exam/Hints.js +3 -2
  5. package/dist/components/exam/Hints.js.map +1 -1
  6. package/dist/components/exam/TextAnswer.d.ts.map +1 -1
  7. package/dist/components/exam/TextAnswer.js +4 -3
  8. package/dist/components/exam/TextAnswer.js.map +1 -1
  9. package/dist/components/results/SingleLineAnswer.d.ts +1 -1
  10. package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
  11. package/dist/components/results/SingleLineAnswer.js +3 -3
  12. package/dist/components/results/SingleLineAnswer.js.map +1 -1
  13. package/dist/dom-utils.d.ts +1 -0
  14. package/dist/dom-utils.d.ts.map +1 -1
  15. package/dist/dom-utils.js +5 -0
  16. package/dist/dom-utils.js.map +1 -1
  17. package/dist/main-bundle.js +1 -1
  18. package/dist/main.css +1 -1
  19. package/package.json +3 -3
  20. package/dist/components/AttachmentContext.d.ts +0 -14
  21. package/dist/components/AttachmentContext.d.ts.map +0 -1
  22. package/dist/components/AttachmentContext.js +0 -12
  23. package/dist/components/AttachmentContext.js.map +0 -1
  24. package/dist/components/AttachmentLink.d.ts +0 -6
  25. package/dist/components/AttachmentLink.d.ts.map +0 -1
  26. package/dist/components/AttachmentLink.js +0 -24
  27. package/dist/components/AttachmentLink.js.map +0 -1
  28. package/dist/components/AttachmentLinkAnchor.d.ts +0 -7
  29. package/dist/components/AttachmentLinkAnchor.d.ts.map +0 -1
  30. package/dist/components/AttachmentLinkAnchor.js +0 -4
  31. package/dist/components/AttachmentLinkAnchor.js.map +0 -1
  32. package/dist/components/AttachmentLinks.d.ts +0 -6
  33. package/dist/components/AttachmentLinks.d.ts.map +0 -1
  34. package/dist/components/AttachmentLinks.js +0 -58
  35. package/dist/components/AttachmentLinks.js.map +0 -1
  36. package/dist/components/Attachments.d.ts +0 -5
  37. package/dist/components/Attachments.d.ts.map +0 -1
  38. package/dist/components/Attachments.js +0 -43
  39. package/dist/components/Attachments.js.map +0 -1
  40. package/dist/components/AttachmentsAttachment.d.ts +0 -5
  41. package/dist/components/AttachmentsAttachment.d.ts.map +0 -1
  42. package/dist/components/AttachmentsAttachment.js +0 -8
  43. package/dist/components/AttachmentsAttachment.js.map +0 -1
  44. package/dist/components/AttachmentsAttachmentTitle.d.ts +0 -6
  45. package/dist/components/AttachmentsAttachmentTitle.d.ts.map +0 -1
  46. package/dist/components/AttachmentsAttachmentTitle.js +0 -12
  47. package/dist/components/AttachmentsAttachmentTitle.js.map +0 -1
  48. package/dist/components/AttachmentsExternalMaterial.d.ts +0 -9
  49. package/dist/components/AttachmentsExternalMaterial.d.ts.map +0 -1
  50. package/dist/components/AttachmentsExternalMaterial.js +0 -40
  51. package/dist/components/AttachmentsExternalMaterial.js.map +0 -1
  52. package/dist/components/AttachmentsQuestion.d.ts +0 -5
  53. package/dist/components/AttachmentsQuestion.d.ts.map +0 -1
  54. package/dist/components/AttachmentsQuestion.js +0 -16
  55. package/dist/components/AttachmentsQuestion.js.map +0 -1
  56. package/dist/components/AttachmentsQuestionTitle.d.ts +0 -6
  57. package/dist/components/AttachmentsQuestionTitle.d.ts.map +0 -1
  58. package/dist/components/AttachmentsQuestionTitle.js +0 -13
  59. package/dist/components/AttachmentsQuestionTitle.js.map +0 -1
  60. package/dist/components/Audio.d.ts +0 -6
  61. package/dist/components/Audio.d.ts.map +0 -1
  62. package/dist/components/Audio.js +0 -29
  63. package/dist/components/Audio.js.map +0 -1
  64. package/dist/components/AudioGroup.d.ts +0 -6
  65. package/dist/components/AudioGroup.d.ts.map +0 -1
  66. package/dist/components/AudioGroup.js +0 -9
  67. package/dist/components/AudioGroup.js.map +0 -1
  68. package/dist/components/AudioPlaybackError.d.ts +0 -7
  69. package/dist/components/AudioPlaybackError.d.ts.map +0 -1
  70. package/dist/components/AudioPlaybackError.js +0 -12
  71. package/dist/components/AudioPlaybackError.js.map +0 -1
  72. package/dist/components/AudioTest.d.ts +0 -6
  73. package/dist/components/AudioTest.d.ts.map +0 -1
  74. package/dist/components/AudioTest.js +0 -29
  75. package/dist/components/AudioTest.js.map +0 -1
  76. package/dist/components/ChoiceAnswer.d.ts +0 -12
  77. package/dist/components/ChoiceAnswer.d.ts.map +0 -1
  78. package/dist/components/ChoiceAnswer.js +0 -60
  79. package/dist/components/ChoiceAnswer.js.map +0 -1
  80. package/dist/components/CommonExamContext.d.ts +0 -16
  81. package/dist/components/CommonExamContext.d.ts.map +0 -1
  82. package/dist/components/CommonExamContext.js +0 -22
  83. package/dist/components/CommonExamContext.js.map +0 -1
  84. package/dist/components/DropdownAnswer.d.ts +0 -12
  85. package/dist/components/DropdownAnswer.d.ts.map +0 -1
  86. package/dist/components/DropdownAnswer.js +0 -85
  87. package/dist/components/DropdownAnswer.js.map +0 -1
  88. package/dist/components/Exam.d.ts +0 -40
  89. package/dist/components/Exam.d.ts.map +0 -1
  90. package/dist/components/Exam.js +0 -106
  91. package/dist/components/Exam.js.map +0 -1
  92. package/dist/components/ExamAttachment.d.ts +0 -5
  93. package/dist/components/ExamAttachment.d.ts.map +0 -1
  94. package/dist/components/ExamAttachment.js +0 -8
  95. package/dist/components/ExamAttachment.js.map +0 -1
  96. package/dist/components/ExamContext.d.ts +0 -10
  97. package/dist/components/ExamContext.d.ts.map +0 -1
  98. package/dist/components/ExamContext.js +0 -11
  99. package/dist/components/ExamContext.js.map +0 -1
  100. package/dist/components/ExamFooter.d.ts +0 -6
  101. package/dist/components/ExamFooter.d.ts.map +0 -1
  102. package/dist/components/ExamFooter.js +0 -7
  103. package/dist/components/ExamFooter.js.map +0 -1
  104. package/dist/components/ExamInstruction.d.ts +0 -6
  105. package/dist/components/ExamInstruction.d.ts.map +0 -1
  106. package/dist/components/ExamInstruction.js +0 -6
  107. package/dist/components/ExamInstruction.js.map +0 -1
  108. package/dist/components/ExamQuestion.d.ts +0 -5
  109. package/dist/components/ExamQuestion.d.ts.map +0 -1
  110. package/dist/components/ExamQuestion.js +0 -16
  111. package/dist/components/ExamQuestion.js.map +0 -1
  112. package/dist/components/ExamQuestionInstruction.d.ts +0 -6
  113. package/dist/components/ExamQuestionInstruction.d.ts.map +0 -1
  114. package/dist/components/ExamQuestionInstruction.js +0 -6
  115. package/dist/components/ExamQuestionInstruction.js.map +0 -1
  116. package/dist/components/ExamQuestionTitle.d.ts +0 -6
  117. package/dist/components/ExamQuestionTitle.d.ts.map +0 -1
  118. package/dist/components/ExamQuestionTitle.js +0 -25
  119. package/dist/components/ExamQuestionTitle.js.map +0 -1
  120. package/dist/components/ExamSection.d.ts +0 -5
  121. package/dist/components/ExamSection.d.ts.map +0 -1
  122. package/dist/components/ExamSection.js +0 -30
  123. package/dist/components/ExamSection.js.map +0 -1
  124. package/dist/components/ExamSectionTitle.d.ts +0 -6
  125. package/dist/components/ExamSectionTitle.d.ts.map +0 -1
  126. package/dist/components/ExamSectionTitle.js +0 -21
  127. package/dist/components/ExamSectionTitle.js.map +0 -1
  128. package/dist/components/ExternalMaterialList.d.ts +0 -10
  129. package/dist/components/ExternalMaterialList.d.ts.map +0 -1
  130. package/dist/components/ExternalMaterialList.js +0 -31
  131. package/dist/components/ExternalMaterialList.js.map +0 -1
  132. package/dist/components/File.d.ts +0 -6
  133. package/dist/components/File.d.ts.map +0 -1
  134. package/dist/components/File.js +0 -15
  135. package/dist/components/File.js.map +0 -1
  136. package/dist/components/Formula.d.ts +0 -6
  137. package/dist/components/Formula.d.ts.map +0 -1
  138. package/dist/components/Formula.js +0 -12
  139. package/dist/components/Formula.js.map +0 -1
  140. package/dist/components/Hints.d.ts +0 -6
  141. package/dist/components/Hints.d.ts.map +0 -1
  142. package/dist/components/Hints.js +0 -32
  143. package/dist/components/Hints.js.map +0 -1
  144. package/dist/components/Image.d.ts +0 -6
  145. package/dist/components/Image.d.ts.map +0 -1
  146. package/dist/components/Image.js +0 -25
  147. package/dist/components/Image.js.map +0 -1
  148. package/dist/components/ImageOverlay.d.ts +0 -6
  149. package/dist/components/ImageOverlay.d.ts.map +0 -1
  150. package/dist/components/ImageOverlay.js +0 -45
  151. package/dist/components/ImageOverlay.js.map +0 -1
  152. package/dist/components/ProgressBar.d.ts +0 -6
  153. package/dist/components/ProgressBar.d.ts.map +0 -1
  154. package/dist/components/ProgressBar.js +0 -18
  155. package/dist/components/ProgressBar.js.map +0 -1
  156. package/dist/components/QuestionContext.d.ts +0 -14
  157. package/dist/components/QuestionContext.d.ts.map +0 -1
  158. package/dist/components/QuestionContext.js +0 -20
  159. package/dist/components/QuestionContext.js.map +0 -1
  160. package/dist/components/Reference.d.ts +0 -6
  161. package/dist/components/Reference.d.ts.map +0 -1
  162. package/dist/components/Reference.js +0 -63
  163. package/dist/components/Reference.js.map +0 -1
  164. package/dist/components/References.d.ts +0 -6
  165. package/dist/components/References.d.ts.map +0 -1
  166. package/dist/components/References.js +0 -23
  167. package/dist/components/References.js.map +0 -1
  168. package/dist/components/ResponsiveMediaContainer.d.ts +0 -17
  169. package/dist/components/ResponsiveMediaContainer.d.ts.map +0 -1
  170. package/dist/components/ResponsiveMediaContainer.js +0 -20
  171. package/dist/components/ResponsiveMediaContainer.js.map +0 -1
  172. package/dist/components/RestrictedAudioPlayer.d.ts +0 -11
  173. package/dist/components/RestrictedAudioPlayer.d.ts.map +0 -1
  174. package/dist/components/RestrictedAudioPlayer.js +0 -29
  175. package/dist/components/RestrictedAudioPlayer.js.map +0 -1
  176. package/dist/components/RichTextAnswer.d.ts +0 -31
  177. package/dist/components/RichTextAnswer.d.ts.map +0 -1
  178. package/dist/components/RichTextAnswer.js +0 -70
  179. package/dist/components/RichTextAnswer.js.map +0 -1
  180. package/dist/components/SaveIndicator.d.ts +0 -5
  181. package/dist/components/SaveIndicator.d.ts.map +0 -1
  182. package/dist/components/SaveIndicator.js +0 -15
  183. package/dist/components/SaveIndicator.js.map +0 -1
  184. package/dist/components/Score.d.ts +0 -6
  185. package/dist/components/Score.d.ts.map +0 -1
  186. package/dist/components/Score.js +0 -13
  187. package/dist/components/Score.js.map +0 -1
  188. package/dist/components/Section.d.ts +0 -3
  189. package/dist/components/Section.d.ts.map +0 -1
  190. package/dist/components/Section.js +0 -7
  191. package/dist/components/Section.js.map +0 -1
  192. package/dist/components/SectionContext.d.ts +0 -13
  193. package/dist/components/SectionContext.d.ts.map +0 -1
  194. package/dist/components/SectionContext.js +0 -21
  195. package/dist/components/SectionContext.js.map +0 -1
  196. package/dist/components/SectionInstruction.d.ts +0 -6
  197. package/dist/components/SectionInstruction.d.ts.map +0 -1
  198. package/dist/components/SectionInstruction.js +0 -6
  199. package/dist/components/SectionInstruction.js.map +0 -1
  200. package/dist/components/TableOfContents.d.ts +0 -13
  201. package/dist/components/TableOfContents.d.ts.map +0 -1
  202. package/dist/components/TableOfContents.js +0 -66
  203. package/dist/components/TableOfContents.js.map +0 -1
  204. package/dist/components/TextAnswer.d.ts +0 -6
  205. package/dist/components/TextAnswer.d.ts.map +0 -1
  206. package/dist/components/TextAnswer.js +0 -16
  207. package/dist/components/TextAnswer.js.map +0 -1
  208. package/dist/components/TextAnswerInput.d.ts +0 -37
  209. package/dist/components/TextAnswerInput.d.ts.map +0 -1
  210. package/dist/components/TextAnswerInput.js +0 -145
  211. package/dist/components/TextAnswerInput.js.map +0 -1
  212. package/dist/components/Video.d.ts +0 -6
  213. package/dist/components/Video.d.ts.map +0 -1
  214. package/dist/components/Video.js +0 -15
  215. package/dist/components/Video.js.map +0 -1
  216. package/dist/components/results/AnnotationList.d.ts +0 -5
  217. package/dist/components/results/AnnotationList.d.ts.map +0 -1
  218. package/dist/components/results/AnnotationList.js +0 -40
  219. package/dist/components/results/AnnotationList.js.map +0 -1
  220. package/dist/components/results/ResultsChoiceAnswer.d.ts +0 -6
  221. package/dist/components/results/ResultsChoiceAnswer.d.ts.map +0 -1
  222. package/dist/components/results/ResultsChoiceAnswer.js +0 -60
  223. package/dist/components/results/ResultsChoiceAnswer.js.map +0 -1
  224. package/dist/components/results/ResultsContext.d.ts +0 -20
  225. package/dist/components/results/ResultsContext.d.ts.map +0 -1
  226. package/dist/components/results/ResultsContext.js +0 -68
  227. package/dist/components/results/ResultsContext.js.map +0 -1
  228. package/dist/components/results/ResultsDropdownAnswer.d.ts +0 -6
  229. package/dist/components/results/ResultsDropdownAnswer.d.ts.map +0 -1
  230. package/dist/components/results/ResultsDropdownAnswer.js +0 -41
  231. package/dist/components/results/ResultsDropdownAnswer.js.map +0 -1
  232. package/dist/components/results/ResultsExamQuestion.d.ts +0 -5
  233. package/dist/components/results/ResultsExamQuestion.d.ts.map +0 -1
  234. package/dist/components/results/ResultsExamQuestion.js +0 -23
  235. package/dist/components/results/ResultsExamQuestion.js.map +0 -1
  236. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +0 -10
  237. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +0 -1
  238. package/dist/components/results/ResultsExamQuestionAutoScore.js +0 -16
  239. package/dist/components/results/ResultsExamQuestionAutoScore.js.map +0 -1
  240. package/dist/components/results/ResultsExamQuestionManualScore.d.ts +0 -11
  241. package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +0 -1
  242. package/dist/components/results/ResultsExamQuestionManualScore.js +0 -62
  243. package/dist/components/results/ResultsExamQuestionManualScore.js.map +0 -1
  244. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +0 -9
  245. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +0 -1
  246. package/dist/components/results/ResultsExamQuestionScoresContainer.js +0 -8
  247. package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +0 -1
  248. package/dist/components/results/ResultsExamQuestionTitle.d.ts +0 -6
  249. package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +0 -1
  250. package/dist/components/results/ResultsExamQuestionTitle.js +0 -22
  251. package/dist/components/results/ResultsExamQuestionTitle.js.map +0 -1
  252. package/dist/components/results/ResultsExamSection.d.ts +0 -5
  253. package/dist/components/results/ResultsExamSection.d.ts.map +0 -1
  254. package/dist/components/results/ResultsExamSection.js +0 -17
  255. package/dist/components/results/ResultsExamSection.js.map +0 -1
  256. package/dist/components/results/ResultsScoredTextAnswer.d.ts +0 -6
  257. package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +0 -1
  258. package/dist/components/results/ResultsScoredTextAnswer.js +0 -22
  259. package/dist/components/results/ResultsScoredTextAnswer.js.map +0 -1
  260. package/dist/components/results/ResultsSingleLineAnswer.d.ts +0 -12
  261. package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +0 -1
  262. package/dist/components/results/ResultsSingleLineAnswer.js +0 -12
  263. package/dist/components/results/ResultsSingleLineAnswer.js.map +0 -1
  264. package/dist/components/results/ResultsTextAnswer.d.ts +0 -6
  265. package/dist/components/results/ResultsTextAnswer.d.ts.map +0 -1
  266. package/dist/components/results/ResultsTextAnswer.js +0 -51
  267. package/dist/components/results/ResultsTextAnswer.js.map +0 -1
  268. package/dist/components/results/helpers.d.ts +0 -9
  269. package/dist/components/results/helpers.d.ts.map +0 -1
  270. package/dist/components/results/helpers.js +0 -10
  271. package/dist/components/results/helpers.js.map +0 -1
  272. package/dist/components/types.d.ts +0 -110
  273. package/dist/components/types.d.ts.map +0 -1
  274. package/dist/components/types.js +0 -1
  275. package/dist/components/types.js.map +0 -1
  276. package/dist/components/withContext.d.ts +0 -3
  277. package/dist/components/withContext.d.ts.map +0 -1
  278. package/dist/components/withContext.js +0 -12
  279. package/dist/components/withContext.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Hints.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Hints.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAoB,MAAM,8BAA8B,CAAA;AAMnF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqBtD,CAAA;AAiCD,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"Hints.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Hints.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAoB,MAAM,8BAA8B,CAAA;AAMnF,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqBtD,CAAA;AAmCD,eAAe,KAAK,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import classNames from 'classnames';
2
2
  import React from 'react';
3
3
  import { useSelector } from 'react-redux';
4
- import { findChildElement, getNumericAttribute, queryAll } from '../../dom-utils';
4
+ import { findChildElement, getNumericAttribute, hasSiblingQuestions, queryAll } from '../../dom-utils';
5
5
  import { shortDisplayNumber } from '../../shortDisplayNumber';
6
6
  const Hints = ({ element, renderChildNodes }) => {
7
7
  const focusedQuestionId = useSelector((state) => state.answers.focusedQuestionId);
@@ -14,6 +14,7 @@ function Hint({ answer, focusedQuestionId, renderChildNodes }) {
14
14
  const questionId = getNumericAttribute(answer, 'question-id');
15
15
  const displayNumber = answer.getAttribute('display-number');
16
16
  const hint = findChildElement(answer, 'hint');
17
+ const hasSiblings = hasSiblingQuestions(answer);
17
18
  return (React.createElement("p", { className: classNames('e-hints__hint', {
18
19
  'e-hints__hint--focused': focusedQuestionId === questionId
19
20
  }), onClick: () => {
@@ -22,7 +23,7 @@ function Hint({ answer, focusedQuestionId, renderChildNodes }) {
22
23
  question.focus();
23
24
  }
24
25
  }, "data-question-id": questionId },
25
- shortDisplayNumber(displayNumber),
26
+ hasSiblings && shortDisplayNumber(displayNumber),
26
27
  " ",
27
28
  renderChildNodes(hint)));
28
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Hints.js","sourceRoot":"","sources":["../../../src/components/exam/Hints.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OA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W,IAAI,kBAAkB,CAAC,aAAa,CAAC;;QAAG,gBAAgB,CAAC,IAAI,CAAC,CACxE,CACL,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,UAAU,CAAC,KAAK,EAAE,kBAAkB,qBAe5C;;AAED,wBAAqC"}
1
+ {"version":3,"file":"TextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAMjE,iBAAS,UAAU,CAAC,KAAK,EAAE,kBAAkB,qBAmB5C;;AAED,wBAAqC"}
@@ -1,15 +1,16 @@
1
1
  import React from 'react';
2
- import { findChildElement } from '../../dom-utils';
2
+ import { findChildElement, hasSiblingQuestions } from '../../dom-utils';
3
3
  import { shortDisplayNumber } from '../../shortDisplayNumber';
4
- import TextAnswerInput from './internal/TextAnswerInput';
5
4
  import { ScreenReaderOnly } from '../ScreenReaderOnly';
5
+ import TextAnswerInput from './internal/TextAnswerInput';
6
6
  function TextAnswer(props) {
7
7
  const { element, renderChildNodes } = props;
8
8
  const displayNumber = element.getAttribute('display-number');
9
9
  const hint = findChildElement(element, 'hint');
10
10
  const textAnswer = React.createElement(TextAnswerInput, { ...props });
11
+ const hasSiblings = hasSiblingQuestions(element);
11
12
  return hint ? (React.createElement("label", { className: "e-nowrap" },
12
- React.createElement("sup", { className: "e-text-answer-display-number e-color-darkgrey" }, shortDisplayNumber(displayNumber)),
13
+ hasSiblings && (React.createElement("sup", { className: "e-text-answer-display-number e-color-darkgrey" }, shortDisplayNumber(displayNumber))),
13
14
  React.createElement(ScreenReaderOnly, null, renderChildNodes(hint)),
14
15
  textAnswer)) : (textAnswer);
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TextAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,eAAe,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,SAAS,UAAU,CAAC,KAAyB;IAC3C,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAA;IAC3C,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAA;IAC7D,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAC9C,MAAM,UAAU,GAAG,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAA;IAEjD,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,+BAAO,SAAS,EAAC,UAAU;QACzB,6BAAK,SAAS,EAAC,+CAA+C,IAAE,kBAAkB,CAAC,aAAa,CAAC,CAAO;QACxG,oBAAC,gBAAgB,QAAE,gBAAgB,CAAC,IAAI,CAAC,CAAoB;QAC5D,UAAU,CACL,CACT,CAAC,CAAC,CAAC,CACF,UAAU,CACX,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"TextAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,eAAe,MAAM,4BAA4B,CAAA;AAExD,SAAS,UAAU,CAAC,KAAyB;IAC3C,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAA;IAC3C,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAA;IAC7D,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAC9C,MAAM,UAAU,GAAG,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAA;IAEjD,MAAM,WAAW,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAEhD,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,+BAAO,SAAS,EAAC,UAAU;QACxB,WAAW,IAAI,CACd,6BAAK,SAAS,EAAC,+CAA+C,IAAE,kBAAkB,CAAC,aAAa,CAAC,CAAO,CACzG;QACD,oBAAC,gBAAgB,QAAE,gBAAgB,CAAC,IAAI,CAAC,CAAoB;QAC5D,UAAU,CACL,CACT,CAAC,CAAC,CAAC,CACF,UAAU,CACX,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Score } from '../..';
3
- declare function SingleLineAnswer({ displayNumber, score, value, children }: {
3
+ declare function SingleLineAnswer({ displayNumber, score, value, answers, children }: {
4
4
  answers: Element[];
5
5
  score?: Score;
6
6
  displayNumber?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleLineAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAM7B,iBAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EACT,EAAE;IACD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,qBA4BA;;AAED,wBAA2C"}
1
+ {"version":3,"file":"SingleLineAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAK7B,iBAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACT,EAAE;IACD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,qBA4BA;;AAED,wBAA2C"}
@@ -1,9 +1,9 @@
1
+ import classNames from 'classnames';
1
2
  import React, { useLayoutEffect, useRef } from 'react';
2
3
  import { useExamTranslation } from '../../i18n';
3
4
  import { renderAnnotations } from '../../renderAnnotations';
4
5
  import { ScreenReaderOnly } from '../ScreenReaderOnly';
5
- import classNames from 'classnames';
6
- function SingleLineAnswer({ displayNumber, score, value, children }) {
6
+ function SingleLineAnswer({ displayNumber, score, value, answers, children }) {
7
7
  const { t, i18n } = useExamTranslation();
8
8
  const answerRef = useRef(null);
9
9
  useLayoutEffect(() => {
@@ -13,7 +13,7 @@ function SingleLineAnswer({ displayNumber, score, value, children }) {
13
13
  }
14
14
  });
15
15
  return (React.createElement(React.Fragment, null,
16
- displayNumber && React.createElement("sup", null, displayNumber),
16
+ displayNumber && answers.length > 1 && React.createElement("sup", null, displayNumber),
17
17
  React.createElement("span", { className: classNames('text-answer text-answer--single-line', {
18
18
  'no-answer': !value
19
19
  }), "aria-description": !value ? i18n.t('examFinished.questionHasNoAnswer') : undefined },
@@ -1 +1 @@
1
- {"version":3,"file":"SingleLineAnswer.js","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,SAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EAOT;IACC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,kBAAkB,EAAE,CAAA;IACxC,MAAM,SAAS,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAE/C,eAAe,CAAC,GAAG,EAAE;;QACnB,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;YACtB,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,WAAW,mCAAI,EAAE,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,0CAAE,WAAW,mCAAI,EAAE,CAAC,CAAA;QACjH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,CACL;QACG,aAAa,IAAI,iCAAM,aAAa,CAAO;QAC5C,8BACE,SAAS,EAAE,UAAU,CAAC,sCAAsC,EAAE;gBAC5D,WAAW,EAAE,C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,uBAAL,KAAK,CAAE,SAAS,0CAAE,WAAW,mCAAI,EAAE,CAAC,CAAA;QACjH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,CACL;QACG,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,iCAAM,aAAa,CAAO;QAClE,8BACE,SAAS,EAAE,UAAU,CAAC,sCAAsC,EAAE;gBAC5D,WAAW,EAAE,CAAC,KAAK;aACpB,CAAC,sBACgB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,SAAS;YAEjF,oBAAC,gBAAgB,QAAE,CAAC,CAAC,4BAA4B,CAAC,CAAoB;YACtE,8BAAM,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,SAAS,IAC5C,KAAK,CACD;YACP,oBAAC,gBAAgB,QAAE,CAAC,CAAC,0BAA0B,CAAC,CAAoB,CAC/D;QACN,QAAQ,CACR,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA"}
@@ -11,6 +11,7 @@ export declare function getBooleanAttribute(element: Element, attributeName: str
11
11
  export declare function mapChildNodes<T>(element: Element, fn: (childNode: ChildNode, index: number) => T): T[];
12
12
  export declare function mapChildElements<T>(element: Element, fn: (childElement: Element, index: number) => T): T[];
13
13
  export declare function findChildrenAnswers(element: Element): Element[];
14
+ export declare function hasSiblingQuestions(answer: Element): boolean | undefined;
14
15
  export declare function createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, properties?: Record<string, string> | null, ...children: Array<string | ChildNode>): HTMLElementTagNameMap[K];
15
16
  export declare function setProperties(element: HTMLElement, properties?: Record<string, string> | null): void;
16
17
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"dom-utils.d.ts","sourceRoot":"","sources":["../src/dom-utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,WAAW,CAAA;AAE5B,wBAAgB,cA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AE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExF;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG/F;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAEpF;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE,CAOtG;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE,CAO1G;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,CAE/D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,uBAIlD;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,qBAAqB,EACjE,OAAO,EAAE,CAAC,EACV,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAC1C,GAAG,QAAQ,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,GACrC,qBAAqB,CAAC,CAAC,CAAC,CAK1B;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAWpG"}
package/dist/dom-utils.js CHANGED
@@ -103,6 +103,11 @@ export function mapChildElements(element, fn) {
103
103
  export function findChildrenAnswers(element) {
104
104
  return queryAll(element, ['choice-answer', 'dropdown-answer', 'text-answer', 'scored-text-answer'], true);
105
105
  }
106
+ export function hasSiblingQuestions(answer) {
107
+ const parentQuestion = queryAncestors(answer, 'question');
108
+ const siblingQuestions = parentQuestion === null || parentQuestion === void 0 ? void 0 : parentQuestion.querySelectorAll('[question-id]');
109
+ return siblingQuestions && (siblingQuestions === null || siblingQuestions === void 0 ? void 0 : siblingQuestions.length) > 1;
110
+ }
106
111
  export function createElement(tagName, properties, ...children) {
107
112
  const element = document.createElement(tagName);
108
113
  setProperties(element, properties);
@@ -1 +1 @@
1
- {"version":3,"file":"dom-utils.js","sourceRoot":"","sources":["../src/dom-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAA;AAE5B,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,QAAmB;IAClE,MAAM,SAAS,GAAG,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACtE,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,OAAO,OAAO,CAAC,aAAa,IAAI,IAAI,EAAE,CAAC;QACrC,OAAO,GAAG,OAAO,CAAC,aAAa,CAAA;QAC/B,IAAI,SAAS,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAID,SAAS,WAAW,CAAC,QAAkB;IACrC,OAAO,OAAO,QAAQ,KAAK,UAAU;QACnC,CAAC,CAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,KAAK,gBAAgB,IAAI,QAAQ,CAAC,OAAO,CAAC;QACtF,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,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