@digabi/exam-engine-core 19.15.5-alpha.6 → 19.15.6-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/examServerApi.js +1 -1
- package/dist/__tests__/examServerApi.js.map +1 -1
- package/dist/__tests__/testExamRendering.js +2 -1
- package/dist/__tests__/testExamRendering.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +7 -6
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/ExamineExam.d.ts +5 -0
- package/dist/components/exam/ExamineExam.d.ts.map +1 -0
- package/dist/components/exam/ExamineExam.js +25 -0
- package/dist/components/exam/ExamineExam.js.map +1 -0
- package/dist/components/results/DropdownAnswer.js +5 -5
- package/dist/components/results/DropdownAnswer.js.map +1 -1
- package/dist/components/results/EndExamSession.d.ts +5 -0
- package/dist/components/results/EndExamSession.d.ts.map +1 -0
- package/dist/components/results/EndExamSession.js +43 -0
- package/dist/components/results/EndExamSession.js.map +1 -0
- package/dist/components/results/MultiLineAnswer.js +1 -1
- package/dist/components/results/MultiLineAnswer.js.map +1 -1
- package/dist/components/results/Question.js +1 -1
- package/dist/components/results/Question.js.map +1 -1
- package/dist/components/results/QuestionTitle.js +3 -3
- package/dist/components/results/QuestionTitle.js.map +1 -1
- package/dist/components/results/Results.d.ts +1 -0
- package/dist/components/results/Results.d.ts.map +1 -1
- package/dist/components/results/Results.js +19 -22
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/results/SingleLineAnswer.js +1 -1
- package/dist/components/results/SingleLineAnswer.js.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.js +3 -3
- package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
- package/dist/components/results/isExamExaminePageHook.d.ts +2 -0
- package/dist/components/results/isExamExaminePageHook.d.ts.map +1 -0
- package/dist/components/results/{isExamFinishPageHook.js → isExamExaminePageHook.js} +2 -2
- package/dist/components/results/isExamExaminePageHook.js.map +1 -0
- package/dist/i18n/fi-FI.d.ts +10 -5
- package/dist/i18n/fi-FI.d.ts.map +1 -1
- package/dist/i18n/fi-FI.js +10 -5
- package/dist/i18n/fi-FI.js.map +1 -1
- package/dist/i18n/sv-FI.d.ts.map +1 -1
- package/dist/i18n/sv-FI.js +10 -5
- package/dist/i18n/sv-FI.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/types/ExamServerAPI.d.ts +2 -1
- package/dist/types/ExamServerAPI.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/components/AttachmentContext.d.ts +0 -14
- package/dist/components/AttachmentContext.d.ts.map +0 -1
- package/dist/components/AttachmentContext.js +0 -12
- package/dist/components/AttachmentContext.js.map +0 -1
- package/dist/components/AttachmentLink.d.ts +0 -6
- package/dist/components/AttachmentLink.d.ts.map +0 -1
- package/dist/components/AttachmentLink.js +0 -24
- package/dist/components/AttachmentLink.js.map +0 -1
- package/dist/components/AttachmentLinkAnchor.d.ts +0 -7
- package/dist/components/AttachmentLinkAnchor.d.ts.map +0 -1
- package/dist/components/AttachmentLinkAnchor.js +0 -4
- package/dist/components/AttachmentLinkAnchor.js.map +0 -1
- package/dist/components/AttachmentLinks.d.ts +0 -6
- package/dist/components/AttachmentLinks.d.ts.map +0 -1
- package/dist/components/AttachmentLinks.js +0 -58
- package/dist/components/AttachmentLinks.js.map +0 -1
- package/dist/components/Attachments.d.ts +0 -5
- package/dist/components/Attachments.d.ts.map +0 -1
- package/dist/components/Attachments.js +0 -43
- package/dist/components/Attachments.js.map +0 -1
- package/dist/components/AttachmentsAttachment.d.ts +0 -5
- package/dist/components/AttachmentsAttachment.d.ts.map +0 -1
- package/dist/components/AttachmentsAttachment.js +0 -8
- package/dist/components/AttachmentsAttachment.js.map +0 -1
- package/dist/components/AttachmentsAttachmentTitle.d.ts +0 -6
- package/dist/components/AttachmentsAttachmentTitle.d.ts.map +0 -1
- package/dist/components/AttachmentsAttachmentTitle.js +0 -12
- package/dist/components/AttachmentsAttachmentTitle.js.map +0 -1
- package/dist/components/AttachmentsExternalMaterial.d.ts +0 -9
- package/dist/components/AttachmentsExternalMaterial.d.ts.map +0 -1
- package/dist/components/AttachmentsExternalMaterial.js +0 -40
- package/dist/components/AttachmentsExternalMaterial.js.map +0 -1
- package/dist/components/AttachmentsQuestion.d.ts +0 -5
- package/dist/components/AttachmentsQuestion.d.ts.map +0 -1
- package/dist/components/AttachmentsQuestion.js +0 -16
- package/dist/components/AttachmentsQuestion.js.map +0 -1
- package/dist/components/AttachmentsQuestionTitle.d.ts +0 -6
- package/dist/components/AttachmentsQuestionTitle.d.ts.map +0 -1
- package/dist/components/AttachmentsQuestionTitle.js +0 -13
- package/dist/components/AttachmentsQuestionTitle.js.map +0 -1
- package/dist/components/Audio.d.ts +0 -6
- package/dist/components/Audio.d.ts.map +0 -1
- package/dist/components/Audio.js +0 -29
- package/dist/components/Audio.js.map +0 -1
- package/dist/components/AudioGroup.d.ts +0 -6
- package/dist/components/AudioGroup.d.ts.map +0 -1
- package/dist/components/AudioGroup.js +0 -9
- package/dist/components/AudioGroup.js.map +0 -1
- package/dist/components/AudioPlaybackError.d.ts +0 -7
- package/dist/components/AudioPlaybackError.d.ts.map +0 -1
- package/dist/components/AudioPlaybackError.js +0 -12
- package/dist/components/AudioPlaybackError.js.map +0 -1
- package/dist/components/AudioTest.d.ts +0 -6
- package/dist/components/AudioTest.d.ts.map +0 -1
- package/dist/components/AudioTest.js +0 -29
- package/dist/components/AudioTest.js.map +0 -1
- package/dist/components/ChoiceAnswer.d.ts +0 -12
- package/dist/components/ChoiceAnswer.d.ts.map +0 -1
- package/dist/components/ChoiceAnswer.js +0 -60
- package/dist/components/ChoiceAnswer.js.map +0 -1
- package/dist/components/CommonExamContext.d.ts +0 -16
- package/dist/components/CommonExamContext.d.ts.map +0 -1
- package/dist/components/CommonExamContext.js +0 -22
- package/dist/components/CommonExamContext.js.map +0 -1
- package/dist/components/DropdownAnswer.d.ts +0 -12
- package/dist/components/DropdownAnswer.d.ts.map +0 -1
- package/dist/components/DropdownAnswer.js +0 -85
- package/dist/components/DropdownAnswer.js.map +0 -1
- package/dist/components/Exam.d.ts +0 -40
- package/dist/components/Exam.d.ts.map +0 -1
- package/dist/components/Exam.js +0 -106
- package/dist/components/Exam.js.map +0 -1
- package/dist/components/ExamAttachment.d.ts +0 -5
- package/dist/components/ExamAttachment.d.ts.map +0 -1
- package/dist/components/ExamAttachment.js +0 -8
- package/dist/components/ExamAttachment.js.map +0 -1
- package/dist/components/ExamContext.d.ts +0 -10
- package/dist/components/ExamContext.d.ts.map +0 -1
- package/dist/components/ExamContext.js +0 -11
- package/dist/components/ExamContext.js.map +0 -1
- package/dist/components/ExamFooter.d.ts +0 -6
- package/dist/components/ExamFooter.d.ts.map +0 -1
- package/dist/components/ExamFooter.js +0 -7
- package/dist/components/ExamFooter.js.map +0 -1
- package/dist/components/ExamInstruction.d.ts +0 -6
- package/dist/components/ExamInstruction.d.ts.map +0 -1
- package/dist/components/ExamInstruction.js +0 -6
- package/dist/components/ExamInstruction.js.map +0 -1
- package/dist/components/ExamQuestion.d.ts +0 -5
- package/dist/components/ExamQuestion.d.ts.map +0 -1
- package/dist/components/ExamQuestion.js +0 -16
- package/dist/components/ExamQuestion.js.map +0 -1
- package/dist/components/ExamQuestionInstruction.d.ts +0 -6
- package/dist/components/ExamQuestionInstruction.d.ts.map +0 -1
- package/dist/components/ExamQuestionInstruction.js +0 -6
- package/dist/components/ExamQuestionInstruction.js.map +0 -1
- package/dist/components/ExamQuestionTitle.d.ts +0 -6
- package/dist/components/ExamQuestionTitle.d.ts.map +0 -1
- package/dist/components/ExamQuestionTitle.js +0 -25
- package/dist/components/ExamQuestionTitle.js.map +0 -1
- package/dist/components/ExamSection.d.ts +0 -5
- package/dist/components/ExamSection.d.ts.map +0 -1
- package/dist/components/ExamSection.js +0 -30
- package/dist/components/ExamSection.js.map +0 -1
- package/dist/components/ExamSectionTitle.d.ts +0 -6
- package/dist/components/ExamSectionTitle.d.ts.map +0 -1
- package/dist/components/ExamSectionTitle.js +0 -21
- package/dist/components/ExamSectionTitle.js.map +0 -1
- package/dist/components/ExternalMaterialList.d.ts +0 -10
- package/dist/components/ExternalMaterialList.d.ts.map +0 -1
- package/dist/components/ExternalMaterialList.js +0 -31
- package/dist/components/ExternalMaterialList.js.map +0 -1
- package/dist/components/File.d.ts +0 -6
- package/dist/components/File.d.ts.map +0 -1
- package/dist/components/File.js +0 -15
- package/dist/components/File.js.map +0 -1
- package/dist/components/Formula.d.ts +0 -6
- package/dist/components/Formula.d.ts.map +0 -1
- package/dist/components/Formula.js +0 -12
- package/dist/components/Formula.js.map +0 -1
- package/dist/components/Hints.d.ts +0 -6
- package/dist/components/Hints.d.ts.map +0 -1
- package/dist/components/Hints.js +0 -32
- package/dist/components/Hints.js.map +0 -1
- package/dist/components/Image.d.ts +0 -6
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/Image.js +0 -25
- package/dist/components/Image.js.map +0 -1
- package/dist/components/ImageOverlay.d.ts +0 -6
- package/dist/components/ImageOverlay.d.ts.map +0 -1
- package/dist/components/ImageOverlay.js +0 -45
- package/dist/components/ImageOverlay.js.map +0 -1
- package/dist/components/ProgressBar.d.ts +0 -6
- package/dist/components/ProgressBar.d.ts.map +0 -1
- package/dist/components/ProgressBar.js +0 -18
- package/dist/components/ProgressBar.js.map +0 -1
- package/dist/components/QuestionContext.d.ts +0 -14
- package/dist/components/QuestionContext.d.ts.map +0 -1
- package/dist/components/QuestionContext.js +0 -20
- package/dist/components/QuestionContext.js.map +0 -1
- package/dist/components/Reference.d.ts +0 -6
- package/dist/components/Reference.d.ts.map +0 -1
- package/dist/components/Reference.js +0 -63
- package/dist/components/Reference.js.map +0 -1
- package/dist/components/References.d.ts +0 -6
- package/dist/components/References.d.ts.map +0 -1
- package/dist/components/References.js +0 -23
- package/dist/components/References.js.map +0 -1
- package/dist/components/ResponsiveMediaContainer.d.ts +0 -17
- package/dist/components/ResponsiveMediaContainer.d.ts.map +0 -1
- package/dist/components/ResponsiveMediaContainer.js +0 -20
- package/dist/components/ResponsiveMediaContainer.js.map +0 -1
- package/dist/components/RestrictedAudioPlayer.d.ts +0 -11
- package/dist/components/RestrictedAudioPlayer.d.ts.map +0 -1
- package/dist/components/RestrictedAudioPlayer.js +0 -29
- package/dist/components/RestrictedAudioPlayer.js.map +0 -1
- package/dist/components/RichTextAnswer.d.ts +0 -31
- package/dist/components/RichTextAnswer.d.ts.map +0 -1
- package/dist/components/RichTextAnswer.js +0 -70
- package/dist/components/RichTextAnswer.js.map +0 -1
- package/dist/components/SaveIndicator.d.ts +0 -5
- package/dist/components/SaveIndicator.d.ts.map +0 -1
- package/dist/components/SaveIndicator.js +0 -15
- package/dist/components/SaveIndicator.js.map +0 -1
- package/dist/components/Score.d.ts +0 -6
- package/dist/components/Score.d.ts.map +0 -1
- package/dist/components/Score.js +0 -13
- package/dist/components/Score.js.map +0 -1
- package/dist/components/Section.d.ts +0 -3
- package/dist/components/Section.d.ts.map +0 -1
- package/dist/components/Section.js +0 -7
- package/dist/components/Section.js.map +0 -1
- package/dist/components/SectionContext.d.ts +0 -13
- package/dist/components/SectionContext.d.ts.map +0 -1
- package/dist/components/SectionContext.js +0 -21
- package/dist/components/SectionContext.js.map +0 -1
- package/dist/components/SectionInstruction.d.ts +0 -6
- package/dist/components/SectionInstruction.d.ts.map +0 -1
- package/dist/components/SectionInstruction.js +0 -6
- package/dist/components/SectionInstruction.js.map +0 -1
- package/dist/components/TableOfContents.d.ts +0 -13
- package/dist/components/TableOfContents.d.ts.map +0 -1
- package/dist/components/TableOfContents.js +0 -66
- package/dist/components/TableOfContents.js.map +0 -1
- package/dist/components/TextAnswer.d.ts +0 -6
- package/dist/components/TextAnswer.d.ts.map +0 -1
- package/dist/components/TextAnswer.js +0 -16
- package/dist/components/TextAnswer.js.map +0 -1
- package/dist/components/TextAnswerInput.d.ts +0 -37
- package/dist/components/TextAnswerInput.d.ts.map +0 -1
- package/dist/components/TextAnswerInput.js +0 -145
- package/dist/components/TextAnswerInput.js.map +0 -1
- package/dist/components/Video.d.ts +0 -6
- package/dist/components/Video.d.ts.map +0 -1
- package/dist/components/Video.js +0 -15
- package/dist/components/Video.js.map +0 -1
- package/dist/components/exam/FinishExam.d.ts +0 -5
- package/dist/components/exam/FinishExam.d.ts.map +0 -1
- package/dist/components/exam/FinishExam.js +0 -17
- package/dist/components/exam/FinishExam.js.map +0 -1
- package/dist/components/results/AnnotationList.d.ts +0 -5
- package/dist/components/results/AnnotationList.d.ts.map +0 -1
- package/dist/components/results/AnnotationList.js +0 -40
- package/dist/components/results/AnnotationList.js.map +0 -1
- package/dist/components/results/ResultsChoiceAnswer.d.ts +0 -6
- package/dist/components/results/ResultsChoiceAnswer.d.ts.map +0 -1
- package/dist/components/results/ResultsChoiceAnswer.js +0 -60
- package/dist/components/results/ResultsChoiceAnswer.js.map +0 -1
- package/dist/components/results/ResultsContext.d.ts +0 -20
- package/dist/components/results/ResultsContext.d.ts.map +0 -1
- package/dist/components/results/ResultsContext.js +0 -68
- package/dist/components/results/ResultsContext.js.map +0 -1
- package/dist/components/results/ResultsDropdownAnswer.d.ts +0 -6
- package/dist/components/results/ResultsDropdownAnswer.d.ts.map +0 -1
- package/dist/components/results/ResultsDropdownAnswer.js +0 -41
- package/dist/components/results/ResultsDropdownAnswer.js.map +0 -1
- package/dist/components/results/ResultsExamQuestion.d.ts +0 -5
- package/dist/components/results/ResultsExamQuestion.d.ts.map +0 -1
- package/dist/components/results/ResultsExamQuestion.js +0 -23
- package/dist/components/results/ResultsExamQuestion.js.map +0 -1
- package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +0 -10
- package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +0 -1
- package/dist/components/results/ResultsExamQuestionAutoScore.js +0 -16
- package/dist/components/results/ResultsExamQuestionAutoScore.js.map +0 -1
- package/dist/components/results/ResultsExamQuestionManualScore.d.ts +0 -11
- package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +0 -1
- package/dist/components/results/ResultsExamQuestionManualScore.js +0 -62
- package/dist/components/results/ResultsExamQuestionManualScore.js.map +0 -1
- package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +0 -9
- package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +0 -1
- package/dist/components/results/ResultsExamQuestionScoresContainer.js +0 -8
- package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +0 -1
- package/dist/components/results/ResultsExamQuestionTitle.d.ts +0 -6
- package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +0 -1
- package/dist/components/results/ResultsExamQuestionTitle.js +0 -22
- package/dist/components/results/ResultsExamQuestionTitle.js.map +0 -1
- package/dist/components/results/ResultsExamSection.d.ts +0 -5
- package/dist/components/results/ResultsExamSection.d.ts.map +0 -1
- package/dist/components/results/ResultsExamSection.js +0 -17
- package/dist/components/results/ResultsExamSection.js.map +0 -1
- package/dist/components/results/ResultsScoredTextAnswer.d.ts +0 -6
- package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +0 -1
- package/dist/components/results/ResultsScoredTextAnswer.js +0 -22
- package/dist/components/results/ResultsScoredTextAnswer.js.map +0 -1
- package/dist/components/results/ResultsSingleLineAnswer.d.ts +0 -12
- package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +0 -1
- package/dist/components/results/ResultsSingleLineAnswer.js +0 -12
- package/dist/components/results/ResultsSingleLineAnswer.js.map +0 -1
- package/dist/components/results/ResultsTextAnswer.d.ts +0 -6
- package/dist/components/results/ResultsTextAnswer.d.ts.map +0 -1
- package/dist/components/results/ResultsTextAnswer.js +0 -51
- package/dist/components/results/ResultsTextAnswer.js.map +0 -1
- package/dist/components/results/helpers.d.ts +0 -9
- package/dist/components/results/helpers.d.ts.map +0 -1
- package/dist/components/results/helpers.js +0 -10
- package/dist/components/results/helpers.js.map +0 -1
- package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
- package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
- package/dist/components/results/isExamFinishPageHook.js.map +0 -1
- package/dist/components/types.d.ts +0 -110
- package/dist/components/types.d.ts.map +0 -1
- package/dist/components/types.js +0 -1
- package/dist/components/types.js.map +0 -1
- package/dist/components/withContext.d.ts +0 -3
- package/dist/components/withContext.d.ts.map +0 -1
- package/dist/components/withContext.js +0 -12
- package/dist/components/withContext.js.map +0 -1
@@ -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;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B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,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,aAAa,CAAA;CAC7B;;AAiND,wBAAuE"}
|
@@ -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
|
50
|
+
import ExamineExam from './ExamineExam';
|
51
51
|
const renderChildNodes = createRenderChildNodes({
|
52
52
|
attachment: ExamAttachment,
|
53
53
|
'attachment-link': mkAttachmentLink('link'),
|
@@ -153,8 +153,9 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
|
|
153
153
|
toc === null || toc === void 0 ? void 0 : toc.addEventListener('wheel', handleTOCScroll, { passive: false });
|
154
154
|
return () => toc === null || toc === void 0 ? void 0 : toc.addEventListener('wheel', handleTOCScroll, { passive: false });
|
155
155
|
}, []);
|
156
|
-
// TODO: Remove '
|
157
|
-
const
|
156
|
+
// TODO: Remove 'isNewKoeVersion' checks when old Koe version is not supported anymore
|
157
|
+
const isNewKoeVersion = examServerApi.examineExam !== undefined || examServerApi.finishExam !== undefined;
|
158
|
+
const isPreview = studentName === '[Kokelaan Nimi]';
|
158
159
|
return (React.createElement(Provider, { store: store },
|
159
160
|
React.createElement(I18nextProvider, { i18n: i18n },
|
160
161
|
React.createElement("main", { className: "e-exam", lang: subjectLanguage, "aria-labelledby": examTitleId, ref: examRef },
|
@@ -176,12 +177,12 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
|
|
176
177
|
renderChildNodes }))),
|
177
178
|
externalMaterial && (React.createElement(ExternalMaterial, { element: externalMaterial, renderChildNodes, forceRender: true }))),
|
178
179
|
renderChildNodes(root),
|
179
|
-
|
180
|
-
|
180
|
+
(isPreview || isNewKoeVersion) && React.createElement(ExamineExam, null)))),
|
181
|
+
(isPreview || isNewKoeVersion) && React.createElement("div", { className: "e-exam-footer-content" }),
|
181
182
|
React.createElement("div", { className: "e-footer" },
|
182
183
|
React.createElement(ErrorIndicator, null),
|
183
184
|
React.createElement(SaveIndicator, null)),
|
184
|
-
showUndoView &&
|
185
|
+
showUndoView && isNewKoeVersion && React.createElement(UndoView, { ...undoViewProps })))));
|
185
186
|
};
|
186
187
|
export default React.memo(withExamContext(withCommonExamContext(Exam)));
|
187
188
|
//# 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,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,UAAU,MAAM,sBAAsB,CAAA;AAC7C,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,YAAY,MAAM,gBAAgB,CAA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,WAAW,sBAgCnB;;AAED,wBAAsC"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import React, { useContext } from 'react';
|
2
|
+
import { useExamTranslation } from '../../i18n';
|
3
|
+
import { ExamContext } from '../context/ExamContext';
|
4
|
+
function ExamineExam() {
|
5
|
+
const { examServerApi } = useContext(ExamContext);
|
6
|
+
const { examineExam, finishExam } = examServerApi;
|
7
|
+
const { t } = useExamTranslation();
|
8
|
+
const goToInspectAnswers = () => {
|
9
|
+
if (!examineExam && !finishExam) {
|
10
|
+
return;
|
11
|
+
}
|
12
|
+
if (examineExam) {
|
13
|
+
examineExam();
|
14
|
+
}
|
15
|
+
else if (finishExam) {
|
16
|
+
finishExam();
|
17
|
+
}
|
18
|
+
window.scrollTo(0, 0);
|
19
|
+
};
|
20
|
+
return (React.createElement("div", { className: "e-examine-exam" },
|
21
|
+
React.createElement("button", { className: "e-button", id: "examineExam", onClick: goToInspectAnswers, "aria-describedby": "examineExamInstructions" }, t('examine-exam.examine')),
|
22
|
+
React.createElement("div", { className: "e-examine-exam-instructions", id: "examineExamInstructions" }, t('examine-exam.instructions'))));
|
23
|
+
}
|
24
|
+
export default React.memo(ExamineExam);
|
25
|
+
//# sourceMappingURL=ExamineExam.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExamineExam.js","sourceRoot":"","sources":["../../../src/components/exam/ExamineExam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGpD,SAAS,WAAW;IAClB,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IACjD,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAkB,aAAa,CAAA;IAChE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,IAAI,CAAC,WAAW,IAAI,CAAC,UAAU,EAAE,CAAC;YAChC,OAAM;QACR,CAAC;QACD,IAAI,WAAW,EAAE,CAAC;YAChB,WAAW,EAAE,CAAA;QACf,CAAC;aAAM,IAAI,UAAU,EAAE,CAAC;YACtB,UAAU,EAAE,CAAA;QACd,CAAC;QACD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,OAAO,CACL,6BAAK,SAAS,EAAC,gBAAgB;QAC7B,gCACE,SAAS,EAAC,UAAU,EACpB,EAAE,EAAC,aAAa,EAChB,OAAO,EAAE,kBAAkB,sBACV,yBAAyB,IAEzC,CAAC,CAAC,sBAAsB,CAAC,CACnB;QACT,6BAAK,SAAS,EAAC,6BAA6B,EAAC,EAAE,EAAC,yBAAyB,IACtE,CAAC,CAAC,2BAA2B,CAAC,CAC3B,CACF,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA"}
|
@@ -7,7 +7,7 @@ import { QuestionContext } from '../context/QuestionContext';
|
|
7
7
|
import { ScreenReaderOnly } from '../ScreenReaderOnly';
|
8
8
|
import { findMultiChoiceFromGradingStructure, ResultsContext } from '../context/ResultsContext';
|
9
9
|
import ResultsExamQuestionAutoScore from './internal/QuestionAutoScore';
|
10
|
-
import {
|
10
|
+
import { useIsStudentsExamineExamPage } from './isExamExaminePageHook';
|
11
11
|
function DropdownAnswer({ element, renderChildNodes }) {
|
12
12
|
var _a;
|
13
13
|
const { t, i18n } = useExamTranslation();
|
@@ -16,7 +16,7 @@ function DropdownAnswer({ element, renderChildNodes }) {
|
|
16
16
|
const questionId = getNumericAttribute(element, 'question-id');
|
17
17
|
const answer = answersByQuestionId[questionId];
|
18
18
|
const selectedOption = findChildElement(element, childElement => (answer === null || answer === void 0 ? void 0 : answer.value) === childElement.getAttribute('option-id'));
|
19
|
-
const
|
19
|
+
const isStudentsExamineExamPage = useIsStudentsExamineExamPage();
|
20
20
|
const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
|
21
21
|
const correctIds = (choice === null || choice === void 0 ? void 0 : choice.options.filter(o => o.correct).map(o => o.id)) || [];
|
22
22
|
const correctOptions = Array.from(element.children).filter(childElement => correctIds.includes(getNumericAttribute(childElement, 'option-id')));
|
@@ -26,15 +26,15 @@ function DropdownAnswer({ element, renderChildNodes }) {
|
|
26
26
|
const maxScore = getNumericAttribute(element, 'max-score');
|
27
27
|
return (React.createElement(React.Fragment, null,
|
28
28
|
answers.length > 1 && React.createElement("sup", null, displayNumber),
|
29
|
-
React.createElement("span", { className: classNames('e-dropdown-answer__answered', !selectedOption && 'e-dropdown-answer__no-answer', !
|
29
|
+
React.createElement("span", { className: classNames('e-dropdown-answer__answered', !selectedOption && 'e-dropdown-answer__no-answer', !isStudentsExamineExamPage && {
|
30
30
|
'e-dropdown-answer__answered--correct': isAnswerCorrect,
|
31
31
|
'e-dropdown-answer__answered--wrong': !isAnswerCorrect
|
32
|
-
}), "data-question-id": questionId, "aria-description": !selectedOption ? i18n.t('
|
32
|
+
}), "data-question-id": questionId, "aria-description": !selectedOption ? i18n.t('examineExam.questionHasNoAnswer') : undefined },
|
33
33
|
React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
|
34
34
|
selectedOption && renderChildNodes(selectedOption),
|
35
35
|
React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-end')),
|
36
36
|
isAnswerCorrect && React.createElement(ScreenReaderOnly, null, t('screen-reader.correct-answer'))),
|
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
40
|
scoreValue != null && (React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore, displayNumber: displayNumber }))));
|
@@ -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,
|
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,4BAA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EAAE,CAAC,EAAE,EAAE,CAAC,CACxC,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,CAAC;YACnB,gBAAgB,CAAC,aAAa,CAAC;YAC/B,CAAC,GAAG,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CACvB,CAClB,CAAC,CACG,CACR;QAEA,UAAU,IAAI,IAAI,IAAI,CACrB,oBAAC,4BAA4B,IAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,GAAI,CACtG,CACA,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EndExamSession.d.ts","sourceRoot":"","sources":["../../../src/components/results/EndExamSession.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAGvC,eAAO,MAAM,cAAc;gBAAkC,MAAM,QAAQ,IAAI,CAAC;uBA0D/E,CAAA"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import { useExamTranslation } from '../../i18n';
|
3
|
+
export const EndExamSession = ({ endSession }) => {
|
4
|
+
const [examEnded, setExamEnded] = useState(false);
|
5
|
+
const { t } = useExamTranslation();
|
6
|
+
const endExam = async () => {
|
7
|
+
await endSession();
|
8
|
+
const elements = document.querySelectorAll('main > *:not(.e-logout-container)');
|
9
|
+
elements.forEach(el => {
|
10
|
+
const element = el;
|
11
|
+
element.style.height = `${element.clientHeight}px`;
|
12
|
+
element.classList.add('e-hidden');
|
13
|
+
setExamEnded(true);
|
14
|
+
setTimeout(() => {
|
15
|
+
element.style.height = '0';
|
16
|
+
}, 50);
|
17
|
+
});
|
18
|
+
const main = document.querySelector('main');
|
19
|
+
main.style.minHeight = 'calc(100% - 125px)';
|
20
|
+
setTimeout(() => {
|
21
|
+
const sections = document.querySelectorAll('.e-section');
|
22
|
+
sections.forEach.call(sections, section => {
|
23
|
+
var _a;
|
24
|
+
(_a = section.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(section);
|
25
|
+
});
|
26
|
+
}, 2000);
|
27
|
+
};
|
28
|
+
return (React.createElement("div", { className: "e-logout-container" },
|
29
|
+
React.createElement("div", { className: "e-bg-color-off-white e-pad-6 shadow-box" },
|
30
|
+
examEnded ? (React.createElement(React.Fragment, null,
|
31
|
+
React.createElement("h3", null, t('examineExam.thankYouTitle')),
|
32
|
+
React.createElement("p", null,
|
33
|
+
t('examineExam.shutdownComputer'),
|
34
|
+
React.createElement("br", null),
|
35
|
+
t('examineExam.returnUsbStick')))) : (React.createElement(React.Fragment, null,
|
36
|
+
React.createElement("h3", null, t('examineExam.endExamTitle')),
|
37
|
+
React.createElement("p", null,
|
38
|
+
t('examineExam.afterInspectingYourAnswers'),
|
39
|
+
React.createElement("br", null),
|
40
|
+
t('examineExam.youCanNotReturnToExam')))),
|
41
|
+
!examEnded && (React.createElement("button", { className: "e-button", onClick: () => void endExam() }, "P\u00E4\u00E4t\u00E4 koe")))));
|
42
|
+
};
|
43
|
+
//# sourceMappingURL=EndExamSession.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EndExamSession.js","sourceRoot":"","sources":["../../../src/components/results/EndExamSession.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,UAAU,EAAuC,EAAE,EAAE;IACpF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IAC1D,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;QACzB,MAAM,UAAU,EAAE,CAA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AAC,CAAC,0BAA0B,CAAC,CAAM;gBACxC;oBACG,CAAC,CAAC,wCAAwC,CAAC;oBAC5C,+BAAM;oBACL,CAAC,CAAC,mCAAmC,CAAC,CACrC,CACH,CACJ;YACA,CAAC,SAAS,IAAI,CACb,gCAAQ,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,OAAO,EAAE,+BAEjD,CACV,CACG,CACF,CACP,CAAA;AACH,CAAC,CAAA"}
|
@@ -14,7 +14,7 @@ export const MultiLineAnswer = ({ type, score, value }) => {
|
|
14
14
|
});
|
15
15
|
return (React.createElement("div", { className: classNames('e-multiline-results-text-answer e-line-height-l e-pad-x-2 e-mrg-b-1', {
|
16
16
|
'no-answer': !value
|
17
|
-
}), "aria-description": !value ? i18n.t('
|
17
|
+
}), "aria-description": !value ? i18n.t('examineExam.questionHasNoAnswer') : undefined },
|
18
18
|
React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
|
19
19
|
type === 'rich-text' ? (React.createElement("div", { dangerouslySetInnerHTML: { __html: value || '' }, ref: answerRef })) : (React.createElement("div", { className: "e-pre-wrap", ref: answerRef }, value)),
|
20
20
|
React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-end'))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MultiLineAnswer.js","sourceRoot":"","sources":["../../../src/components/results/MultiLineAnswer.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,MAAM,CAAC,MAAM,eAAe,GAIvB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KA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AA;IAE9C,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,6BACE,SAAS,EAAE,UAAU,CAAC,qEAAqE,EAAE;YAC3F,WAAW,EAAE,CAAC,KAAK;SACpB,CAAC,sBACgB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC,SAAS;QAEhF,oBAAC,gBAAgB,QAAE,CAAC,CAAC,4BAA4B,CAAC,CAAoB;QACrE,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,CACtB,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,GAAI,CAC1E,CAAC,CAAC,CAAC,CACF,6BAAK,SAAS,EAAC,YAAY,EAAC,GAAG,EAAE,SAAS,IACvC,KAAK,CACF,CACP;QACD,oBAAC,gBAAgB,QAAE,CAAC,CAAC,0BAA0B,CAAC,CAAoB,CAChE,CACP,CAAA;AACH,CAAC,CAAA"}
|
@@ -14,7 +14,7 @@ function Question({ element, renderChildNodes }) {
|
|
14
14
|
'e-mrg-b-8 e-clearfix': level === 0,
|
15
15
|
'e-mrg-l-8 e-mrg-y-4': level > 0,
|
16
16
|
'no-answer': !hasAnswers
|
17
|
-
}), id: displayNumber, "aria-description": !hasAnswers ? i18n.t('
|
17
|
+
}), id: displayNumber, "aria-description": !hasAnswers ? i18n.t('examineExam.questionHasNoAnswer') : undefined },
|
18
18
|
renderChildNodes(element),
|
19
19
|
React.createElement(AnnotationList, null)));
|
20
20
|
}
|
@@ -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,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC1D,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC5D,MAAM,UAAU,GAAG,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAA;IACnE,MAAM,EAAE,IAAI,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAErC,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,WAAW,KAAK,EAAE,EAAE;YAC3D,sBAAsB,EAAE,KAAK,KAAK,CAAC;YACnC,qBAAqB,EAAE,KAAK,GAAG,CAAC;YAChC,WAAW,EAAE,CAAC,UAAU;SACzB,CAAC,EACF,EAAE,EAAE,aAAa,sBACC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/results/Question.tsx"],"names":[],"mappings":"AAAA,OA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W,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"}
|
@@ -5,11 +5,11 @@ import NotificationIcon from '../NotificationIcon';
|
|
5
5
|
import { QuestionContext } from '../context/QuestionContext';
|
6
6
|
import { formatQuestionDisplayNumber } from '../../formatting';
|
7
7
|
import { Score } from '../shared/Score';
|
8
|
-
import {
|
8
|
+
import { useIsStudentsExamineExamPage } from './isExamExaminePageHook';
|
9
9
|
function QuestionTitle({ element, renderChildNodes }) {
|
10
10
|
const { displayNumber, level, maxAnswers, maxScore, childQuestions } = useContext(QuestionContext);
|
11
11
|
const Tag = `h${Math.min(3 + level, 6)}`;
|
12
|
-
const
|
12
|
+
const isStudentsExamineExamPage = useIsStudentsExamineExamPage();
|
13
13
|
return (React.createElement(React.Fragment, null,
|
14
14
|
React.createElement(Tag, { className: classNames('exam-question-title', { 'e-normal e-font-size-m': level > 0 }) },
|
15
15
|
React.createElement("strong", { className: classNames('exam-question-title__display-number', {
|
@@ -17,7 +17,7 @@ function QuestionTitle({ element, renderChildNodes }) {
|
|
17
17
|
}) }, `${formatQuestionDisplayNumber(displayNumber)} `),
|
18
18
|
renderChildNodes(element),
|
19
19
|
' ',
|
20
|
-
|
20
|
+
isStudentsExamineExamPage && React.createElement(Score, { score: maxScore, size: level === 0 ? 'large' : 'small' })),
|
21
21
|
maxAnswers != null && childQuestions.length > 0 && (React.createElement("p", { className: "e-italic" },
|
22
22
|
React.createElement(NotificationIcon, null),
|
23
23
|
React.createElement(AnsweringInstructions, { maxAnswers, childQuestions, elementType: 'question' })))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QuestionTitle.js","sourceRoot":"","sources":["../../../src/components/results/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"QuestionTitle.js","sourceRoot":"","sources":["../../../src/components/results/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAA;AAEtE,SAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACtE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAClG,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAA+B,CAAA;IACrE,MAAM,yBAAyB,GAAG,4BAA4B,EAAE,CAAA;IAEhE,OAAO,CACL;QACE,oBAAC,GAAG,IAAC,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,EAAE,wBAAwB,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC;YACxF,gCACE,SAAS,EAAE,UAAU,CAAC,qCAAqC,EAAE;oBAC3D,+CAA+C,EAAE,KAAK,GAAG,CAAC;iBAC3D,CAAC,IAED,GAAG,2BAA2B,CAAC,aAAa,CAAC,GAAG,CAC1C;YACR,gBAAgB,CAAC,OAAO,CAAC;YAAE,GAAG;YAC9B,yBAAyB,IAAI,oBAAC,KAAK,IAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,GAAI,CAC3F;QACL,UAAU,IAAI,IAAI,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAClD,2BAAG,SAAS,EAAC,UAAU;YACrB,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,qBAAqB,IAAO,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,GAAM,CACpF,CACL,CACA,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
|
@@ -10,6 +10,7 @@ export interface ResultsProps extends CommonExamProps {
|
|
10
10
|
scores: Score[];
|
11
11
|
singleGrading?: boolean;
|
12
12
|
returnToExam: () => void;
|
13
|
+
endSession: () => Promise<void>;
|
13
14
|
}
|
14
15
|
declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
|
15
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;
|
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;CAChC;;AAiID,wBAA6E"}
|
@@ -28,8 +28,9 @@ import { validateAnswers } from '../../validateAnswers';
|
|
28
28
|
import { parseExamStructure } from '../../parser/parseExamStructure';
|
29
29
|
import { QuestionNumber } from '../shared/QuestionNumber';
|
30
30
|
import ExamTranslation from '../shared/ExamTranslation';
|
31
|
-
import {
|
31
|
+
import { useIsStudentsExamineExamPage } from './isExamExaminePageHook';
|
32
32
|
import classNames from 'classnames';
|
33
|
+
import { EndExamSession } from './EndExamSession';
|
33
34
|
const renderChildNodes = createRenderChildNodes({
|
34
35
|
attachment: RenderChildNodes,
|
35
36
|
'attachment-link': mkAttachmentLink('plain'),
|
@@ -51,7 +52,7 @@ const renderChildNodes = createRenderChildNodes({
|
|
51
52
|
'scored-text-answer': ScoredTextAnswer,
|
52
53
|
'scored-text-answers': RenderChildNodes
|
53
54
|
});
|
54
|
-
const Results = ({ doc, returnToExam }) => {
|
55
|
+
const Results = ({ doc, returnToExam, endSession }) => {
|
55
56
|
const { date, dateTimeFormatter, dayCode, examCode, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
|
56
57
|
const { answersByQuestionId } = useContext(ResultsContext);
|
57
58
|
const examTitle = findChildElement(root, 'exam-title');
|
@@ -59,47 +60,43 @@ const Results = ({ doc, returnToExam }) => {
|
|
59
60
|
const i18n = useCached(() => initI18n(language, examCode, dayCode));
|
60
61
|
useEffect(changeLanguage(i18n, language));
|
61
62
|
useEffect(scrollToHash, []);
|
62
|
-
const
|
63
|
+
const isStudentsExamineExamPage = useIsStudentsExamineExamPage();
|
63
64
|
useEffect(() => {
|
64
65
|
window.location.hash = '';
|
65
66
|
}, []);
|
66
67
|
return (React.createElement(I18nextProvider, { i18n: i18n },
|
67
|
-
React.createElement("main", { className: classNames('e-exam e-results', { '
|
68
|
+
React.createElement("main", { className: classNames('e-exam e-results', { 'examine-exam-page': isStudentsExamineExamPage }), lang: subjectLanguage },
|
68
69
|
React.createElement(React.StrictMode, null),
|
69
70
|
examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
|
70
|
-
|
71
|
+
isStudentsExamineExamPage && (React.createElement("button", { className: "e-exam-done-return js-exam-done-return", onClick: returnToExam },
|
71
72
|
"\u00AB ",
|
72
73
|
React.createElement(BackToExamText, null))),
|
73
74
|
React.createElement("div", { className: "e-columns e-columns--bottom-v e-mrg-b-4" },
|
74
75
|
examTitle && (React.createElement(DocumentTitle, { id: "title", className: "e-column e-mrg-b-0" },
|
75
76
|
renderChildNodes(examTitle),
|
76
77
|
date && `, ${dateTimeFormatter.format(date)}`)),
|
77
|
-
!
|
78
|
-
|
78
|
+
!isStudentsExamineExamPage && React.createElement(ScoresAndFinalGrade, null)),
|
79
|
+
isStudentsExamineExamPage && React.createElement(ExamineExamInstructions, null),
|
79
80
|
React.createElement(ErrorIndicatorForErrors, { validationErrors: validateAnswers(parseExamStructure(doc), answersByQuestionId), inExam: false }),
|
80
81
|
renderChildNodes(root),
|
81
|
-
|
82
|
+
isStudentsExamineExamPage && React.createElement(EndExamSession, { endSession: endSession })),
|
83
|
+
React.createElement("div", { className: "e-exam-footer-content" })));
|
82
84
|
};
|
83
85
|
const BackToExamText = () => {
|
84
86
|
const { t } = useExamTranslation();
|
85
|
-
return t('
|
87
|
+
return t('examineExam.returnToExam');
|
86
88
|
};
|
87
|
-
const
|
89
|
+
const ExamineExamInstructions = () => {
|
88
90
|
const { t } = useExamTranslation();
|
89
|
-
return (React.createElement("div", { className: "
|
90
|
-
React.createElement("
|
91
|
+
return (React.createElement("div", { className: "e-section examine-exam-page-instructions shadow-box" },
|
92
|
+
React.createElement("h3", null, t('examineExam.checkYourAnswersTitle')),
|
91
93
|
React.createElement("ul", null,
|
92
|
-
React.createElement("li", null, t('
|
93
|
-
React.createElement("li", null, t('
|
94
|
+
React.createElement("li", null, t('examineExam.hereAreYourAnswers')),
|
95
|
+
React.createElement("li", null, t('examineExam.checkYourAnswers')),
|
96
|
+
React.createElement("li", null, t('examineExam.removeExcessAnswers')),
|
94
97
|
React.createElement("li", null,
|
95
|
-
React.createElement("span", { className: "no-answer-example" }, t('
|
96
|
-
t('
|
97
|
-
};
|
98
|
-
const ShutdownInstructions = () => {
|
99
|
-
const { t, i18n } = useExamTranslation();
|
100
|
-
return (React.createElement("div", { className: "e-exam-done-instructions" },
|
101
|
-
React.createElement("p", null, t('examFinished.shutdownInstructions')),
|
102
|
-
React.createElement("img", { className: "e-exam-done-shutdown-image", src: "/dist/digabi-shutdown-screenshot.png", alt: i18n.t('examFinished.shutdownTooltip') })));
|
98
|
+
React.createElement("span", { className: "no-answer-example" }, t('examineExam.emptyAnswersAreHighlighted')),
|
99
|
+
t('examineExam.thereMayBeOptionalQuestions')))));
|
103
100
|
};
|
104
101
|
function ScoresAndFinalGrade() {
|
105
102
|
const { gradingText, totalScore } = useContext(ResultsContext);
|
@@ -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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AM;YAC/C;gBACE,8BAAM,SAAS,EAAC,mBAAmB,IAAE,CAAC,CAAC,wCAAwC,CAAC,CAAQ;gBACvF,CAAC,CAAC,yCAAyC,CAAC,CAC1C,CACF,CACD,CACP,CAAA;AACH,CAAC,CAAA;AAED,SAAS,mBAAmB;IAC1B,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC9D,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,kBAAkB;QAC/B,+BAAO,SAAS,EAAC,uCAAuC;YACtD;gBACE;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,eAAe,CAAC,CAAM;oBAC5D,4BAAI,SAAS,EAAC,mCAAmC,IAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAM,CACxF;gBACJ,WAAW,IAAI,CACd;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,OAAO,CAAC,CAAM;oBACpD,4BAAI,SAAS,EAAC,mCAAmC,IAAE,WAAW,CAAM,CACjE,CACN,CACK,CACF,CACJ,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA"}
|
@@ -16,7 +16,7 @@ function SingleLineAnswer({ displayNumber, score, value, answers, children }) {
|
|
16
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
|
-
}), "aria-description": !value ? i18n.t('
|
19
|
+
}), "aria-description": !value ? i18n.t('examineExam.questionHasNoAnswer') : undefined },
|
20
20
|
React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
|
21
21
|
React.createElement("span", { className: "e-inline-block", ref: answerRef }, value),
|
22
22
|
React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-end'))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SingleLineAnswer.js","sourceRoot":"","sources":["../../../src/components/results/SingleLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,SAAS,gBAAgB,CAAC,EACxB,aAAa,EACb,KAAK,EACL,KAAK,EACL,OAAO,EACP,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,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,CAA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,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"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import React, { useContext } from 'react';
|
2
2
|
import classnames from 'classnames';
|
3
3
|
import { QuestionContext } from '../../context/QuestionContext';
|
4
|
-
import {
|
4
|
+
import { useIsStudentsExamineExamPage } from '../isExamExaminePageHook';
|
5
5
|
function QuestionScoresContainer({ answers, displayNumber, children, multilineAnswer }) {
|
6
6
|
const { displayNumber: topLevelDisplayNumber } = useContext(QuestionContext);
|
7
|
-
const
|
7
|
+
const isStudentsExamineExamPage = useIsStudentsExamineExamPage();
|
8
8
|
const fullDisplayNumber = displayNumber ? `${topLevelDisplayNumber}.${displayNumber === null || displayNumber === void 0 ? void 0 : displayNumber.replace('.', '')}` : undefined;
|
9
|
-
if (
|
9
|
+
if (isStudentsExamineExamPage) {
|
10
10
|
return null;
|
11
11
|
}
|
12
12
|
return (React.createElement("span", { className: classnames('e-result-scorecount', 'e-float-right', {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QuestionScoresContainer.js","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionScoresContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"QuestionScoresContainer.js","sourceRoot":"","sources":["../../../../src/components/results/internal/QuestionScoresContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAA;AAEvE,SAAS,uBAAuB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,QAAQ,EACR,eAAe,EAMhB;IACC,MAAM,EAAE,aAAa,EAAE,qBAAqB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC5E,MAAM,yBAAyB,GAAG,4BAA4B,EAAE,CAAA;IAChE,MAAM,iBAAiB,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,qBAAqB,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAEnH,IAAI,yBAAyB,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,8BACE,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,eAAe,EAAE;YAC5D,sCAAsC,EAAE,eAAe;SACxD,CAAC,EACF,EAAE,EAAE,iBAAiB;QAErB,8BAAM,SAAS,EAAC,iCAAiC;YAC9C,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,aAAa,IAAI,CACtC,6BAAK,SAAS,EAAC,mCAAmC,iBAAa,MAAM,IAClE,aAAa,CACV,CACP;YACA,QAAQ,CACJ,CACF,CACR,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"isExamExaminePageHook.d.ts","sourceRoot":"","sources":["../../../src/components/results/isExamExaminePageHook.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,eAGxC,CAAA"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { useContext } from 'react';
|
2
2
|
import { ResultsContext } from '../context/ResultsContext';
|
3
|
-
export const
|
3
|
+
export const useIsStudentsExamineExamPage = () => {
|
4
4
|
const { gradingStructure } = useContext(ResultsContext);
|
5
5
|
return gradingStructure === undefined;
|
6
6
|
};
|
7
|
-
//# sourceMappingURL=
|
7
|
+
//# sourceMappingURL=isExamExaminePageHook.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"isExamExaminePageHook.js","sourceRoot":"","sources":["../../../src/components/results/isExamExaminePageHook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC/C,MAAM,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IACvD,OAAO,gBAAgB,KAAK,SAAS,CAAA;AACvC,CAAC,CAAA"}
|
package/dist/i18n/fi-FI.d.ts
CHANGED
@@ -66,8 +66,8 @@ export declare const fi_FI: {
|
|
66
66
|
infoText: string;
|
67
67
|
};
|
68
68
|
};
|
69
|
-
'
|
70
|
-
|
69
|
+
'examine-exam': {
|
70
|
+
examine: string;
|
71
71
|
instructions: string;
|
72
72
|
};
|
73
73
|
undo: {
|
@@ -84,16 +84,21 @@ export declare const fi_FI: {
|
|
84
84
|
minutesSinceAnswer: string;
|
85
85
|
latestVersion: string;
|
86
86
|
};
|
87
|
-
|
87
|
+
examineExam: {
|
88
88
|
returnToExam: string;
|
89
|
+
checkYourAnswersTitle: string;
|
89
90
|
hereAreYourAnswers: string;
|
90
91
|
checkYourAnswers: string;
|
91
92
|
removeExcessAnswers: string;
|
92
93
|
emptyAnswersAreHighlighted: string;
|
93
94
|
thereMayBeOptionalQuestions: string;
|
94
95
|
questionHasNoAnswer: string;
|
95
|
-
|
96
|
-
|
96
|
+
endExamTitle: string;
|
97
|
+
afterInspectingYourAnswers: string;
|
98
|
+
youCanNotReturnToExam: string;
|
99
|
+
thankYouTitle: string;
|
100
|
+
shutdownComputer: string;
|
101
|
+
returnUsbStick: string;
|
97
102
|
};
|
98
103
|
'toc-heading': string;
|
99
104
|
'answer-saved': string;
|
package/dist/i18n/fi-FI.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fi-FI.d.ts","sourceRoot":"","sources":["../../src/i18n/fi-FI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,wDAAwD;AACxD,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,SAAS,GAAG,KAAK,GAAG,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtF,GAAG;KACD,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,CAAC,GAAG,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACrH,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,OAAO,KAAK,CAAC,CAAA;AAC5D,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,CAAA;AAExD,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"fi-FI.d.ts","sourceRoot":"","sources":["../../src/i18n/fi-FI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,wDAAwD;AACxD,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,SAAS,GAAG,KA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