@digabi/exam-engine-core 19.17.0-alpha.3 → 19.17.1-abitti2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/dist/__tests__/examServerApi.d.ts.map +1 -1
  2. package/dist/__tests__/examServerApi.js +1 -0
  3. package/dist/__tests__/examServerApi.js.map +1 -1
  4. package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +3 -6
  5. package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js.map +1 -1
  6. package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +1 -2
  7. package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js.map +1 -1
  8. package/dist/__tests__/testExamRendering.js +1 -2
  9. package/dist/__tests__/testExamRendering.js.map +1 -1
  10. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  11. package/dist/components/context/CommonExamContext.d.ts +1 -0
  12. package/dist/components/context/CommonExamContext.d.ts.map +1 -1
  13. package/dist/components/context/CommonExamContext.js +2 -1
  14. package/dist/components/context/CommonExamContext.js.map +1 -1
  15. package/dist/components/exam/Exam.d.ts +1 -0
  16. package/dist/components/exam/Exam.d.ts.map +1 -1
  17. package/dist/components/exam/Exam.js +11 -19
  18. package/dist/components/exam/Exam.js.map +1 -1
  19. package/dist/components/exam/Section.d.ts.map +1 -1
  20. package/dist/components/exam/Section.js +0 -8
  21. package/dist/components/exam/Section.js.map +1 -1
  22. package/dist/components/results/ChoiceAnswer.js +1 -1
  23. package/dist/components/results/ChoiceAnswer.js.map +1 -1
  24. package/dist/components/results/DropdownAnswer.d.ts.map +1 -1
  25. package/dist/components/results/DropdownAnswer.js +1 -1
  26. package/dist/components/results/DropdownAnswer.js.map +1 -1
  27. package/dist/components/results/EndExamSession.d.ts +1 -1
  28. package/dist/components/results/EndExamSession.d.ts.map +1 -1
  29. package/dist/components/results/EndExamSession.js +1 -1
  30. package/dist/components/results/EndExamSession.js.map +1 -1
  31. package/dist/components/results/Question.d.ts.map +1 -1
  32. package/dist/components/results/Question.js +2 -7
  33. package/dist/components/results/Question.js.map +1 -1
  34. package/dist/components/results/Results.d.ts +0 -1
  35. package/dist/components/results/Results.d.ts.map +1 -1
  36. package/dist/components/results/Results.js +12 -10
  37. package/dist/components/results/Results.js.map +1 -1
  38. package/dist/components/results/ScoredTextAnswer.d.ts.map +1 -1
  39. package/dist/components/results/ScoredTextAnswer.js +1 -1
  40. package/dist/components/results/ScoredTextAnswer.js.map +1 -1
  41. package/dist/components/results/TextAnswer.d.ts.map +1 -1
  42. package/dist/components/results/TextAnswer.js +2 -2
  43. package/dist/components/results/TextAnswer.js.map +1 -1
  44. package/dist/components/results/internal/QuestionAutoScore.d.ts +1 -2
  45. package/dist/components/results/internal/QuestionAutoScore.d.ts.map +1 -1
  46. package/dist/components/results/internal/QuestionAutoScore.js +2 -2
  47. package/dist/components/results/internal/QuestionAutoScore.js.map +1 -1
  48. package/dist/components/results/internal/QuestionManualScore.d.ts +1 -2
  49. package/dist/components/results/internal/QuestionManualScore.d.ts.map +1 -1
  50. package/dist/components/results/internal/QuestionManualScore.js +2 -2
  51. package/dist/components/results/internal/QuestionManualScore.js.map +1 -1
  52. package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -2
  53. package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
  54. package/dist/components/results/internal/QuestionScoresContainer.js +1 -8
  55. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  56. package/dist/components/shared/Reference.d.ts.map +1 -1
  57. package/dist/components/shared/Reference.js +1 -1
  58. package/dist/components/shared/Reference.js.map +1 -1
  59. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  60. package/dist/components/shared/TableOfContents.js +2 -4
  61. package/dist/components/shared/TableOfContents.js.map +1 -1
  62. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
  63. package/dist/components/shared/internal/RestrictedAudioPlayer.js +13 -2
  64. package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
  65. package/dist/i18n/fi-FI.d.ts +0 -4
  66. package/dist/i18n/fi-FI.d.ts.map +1 -1
  67. package/dist/i18n/fi-FI.js +3 -7
  68. package/dist/i18n/fi-FI.js.map +1 -1
  69. package/dist/i18n/sv-FI.d.ts.map +1 -1
  70. package/dist/i18n/sv-FI.js +2 -6
  71. package/dist/i18n/sv-FI.js.map +1 -1
  72. package/dist/main-bundle.js +1 -1
  73. package/dist/main.css +1 -1
  74. package/dist/store/audio/reducer.d.ts +3 -0
  75. package/dist/store/audio/reducer.d.ts.map +1 -1
  76. package/dist/store/audio/reducer.js.map +1 -1
  77. package/dist/store/audio/sagas.d.ts.map +1 -1
  78. package/dist/store/audio/sagas.js +40 -11
  79. package/dist/store/audio/sagas.js.map +1 -1
  80. package/dist/types/ExamAnswer.d.ts +0 -1
  81. package/dist/types/ExamAnswer.d.ts.map +1 -1
  82. package/dist/types/ExamServerAPI.d.ts +8 -0
  83. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  84. package/package.json +2 -2
  85. package/dist/components/exam/GoToExamineAnswersButton.d.ts +0 -5
  86. package/dist/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
  87. package/dist/components/exam/GoToExamineAnswersButton.js +0 -18
  88. package/dist/components/exam/GoToExamineAnswersButton.js.map +0 -1
  89. package/dist/components/exam/ProceedToExamineAnswers.d.ts +0 -5
  90. package/dist/components/exam/ProceedToExamineAnswers.d.ts.map +0 -1
  91. package/dist/components/exam/ProceedToExamineAnswers.js +0 -20
  92. package/dist/components/exam/ProceedToExamineAnswers.js.map +0 -1
  93. package/dist/components/results/isExamExaminePageHook.d.ts +0 -2
  94. package/dist/components/results/isExamExaminePageHook.d.ts.map +0 -1
  95. package/dist/components/results/isExamExaminePageHook.js +0 -7
  96. package/dist/components/results/isExamExaminePageHook.js.map +0 -1
@@ -15,6 +15,7 @@ export interface CommonExamContext {
15
15
  sections: Element[];
16
16
  resolveAttachment: (filename: string) => string;
17
17
  root: Element;
18
+ abitti2: boolean;
18
19
  }
19
20
  export declare const CommonExamContext: React.Context<CommonExamContext>;
20
21
  export declare function withCommonExamContext<P extends CommonExamProps>(Component: React.ComponentType<P>): React.ComponentType<P>;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonExamContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAG9C,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,iBAAiB,EAAE,IAAI,CAAC,cAAc,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,+FAA+F;IAC/F,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,IAAI,EAAE,OAAO,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,kCAA+C,CAAA;AAE7E,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,eAAe,EAC7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAsBxB"}
1
+ {"version":3,"file":"CommonExamContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAG9C,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,iBAAiB,EAAE,IAAI,CAAC,cAAc,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,+FAA+F;IAC/F,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,iBAAiB,kCAA+C,CAAA;AAE7E,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,eAAe,EAC7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAuBxB"}
@@ -3,7 +3,7 @@ import { getAttribute, getNumericAttribute, queryAll } from '../../dom-utils';
3
3
  import { withContext } from './withContext';
4
4
  export const CommonExamContext = React.createContext({});
5
5
  export function withCommonExamContext(Component) {
6
- return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc }) => {
6
+ return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc, abitti2 }) => {
7
7
  const root = doc.documentElement;
8
8
  const maybeDate = getAttribute(root, 'date');
9
9
  const language = getAttribute(root, 'exam-lang');
@@ -20,6 +20,7 @@ export function withCommonExamContext(Component) {
20
20
  maxScore: getNumericAttribute(root, 'max-score'),
21
21
  sections: queryAll(root, 'section'),
22
22
  resolveAttachment,
23
+ abitti2: abitti2 || false,
23
24
  root
24
25
  };
25
26
  })(Component);
@@ -1 +1 @@
1
- {"version":3,"file":"CommonExamContext.js","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.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,mBAAmB,CAAC,IAAI,EAAE,WAAW,CAAC;YAChD,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;YACnC,iBAAiB;YACjB,OAAO,EAAE,OAAO,IAAI,KAAK;YACzB,IAAI;SACL,CAAA;IACH,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;AACf,CAAC"}
@@ -13,6 +13,7 @@ export interface CommonExamProps {
13
13
  doc: XMLDocument;
14
14
  /** @deprecated Not used anymore */
15
15
  language?: string;
16
+ abitti2?: boolean;
16
17
  }
17
18
  interface UndoViewProps {
18
19
  close: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA+CvG,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGrF,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,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,UAAU,EAAE,cAAc,GAAG,cAAc,KAAK,IAAI,CAAA;IACpE,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAU,SAAQ,eAAe;I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,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;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,aAAa,CAAA;CAC7B;;AA2ND,wBAAuE"}
@@ -3,7 +3,7 @@ import { I18nextProvider } from 'react-i18next';
3
3
  import { Provider } from 'react-redux';
4
4
  import { createRenderChildNodes } from '../../createRenderChildNodes';
5
5
  import { findChildElement } from '../../dom-utils';
6
- import { changeLanguage, initI18n, useExamTranslation } from '../../i18n';
6
+ import { changeLanguage, initI18n } from '../../i18n';
7
7
  import { examTitleId } from '../../ids';
8
8
  import { parseExamStructure } from '../../parser/parseExamStructure';
9
9
  import { scrollToHash } from '../../scrollToHash';
@@ -47,7 +47,7 @@ import ExamTranslation from '../shared/ExamTranslation';
47
47
  import * as _ from 'lodash-es';
48
48
  import { StudentNameHeader } from './StudentNameHeader';
49
49
  import { UndoView } from './UndoView';
50
- import GoToExamineAnswersButton from './GoToExamineAnswersButton';
50
+ import ExamineExam from './ExamineExam';
51
51
  const renderChildNodes = createRenderChildNodes({
52
52
  attachment: ExamAttachment,
53
53
  'attachment-link': mkAttachmentLink('link'),
@@ -109,8 +109,8 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
109
109
  const scrollY = window.scrollY;
110
110
  const questionsAndSectionTitles = document.querySelectorAll('.e-exam-question.e-level-0, .exam-section-title');
111
111
  const sideNavigation = document.querySelector(`.sidebar-toc-container .table-of-contents`);
112
- const highlightableElementsInNavi = document.querySelectorAll('li.level-0, .toc-section-header, .answer-instructions-container');
113
- highlightableElementsInNavi.forEach(i => i.classList.remove('current'));
112
+ const lis = document.querySelectorAll('.sidebar-toc-container li[data-list-number], .toc-section-header');
113
+ lis.forEach(i => i.classList.remove('current'));
114
114
  // Find the section currently in view
115
115
  questionsAndSectionTitles.forEach(element => {
116
116
  var _a, _b;
@@ -120,16 +120,14 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
120
120
  const elementEndsInView = elementBottom < scrollY + window.innerHeight && elementBottom > scrollY;
121
121
  const elementFillsView = elementTop < scrollY && elementBottom > scrollY + window.innerHeight;
122
122
  if (elementBeginsInView || elementEndsInView || elementFillsView) {
123
- const currentSectionId = (_a = element.getAttribute('id')) === null || _a === void 0 ? void 0 : _a.replace('section-title-', '');
124
- if (currentSectionId) {
125
- const naviSectionHeader = document.querySelector(`.table-of-contents #toc-section-title-${currentSectionId}`);
126
- const sectionAnswerInstructions = document.querySelector(`.table-of-contents .answer-instructions-container.section-${currentSectionId}`);
127
- naviSectionHeader === null || naviSectionHeader === void 0 ? void 0 : naviSectionHeader.classList.add('current');
128
- sectionAnswerInstructions === null || sectionAnswerInstructions === void 0 ? void 0 : sectionAnswerInstructions.classList.add('current');
129
- }
130
- const currentQuestionNumber = (_b = element.querySelector('.anchor')) === null || _b === void 0 ? void 0 : _b.id.replace('question-nr-', '');
123
+ const currentQuestionNumber = (_a = element.querySelector('.anchor')) === null || _a === void 0 ? void 0 : _a.id.replace('question-nr-', '');
131
124
  const naviQuestionTitle = currentQuestionNumber &&
132
125
  document.querySelector(`.table-of-contents li[data-list-number="${currentQuestionNumber}."]`);
126
+ const currentSectionId = (_b = element.getAttribute('id')) === null || _b === void 0 ? void 0 : _b.replace('section-title-', '');
127
+ const naviSectionHeader = currentSectionId && document.querySelector(`.table-of-contents #toc-section-title-${currentSectionId}`);
128
+ if (naviSectionHeader) {
129
+ naviSectionHeader === null || naviSectionHeader === void 0 ? void 0 : naviSectionHeader.classList.add('current');
130
+ }
133
131
  if (naviQuestionTitle) {
134
132
  naviQuestionTitle.classList.add('current');
135
133
  const isVisible = isInViewport(naviQuestionTitle);
@@ -184,18 +182,12 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
184
182
  renderChildNodes }))),
185
183
  externalMaterial && (React.createElement(ExternalMaterial, { element: externalMaterial, renderChildNodes, forceRender: true }))),
186
184
  renderChildNodes(root),
187
- (isPreview || isNewKoeVersion) && (React.createElement("div", { className: "e-examine-exam" },
188
- React.createElement(GoToExamineAnswersButton, null),
189
- React.createElement(ProceedToExamineAnswersText, null)))))),
185
+ (isPreview || isNewKoeVersion) && React.createElement(ExamineExam, null)))),
190
186
  (isPreview || isNewKoeVersion) && React.createElement("div", { className: "e-exam-footer-content" }),
191
187
  React.createElement("div", { className: "e-footer" },
192
188
  React.createElement(ErrorIndicator, null),
193
189
  React.createElement(SaveIndicator, null)),
194
190
  showUndoView && isNewKoeVersion && React.createElement(UndoView, { ...undoViewProps })))));
195
191
  };
196
- const ProceedToExamineAnswersText = () => {
197
- const { t } = useExamTranslation();
198
- return (React.createElement("div", { className: "e-examine-exam-instructions", id: "examineExamInstructions" }, t('examine-exam.instructions')));
199
- };
200
192
  export default React.memo(withExamContext(withCommonExamContext(Exam)));
201
193
  //# sourceMappingURL=Exam.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,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AAC,IAAI,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;;AAgGzC,wBAAsD"}
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;;AAuFzC,wBAAsD"}
@@ -9,7 +9,6 @@ import SectionElement from '../SectionElement';
9
9
  import { SectionContext, withSectionContext } from '../context/SectionContext';
10
10
  import { CommonExamContext } from '../context/CommonExamContext';
11
11
  import * as _ from 'lodash-es';
12
- import GoToExamineAnswersButton from './GoToExamineAnswersButton';
13
12
  function LastSectionNote() {
14
13
  const { t } = useExamTranslation();
15
14
  return (React.createElement("p", null,
@@ -31,13 +30,6 @@ function CasControls(props) {
31
30
  const { casCountdownDuration } = useContext(ExamContext);
32
31
  return (React.createElement("div", { className: "e-cas-controls" }, props.casStatus === 'forbidden' ? (React.createElement("div", { className: "e-text-center" },
33
32
  React.createElement("hr", { className: "e-exam-separator" }),
34
- React.createElement("p", null,
35
- t('cas.examineSectionA'),
36
- React.createElement("br", null),
37
- t('cas.cannotEditLater')),
38
- React.createElement(GoToExamineAnswersButton, null),
39
- React.createElement("p", null, t('cas.youCanReturn')),
40
- React.createElement("p", { className: "dots-separator" }, "\u2022\u2022\u2022"),
41
33
  React.createElement("p", { id: "e-cas-controls-forbidden-description" }, t('cas.forbidden.infoText')),
42
34
  React.createElement("button", { className: "e-button", id: "allow-cas", onClick: () => dispatch(allowCas(casCountdownDuration)), "aria-describedby": "e-cas-controls-forbidden-description" }, t('cas.forbidden.buttonText')))) : props.casStatus === 'allowing' ? (React.createElement("div", { className: "e-text-center", ref: e => e != null && casCountdownDuration === props.durationRemaining && e.scrollIntoView() },
43
35
  React.createElement("hr", { className: "e-exam-separator" }),
@@ -1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,KAAK,CAAC,iBAAiB,IAAI,CAAC,CAAC,KAAK,EAAE,sBACnE,qCAAqC,IAErD,CAAC,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CACtD,CACL,CACP,CAAC,CAAC,CAAC,CACF,6BAAK,SAAS,EAAC,oCAAoC,IAAE,CAAC,CAAC,sBAAsB,CAAC,CAAO,CACtF,CACG,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAA"}
@@ -36,7 +36,7 @@ function ChoiceAnswer({ element, renderChildNodes }) {
36
36
  const scoreValue = answer && ((_b = (_a = choice === null || choice === void 0 ? void 0 : choice.options) === null || _a === void 0 ? void 0 : _a.find(option => option.id === Number(answer.value))) === null || _b === void 0 ? void 0 : _b.score);
37
37
  const maxScore = getNumericAttribute(element, 'max-score');
38
38
  return (React.createElement(React.Fragment, null,
39
- React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore, questionId: questionId }),
39
+ React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore }),
40
40
  React.createElement("div", { className: classNames('e-choice-answer', className, {
41
41
  'e-columns': direction === 'horizontal'
42
42
  }) }, mapChildElements(element, childElement => {
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceAnswer.js","sourceRoot":"","sources":["../../../src/components/results/ChoiceAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mCAAmC,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,QAAQ,GAAG,mBAAmB,CAAC,YAAY,EAAE,WAAW,CAAE,CAAA;YAChE,MAAM,QAAQ,GAAG,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAA;YACpE,MAAM,OAAO,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAA;YACvE,OAAO,CACL,oBAAC,kBAAkB,IAEf,OAAO,EAAE,YAAY;gBACrB,gBAAgB;gBAChB,UAAU;gBACV,GAAG,EAAE,QAAQ;gBACb,SAAS;gBACT,QAAQ;gBACR,SAAS,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,KAAK,GAEtC,CACH,CAAA;QACH,CAAC,CAAC,CACE,CACL,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DropdownAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAUjE,iBAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAuExE;;AAED,wBAAyC"}
1
+ {"version":3,"file":"DropdownAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DropdownAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAUjE,iBAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAkExE;;AAED,wBAAyC"}
@@ -37,7 +37,7 @@ function DropdownAnswer({ element, renderChildNodes }) {
37
37
  !isStudentsExamineExamPage && !isAnswerCorrect && (React.createElement("span", { className: "e-dropdown-answer__correct", "aria-hidden": true }, correctOptions.map((correctOption, i) => (React.createElement(React.Fragment, { key: i },
38
38
  renderChildNodes(correctOption),
39
39
  i < correctOptions.length - 1 && ', '))))),
40
- scoreValue != null && (React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore, displayNumber: displayNumber, questionId: questionId }))));
40
+ scoreValue != null && (React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore, displayNumber: displayNumber }))));
41
41
  }
42
42
  export default React.memo(DropdownAnswer);
43
43
  //# sourceMappingURL=DropdownAnswer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownAnswer.js","sourceRoot":"","sources":["../../../src/components/results/DropdownAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mCAAmC,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/F,OAAO,4BAA4B,MAAM,8BAA8B,CAAA;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAA;AAEtE,SAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;;IACvE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,kBAAkB,EAAE,CA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1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
- onEndSession: () => void;
3
+ onEndSession: () => Promise<void>;
4
4
  sessionEnded: boolean;
5
5
  }
6
6
  export declare const EndExamSession: ({ onEndSession, sessionEnded }: Props) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"EndExamSession.d.ts","sourceRoot":"","sources":["../../../src/components/results/EndExamSession.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,KAAK;IACb,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,YAAY,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,mCAAoC,KAAK,sBAiCnE,CAAA"}
1
+ {"version":3,"file":"EndExamSession.d.ts","sourceRoot":"","sources":["../../../src/components/results/EndExamSession.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,KAAK;IACb,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IACjC,YAAY,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,mCAAoC,KAAK,sBAiCnE,CAAA"}
@@ -15,6 +15,6 @@ export const EndExamSession = ({ onEndSession, sessionEnded }) => {
15
15
  t('examineExam.afterInspectingYourAnswers'),
16
16
  React.createElement("br", null),
17
17
  t('examineExam.youCanNotReturnToExam')))),
18
- !sessionEnded && (React.createElement("button", { id: "endSession", className: "e-button", onClick: () => void onEndSession() }, t('examineExam.endExamTitle'))))));
18
+ !sessionEnded && (React.createElement("button", { id: "endSession", className: "e-button", onClick: () => void onEndSession() }, "P\u00E4\u00E4t\u00E4 koe")))));
19
19
  };
20
20
  //# sourceMappingURL=EndExamSession.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EndExamSession.js","sourceRoot":"","sources":["../../../src/components/results/EndExamSession.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAO/C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,YAAY,EAAE,YAAY,EAAS,EAAE,EAAE;IACtE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,6BAAK,SAAS,EAAC,yCAAyC;YACrD,YAAY,CAAC,CAAC,CAAC,CACd;gBACE,gCAAK,CAAC,CAAC,2BAA2B,CAAC,CAAM;gBACzC;oBACG,CAAC,CAAC,8BAA8B,CAAC;oBAClC,+BAAM;oBACL,CAAC,CAAC,4BAA4B,CAAC,CAC9B,CACH,CACJ,CAAC,CAAC,CAAC,CACF;gBACE,gCAAK,CAAC,CAAC,0BAA0B,CAAC,CAAM;gBACxC;oBACG,CAAC,CAAC,wCAAwC,CAAC;oBAC5C,+BAAM;oBACL,CAAC,CAAC,mCAAmC,CAAC,CACrC,CACH,CACJ;YACA,CAAC,YAAY,IAAI,CAChB,gCAAQ,EAAE,EAAC,YAAY,EAAC,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,YAAY,EAAE,IAC5E,CAAC,CAAC,0BAA0B,CAAC,CACvB,CACV,CACG,CACF,CACP,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"EndExamSession.js","sourceRoot":"","sources":["../../../src/components/results/EndExamSession.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAO/C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,YAAY,EAAE,YAAY,EAAS,EAAE,EAAE;IACtE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,oBAAoB;QACjC,6BAAK,SAAS,EAAC,yCAAyC;YACrD,YAAY,CAAC,CAAC,CAAC,CACd;gBACE,gCAAK,CAAC,CAAC,2BAA2B,CAAC,CAAM;gBACzC;oBACG,CAAC,CAAC,8BAA8B,CAAC;oBAClC,+BAAM;oBACL,CAAC,CAAC,4BAA4B,CAAC,CAC9B,CACH,CACJ,CAAC,CAAC,CAAC,CACF;gBACE,gCAAK,CAAC,CAAC,0BAA0B,CAAC,CAAM;gBACxC;oBACG,CAAC,CAAC,wCAAwC,CAAC;oBAC5C,+BAAM;oBACL,CAAC,CAAC,mCAAmC,CAAC,CACrC,CACH,CACJ;YACA,CAAC,YAAY,IAAI,CAChB,gCAAQ,EAAE,EAAC,YAAY,EAAC,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,YAAY,EAAE,+BAEtE,CACV,CACG,CACF,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Question.d.ts","sourceRoot":"","sources":["../../../src/components/results/Question.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;;AAyCzC,wBAAwD"}
1
+ {"version":3,"file":"Question.d.ts","sourceRoot":"","sources":["../../../src/components/results/Question.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;;AAoCzC,wBAAwD"}
@@ -6,19 +6,14 @@ import AnnotationList from './internal/AnnotationList';
6
6
  import { ResultsContext } from '../context/ResultsContext';
7
7
  import { useExamTranslation } from '../../i18n';
8
8
  function Question({ element, renderChildNodes }) {
9
- var _a, _b;
10
- const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
9
+ const { answersByQuestionId } = useContext(ResultsContext);
11
10
  const { displayNumber, level } = useContext(QuestionContext);
12
11
  const hasAnswers = questionHasAnswers(element, answersByQuestionId);
13
12
  const { i18n } = useExamTranslation();
14
- const question = (_a = gradingStructure === null || gradingStructure === void 0 ? void 0 : gradingStructure.questions) === null || _a === void 0 ? void 0 : _a.find(q => q.displayNumber === displayNumber);
15
- const questionId = question && ('choices' in question ? question.choices[0].id : question.id);
16
- const isNonAnswer = questionId ? (_b = answersByQuestionId[questionId]) === null || _b === void 0 ? void 0 : _b.answerNonAnswer : false;
17
13
  return (React.createElement("div", { className: classNames('e-exam-question', `e-level-${level}`, {
18
14
  'e-mrg-b-8 e-clearfix': level === 0,
19
15
  'e-mrg-l-8 e-mrg-y-4': level > 0,
20
- 'no-answer': !hasAnswers,
21
- 'non-answer': isNonAnswer
16
+ 'no-answer': !hasAnswers
22
17
  }), id: displayNumber, "aria-description": !hasAnswers ? i18n.t('examineExam.questionHasNoAnswer') : undefined },
23
18
  renderChildNodes(element),
24
19
  React.createElement(AnnotationList, null)));
@@ -1 +1 @@
1
- {"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/results/Question.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,SAAS,QAAQ,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;;IACjE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC5E,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC5D,MAAM,UAAU,GAAG,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAA;IACnE,MAAM,EAAE,IAAI,EAAE,GAAG,kBAAkB,EAAE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AACH,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAgB,EAAE,OAAmC;IAC/E,MAAM,WAAW,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAChD,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAC,OAAA,MAAA,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,aAAa,CAAE,CAAC,0CAAE,KAAK,CAAA,EAAA,CAAC,CAAA;AACtF,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA"}
@@ -11,7 +11,6 @@ export interface ResultsProps extends CommonExamProps {
11
11
  singleGrading?: boolean;
12
12
  returnToExam: () => void;
13
13
  endSession: () => Promise<void>;
14
- studentSessionEnded: boolean;
15
14
  }
16
15
  declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
17
16
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU/C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAwB9C,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,8GAA8G;IAC9G,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/B,mBAAmB,EAAE,OAAO,CAAA;CAC7B;;AAmJD,wBAA6E"}
1
+ {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAE9D,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAU/C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAwB9C,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,8GAA8G;IAC9G,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAChC;;AAwJD,wBAA6E"}
@@ -1,4 +1,4 @@
1
- import React, { useContext, useEffect } from 'react';
1
+ import React, { useContext, useEffect, useState } from 'react';
2
2
  import { I18nextProvider } from 'react-i18next';
3
3
  import { createRenderChildNodes } from '../../createRenderChildNodes';
4
4
  import { findChildElement, queryAncestors } from '../../dom-utils';
@@ -52,7 +52,7 @@ const renderChildNodes = createRenderChildNodes({
52
52
  'scored-text-answer': ScoredTextAnswer,
53
53
  'scored-text-answers': RenderChildNodes
54
54
  });
55
- const Results = ({ doc, returnToExam, endSession, studentSessionEnded }) => {
55
+ const Results = ({ doc, returnToExam, endSession }) => {
56
56
  const { date, dateTimeFormatter, dayCode, examCode, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
57
57
  const { answersByQuestionId } = useContext(ResultsContext);
58
58
  const examTitle = findChildElement(root, 'exam-title');
@@ -65,16 +65,18 @@ const Results = ({ doc, returnToExam, endSession, studentSessionEnded }) => {
65
65
  useEffect(() => {
66
66
  window.location.hash = '';
67
67
  }, []);
68
- const onEndSession = () => {
68
+ const [sessionEnded, setSessionEnded] = useState(false);
69
+ const onEndSession = async () => {
69
70
  try {
71
+ await endSession();
70
72
  const elements = document.querySelectorAll('main > *:not(.e-logout-container)');
71
73
  elements.forEach(el => {
72
74
  const element = el;
73
75
  element.style.height = `${element.clientHeight}px`;
74
76
  });
75
77
  setTimeout(() => {
76
- void endSession();
77
- }, 50);
78
+ setSessionEnded(true);
79
+ }, 100);
78
80
  }
79
81
  catch (e) {
80
82
  console.error(e);
@@ -83,22 +85,22 @@ const Results = ({ doc, returnToExam, endSession, studentSessionEnded }) => {
83
85
  return (React.createElement(I18nextProvider, { i18n: i18n },
84
86
  React.createElement("main", { className: classNames('e-exam e-results', {
85
87
  'examine-exam-page': isStudentsExamineExamPage,
86
- 'session-ended': studentSessionEnded
88
+ 'session-ended': sessionEnded
87
89
  }), lang: subjectLanguage },
88
90
  React.createElement(React.StrictMode, null),
89
91
  examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
90
- React.createElement("button", { className: "e-exam-done-return js-exam-done-return e-button", onClick: returnToExam },
92
+ isStudentsExamineExamPage && (React.createElement("button", { className: "e-exam-done-return js-exam-done-return", onClick: returnToExam },
91
93
  "\u00AB ",
92
- React.createElement(BackToExamText, null)),
94
+ React.createElement(BackToExamText, null))),
93
95
  React.createElement("div", { className: "e-columns e-columns--bottom-v e-mrg-b-4" },
94
96
  examTitle && (React.createElement(DocumentTitle, { id: "title", className: "e-column e-mrg-b-0" },
95
97
  renderChildNodes(examTitle),
96
98
  date && `, ${dateTimeFormatter.format(date)}`)),
97
99
  !isStudentsExamineExamPage && React.createElement(ScoresAndFinalGrade, null)),
98
- React.createElement(ExamineExamInstructions, null),
100
+ isStudentsExamineExamPage && React.createElement(ExamineExamInstructions, null),
99
101
  React.createElement(ErrorIndicatorForErrors, { validationErrors: validateAnswers(parseExamStructure(doc), answersByQuestionId), inExam: false }),
100
102
  renderChildNodes(root),
101
- (studentCanEndSession || !isStudentsExamineExamPage) && (React.createElement(EndExamSession, { onEndSession: isStudentsExamineExamPage ? onEndSession : () => Promise.resolve(), sessionEnded: studentSessionEnded }))),
103
+ studentCanEndSession && React.createElement(EndExamSession, { onEndSession: onEndSession, sessionEnded: sessionEnded })),
102
104
  React.createElement("div", { className: "e-exam-footer-content" })));
103
105
  };
104
106
  const BackToExamText = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"Results.js","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,OAAO,uBAAuB,MAAM,6BAA6B,CAAA;AACjE,OAAO,gBAAgB,MAAM,sBAAsB,CAAA;AACnD,OAAO,OAAO,MAAM,mBAAmB,CAAA;AACvC,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,mBAAmB,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OA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AU,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC9D,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,kBAAkB;QAC/B,+BAAO,SAAS,EAAC,uCAAuC;YACtD;gBACE;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,eAAe,CAAC,CAAM;oBAC5D,4BAAI,SAAS,EAAC,mCAAmC,IAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAM,CACxF;gBACJ,WAAW,IAAI,CACd;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,OAAO,CAAC,CAAM;oBACpD,4BAAI,SAAS,EAAC,mCAAmC,IAAE,WAAW,CAAM,CACjE,CACN,CACK,CACF,CACJ,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScoredTextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/ScoredTextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAOzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAqBxD;;AAED,wBAA2C"}
1
+ {"version":3,"file":"ScoredTextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/ScoredTextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAOzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,gBAAgB,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAoBxD;;AAED,wBAA2C"}
@@ -16,7 +16,7 @@ function ScoredTextAnswer({ element }) {
16
16
  const score = findScore(scores, questionId);
17
17
  const autogradingScore = score === null || score === void 0 ? void 0 : score.autograding;
18
18
  return (React.createElement(ResultsSingleLineAnswer, { answers: answers, displayNumber: displayNumber, value: value, score: score },
19
- React.createElement(ResultsExamQuestionAutoScore, { score: autogradingScore === null || autogradingScore === void 0 ? void 0 : autogradingScore.score, maxScore: maxScore, displayNumber: answers.length > 1 ? displayNumber : undefined, questionId: questionId })));
19
+ React.createElement(ResultsExamQuestionAutoScore, { score: autogradingScore === null || autogradingScore === void 0 ? void 0 : autogradingScore.score, maxScore: maxScore, displayNumber: answers.length > 1 ? displayNumber : undefined })));
20
20
  }
21
21
  export default React.memo(ScoredTextAnswer);
22
22
  //# sourceMappingURL=ScoredTextAnswer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScoredTextAnswer.js","sourceRoot":"","sources":["../../../src/components/results/ScoredTextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,4BAA4B,MAAM,8BAA8B,CAAA;AACvE,OAAO,uBAAuB,MAAM,oBAAoB,CAAA;AAIxD,SAAS,gBAAgB,CAAC,EAAE,OAAO,EAAsB;IACvD,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC/C,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAClE,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAE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,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAYjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAwDlD;;AAED,wBAAqC"}
1
+ {"version":3,"file":"TextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/results/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAYjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAmDlD;;AAED,wBAAqC"}
@@ -27,7 +27,7 @@ function TextAnswer({ element }) {
27
27
  case 'rich-text': {
28
28
  return (React.createElement(React.Fragment, null,
29
29
  maxLength != null && React.createElement(AnswerLengthInfo, { maxLength }),
30
- React.createElement(ResultsExamQuestionManualScore, { multilineAnswer: true, scores: score, maxScore: maxScore, questionId: questionId }),
30
+ React.createElement(ResultsExamQuestionManualScore, { multilineAnswer: true, scores: score, maxScore: maxScore }),
31
31
  React.createElement(MultiLineAnswer, { type, value, score }),
32
32
  React.createElement(AnswerToolbar, { answer,
33
33
  element }),
@@ -41,7 +41,7 @@ function TextAnswer({ element }) {
41
41
  score,
42
42
  displayNumber,
43
43
  value },
44
- React.createElement(ResultsExamQuestionManualScore, { scores: score, maxScore, displayNumber, questionId })));
44
+ React.createElement(ResultsExamQuestionManualScore, { scores: score, maxScore, displayNumber })));
45
45
  }
46
46
  }
47
47
  export default React.memo(TextAnswer);
@@ -1 +1 @@
1
- {"version":3,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?: number;
4
4
  maxScore?: number;
5
5
  displayNumber?: string;
6
- questionId: number;
7
6
  }
8
- declare function QuestionAutoScore({ score, maxScore, displayNumber, questionId }: QuestionAutoScoreProps): React.JSX.Element;
7
+ declare function QuestionAutoScore({ score, maxScore, displayNumber }: QuestionAutoScoreProps): React.JSX.Element;
9
8
  declare const _default: React.MemoExoticComponent<typeof QuestionAutoScore>;
10
9
  export default _default;
11
10
  //# sourceMappingURL=QuestionAutoScore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionAutoScore.d.ts","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionAutoScore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,sBAAsB,qBAWhG;;AAED,wBAA4C"}
1
+ {"version":3,"file":"QuestionAutoScore.d.ts","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionAutoScore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,iBAAS,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,sBAAsB,qBAWpF;;AAED,wBAA4C"}
@@ -2,10 +2,10 @@ import React, { useContext } from 'react';
2
2
  import { useExamTranslation } from '../../../i18n';
3
3
  import { QuestionContext } from '../../context/QuestionContext';
4
4
  import ResultsExamQuestionScoresContainer from './QuestionScoresContainer';
5
- function QuestionAutoScore({ score, maxScore, displayNumber, questionId }) {
5
+ function QuestionAutoScore({ score, maxScore, displayNumber }) {
6
6
  const { answers } = useContext(QuestionContext);
7
7
  const { t } = useExamTranslation();
8
- const containerProps = { answers, displayNumber, questionId };
8
+ const containerProps = { answers, displayNumber };
9
9
  return (React.createElement(ResultsExamQuestionScoresContainer, { ...containerProps },
10
10
  typeof score === 'number' ? React.createElement("b", null, score) : React.createElement("span", { className: "e-result-scorecount-empty" }),
11
11
  ' ',
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionAutoScore.js","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionAutoScore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,kCAAkC,MAAM,2BAA2B,CAAA;AAS1E,SAAS,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAA0B;IAC/F,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC/C,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,cAAc,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,CAAA;IAE7D,OAAO,CACL,oBAAC,kCAAkC,OAAK,cAAc;QACnD,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,+BAAI,KAAK,CAAK,CAAC,CAAC,CAAC,8BAAM,SAAS,EAAC,2BAA2B,GAAG;QAAE,GAAG;QAChG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI;;QAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,KA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