@digabi/exam-engine-core 23.0.4 → 23.0.5-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-bundle.js +3 -3
- package/package.json +3 -3
- package/dist/components/exam/ExamineExam.d.ts +0 -5
- package/dist/components/exam/ExamineExam.d.ts.map +0 -1
- package/dist/components/exam/ExamineExam.js +0 -20
- package/dist/components/exam/ExamineExam.js.map +0 -1
- package/dist/src/components/AnswerToolbar.d.ts +0 -18
- package/dist/src/components/AnswerToolbar.d.ts.map +0 -1
- package/dist/src/components/AnswerToolbar.js +0 -36
- package/dist/src/components/AnswerToolbar.js.map +0 -1
- package/dist/src/components/AnsweringInstructions.d.ts +0 -12
- package/dist/src/components/AnsweringInstructions.d.ts.map +0 -1
- package/dist/src/components/AnsweringInstructions.js +0 -24
- package/dist/src/components/AnsweringInstructions.js.map +0 -1
- package/dist/src/components/DocumentTitle.d.ts +0 -5
- package/dist/src/components/DocumentTitle.d.ts.map +0 -1
- package/dist/src/components/DocumentTitle.js +0 -13
- package/dist/src/components/DocumentTitle.js.map +0 -1
- package/dist/src/components/NotificationIcon.d.ts +0 -4
- package/dist/src/components/NotificationIcon.d.ts.map +0 -1
- package/dist/src/components/NotificationIcon.js +0 -6
- package/dist/src/components/NotificationIcon.js.map +0 -1
- package/dist/src/components/RenderChildNodes.d.ts +0 -5
- package/dist/src/components/RenderChildNodes.d.ts.map +0 -1
- package/dist/src/components/RenderChildNodes.js +0 -7
- package/dist/src/components/RenderChildNodes.js.map +0 -1
- package/dist/src/components/RenderExamElements.d.ts +0 -6
- package/dist/src/components/RenderExamElements.d.ts.map +0 -1
- package/dist/src/components/RenderExamElements.js +0 -6
- package/dist/src/components/RenderExamElements.js.map +0 -1
- package/dist/src/components/RenderIf.d.ts +0 -4
- package/dist/src/components/RenderIf.d.ts.map +0 -1
- package/dist/src/components/RenderIf.js +0 -8
- package/dist/src/components/RenderIf.js.map +0 -1
- package/dist/src/components/ScreenReaderOnly.d.ts +0 -5
- package/dist/src/components/ScreenReaderOnly.d.ts.map +0 -1
- package/dist/src/components/ScreenReaderOnly.js +0 -3
- package/dist/src/components/ScreenReaderOnly.js.map +0 -1
- package/dist/src/components/SectionElement.d.ts +0 -4
- package/dist/src/components/SectionElement.d.ts.map +0 -1
- package/dist/src/components/SectionElement.js +0 -8
- package/dist/src/components/SectionElement.js.map +0 -1
- package/dist/src/components/attachments/Attachment.d.ts +0 -4
- package/dist/src/components/attachments/Attachment.d.ts.map +0 -1
- package/dist/src/components/attachments/Attachment.js +0 -8
- package/dist/src/components/attachments/Attachment.js.map +0 -1
- package/dist/src/components/attachments/AttachmentTitle.d.ts +0 -6
- package/dist/src/components/attachments/AttachmentTitle.d.ts.map +0 -1
- package/dist/src/components/attachments/AttachmentTitle.js +0 -12
- package/dist/src/components/attachments/AttachmentTitle.js.map +0 -1
- package/dist/src/components/attachments/Attachments.d.ts +0 -5
- package/dist/src/components/attachments/Attachments.d.ts.map +0 -1
- package/dist/src/components/attachments/Attachments.js +0 -55
- package/dist/src/components/attachments/Attachments.js.map +0 -1
- package/dist/src/components/attachments/ExternalMaterial.d.ts +0 -9
- package/dist/src/components/attachments/ExternalMaterial.d.ts.map +0 -1
- package/dist/src/components/attachments/ExternalMaterial.js +0 -46
- package/dist/src/components/attachments/ExternalMaterial.js.map +0 -1
- package/dist/src/components/attachments/Question.d.ts +0 -4
- package/dist/src/components/attachments/Question.d.ts.map +0 -1
- package/dist/src/components/attachments/Question.js +0 -16
- package/dist/src/components/attachments/Question.js.map +0 -1
- package/dist/src/components/attachments/QuestionTitle.d.ts +0 -6
- package/dist/src/components/attachments/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/attachments/QuestionTitle.js +0 -15
- package/dist/src/components/attachments/QuestionTitle.js.map +0 -1
- package/dist/src/components/context/AnnotationProvider.d.ts +0 -16
- package/dist/src/components/context/AnnotationProvider.d.ts.map +0 -1
- package/dist/src/components/context/AnnotationProvider.js +0 -35
- package/dist/src/components/context/AnnotationProvider.js.map +0 -1
- package/dist/src/components/context/AttachmentContext.d.ts +0 -13
- package/dist/src/components/context/AttachmentContext.d.ts.map +0 -1
- package/dist/src/components/context/AttachmentContext.js +0 -12
- package/dist/src/components/context/AttachmentContext.js.map +0 -1
- package/dist/src/components/context/CommonExamContext.d.ts +0 -22
- package/dist/src/components/context/CommonExamContext.d.ts.map +0 -1
- package/dist/src/components/context/CommonExamContext.js +0 -28
- package/dist/src/components/context/CommonExamContext.js.map +0 -1
- package/dist/src/components/context/ExamContext.d.ts +0 -9
- package/dist/src/components/context/ExamContext.d.ts.map +0 -1
- package/dist/src/components/context/ExamContext.js +0 -11
- package/dist/src/components/context/ExamContext.js.map +0 -1
- package/dist/src/components/context/IsInSidebarContext.d.ts +0 -6
- package/dist/src/components/context/IsInSidebarContext.d.ts.map +0 -1
- package/dist/src/components/context/IsInSidebarContext.js +0 -3
- package/dist/src/components/context/IsInSidebarContext.js.map +0 -1
- package/dist/src/components/context/QuestionContext.d.ts +0 -14
- package/dist/src/components/context/QuestionContext.d.ts.map +0 -1
- package/dist/src/components/context/QuestionContext.js +0 -27
- package/dist/src/components/context/QuestionContext.js.map +0 -1
- package/dist/src/components/context/ResultsContext.d.ts +0 -17
- package/dist/src/components/context/ResultsContext.d.ts.map +0 -1
- package/dist/src/components/context/ResultsContext.js +0 -69
- package/dist/src/components/context/ResultsContext.js.map +0 -1
- package/dist/src/components/context/SectionContext.d.ts +0 -12
- package/dist/src/components/context/SectionContext.d.ts.map +0 -1
- package/dist/src/components/context/SectionContext.js +0 -21
- package/dist/src/components/context/SectionContext.js.map +0 -1
- package/dist/src/components/context/TOCContext.d.ts +0 -7
- package/dist/src/components/context/TOCContext.d.ts.map +0 -1
- package/dist/src/components/context/TOCContext.js +0 -3
- package/dist/src/components/context/TOCContext.js.map +0 -1
- package/dist/src/components/context/withContext.d.ts +0 -3
- package/dist/src/components/context/withContext.d.ts.map +0 -1
- package/dist/src/components/context/withContext.js +0 -12
- package/dist/src/components/context/withContext.js.map +0 -1
- package/dist/src/components/exam/Attachment.d.ts +0 -4
- package/dist/src/components/exam/Attachment.d.ts.map +0 -1
- package/dist/src/components/exam/Attachment.js +0 -8
- package/dist/src/components/exam/Attachment.js.map +0 -1
- package/dist/src/components/exam/ChoiceAnswer.d.ts +0 -5
- package/dist/src/components/exam/ChoiceAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/ChoiceAnswer.js +0 -53
- package/dist/src/components/exam/ChoiceAnswer.js.map +0 -1
- package/dist/src/components/exam/DropdownAnswer.d.ts +0 -5
- package/dist/src/components/exam/DropdownAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/DropdownAnswer.js +0 -101
- package/dist/src/components/exam/DropdownAnswer.js.map +0 -1
- package/dist/src/components/exam/Exam.d.ts +0 -48
- package/dist/src/components/exam/Exam.d.ts.map +0 -1
- package/dist/src/components/exam/Exam.js +0 -195
- package/dist/src/components/exam/Exam.js.map +0 -1
- package/dist/src/components/exam/ExamFooter.d.ts +0 -6
- package/dist/src/components/exam/ExamFooter.d.ts.map +0 -1
- package/dist/src/components/exam/ExamFooter.js +0 -6
- package/dist/src/components/exam/ExamFooter.js.map +0 -1
- package/dist/src/components/exam/ExamInstruction.d.ts +0 -6
- package/dist/src/components/exam/ExamInstruction.d.ts.map +0 -1
- package/dist/src/components/exam/ExamInstruction.js +0 -6
- package/dist/src/components/exam/ExamInstruction.js.map +0 -1
- package/dist/src/components/exam/ExternalMaterial.d.ts +0 -10
- package/dist/src/components/exam/ExternalMaterial.d.ts.map +0 -1
- package/dist/src/components/exam/ExternalMaterial.js +0 -33
- package/dist/src/components/exam/ExternalMaterial.js.map +0 -1
- package/dist/src/components/exam/GoToExamineAnswersButton.d.ts +0 -5
- package/dist/src/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
- package/dist/src/components/exam/GoToExamineAnswersButton.js +0 -18
- package/dist/src/components/exam/GoToExamineAnswersButton.js.map +0 -1
- package/dist/src/components/exam/Hints.d.ts +0 -5
- package/dist/src/components/exam/Hints.d.ts.map +0 -1
- package/dist/src/components/exam/Hints.js +0 -31
- package/dist/src/components/exam/Hints.js.map +0 -1
- package/dist/src/components/exam/Question.d.ts +0 -8
- package/dist/src/components/exam/Question.d.ts.map +0 -1
- package/dist/src/components/exam/Question.js +0 -75
- package/dist/src/components/exam/Question.js.map +0 -1
- package/dist/src/components/exam/QuestionInstruction.d.ts +0 -6
- package/dist/src/components/exam/QuestionInstruction.d.ts.map +0 -1
- package/dist/src/components/exam/QuestionInstruction.js +0 -8
- package/dist/src/components/exam/QuestionInstruction.js.map +0 -1
- package/dist/src/components/exam/QuestionTitle.d.ts +0 -5
- package/dist/src/components/exam/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/exam/QuestionTitle.js +0 -26
- package/dist/src/components/exam/QuestionTitle.js.map +0 -1
- package/dist/src/components/exam/RichTextAnswer.d.ts +0 -41
- package/dist/src/components/exam/RichTextAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/RichTextAnswer.js +0 -79
- package/dist/src/components/exam/RichTextAnswer.js.map +0 -1
- package/dist/src/components/exam/Section.d.ts +0 -4
- package/dist/src/components/exam/Section.d.ts.map +0 -1
- package/dist/src/components/exam/Section.js +0 -49
- package/dist/src/components/exam/Section.js.map +0 -1
- package/dist/src/components/exam/SectionInstruction.d.ts +0 -6
- package/dist/src/components/exam/SectionInstruction.d.ts.map +0 -1
- package/dist/src/components/exam/SectionInstruction.js +0 -6
- package/dist/src/components/exam/SectionInstruction.js.map +0 -1
- package/dist/src/components/exam/SectionTitle.d.ts +0 -6
- package/dist/src/components/exam/SectionTitle.d.ts.map +0 -1
- package/dist/src/components/exam/SectionTitle.js +0 -30
- package/dist/src/components/exam/SectionTitle.js.map +0 -1
- package/dist/src/components/exam/StudentNameHeader.d.ts +0 -8
- package/dist/src/components/exam/StudentNameHeader.d.ts.map +0 -1
- package/dist/src/components/exam/StudentNameHeader.js +0 -3
- package/dist/src/components/exam/StudentNameHeader.js.map +0 -1
- package/dist/src/components/exam/TextAnswer.d.ts +0 -6
- package/dist/src/components/exam/TextAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/TextAnswer.js +0 -20
- package/dist/src/components/exam/TextAnswer.js.map +0 -1
- package/dist/src/components/exam/UndoHistoryEntry.d.ts +0 -19
- package/dist/src/components/exam/UndoHistoryEntry.d.ts.map +0 -1
- package/dist/src/components/exam/UndoHistoryEntry.js +0 -39
- package/dist/src/components/exam/UndoHistoryEntry.js.map +0 -1
- package/dist/src/components/exam/UndoView.d.ts +0 -35
- package/dist/src/components/exam/UndoView.d.ts.map +0 -1
- package/dist/src/components/exam/UndoView.js +0 -162
- package/dist/src/components/exam/UndoView.js.map +0 -1
- package/dist/src/components/exam/internal/ErrorIndicator.d.ts +0 -9
- package/dist/src/components/exam/internal/ErrorIndicator.d.ts.map +0 -1
- package/dist/src/components/exam/internal/ErrorIndicator.js +0 -63
- package/dist/src/components/exam/internal/ErrorIndicator.js.map +0 -1
- package/dist/src/components/exam/internal/ProgressBar.d.ts +0 -8
- package/dist/src/components/exam/internal/ProgressBar.d.ts.map +0 -1
- package/dist/src/components/exam/internal/ProgressBar.js +0 -19
- package/dist/src/components/exam/internal/ProgressBar.js.map +0 -1
- package/dist/src/components/exam/internal/SaveIndicator.d.ts +0 -5
- package/dist/src/components/exam/internal/SaveIndicator.d.ts.map +0 -1
- package/dist/src/components/exam/internal/SaveIndicator.js +0 -16
- package/dist/src/components/exam/internal/SaveIndicator.js.map +0 -1
- package/dist/src/components/exam/internal/TextAnswerInput.d.ts +0 -6
- package/dist/src/components/exam/internal/TextAnswerInput.d.ts.map +0 -1
- package/dist/src/components/exam/internal/TextAnswerInput.js +0 -128
- package/dist/src/components/exam/internal/TextAnswerInput.js.map +0 -1
- package/dist/src/components/grading/AnswerCharacterCounter.d.ts +0 -6
- package/dist/src/components/grading/AnswerCharacterCounter.d.ts.map +0 -1
- package/dist/src/components/grading/AnswerCharacterCounter.js +0 -21
- package/dist/src/components/grading/AnswerCharacterCounter.js.map +0 -1
- package/dist/src/components/grading/GradingAnswer.d.ts +0 -24
- package/dist/src/components/grading/GradingAnswer.d.ts.map +0 -1
- package/dist/src/components/grading/GradingAnswer.js +0 -306
- package/dist/src/components/grading/GradingAnswer.js.map +0 -1
- package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts +0 -9
- package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts.map +0 -1
- package/dist/src/components/grading/GradingAnswerAnnotationList.js +0 -19
- package/dist/src/components/grading/GradingAnswerAnnotationList.js.map +0 -1
- package/dist/src/components/grading/editAnnotations.d.ts +0 -29
- package/dist/src/components/grading/editAnnotations.d.ts.map +0 -1
- package/dist/src/components/grading/editAnnotations.js +0 -190
- package/dist/src/components/grading/editAnnotations.js.map +0 -1
- package/dist/src/components/grading/examAnnotationUtils.d.ts +0 -3
- package/dist/src/components/grading/examAnnotationUtils.d.ts.map +0 -1
- package/dist/src/components/grading/examAnnotationUtils.js +0 -44
- package/dist/src/components/grading/examAnnotationUtils.js.map +0 -1
- package/dist/src/components/grading/largeImageDetector.d.ts +0 -3
- package/dist/src/components/grading/largeImageDetector.d.ts.map +0 -1
- package/dist/src/components/grading/largeImageDetector.js +0 -45
- package/dist/src/components/grading/largeImageDetector.js.map +0 -1
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts +0 -5
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.js +0 -4
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.js.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts +0 -5
- package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswer.js +0 -34
- package/dist/src/components/grading-instructions/AutogradedAnswer.js.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts +0 -5
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.js +0 -17
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.js.map +0 -1
- package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts +0 -5
- package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/ExamGradingInstruction.js +0 -4
- package/dist/src/components/grading-instructions/ExamGradingInstruction.js.map +0 -1
- package/dist/src/components/grading-instructions/GradingInstructions.d.ts +0 -6
- package/dist/src/components/grading-instructions/GradingInstructions.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/GradingInstructions.js +0 -109
- package/dist/src/components/grading-instructions/GradingInstructions.js.map +0 -1
- package/dist/src/components/grading-instructions/Question.d.ts +0 -4
- package/dist/src/components/grading-instructions/Question.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/Question.js +0 -14
- package/dist/src/components/grading-instructions/Question.js.map +0 -1
- package/dist/src/components/grading-instructions/QuestionTitle.d.ts +0 -5
- package/dist/src/components/grading-instructions/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/QuestionTitle.js +0 -19
- package/dist/src/components/grading-instructions/QuestionTitle.js.map +0 -1
- package/dist/src/components/grading-instructions/Recording.d.ts +0 -5
- package/dist/src/components/grading-instructions/Recording.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/Recording.js +0 -19
- package/dist/src/components/grading-instructions/Recording.js.map +0 -1
- package/dist/src/components/grading-instructions/Section.d.ts +0 -4
- package/dist/src/components/grading-instructions/Section.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/Section.js +0 -10
- package/dist/src/components/grading-instructions/Section.js.map +0 -1
- package/dist/src/components/grading-instructions/SectionTitle.d.ts +0 -5
- package/dist/src/components/grading-instructions/SectionTitle.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/SectionTitle.js +0 -16
- package/dist/src/components/grading-instructions/SectionTitle.js.map +0 -1
- package/dist/src/components/results/ChoiceAnswer.d.ts +0 -6
- package/dist/src/components/results/ChoiceAnswer.d.ts.map +0 -1
- package/dist/src/components/results/ChoiceAnswer.js +0 -57
- package/dist/src/components/results/ChoiceAnswer.js.map +0 -1
- package/dist/src/components/results/DropdownAnswer.d.ts +0 -6
- package/dist/src/components/results/DropdownAnswer.d.ts.map +0 -1
- package/dist/src/components/results/DropdownAnswer.js +0 -43
- package/dist/src/components/results/DropdownAnswer.js.map +0 -1
- package/dist/src/components/results/EndExamSession.d.ts +0 -8
- package/dist/src/components/results/EndExamSession.d.ts.map +0 -1
- package/dist/src/components/results/EndExamSession.js +0 -20
- package/dist/src/components/results/EndExamSession.js.map +0 -1
- package/dist/src/components/results/MultiLineAnswer.d.ts +0 -8
- package/dist/src/components/results/MultiLineAnswer.d.ts.map +0 -1
- package/dist/src/components/results/MultiLineAnswer.js +0 -22
- package/dist/src/components/results/MultiLineAnswer.js.map +0 -1
- package/dist/src/components/results/Question.d.ts +0 -4
- package/dist/src/components/results/Question.d.ts.map +0 -1
- package/dist/src/components/results/Question.js +0 -31
- package/dist/src/components/results/Question.js.map +0 -1
- package/dist/src/components/results/QuestionTitle.d.ts +0 -6
- package/dist/src/components/results/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/results/QuestionTitle.js +0 -26
- package/dist/src/components/results/QuestionTitle.js.map +0 -1
- package/dist/src/components/results/Results.d.ts +0 -19
- package/dist/src/components/results/Results.d.ts.map +0 -1
- package/dist/src/components/results/Results.js +0 -136
- package/dist/src/components/results/Results.js.map +0 -1
- package/dist/src/components/results/ScoredTextAnswer.d.ts +0 -6
- package/dist/src/components/results/ScoredTextAnswer.d.ts.map +0 -1
- package/dist/src/components/results/ScoredTextAnswer.js +0 -22
- package/dist/src/components/results/ScoredTextAnswer.js.map +0 -1
- package/dist/src/components/results/Section.d.ts +0 -4
- package/dist/src/components/results/Section.d.ts.map +0 -1
- package/dist/src/components/results/Section.js +0 -11
- package/dist/src/components/results/Section.js.map +0 -1
- package/dist/src/components/results/SingleLineAnswer.d.ts +0 -12
- package/dist/src/components/results/SingleLineAnswer.d.ts.map +0 -1
- package/dist/src/components/results/SingleLineAnswer.js +0 -26
- package/dist/src/components/results/SingleLineAnswer.js.map +0 -1
- package/dist/src/components/results/TextAnswer.d.ts +0 -7
- package/dist/src/components/results/TextAnswer.d.ts.map +0 -1
- package/dist/src/components/results/TextAnswer.js +0 -48
- package/dist/src/components/results/TextAnswer.js.map +0 -1
- package/dist/src/components/results/internal/AnnotationList.d.ts +0 -5
- package/dist/src/components/results/internal/AnnotationList.d.ts.map +0 -1
- package/dist/src/components/results/internal/AnnotationList.js +0 -32
- package/dist/src/components/results/internal/AnnotationList.js.map +0 -1
- package/dist/src/components/results/internal/QuestionAutoScore.d.ts +0 -11
- package/dist/src/components/results/internal/QuestionAutoScore.d.ts.map +0 -1
- package/dist/src/components/results/internal/QuestionAutoScore.js +0 -17
- package/dist/src/components/results/internal/QuestionAutoScore.js.map +0 -1
- package/dist/src/components/results/internal/QuestionManualScore.d.ts +0 -13
- package/dist/src/components/results/internal/QuestionManualScore.d.ts.map +0 -1
- package/dist/src/components/results/internal/QuestionManualScore.js +0 -66
- package/dist/src/components/results/internal/QuestionManualScore.js.map +0 -1
- package/dist/src/components/results/internal/QuestionScoresContainer.d.ts +0 -11
- package/dist/src/components/results/internal/QuestionScoresContainer.d.ts.map +0 -1
- package/dist/src/components/results/internal/QuestionScoresContainer.js +0 -27
- package/dist/src/components/results/internal/QuestionScoresContainer.js.map +0 -1
- package/dist/src/components/results/isExamineExamPageHook.d.ts +0 -2
- package/dist/src/components/results/isExamineExamPageHook.d.ts.map +0 -1
- package/dist/src/components/results/isExamineExamPageHook.js +0 -7
- package/dist/src/components/results/isExamineExamPageHook.js.map +0 -1
- package/dist/src/components/shared/AnnotatableText.d.ts +0 -5
- package/dist/src/components/shared/AnnotatableText.d.ts.map +0 -1
- package/dist/src/components/shared/AnnotatableText.js +0 -73
- package/dist/src/components/shared/AnnotatableText.js.map +0 -1
- package/dist/src/components/shared/AnnotationLists.d.ts +0 -13
- package/dist/src/components/shared/AnnotationLists.d.ts.map +0 -1
- package/dist/src/components/shared/AnnotationLists.js +0 -17
- package/dist/src/components/shared/AnnotationLists.js.map +0 -1
- package/dist/src/components/shared/AnnotationPopup.d.ts +0 -3
- package/dist/src/components/shared/AnnotationPopup.d.ts.map +0 -1
- package/dist/src/components/shared/AnnotationPopup.js +0 -74
- package/dist/src/components/shared/AnnotationPopup.js.map +0 -1
- package/dist/src/components/shared/AnswerIndicator.d.ts +0 -12
- package/dist/src/components/shared/AnswerIndicator.d.ts.map +0 -1
- package/dist/src/components/shared/AnswerIndicator.js +0 -27
- package/dist/src/components/shared/AnswerIndicator.js.map +0 -1
- package/dist/src/components/shared/AnswerLengthInfo.d.ts +0 -7
- package/dist/src/components/shared/AnswerLengthInfo.d.ts.map +0 -1
- package/dist/src/components/shared/AnswerLengthInfo.js +0 -11
- package/dist/src/components/shared/AnswerLengthInfo.js.map +0 -1
- package/dist/src/components/shared/AttachmentLink.d.ts +0 -5
- package/dist/src/components/shared/AttachmentLink.d.ts.map +0 -1
- package/dist/src/components/shared/AttachmentLink.js +0 -28
- package/dist/src/components/shared/AttachmentLink.js.map +0 -1
- package/dist/src/components/shared/AttachmentLinks.d.ts +0 -5
- package/dist/src/components/shared/AttachmentLinks.d.ts.map +0 -1
- package/dist/src/components/shared/AttachmentLinks.js +0 -58
- package/dist/src/components/shared/AttachmentLinks.js.map +0 -1
- package/dist/src/components/shared/Audio.d.ts +0 -6
- package/dist/src/components/shared/Audio.d.ts.map +0 -1
- package/dist/src/components/shared/Audio.js +0 -31
- package/dist/src/components/shared/Audio.js.map +0 -1
- package/dist/src/components/shared/AudioGroup.d.ts +0 -6
- package/dist/src/components/shared/AudioGroup.d.ts.map +0 -1
- package/dist/src/components/shared/AudioGroup.js +0 -9
- package/dist/src/components/shared/AudioGroup.js.map +0 -1
- package/dist/src/components/shared/AudioTest.d.ts +0 -6
- package/dist/src/components/shared/AudioTest.d.ts.map +0 -1
- package/dist/src/components/shared/AudioTest.js +0 -34
- package/dist/src/components/shared/AudioTest.js.map +0 -1
- package/dist/src/components/shared/ExamTranslation.d.ts +0 -6
- package/dist/src/components/shared/ExamTranslation.d.ts.map +0 -1
- package/dist/src/components/shared/ExamTranslation.js +0 -9
- package/dist/src/components/shared/ExamTranslation.js.map +0 -1
- package/dist/src/components/shared/File.d.ts +0 -6
- package/dist/src/components/shared/File.d.ts.map +0 -1
- package/dist/src/components/shared/File.js +0 -15
- package/dist/src/components/shared/File.js.map +0 -1
- package/dist/src/components/shared/Footer.d.ts +0 -5
- package/dist/src/components/shared/Footer.d.ts.map +0 -1
- package/dist/src/components/shared/Footer.js +0 -3
- package/dist/src/components/shared/Footer.js.map +0 -1
- package/dist/src/components/shared/Formula.d.ts +0 -6
- package/dist/src/components/shared/Formula.d.ts.map +0 -1
- package/dist/src/components/shared/Formula.js +0 -13
- package/dist/src/components/shared/Formula.js.map +0 -1
- package/dist/src/components/shared/Image.d.ts +0 -6
- package/dist/src/components/shared/Image.d.ts.map +0 -1
- package/dist/src/components/shared/Image.js +0 -30
- package/dist/src/components/shared/Image.js.map +0 -1
- package/dist/src/components/shared/ImageOverlay.d.ts +0 -6
- package/dist/src/components/shared/ImageOverlay.d.ts.map +0 -1
- package/dist/src/components/shared/ImageOverlay.js +0 -43
- package/dist/src/components/shared/ImageOverlay.js.map +0 -1
- package/dist/src/components/shared/QuestionNumber.d.ts +0 -4
- package/dist/src/components/shared/QuestionNumber.d.ts.map +0 -1
- package/dist/src/components/shared/QuestionNumber.js +0 -12
- package/dist/src/components/shared/QuestionNumber.js.map +0 -1
- package/dist/src/components/shared/Reference.d.ts +0 -6
- package/dist/src/components/shared/Reference.d.ts.map +0 -1
- package/dist/src/components/shared/Reference.js +0 -72
- package/dist/src/components/shared/Reference.js.map +0 -1
- package/dist/src/components/shared/References.d.ts +0 -6
- package/dist/src/components/shared/References.d.ts.map +0 -1
- package/dist/src/components/shared/References.js +0 -26
- package/dist/src/components/shared/References.js.map +0 -1
- package/dist/src/components/shared/Score.d.ts +0 -8
- package/dist/src/components/shared/Score.d.ts.map +0 -1
- package/dist/src/components/shared/Score.js +0 -13
- package/dist/src/components/shared/Score.js.map +0 -1
- package/dist/src/components/shared/TOCQuestion.d.ts +0 -4
- package/dist/src/components/shared/TOCQuestion.d.ts.map +0 -1
- package/dist/src/components/shared/TOCQuestion.js +0 -77
- package/dist/src/components/shared/TOCQuestion.js.map +0 -1
- package/dist/src/components/shared/TOCSection.d.ts +0 -7
- package/dist/src/components/shared/TOCSection.d.ts.map +0 -1
- package/dist/src/components/shared/TOCSection.js +0 -15
- package/dist/src/components/shared/TOCSection.js.map +0 -1
- package/dist/src/components/shared/TOCSectionTitle.d.ts +0 -4
- package/dist/src/components/shared/TOCSectionTitle.d.ts.map +0 -1
- package/dist/src/components/shared/TOCSectionTitle.js +0 -34
- package/dist/src/components/shared/TOCSectionTitle.js.map +0 -1
- package/dist/src/components/shared/TableOfContents.d.ts +0 -8
- package/dist/src/components/shared/TableOfContents.d.ts.map +0 -1
- package/dist/src/components/shared/TableOfContents.js +0 -61
- package/dist/src/components/shared/TableOfContents.js.map +0 -1
- package/dist/src/components/shared/VersionNumber.d.ts +0 -3
- package/dist/src/components/shared/VersionNumber.d.ts.map +0 -1
- package/dist/src/components/shared/VersionNumber.js +0 -10
- package/dist/src/components/shared/VersionNumber.js.map +0 -1
- package/dist/src/components/shared/Video.d.ts +0 -6
- package/dist/src/components/shared/Video.d.ts.map +0 -1
- package/dist/src/components/shared/Video.js +0 -22
- package/dist/src/components/shared/Video.js.map +0 -1
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts +0 -8
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts.map +0 -1
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.js +0 -4
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.js.map +0 -1
- package/dist/src/components/shared/internal/AudioPlaybackError.d.ts +0 -8
- package/dist/src/components/shared/internal/AudioPlaybackError.d.ts.map +0 -1
- package/dist/src/components/shared/internal/AudioPlaybackError.js +0 -17
- package/dist/src/components/shared/internal/AudioPlaybackError.js.map +0 -1
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts +0 -18
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts.map +0 -1
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.js +0 -21
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.js.map +0 -1
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts +0 -12
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts.map +0 -1
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.js +0 -46
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.js.map +0 -1
- package/dist/src/components/surround.d.ts +0 -8
- package/dist/src/components/surround.d.ts.map +0 -1
- package/dist/src/components/surround.js +0 -19
- package/dist/src/components/surround.js.map +0 -1
- package/dist/src/createRenderChildNodes.d.ts +0 -17
- package/dist/src/createRenderChildNodes.d.ts.map +0 -1
- package/dist/src/createRenderChildNodes.js +0 -64
- package/dist/src/createRenderChildNodes.js.map +0 -1
- package/dist/src/dom-utils.d.ts +0 -20
- package/dist/src/dom-utils.d.ts.map +0 -1
- package/dist/src/dom-utils.js +0 -164
- package/dist/src/dom-utils.js.map +0 -1
- package/dist/src/fonts.d.ts +0 -5
- package/dist/src/fonts.d.ts.map +0 -1
- package/dist/src/fonts.js +0 -16
- package/dist/src/fonts.js.map +0 -1
- package/dist/src/formatting.d.ts +0 -2
- package/dist/src/formatting.d.ts.map +0 -1
- package/dist/src/formatting.js +0 -4
- package/dist/src/formatting.js.map +0 -1
- package/dist/src/getDisplayName.d.ts +0 -4
- package/dist/src/getDisplayName.d.ts.map +0 -1
- package/dist/src/getDisplayName.js +0 -5
- package/dist/src/getDisplayName.js.map +0 -1
- package/dist/src/i18n/A_E.d.ts +0 -3
- package/dist/src/i18n/A_E.d.ts.map +0 -1
- package/dist/src/i18n/A_E.js +0 -8
- package/dist/src/i18n/A_E.js.map +0 -1
- package/dist/src/i18n/BA.d.ts +0 -3
- package/dist/src/i18n/BA.d.ts.map +0 -1
- package/dist/src/i18n/BA.js +0 -11
- package/dist/src/i18n/BA.js.map +0 -1
- package/dist/src/i18n/CA.d.ts +0 -3
- package/dist/src/i18n/CA.d.ts.map +0 -1
- package/dist/src/i18n/CA.js +0 -11
- package/dist/src/i18n/CA.js.map +0 -1
- package/dist/src/i18n/EA.d.ts +0 -3
- package/dist/src/i18n/EA.d.ts.map +0 -1
- package/dist/src/i18n/EA.js +0 -16
- package/dist/src/i18n/EA.js.map +0 -1
- package/dist/src/i18n/FA.d.ts +0 -3
- package/dist/src/i18n/FA.d.ts.map +0 -1
- package/dist/src/i18n/FA.js +0 -17
- package/dist/src/i18n/FA.js.map +0 -1
- package/dist/src/i18n/GC.d.ts +0 -3
- package/dist/src/i18n/GC.d.ts.map +0 -1
- package/dist/src/i18n/GC.js +0 -16
- package/dist/src/i18n/GC.js.map +0 -1
- package/dist/src/i18n/I.d.ts +0 -3
- package/dist/src/i18n/I.d.ts.map +0 -1
- package/dist/src/i18n/I.js +0 -21
- package/dist/src/i18n/I.js.map +0 -1
- package/dist/src/i18n/M.d.ts +0 -3
- package/dist/src/i18n/M.d.ts.map +0 -1
- package/dist/src/i18n/M.js +0 -4
- package/dist/src/i18n/M.js.map +0 -1
- package/dist/src/i18n/O_E.d.ts +0 -3
- package/dist/src/i18n/O_E.d.ts.map +0 -1
- package/dist/src/i18n/O_E.js +0 -7
- package/dist/src/i18n/O_E.js.map +0 -1
- package/dist/src/i18n/PA.d.ts +0 -3
- package/dist/src/i18n/PA.d.ts.map +0 -1
- package/dist/src/i18n/PA.js +0 -16
- package/dist/src/i18n/PA.js.map +0 -1
- package/dist/src/i18n/SA.d.ts +0 -3
- package/dist/src/i18n/SA.d.ts.map +0 -1
- package/dist/src/i18n/SA.js +0 -16
- package/dist/src/i18n/SA.js.map +0 -1
- package/dist/src/i18n/TC.d.ts +0 -3
- package/dist/src/i18n/TC.d.ts.map +0 -1
- package/dist/src/i18n/TC.js +0 -16
- package/dist/src/i18n/TC.js.map +0 -1
- package/dist/src/i18n/VA.d.ts +0 -3
- package/dist/src/i18n/VA.d.ts.map +0 -1
- package/dist/src/i18n/VA.js +0 -16
- package/dist/src/i18n/VA.js.map +0 -1
- package/dist/src/i18n/Z.d.ts +0 -3
- package/dist/src/i18n/Z.d.ts.map +0 -1
- package/dist/src/i18n/Z.js +0 -22
- package/dist/src/i18n/Z.js.map +0 -1
- package/dist/src/i18n/fi-FI.d.ts +0 -192
- package/dist/src/i18n/fi-FI.d.ts.map +0 -1
- package/dist/src/i18n/fi-FI.js +0 -182
- package/dist/src/i18n/fi-FI.js.map +0 -1
- package/dist/src/i18n/index.d.ts +0 -20
- package/dist/src/i18n/index.d.ts.map +0 -1
- package/dist/src/i18n/index.js +0 -128
- package/dist/src/i18n/index.js.map +0 -1
- package/dist/src/i18n/sv-FI.d.ts +0 -3
- package/dist/src/i18n/sv-FI.d.ts.map +0 -1
- package/dist/src/i18n/sv-FI.js +0 -181
- package/dist/src/i18n/sv-FI.js.map +0 -1
- package/dist/src/ids.d.ts +0 -14
- package/dist/src/ids.d.ts.map +0 -1
- package/dist/src/ids.js +0 -28
- package/dist/src/ids.js.map +0 -1
- package/dist/src/index.d.ts +0 -19
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -12
- package/dist/src/index.js.map +0 -1
- package/dist/src/parser/parseExam.d.ts +0 -2
- package/dist/src/parser/parseExam.d.ts.map +0 -1
- package/dist/src/parser/parseExam.js +0 -54
- package/dist/src/parser/parseExam.js.map +0 -1
- package/dist/src/parser/parseExamStructure.d.ts +0 -58
- package/dist/src/parser/parseExamStructure.d.ts.map +0 -1
- package/dist/src/parser/parseExamStructure.js +0 -40
- package/dist/src/parser/parseExamStructure.js.map +0 -1
- package/dist/src/renderAnnotations.d.ts +0 -7
- package/dist/src/renderAnnotations.d.ts.map +0 -1
- package/dist/src/renderAnnotations.js +0 -193
- package/dist/src/renderAnnotations.js.map +0 -1
- package/dist/src/scrollToHash.d.ts +0 -2
- package/dist/src/scrollToHash.d.ts.map +0 -1
- package/dist/src/scrollToHash.js +0 -24
- package/dist/src/scrollToHash.js.map +0 -1
- package/dist/src/shortDisplayNumber.d.ts +0 -2
- package/dist/src/shortDisplayNumber.d.ts.map +0 -1
- package/dist/src/shortDisplayNumber.js +0 -5
- package/dist/src/shortDisplayNumber.js.map +0 -1
- package/dist/src/store/answers/actions.d.ts +0 -33
- package/dist/src/store/answers/actions.d.ts.map +0 -1
- package/dist/src/store/answers/actions.js +0 -9
- package/dist/src/store/answers/actions.js.map +0 -1
- package/dist/src/store/answers/reducer.d.ts +0 -39
- package/dist/src/store/answers/reducer.d.ts.map +0 -1
- package/dist/src/store/answers/reducer.js +0 -55
- package/dist/src/store/answers/reducer.js.map +0 -1
- package/dist/src/store/answers/sagas.d.ts +0 -8
- package/dist/src/store/answers/sagas.d.ts.map +0 -1
- package/dist/src/store/answers/sagas.js +0 -60
- package/dist/src/store/answers/sagas.js.map +0 -1
- package/dist/src/store/audio/actions.d.ts +0 -29
- package/dist/src/store/audio/actions.d.ts.map +0 -1
- package/dist/src/store/audio/actions.js +0 -9
- package/dist/src/store/audio/actions.js.map +0 -1
- package/dist/src/store/audio/reducer.d.ts +0 -27
- package/dist/src/store/audio/reducer.d.ts.map +0 -1
- package/dist/src/store/audio/reducer.js +0 -55
- package/dist/src/store/audio/reducer.js.map +0 -1
- package/dist/src/store/audio/sagas.d.ts +0 -3
- package/dist/src/store/audio/sagas.d.ts.map +0 -1
- package/dist/src/store/audio/sagas.js +0 -68
- package/dist/src/store/audio/sagas.js.map +0 -1
- package/dist/src/store/cas/actions.d.ts +0 -19
- package/dist/src/store/cas/actions.d.ts.map +0 -1
- package/dist/src/store/cas/actions.js +0 -9
- package/dist/src/store/cas/actions.js.map +0 -1
- package/dist/src/store/cas/reducer.d.ts +0 -14
- package/dist/src/store/cas/reducer.d.ts.map +0 -1
- package/dist/src/store/cas/reducer.js +0 -24
- package/dist/src/store/cas/reducer.js.map +0 -1
- package/dist/src/store/cas/sagas.d.ts +0 -18
- package/dist/src/store/cas/sagas.d.ts.map +0 -1
- package/dist/src/store/cas/sagas.js +0 -36
- package/dist/src/store/cas/sagas.js.map +0 -1
- package/dist/src/store/countdown.d.ts +0 -4
- package/dist/src/store/countdown.d.ts.map +0 -1
- package/dist/src/store/countdown.js +0 -33
- package/dist/src/store/countdown.js.map +0 -1
- package/dist/src/store/index.d.ts +0 -78
- package/dist/src/store/index.d.ts.map +0 -1
- package/dist/src/store/index.js +0 -53
- package/dist/src/store/index.js.map +0 -1
- package/dist/src/store/selectors.d.ts +0 -9
- package/dist/src/store/selectors.d.ts.map +0 -1
- package/dist/src/store/selectors.js +0 -35
- package/dist/src/store/selectors.js.map +0 -1
- package/dist/src/types/ExamAnswer.d.ts +0 -22
- package/dist/src/types/ExamAnswer.d.ts.map +0 -1
- package/dist/src/types/ExamAnswer.js +0 -2
- package/dist/src/types/ExamAnswer.js.map +0 -1
- package/dist/src/types/ExamServerAPI.d.ts +0 -78
- package/dist/src/types/ExamServerAPI.d.ts.map +0 -1
- package/dist/src/types/ExamServerAPI.js +0 -2
- package/dist/src/types/ExamServerAPI.js.map +0 -1
- package/dist/src/types/GradingStructure.d.ts +0 -40
- package/dist/src/types/GradingStructure.d.ts.map +0 -1
- package/dist/src/types/GradingStructure.js +0 -2
- package/dist/src/types/GradingStructure.js.map +0 -1
- package/dist/src/types/Score.d.ts +0 -92
- package/dist/src/types/Score.d.ts.map +0 -1
- package/dist/src/types/Score.js +0 -2
- package/dist/src/types/Score.js.map +0 -1
- package/dist/src/url.d.ts +0 -7
- package/dist/src/url.d.ts.map +0 -1
- package/dist/src/url.js +0 -12
- package/dist/src/url.js.map +0 -1
- package/dist/src/useCached.d.ts +0 -3
- package/dist/src/useCached.d.ts.map +0 -1
- package/dist/src/useCached.js +0 -6
- package/dist/src/useCached.js.map +0 -1
- package/dist/src/utils.d.ts +0 -15
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/utils.js +0 -35
- package/dist/src/utils.js.map +0 -1
- package/dist/src/validateAnswers.d.ts +0 -16
- package/dist/src/validateAnswers.d.ts.map +0 -1
- package/dist/src/validateAnswers.js +0 -89
- package/dist/src/validateAnswers.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,306 +0,0 @@
|
|
1
|
-
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
2
|
-
import { annotationFromMousePosition, getOverlappingMessages, hasTextSelectedInAnswerText, imageAnnotationMouseDownInfo, isDesktopVersion, mergeAnnotation, preventDefaults, showAndPositionElement, textAnnotationFromRange, toggle } from './editAnnotations';
|
3
|
-
import { renderAnnotations, renderImageAnnotationByImage, updateImageAnnotationMarkSize, wrapAllImages } from '../../renderAnnotations';
|
4
|
-
import GradingAnswerAnnotationList from './GradingAnswerAnnotationList';
|
5
|
-
import { changeLanguage, initI18n, useExamTranslation } from '../../i18n';
|
6
|
-
import { updateLargeImageWarnings } from './largeImageDetector';
|
7
|
-
import { I18nextProvider } from 'react-i18next';
|
8
|
-
import { useCached } from '../../useCached';
|
9
|
-
import { AnswerCharacterCounter } from './AnswerCharacterCounter';
|
10
|
-
export function GradingAnswer(props) {
|
11
|
-
const i18n = useCached(() => initI18n(props.language));
|
12
|
-
useEffect(changeLanguage(i18n, props.language));
|
13
|
-
return (React.createElement(I18nextProvider, { i18n: i18n },
|
14
|
-
React.createElement(GradingAnswerWithTranslations, { ...props })));
|
15
|
-
}
|
16
|
-
function GradingAnswerWithTranslations({ answer: { type, characterCount, value }, language, isReadOnly, gradingRole, annotations, saveAnnotations, maxLength, popupTopMargin = 25 }) {
|
17
|
-
const answerRef = useRef(null);
|
18
|
-
const popupRef = useRef(null);
|
19
|
-
const messageRef = useRef(null);
|
20
|
-
const tooltipRef = useRef(null);
|
21
|
-
let newAnnotationObject;
|
22
|
-
let savedAnnotations;
|
23
|
-
const imgAnnotationState = { start: undefined, element: undefined, img: undefined };
|
24
|
-
let isEditAnnotationPopupVisible = false;
|
25
|
-
let annotationDataForTooltip;
|
26
|
-
let annotationPositionForPopup;
|
27
|
-
let hideTooltipTimeout;
|
28
|
-
let windowResizeTimeout;
|
29
|
-
let selectionChangeTimeout;
|
30
|
-
const [loadedCount, setLoadedCount] = useState(0);
|
31
|
-
const [totalImages, setTotalImages] = useState(0);
|
32
|
-
useEffect(() => {
|
33
|
-
const nonEmptyImages = document.querySelectorAll('img[src]');
|
34
|
-
setLoadedCount(0);
|
35
|
-
setTotalImages(nonEmptyImages.length);
|
36
|
-
function checkAllImagesLoaded() {
|
37
|
-
setLoadedCount(prevCount => prevCount + 1);
|
38
|
-
}
|
39
|
-
nonEmptyImages.forEach(img => {
|
40
|
-
img.addEventListener('load', checkAllImagesLoaded);
|
41
|
-
});
|
42
|
-
return () => {
|
43
|
-
nonEmptyImages.forEach(img => {
|
44
|
-
img.removeEventListener('load', checkAllImagesLoaded);
|
45
|
-
});
|
46
|
-
};
|
47
|
-
}, [value]);
|
48
|
-
useLayoutEffect(() => {
|
49
|
-
if (answerRef.current && tooltipRef.current && popupRef.current) {
|
50
|
-
savedAnnotations = annotations;
|
51
|
-
toggle(tooltipRef.current, false);
|
52
|
-
toggle(popupRef.current, false);
|
53
|
-
renderAnswerWithAnnotations(savedAnnotations);
|
54
|
-
answerRef.current.setAttribute('lang', language);
|
55
|
-
document.addEventListener('selectionchange', onSelectionChangeForMobileDevices);
|
56
|
-
}
|
57
|
-
window.onresize = () => {
|
58
|
-
clearTimeout(windowResizeTimeout);
|
59
|
-
windowResizeTimeout = setTimeout(() => updateLargeImageWarnings(answerRef.current), 1000);
|
60
|
-
};
|
61
|
-
return () => {
|
62
|
-
window.removeEventListener('keydown', onKeyUpInAnnotationPopup);
|
63
|
-
window.removeEventListener('mouseup', onWindowMouseUpAfterAnswerMouseDown);
|
64
|
-
window.removeEventListener('mousemove', onMouseMoveForImageAnnotation);
|
65
|
-
};
|
66
|
-
});
|
67
|
-
const { t } = useExamTranslation();
|
68
|
-
return (React.createElement("div", { onClick: e => onAnnotationOrListClick(e), className: "e-grading-answer-wrapper" },
|
69
|
-
totalImages !== 0 && loadedCount !== totalImages && (React.createElement("div", { className: "loading-images" },
|
70
|
-
React.createElement("span", null,
|
71
|
-
t('grading.loading-images'),
|
72
|
-
" (",
|
73
|
-
loadedCount,
|
74
|
-
"/",
|
75
|
-
totalImages,
|
76
|
-
")"))),
|
77
|
-
React.createElement("div", { className: "e-grading-answer e-line-height-l e-mrg-b-1", ref: answerRef, onMouseDown: e => onAnswerMouseDown(e), onMouseOver: e => onMouseOverAnnotation(e.target) }),
|
78
|
-
React.createElement(AnswerCharacterCounter, { characterCount: characterCount, maxLength: maxLength }),
|
79
|
-
React.createElement(GradingAnswerAnnotationList, { censoring: annotations.censoring, pregrading: annotations.pregrading, singleGrading: gradingRole === 'pregrading' }),
|
80
|
-
React.createElement("form", { style: { display: 'none' }, ref: popupRef, className: "e-grading-answer-popup e-grading-answer-add-annotation", onSubmit: e => onSubmitAnnotation(e) },
|
81
|
-
React.createElement("input", { onFocus: () => onNewAnnotationMessageFocus(), name: "message", className: "e-grading-answer-add-annotation-text", type: "text", ref: messageRef }),
|
82
|
-
React.createElement("button", { className: "e-grading-answer-add-annotation-button", type: "submit", "data-i18n": "arpa.annotate" }, t('grading.annotate')),
|
83
|
-
React.createElement("button", { className: "e-grading-answer-close-popup", onClick: e => {
|
84
|
-
e.preventDefault();
|
85
|
-
hideAnnotationPopupAndRefresh();
|
86
|
-
} }, "\u00D7")),
|
87
|
-
React.createElement("div", { style: { display: 'none' }, ref: tooltipRef, className: "e-grading-answer-tooltip e-grading-answer-popup", onMouseOver: onMouseOverTooltip, onMouseOut: hideTooltip },
|
88
|
-
React.createElement("span", { onClick: e => editExistingAnnotation(e), className: "e-grading-answer-tooltip-label" }),
|
89
|
-
React.createElement("button", { onClick: e => removeAnnotation(e), className: "e-grading-answer-tooltip-remove" }, "\u00D7"))));
|
90
|
-
function onAnnotationOrListClick(e) {
|
91
|
-
var _a;
|
92
|
-
const element = e.target;
|
93
|
-
if (element instanceof HTMLElement) {
|
94
|
-
if (element.tagName === 'MARK') {
|
95
|
-
if (!imgAnnotationState.element) {
|
96
|
-
showTooltip(element);
|
97
|
-
}
|
98
|
-
}
|
99
|
-
else if (element.tagName === 'LI') {
|
100
|
-
const index = (_a = element.dataset.listNumber) === null || _a === void 0 ? void 0 : _a.replace(')', '');
|
101
|
-
const mark = document.querySelector(`.e-annotation[data-index="${index}"]`);
|
102
|
-
showTooltip(mark);
|
103
|
-
mark.scrollIntoView({ block: 'center', behavior: 'smooth' });
|
104
|
-
}
|
105
|
-
else if (annotationDataForTooltip) {
|
106
|
-
hideTooltip();
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
110
|
-
function editExistingAnnotation(e) {
|
111
|
-
if (e.target.closest('.editable')) {
|
112
|
-
toggle(tooltipRef.current, false);
|
113
|
-
showExistingAnnotationPopup(annotationPositionForPopup);
|
114
|
-
}
|
115
|
-
}
|
116
|
-
function removeAnnotation(e) {
|
117
|
-
e.preventDefault();
|
118
|
-
hideTooltip();
|
119
|
-
savedAnnotations[annotationDataForTooltip.role].splice(annotationDataForTooltip.index, 1);
|
120
|
-
annotationDataForTooltip = undefined;
|
121
|
-
saveAnnotations(savedAnnotations);
|
122
|
-
}
|
123
|
-
function hideTooltip() {
|
124
|
-
hideTooltipTimeout = setTimeout(() => {
|
125
|
-
toggle(tooltipRef.current, false);
|
126
|
-
}, 400);
|
127
|
-
}
|
128
|
-
function onMouseOverTooltip() {
|
129
|
-
clearTimeout(hideTooltipTimeout);
|
130
|
-
}
|
131
|
-
function onMouseOutFromTooltip(e) {
|
132
|
-
const target = e.target;
|
133
|
-
if (target.tagName === 'MARK') {
|
134
|
-
clearTimeout(hideTooltipTimeout);
|
135
|
-
hideTooltip();
|
136
|
-
}
|
137
|
-
answerRef.current.removeEventListener('mouseout', onMouseOutFromTooltip);
|
138
|
-
}
|
139
|
-
function showTooltip(target) {
|
140
|
-
clearTimeout(hideTooltipTimeout);
|
141
|
-
const tooltip = tooltipRef.current;
|
142
|
-
const { type, listIndex, message } = target.dataset;
|
143
|
-
tooltip.classList.toggle('editable', !isReadOnly && type === gradingRole);
|
144
|
-
annotationPositionForPopup = target.getBoundingClientRect();
|
145
|
-
showAndPositionElement(annotationPositionForPopup, answerRef.current, tooltip, popupTopMargin);
|
146
|
-
tooltip.querySelector('.e-grading-answer-tooltip-label').textContent = message || '–';
|
147
|
-
annotationDataForTooltip = { index: Number(listIndex), role: type, message: message || '' };
|
148
|
-
answerRef.current.addEventListener('mouseout', onMouseOutFromTooltip);
|
149
|
-
}
|
150
|
-
function onMouseOverAnnotation(target) {
|
151
|
-
const markElement = target.closest('mark');
|
152
|
-
if (markElement &&
|
153
|
-
!isEditAnnotationPopupVisible &&
|
154
|
-
(!hasTextSelectedInAnswerText() || isReadOnly) &&
|
155
|
-
!imgAnnotationState.element) {
|
156
|
-
showTooltip(markElement);
|
157
|
-
}
|
158
|
-
}
|
159
|
-
function showAnnotationPopup(rect, message) {
|
160
|
-
annotationDataForTooltip = undefined;
|
161
|
-
setupAnnotationPopup(rect, message);
|
162
|
-
}
|
163
|
-
function showExistingAnnotationPopup(rect) {
|
164
|
-
setupAnnotationPopup(rect, annotationDataForTooltip.message);
|
165
|
-
}
|
166
|
-
function setupAnnotationPopup(rect, message) {
|
167
|
-
// Could be active from previous popup
|
168
|
-
window.removeEventListener('keydown', onKeyUpInAnnotationPopup);
|
169
|
-
showAndPositionElement(rect, answerRef.current, popupRef.current, popupTopMargin);
|
170
|
-
const inputElement = messageRef.current;
|
171
|
-
inputElement.value = message;
|
172
|
-
inputElement.focus();
|
173
|
-
isEditAnnotationPopupVisible = true;
|
174
|
-
window.addEventListener('keydown', onKeyUpInAnnotationPopup);
|
175
|
-
}
|
176
|
-
function hideAnnotationPopupAndRefresh() {
|
177
|
-
newAnnotationObject = undefined;
|
178
|
-
imgAnnotationState.element = undefined;
|
179
|
-
imgAnnotationState.img = undefined;
|
180
|
-
isEditAnnotationPopupVisible = false;
|
181
|
-
window.removeEventListener('keydown', onKeyUpInAnnotationPopup);
|
182
|
-
toggle(popupRef.current, false);
|
183
|
-
renderAnswerWithAnnotations(savedAnnotations);
|
184
|
-
}
|
185
|
-
function onAnswerMouseDown(e) {
|
186
|
-
var _a;
|
187
|
-
// Do annotations only with left mouse buttons and when permitted
|
188
|
-
if (isReadOnly || e.button !== 0) {
|
189
|
-
return;
|
190
|
-
}
|
191
|
-
window.addEventListener('mouseup', onWindowMouseUpAfterAnswerMouseDown);
|
192
|
-
const target = e.target;
|
193
|
-
const img = ((_a = target.closest('.e-annotation-wrapper')) === null || _a === void 0 ? void 0 : _a.querySelector('img')) || undefined;
|
194
|
-
if (!img) {
|
195
|
-
return;
|
196
|
-
}
|
197
|
-
img.addEventListener('dragstart', preventDefaults); // Prevent dragging images when marking image annotations
|
198
|
-
imgAnnotationState.start = imageAnnotationMouseDownInfo(e, img);
|
199
|
-
imgAnnotationState.img = img;
|
200
|
-
window.addEventListener('mousemove', onMouseMoveForImageAnnotation);
|
201
|
-
}
|
202
|
-
function onWindowMouseUpAfterAnswerMouseDown() {
|
203
|
-
var _a, _b;
|
204
|
-
(_a = imgAnnotationState.img) === null || _a === void 0 ? void 0 : _a.removeEventListener('dragstart', preventDefaults);
|
205
|
-
window.removeEventListener('mousemove', onMouseMoveForImageAnnotation);
|
206
|
-
window.removeEventListener('mouseup', onWindowMouseUpAfterAnswerMouseDown);
|
207
|
-
// Image annotation is being created since shape exists
|
208
|
-
if (imgAnnotationState.element) {
|
209
|
-
showAnnotationPopup((_b = imgAnnotationState.element) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect(), '');
|
210
|
-
return;
|
211
|
-
}
|
212
|
-
// Text annotation
|
213
|
-
const selection = window.getSelection();
|
214
|
-
if (selection && answerRef.current !== null && hasTextSelectedInAnswerText()) {
|
215
|
-
const range = selection.getRangeAt(0);
|
216
|
-
const position = textAnnotationFromRange(answerRef.current, range);
|
217
|
-
if (!position) {
|
218
|
-
return;
|
219
|
-
}
|
220
|
-
const message = getOverlappingMessages(savedAnnotations[gradingRole], position.startIndex, position.length);
|
221
|
-
newAnnotationObject = { ...position, type: 'text', message };
|
222
|
-
showAnnotationPopup(range.getBoundingClientRect(), message);
|
223
|
-
const newAnnotations = { ...savedAnnotations };
|
224
|
-
newAnnotations[gradingRole] = mergeAnnotation(answerRef.current, newAnnotationObject, savedAnnotations[gradingRole]);
|
225
|
-
renderAnswerWithAnnotations(newAnnotations);
|
226
|
-
}
|
227
|
-
}
|
228
|
-
// Only used for touch devices
|
229
|
-
function onNewAnnotationMessageFocus() {
|
230
|
-
if (isDesktopVersion()) {
|
231
|
-
return;
|
232
|
-
}
|
233
|
-
if (answerRef.current) {
|
234
|
-
const newAnnotations = { ...savedAnnotations };
|
235
|
-
newAnnotations[gradingRole] = mergeAnnotation(answerRef.current, newAnnotationObject, savedAnnotations[gradingRole]);
|
236
|
-
renderAnswerWithAnnotations(newAnnotations);
|
237
|
-
}
|
238
|
-
}
|
239
|
-
function onSelectionChangeForMobileDevices() {
|
240
|
-
if (isDesktopVersion()) {
|
241
|
-
return;
|
242
|
-
}
|
243
|
-
clearTimeout(selectionChangeTimeout);
|
244
|
-
selectionChangeTimeout = setTimeout(onSelectionChangeAfterThrottle, 500);
|
245
|
-
}
|
246
|
-
function onSelectionChangeAfterThrottle() {
|
247
|
-
const selection = window.getSelection();
|
248
|
-
if (selection && answerRef.current !== null && hasTextSelectedInAnswerText()) {
|
249
|
-
const range = selection.getRangeAt(0);
|
250
|
-
const position = textAnnotationFromRange(answerRef.current, range);
|
251
|
-
if (!position) {
|
252
|
-
return;
|
253
|
-
}
|
254
|
-
const message = getOverlappingMessages(savedAnnotations[gradingRole], position.startIndex, position.length);
|
255
|
-
isEditAnnotationPopupVisible = true;
|
256
|
-
const inputElement = messageRef.current;
|
257
|
-
inputElement.value = message;
|
258
|
-
showAndPositionElement(range.getBoundingClientRect(), answerRef.current, popupRef.current, popupTopMargin);
|
259
|
-
newAnnotationObject = { ...position, type: 'text', message };
|
260
|
-
}
|
261
|
-
}
|
262
|
-
function onMouseMoveForImageAnnotation(e) {
|
263
|
-
preventDefaults(e);
|
264
|
-
newAnnotationObject = annotationFromMousePosition(e, imgAnnotationState.start);
|
265
|
-
// Create shape on first mouse move and resize after that
|
266
|
-
if (imgAnnotationState.element) {
|
267
|
-
updateImageAnnotationMarkSize(imgAnnotationState.element, newAnnotationObject);
|
268
|
-
}
|
269
|
-
else {
|
270
|
-
imgAnnotationState.element = renderImageAnnotationByImage(imgAnnotationState.img, '', newAnnotationObject, gradingRole, 999);
|
271
|
-
}
|
272
|
-
}
|
273
|
-
function renderAnswerWithAnnotations(annotations) {
|
274
|
-
const container = answerRef.current;
|
275
|
-
if (type === 'richText') {
|
276
|
-
container.innerHTML = value;
|
277
|
-
wrapAllImages(container);
|
278
|
-
updateLargeImageWarnings(container);
|
279
|
-
}
|
280
|
-
else {
|
281
|
-
container.textContent = value;
|
282
|
-
}
|
283
|
-
renderAnnotations(container, annotations.pregrading, annotations.censoring, false);
|
284
|
-
}
|
285
|
-
function onSubmitAnnotation(e) {
|
286
|
-
e.preventDefault();
|
287
|
-
const message = messageRef.current.value;
|
288
|
-
if (annotationDataForTooltip) {
|
289
|
-
// Editing existing annotation message by clicking tooltip
|
290
|
-
savedAnnotations[annotationDataForTooltip.role][annotationDataForTooltip.index].message = message;
|
291
|
-
}
|
292
|
-
else {
|
293
|
-
// Saving new annotation
|
294
|
-
savedAnnotations[gradingRole] = mergeAnnotation(answerRef.current, { ...newAnnotationObject, message }, savedAnnotations[gradingRole] || []);
|
295
|
-
}
|
296
|
-
toggle(popupRef.current, false);
|
297
|
-
saveAnnotations(savedAnnotations);
|
298
|
-
}
|
299
|
-
function onKeyUpInAnnotationPopup(e) {
|
300
|
-
if (e.key === 'Escape' && isEditAnnotationPopupVisible) {
|
301
|
-
e.stopPropagation();
|
302
|
-
hideAnnotationPopupAndRefresh();
|
303
|
-
}
|
304
|
-
}
|
305
|
-
}
|
306
|
-
//# sourceMappingURL=GradingAnswer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GradingAnswer.js","sourceRoot":"","sources":["../../../../src/components/grading/GradingAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEtF,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,gBAAgB,EAChB,eAAe,EAEf,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,MAAM,EACP,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,aAAa,EACd,MAAM,yBAAyB,CAAA;AAChC,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAgBjE,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;IACtD,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC/C,OAAO,CACL,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI;QACzB,oBAAC,6BAA6B,OAAK,KAAK,GA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, censoring, singleGrading }: {
|
4
|
-
pregrading: Annotation[];
|
5
|
-
censoring: Annotation[];
|
6
|
-
singleGrading: boolean;
|
7
|
-
}): React.JSX.Element;
|
8
|
-
export default GradingAnswerAnnotationList;
|
9
|
-
//# sourceMappingURL=GradingAnswerAnnotationList.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GradingAnswerAnnotationList.d.ts","sourceRoot":"","sources":["../../../../src/components/grading/GradingAnswerAnnotationList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGxC,iBAAS,2BAA2B,CAAC,EACnC,UAAU,EACV,SAAS,EACT,aAAa,EACd,EAAE;IACD,UAAU,EAAE,UAAU,EAAE,CAAA;IACxB,SAAS,EAAE,UAAU,EAAE,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;CACvB,qBAmBA;AAED,eAAe,2BAA2B,CAAA"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { AnnotationLists } from '../shared/AnnotationLists';
|
3
|
-
function GradingAnswerAnnotationList({ pregrading, censoring, singleGrading }) {
|
4
|
-
const getListOfAnnotations = (annotations, listNumberOffset = 0) => {
|
5
|
-
var _a;
|
6
|
-
return (_a = annotations
|
7
|
-
.filter(a => a.message.length)
|
8
|
-
.map((annotation, i) => {
|
9
|
-
const numbering = `${String(listNumberOffset + i + 1)})`;
|
10
|
-
const message = annotation.message;
|
11
|
-
return { numbering, message };
|
12
|
-
})) !== null && _a !== void 0 ? _a : [];
|
13
|
-
};
|
14
|
-
const pregradingAnnotations = getListOfAnnotations(pregrading);
|
15
|
-
const censoringAnnotations = getListOfAnnotations(censoring, pregradingAnnotations.length);
|
16
|
-
return (React.createElement(AnnotationLists, { pregradingAnnotations: pregradingAnnotations, censoringAnnotations: censoringAnnotations, singleGrading: singleGrading }));
|
17
|
-
}
|
18
|
-
export default GradingAnswerAnnotationList;
|
19
|
-
//# sourceMappingURL=GradingAnswerAnnotationList.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"GradingAnswerAnnotationList.js","sourceRoot":"","sources":["../../../../src/components/grading/GradingAnswerAnnotationList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,SAAS,2BAA2B,CAAC,EACnC,UAAU,EACV,SAAS,EACT,aAAa,EAKd;IACC,MAAM,oBAAoB,GAAG,CAAC,WAAyB,EAAE,gBAAgB,GAAG,CAAC,EAAE,EAAE;;QAC/E,OAAA,MAAA,WAAW;aACR,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;aAC7B,GAAG,CAAC,CAAC,UAAsB,EAAE,CAAS,EAAE,EAAE;YACzC,MAAM,SAAS,GAAG,GAAG,MAAM,CAAC,gBAAgB,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAA;YACxD,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAA;YAClC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAA;QAC/B,CAAC,CAAC,mCAAI,EAAE,CAAA;KAAA,CAAA;IAEZ,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;IAC9D,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,SAAS,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IAC1F,OAAO,CACL,oBAAC,eAAe,IACd,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE,aAAa,GAC5B,CACH,CAAA;AACH,CAAC;AAED,eAAe,2BAA2B,CAAA"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Annotation, ImageAnnotation, TextAnnotation } from '../../types/Score';
|
2
|
-
import React from 'react';
|
3
|
-
export declare function textAnnotationFromRange(answerTextNode: Element, range: Range): {
|
4
|
-
startIndex: number;
|
5
|
-
length: number;
|
6
|
-
} | undefined;
|
7
|
-
export declare function getOverlappingMessages(currentAnnotations: Annotation[], start: number, length: number): string;
|
8
|
-
export declare function getOverlappingMessagesFromTextAnnotations(currentAnnotations: TextAnnotation[], start: number, length: number): string;
|
9
|
-
export declare function toNodeLength(node: Node): number | undefined;
|
10
|
-
export declare function allNodesUnder(el: Node, documentObject?: Document): Node[];
|
11
|
-
export declare function showAndPositionElement(annotationRect: DOMRect, container: HTMLElement, popup: HTMLElement, topMargin: number): void;
|
12
|
-
export declare function hasTextSelectedInAnswerText(): boolean;
|
13
|
-
export declare function selectionHasNothingToUnderline(range: Range): boolean;
|
14
|
-
export declare function mergeAnnotation($answerText: Element, newAnnotation: TextAnnotation, annotations: TextAnnotation[]): Annotation[];
|
15
|
-
export declare function getImageStartIndex($image: Element, $answerText: Element): number | undefined;
|
16
|
-
export type NewImageAnnotation = {
|
17
|
-
bbox: DOMRect;
|
18
|
-
attachmentIndex: number;
|
19
|
-
startX: number;
|
20
|
-
startY: number;
|
21
|
-
clientX: number;
|
22
|
-
clientY: number;
|
23
|
-
};
|
24
|
-
export declare function annotationFromMousePosition(e: MouseEvent, { bbox, attachmentIndex, startX, startY, clientX, clientY }: NewImageAnnotation): ImageAnnotation;
|
25
|
-
export declare function imageAnnotationMouseDownInfo(e: React.MouseEvent<HTMLDivElement, MouseEvent>, image: HTMLImageElement): NewImageAnnotation;
|
26
|
-
export declare function preventDefaults(e: Event): void;
|
27
|
-
export declare function toggle(element: HTMLElement, isVisible: boolean): void;
|
28
|
-
export declare function isDesktopVersion(): boolean;
|
29
|
-
//# sourceMappingURL=editAnnotations.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"editAnnotations.d.ts","sourceRoot":"","sources":["../../../../src/components/grading/editAnnotations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,eA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AAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,kBAAkB,GAC9E,eAAe,CA8BjB;AACD,wBAAgB,4BAA4B,CAC1C,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,EAC/C,KAAK,EAAE,gBAAgB,GACtB,kBAAkB,CAUpB;AAMD,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,QAGvC;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI,CAErE;AAED,wBAAgB,gBAAgB,YAE/B"}
|
@@ -1,190 +0,0 @@
|
|
1
|
-
import * as _ from 'lodash-es';
|
2
|
-
export function textAnnotationFromRange(answerTextNode, range) {
|
3
|
-
if (selectionHasNothingToUnderline(range)) {
|
4
|
-
return undefined;
|
5
|
-
}
|
6
|
-
const answerNodes = allNodesUnder(answerTextNode);
|
7
|
-
const charactersBefore = charactersBeforeContainer(range.startContainer, range.startOffset, answerTextNode);
|
8
|
-
const charactersUntilEnd = charactersBeforeContainer(range.endContainer, range.endOffset, answerTextNode);
|
9
|
-
const length = charactersUntilEnd - charactersBefore;
|
10
|
-
// selectionHasNothingToUnderline won't catch cases where empty selection is between images
|
11
|
-
if (length <= 0) {
|
12
|
-
return undefined;
|
13
|
-
}
|
14
|
-
return {
|
15
|
-
startIndex: charactersBefore,
|
16
|
-
length
|
17
|
-
};
|
18
|
-
function charactersBeforeContainer(rangeContainer, offset, answerTextNode) {
|
19
|
-
const containerIsTag = rangeContainer === answerTextNode;
|
20
|
-
const container = containerIsTag ? rangeContainer.childNodes[offset] : rangeContainer;
|
21
|
-
const offsetInside = containerIsTag ? 0 : offset;
|
22
|
-
const nodesBeforeContainer = _.takeWhile(answerNodes, node => node !== container);
|
23
|
-
const nodesBeforeLengthSum = _.sum(nodesBeforeContainer.map(toNodeLength));
|
24
|
-
return offsetInside + nodesBeforeLengthSum;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
export function getOverlappingMessages(currentAnnotations, start, length) {
|
28
|
-
const textAnnotations = currentAnnotations.filter(a => a.type === 'text');
|
29
|
-
return getOverlappingMessagesFromTextAnnotations(textAnnotations, start, length);
|
30
|
-
}
|
31
|
-
export function getOverlappingMessagesFromTextAnnotations(currentAnnotations, start, length) {
|
32
|
-
const parted = getOverlappingAnnotations(currentAnnotations, { startIndex: start, length, message: '' });
|
33
|
-
return _.compact(parted.overlapping.map(anno => anno.message)).reduceRight((msg, str) => `${str} / ${msg}`, '');
|
34
|
-
}
|
35
|
-
export function toNodeLength(node) {
|
36
|
-
var _a;
|
37
|
-
return node.nodeType === Node.TEXT_NODE ? (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.length : node.nodeName === 'IMG' ? 1 : 0;
|
38
|
-
}
|
39
|
-
export function allNodesUnder(el, documentObject = document) {
|
40
|
-
let n = null;
|
41
|
-
const a = [];
|
42
|
-
const walk = documentObject.createTreeWalker(el, NodeFilter.SHOW_TEXT + NodeFilter.SHOW_ELEMENT, null);
|
43
|
-
while ((n = walk.nextNode())) {
|
44
|
-
a.push(n);
|
45
|
-
}
|
46
|
-
return a;
|
47
|
-
}
|
48
|
-
export function showAndPositionElement(annotationRect, container, popup, topMargin) {
|
49
|
-
const style = popup.style;
|
50
|
-
if (container) {
|
51
|
-
style.display = 'block';
|
52
|
-
const containerRect = container.getBoundingClientRect();
|
53
|
-
const popupRect = popup.getBoundingClientRect();
|
54
|
-
const left = annotationRect.left - containerRect.left;
|
55
|
-
const top = annotationRect.bottom - containerRect.top + topMargin;
|
56
|
-
style.top = `${String(top)}px`;
|
57
|
-
style.left = `${String(left + popupRect.width < containerRect.width - 30 ? left + 20 : containerRect.width - popupRect.width - 20)}px`;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
export function hasTextSelectedInAnswerText() {
|
61
|
-
const selection = window.getSelection();
|
62
|
-
return (selection !== null &&
|
63
|
-
selectionInAnswerText(selection) &&
|
64
|
-
(isRangeSelection(selection) || textSelectedInRange(selection)));
|
65
|
-
function selectionInAnswerText(sel) {
|
66
|
-
var _a, _b, _c;
|
67
|
-
if (sel.type === 'None' || sel.type === 'Caret' || sel.rangeCount === 0) {
|
68
|
-
return false;
|
69
|
-
}
|
70
|
-
const startContainer = sel.getRangeAt(0).startContainer;
|
71
|
-
const endContainer = sel.getRangeAt(0).endContainer;
|
72
|
-
return (sel.rangeCount > 0 &&
|
73
|
-
((_a = startContainer.parentElement) === null || _a === void 0 ? void 0 : _a.closest('.e-grading-answer')) !== null &&
|
74
|
-
((_b = endContainer.parentElement) === null || _b === void 0 ? void 0 : _b.closest('.e-grading-answer')) !== null &&
|
75
|
-
((_c = startContainer.parentElement) === null || _c === void 0 ? void 0 : _c.closest('.remove-annotation-popup')) === null);
|
76
|
-
}
|
77
|
-
function isRangeSelection(sel) {
|
78
|
-
return (sel === null || sel === void 0 ? void 0 : sel.type) === 'Range';
|
79
|
-
}
|
80
|
-
function textSelectedInRange(sel) {
|
81
|
-
const range = sel.getRangeAt(0);
|
82
|
-
return (!!sel.rangeCount &&
|
83
|
-
(range.toString().length > 0 ||
|
84
|
-
isParentContainer(range.startContainer) ||
|
85
|
-
isParentContainer(range.endContainer)));
|
86
|
-
}
|
87
|
-
function isParentContainer(container) {
|
88
|
-
return container.classList.contains('answer');
|
89
|
-
}
|
90
|
-
}
|
91
|
-
export function selectionHasNothingToUnderline(range) {
|
92
|
-
var _a;
|
93
|
-
const contents = range.cloneContents();
|
94
|
-
const hasImages = Array.from(contents.childNodes).some(x => x instanceof Element && (x.classList.contains('e-annotation-wrapper') || x.tagName === 'IMG'));
|
95
|
-
return ((_a = contents.textContent) === null || _a === void 0 ? void 0 : _a.length) === 0 && !hasImages;
|
96
|
-
}
|
97
|
-
export function mergeAnnotation($answerText, newAnnotation, annotations) {
|
98
|
-
const parted = getOverlappingAnnotations(annotations, newAnnotation);
|
99
|
-
if (parted.overlapping.length > 0) {
|
100
|
-
parted.overlapping.push(newAnnotation);
|
101
|
-
const mergedStart = _.minBy(parted.overlapping, range => range.startIndex);
|
102
|
-
const mergedEnd = _.maxBy(parted.overlapping, range => range.startIndex + range.length);
|
103
|
-
const mergedRange = {
|
104
|
-
startIndex: mergedStart.startIndex,
|
105
|
-
length: mergedEnd.startIndex + mergedEnd.length - mergedStart.startIndex,
|
106
|
-
message: newAnnotation.message
|
107
|
-
};
|
108
|
-
parted.nonOverlapping.push(mergedRange);
|
109
|
-
}
|
110
|
-
else {
|
111
|
-
parted.nonOverlapping.push(newAnnotation);
|
112
|
-
}
|
113
|
-
return _.sortBy(parted.nonOverlapping, a => a.type === 'line' || a.type === 'rect'
|
114
|
-
? getImageStartIndex(findAttachment($answerText, a.attachmentIndex), $answerText)
|
115
|
-
: a.startIndex, a => (a.type === 'rect' ? a.y : a.type === 'line' ? a.y1 : undefined), a => (a.type === 'rect' ? a.x : a.type === 'line' ? a.x1 : undefined));
|
116
|
-
}
|
117
|
-
function findAttachment(container, index) {
|
118
|
-
return container.querySelectorAll('img').item(index);
|
119
|
-
}
|
120
|
-
function getOverlappingAnnotations(annotations, newAnnotation) {
|
121
|
-
const partitioned = _.partition(annotations, other => {
|
122
|
-
const newEnd = newAnnotation.startIndex + newAnnotation.length;
|
123
|
-
const otherEnd = other.startIndex + other.length;
|
124
|
-
return ((newAnnotation.startIndex >= other.startIndex && newAnnotation.startIndex <= otherEnd) ||
|
125
|
-
(newEnd >= other.startIndex && newEnd <= otherEnd) ||
|
126
|
-
(newAnnotation.startIndex <= other.startIndex && newEnd >= otherEnd));
|
127
|
-
});
|
128
|
-
return { overlapping: partitioned[0], nonOverlapping: partitioned[1] };
|
129
|
-
}
|
130
|
-
export function getImageStartIndex($image, $answerText) {
|
131
|
-
var _a;
|
132
|
-
const range = document.createRange();
|
133
|
-
range.selectNode($image);
|
134
|
-
return (_a = textAnnotationFromRange($answerText, range)) === null || _a === void 0 ? void 0 : _a.startIndex;
|
135
|
-
}
|
136
|
-
export function annotationFromMousePosition(e, { bbox, attachmentIndex, startX, startY, clientX, clientY }) {
|
137
|
-
const lineThresholdPx = 10;
|
138
|
-
const currentX = clamp((e.clientX - bbox.left) / bbox.width);
|
139
|
-
const currentY = clamp((e.clientY - bbox.top) / bbox.height);
|
140
|
-
const isVerticalLine = Math.abs(clientX - e.clientX) <= lineThresholdPx;
|
141
|
-
const isHorizontalLine = Math.abs(clientY - e.clientY) <= lineThresholdPx;
|
142
|
-
const type = isVerticalLine || isHorizontalLine ? 'line' : 'rect';
|
143
|
-
switch (type) {
|
144
|
-
case 'rect':
|
145
|
-
return {
|
146
|
-
type: 'rect',
|
147
|
-
attachmentIndex,
|
148
|
-
x: Math.min(startX, currentX),
|
149
|
-
y: Math.min(startY, currentY),
|
150
|
-
width: Math.abs(currentX - startX),
|
151
|
-
height: Math.abs(currentY - startY),
|
152
|
-
message: ''
|
153
|
-
};
|
154
|
-
case 'line':
|
155
|
-
return {
|
156
|
-
type: 'line',
|
157
|
-
attachmentIndex,
|
158
|
-
x1: isVerticalLine ? startX : Math.min(startX, currentX),
|
159
|
-
y1: isHorizontalLine ? startY : Math.min(startY, currentY),
|
160
|
-
x2: isVerticalLine ? startX : Math.max(startX, currentX),
|
161
|
-
y2: isHorizontalLine ? startY : Math.max(startY, currentY),
|
162
|
-
message: ''
|
163
|
-
};
|
164
|
-
}
|
165
|
-
}
|
166
|
-
export function imageAnnotationMouseDownInfo(e, image) {
|
167
|
-
const targetAnswerText = image.closest('.e-grading-answer');
|
168
|
-
const attachmentIndex = Array.from(targetAnswerText.querySelectorAll('img')).findIndex(img => img === image);
|
169
|
-
const attachmentWrapper = targetAnswerText.querySelectorAll('.e-annotation-wrapper').item(attachmentIndex);
|
170
|
-
const bbox = attachmentWrapper.getBoundingClientRect();
|
171
|
-
const clientX = e.clientX;
|
172
|
-
const startX = clamp((clientX - bbox.left) / bbox.width);
|
173
|
-
const clientY = e.clientY;
|
174
|
-
const startY = clamp((clientY - bbox.top) / bbox.height);
|
175
|
-
return { attachmentIndex, bbox, startX, startY, clientX, clientY };
|
176
|
-
}
|
177
|
-
function clamp(n) {
|
178
|
-
return _.clamp(n, 0, 1);
|
179
|
-
}
|
180
|
-
export function preventDefaults(e) {
|
181
|
-
e.preventDefault();
|
182
|
-
e.stopPropagation();
|
183
|
-
}
|
184
|
-
export function toggle(element, isVisible) {
|
185
|
-
element.style.display = isVisible ? 'initial' : 'none';
|
186
|
-
}
|
187
|
-
export function isDesktopVersion() {
|
188
|
-
return matchMedia('(pointer:fine)').matches;
|
189
|
-
}
|
190
|
-
//# sourceMappingURL=editAnnotations.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"editAnnotations.js","sourceRoot":"","sources":["../../../../src/components/grading/editAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAI9B,MAAM,UAAU,uBAAuB,CAAC,cAAuB,EAAE,KAAY;IAC3E,IAAI,8BAA8B,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1C,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,MAAM,WAAW,GAAG,aAAa,CAAC,cAAc,CAAC,CAAA;IACjD,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,WAAW,EAAE,cAAc,CAAC,CAAA;IAC3G,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;IACzG,MAAM,MAAM,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;IACpD,2FAA2F;IAC3F,IAAI,MAAM,IAAI,CAAC,EAAE,CAAC;QAChB,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,OAAO;QACL,UAAU,EAAE,gBAAgB;QAC5B,MAAM;KACP,CAAA;IAED,SAAS,yBAAyB,CAAC,cAAoB,EAAE,MAAc,EAAE,cAAuB;QAC9F,MAAM,cAAc,GAAG,cAAc,KAAK,cAAc,CAAA;QACxD,M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