@digabi/exam-engine-core 19.2.0 → 19.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/dist/components/grading/AnnotationPopup.d.ts +11 -0
  2. package/dist/components/grading/AnnotationPopup.d.ts.map +1 -0
  3. package/dist/components/grading/AnnotationPopup.js +20 -0
  4. package/dist/components/grading/AnnotationPopup.js.map +1 -0
  5. package/dist/components/grading/AnswerWithAnnotations.d.ts +11 -0
  6. package/dist/components/grading/AnswerWithAnnotations.d.ts.map +1 -0
  7. package/dist/components/grading/AnswerWithAnnotations.js +15 -0
  8. package/dist/components/grading/AnswerWithAnnotations.js.map +1 -0
  9. package/dist/components/grading/ChoiceAnswer.d.ts +6 -0
  10. package/dist/components/grading/ChoiceAnswer.d.ts.map +1 -0
  11. package/dist/components/grading/ChoiceAnswer.js +57 -0
  12. package/dist/components/grading/ChoiceAnswer.js.map +1 -0
  13. package/dist/components/grading/DropdownAnswer.d.ts +6 -0
  14. package/dist/components/grading/DropdownAnswer.d.ts.map +1 -0
  15. package/dist/components/grading/DropdownAnswer.js +43 -0
  16. package/dist/components/grading/DropdownAnswer.js.map +1 -0
  17. package/dist/components/grading/Grading.d.ts +4 -0
  18. package/dist/components/grading/Grading.d.ts.map +1 -0
  19. package/dist/components/grading/Grading.js +81 -0
  20. package/dist/components/grading/Grading.js.map +1 -0
  21. package/dist/components/grading/GradingAnswer.d.ts.map +1 -1
  22. package/dist/components/grading/GradingAnswer.js +1 -0
  23. package/dist/components/grading/GradingAnswer.js.map +1 -1
  24. package/dist/components/grading/MultiLineAnswer.d.ts +14 -0
  25. package/dist/components/grading/MultiLineAnswer.d.ts.map +1 -0
  26. package/dist/components/grading/MultiLineAnswer.js +61 -0
  27. package/dist/components/grading/MultiLineAnswer.js.map +1 -0
  28. package/dist/components/grading/Question.d.ts +5 -0
  29. package/dist/components/grading/Question.d.ts.map +1 -0
  30. package/dist/components/grading/Question.js +23 -0
  31. package/dist/components/grading/Question.js.map +1 -0
  32. package/dist/components/grading/QuestionTitle.d.ts +6 -0
  33. package/dist/components/grading/QuestionTitle.d.ts.map +1 -0
  34. package/dist/components/grading/QuestionTitle.js +21 -0
  35. package/dist/components/grading/QuestionTitle.js.map +1 -0
  36. package/dist/components/grading/Results.d.ts +15 -0
  37. package/dist/components/grading/Results.d.ts.map +1 -0
  38. package/dist/components/grading/Results.js +77 -0
  39. package/dist/components/grading/Results.js.map +1 -0
  40. package/dist/components/grading/ScoredTextAnswer.d.ts +6 -0
  41. package/dist/components/grading/ScoredTextAnswer.d.ts.map +1 -0
  42. package/dist/components/grading/ScoredTextAnswer.js +22 -0
  43. package/dist/components/grading/ScoredTextAnswer.js.map +1 -0
  44. package/dist/components/grading/Section.d.ts +5 -0
  45. package/dist/components/grading/Section.d.ts.map +1 -0
  46. package/dist/components/grading/Section.js +18 -0
  47. package/dist/components/grading/Section.js.map +1 -0
  48. package/dist/components/grading/SingleLineAnswer.d.ts +12 -0
  49. package/dist/components/grading/SingleLineAnswer.d.ts.map +1 -0
  50. package/dist/components/grading/SingleLineAnswer.js +23 -0
  51. package/dist/components/grading/SingleLineAnswer.js.map +1 -0
  52. package/dist/components/grading/TextAnswer.d.ts +7 -0
  53. package/dist/components/grading/TextAnswer.d.ts.map +1 -0
  54. package/dist/components/grading/TextAnswer.js +53 -0
  55. package/dist/components/grading/TextAnswer.js.map +1 -0
  56. package/dist/components/grading/editAnnotations.d.ts.map +1 -1
  57. package/dist/components/grading/editAnnotations.js +1 -2
  58. package/dist/components/grading/editAnnotations.js.map +1 -1
  59. package/dist/components/grading/internal/AnnotationList.d.ts +5 -0
  60. package/dist/components/grading/internal/AnnotationList.d.ts.map +1 -0
  61. package/dist/components/grading/internal/AnnotationList.js +43 -0
  62. package/dist/components/grading/internal/AnnotationList.js.map +1 -0
  63. package/dist/components/grading/internal/QuestionAutoScore.d.ts +10 -0
  64. package/dist/components/grading/internal/QuestionAutoScore.d.ts.map +1 -0
  65. package/dist/components/grading/internal/QuestionAutoScore.js +17 -0
  66. package/dist/components/grading/internal/QuestionAutoScore.js.map +1 -0
  67. package/dist/components/grading/internal/QuestionManualScore.d.ts +12 -0
  68. package/dist/components/grading/internal/QuestionManualScore.d.ts.map +1 -0
  69. package/dist/components/grading/internal/QuestionManualScore.js +61 -0
  70. package/dist/components/grading/internal/QuestionManualScore.js.map +1 -0
  71. package/dist/components/grading/internal/QuestionScoresContainer.d.ts +10 -0
  72. package/dist/components/grading/internal/QuestionScoresContainer.d.ts.map +1 -0
  73. package/dist/components/grading/internal/QuestionScoresContainer.js +12 -0
  74. package/dist/components/grading/internal/QuestionScoresContainer.js.map +1 -0
  75. package/dist/components/grading/largeImageDetector.js +1 -1
  76. package/dist/components/grading/largeImageDetector.js.map +1 -1
  77. package/dist/components/grading/largeImageResizer.d.ts +2 -0
  78. package/dist/components/grading/largeImageResizer.d.ts.map +1 -0
  79. package/dist/components/grading/largeImageResizer.js +33 -0
  80. package/dist/components/grading/largeImageResizer.js.map +1 -0
  81. package/dist/components/results/Results2.d.ts +15 -0
  82. package/dist/components/results/Results2.d.ts.map +1 -0
  83. package/dist/components/results/Results2.js +79 -0
  84. package/dist/components/results/Results2.js.map +1 -0
  85. package/dist/components/shared/AnnotationListComponent.d.ts +1 -0
  86. package/dist/components/shared/AnnotationListComponent.d.ts.map +1 -0
  87. package/dist/components/shared/AnnotationListComponent.js +2 -0
  88. package/dist/components/shared/AnnotationListComponent.js.map +1 -0
  89. package/dist/editAnnotations.d.ts +2 -0
  90. package/dist/editAnnotations.d.ts.map +1 -0
  91. package/dist/editAnnotations.js +8 -0
  92. package/dist/editAnnotations.js.map +1 -0
  93. package/dist/editAnnotationsOld.d.ts +3 -0
  94. package/dist/editAnnotationsOld.d.ts.map +1 -0
  95. package/dist/editAnnotationsOld.js +340 -0
  96. package/dist/editAnnotationsOld.js.map +1 -0
  97. package/dist/main-bundle.js +1 -1
  98. package/dist/main.css +1 -1
  99. package/dist/renderAnnotations.d.ts.map +1 -1
  100. package/dist/renderAnnotations.js +22 -18
  101. package/dist/renderAnnotations.js.map +1 -1
  102. package/package.json +2 -2
  103. package/dist/components/grading-instructions/GradingInstructionsElements.d.ts +0 -3
  104. package/dist/components/grading-instructions/GradingInstructionsElements.d.ts.map +0 -1
  105. package/dist/components/grading-instructions/GradingInstructionsElements.js +0 -14
  106. package/dist/components/grading-instructions/GradingInstructionsElements.js.map +0 -1
  107. package/dist/gradingInstructionsElements.d.ts +0 -3
  108. package/dist/gradingInstructionsElements.d.ts.map +0 -1
  109. package/dist/gradingInstructionsElements.js +0 -14
  110. package/dist/gradingInstructionsElements.js.map +0 -1
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare const AnnotationPopup: React.FunctionComponent<{
3
+ setMessage: (message: string) => void;
4
+ message: string;
5
+ popupVisible: boolean;
6
+ position: {
7
+ left: number;
8
+ top: number;
9
+ };
10
+ }>;
11
+ //# sourceMappingURL=AnnotationPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationPopup.d.ts","sourceRoot":"","sources":["../../../src/components/grading/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAE1D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACpD,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACxC,CAuCA,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+ export const AnnotationPopup = ({ setMessage, message, popupVisible, position }) => {
3
+ const popupRef = useRef(null);
4
+ const [field, setField] = useState('');
5
+ useEffect(() => {
6
+ setField(message);
7
+ }, [message]);
8
+ return popupVisible ? (React.createElement("div", { style: {
9
+ display: popupVisible ? 'block' : 'none',
10
+ position: 'absolute',
11
+ left: position.left,
12
+ top: position.top,
13
+ }, className: "popup", ref: popupRef },
14
+ React.createElement("div", { className: "popup add-annotation-popup" },
15
+ React.createElement("form", { onSubmit: (e) => e.preventDefault() },
16
+ React.createElement("input", { onChange: (e) => setField(e.target.value), value: field, className: "add-annotation-text", type: "text", autoFocus: true }),
17
+ React.createElement("i", { className: "fa fa-comment" }),
18
+ React.createElement("button", { type: "submit", "data-i18n": "arpa.annotate", onClick: () => setMessage(field) }, "Merkitse"))))) : (React.createElement(React.Fragment, null));
19
+ };
20
+ //# sourceMappingURL=AnnotationPopup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationPopup.js","sourceRoot":"","sources":["../../../src/components/grading/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1D,MAAM,CAAC,MAAM,eAAe,GAKvB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvD,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAE7C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAA;IAE9C,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,OAAO,CAAC,CAAA;IACnB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,YAAY,CAAC,CAAC,CAAC,CACpB,6BACE,KAAK,EAAE;YACL,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;YACxC,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,GAAG,EAAE,QAAQ,CAAC,GAAG;SAClB,EACD,SAAS,EAAC,OAAO,EACjB,GAAG,EAAE,QAAQ;QAEb,6BAAK,SAAS,EAAC,4BAA4B;YACzC,8BAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;gBACvC,+BACE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,qBAAqB,EAC/B,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,IAAI,GACf;gBACF,2BAAG,SAAS,EAAC,eAAe,GAAK;gBACjC,gCAAQ,IAAI,EAAC,QAAQ,eAAW,eAAe,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,eAEvE,CACJ,CACH,CACF,CACP,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Annotation } from '../..';
3
+ export declare const AnswerWithAnnotations: React.FunctionComponent<{
4
+ type: 'richText' | 'text';
5
+ value?: string;
6
+ annotations: {
7
+ pregrading: Annotation[];
8
+ censoring: Annotation[];
9
+ };
10
+ }>;
11
+ //# sourceMappingURL=AnswerWithAnnotations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnswerWithAnnotations.d.ts","sourceRoot":"","sources":["../../../src/components/grading/AnswerWithAnnotations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAIlC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC1D,IAAI,EAAE,UAAU,GAAG,MAAM,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE;QAAE,UAAU,EAAE,UAAU,EAAE,CAAC;QAAC,SAAS,EAAE,UAAU,EAAE,CAAA;KAAE,CAAA;CACnE,CAmBA,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React, { useLayoutEffect, useRef } from 'react';
2
+ import { renderAnnotations } from '../../renderAnnotations';
3
+ export const AnswerWithAnnotations = ({ type, annotations, value }) => {
4
+ const answerRef = useRef(null);
5
+ useLayoutEffect(() => {
6
+ console.log('LAYOUT', annotations.censoring.length);
7
+ if (answerRef.current) {
8
+ answerRef.current.innerHTML = value || '';
9
+ renderAnnotations(answerRef.current, annotations.pregrading, annotations.censoring);
10
+ }
11
+ });
12
+ return type === 'richText' ? (React.createElement("div", { ref: answerRef })) : (React.createElement("span", { className: "text-answer text-answer--single-line" },
13
+ React.createElement("span", { className: "e-inline-block", ref: answerRef }, value)));
14
+ };
15
+ //# sourceMappingURL=AnswerWithAnnotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnswerWithAnnotations.js","sourceRoot":"","sources":["../../../src/components/grading/AnswerWithAnnotations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAG3D,MAAM,CAAC,MAAM,qBAAqB,GAI7B,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAE9C,eAAe,CAAC,GAAG,EAAE;QACnB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QACnD,IAAI,SAAS,CAAC,OAAO,EAAE;YACrB,SAAS,CAAC,OAAO,CAAC,SAAS,GAAG,KAAK,IAAI,EAAE,CAAA;YACzC,iBAAiB,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;SACpF;IACH,CAAC,CAAC,CAAA;IACF,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAC3B,6BAAK,GAAG,EAAE,SAAS,GAAI,CACxB,CAAC,CAAC,CAAC,CACF,8BAAM,SAAS,EAAC,sCAAsC;QACpD,8BAAM,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,SAAS,IAC5C,KAAK,CACD,CACF,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../../createRenderChildNodes';
3
+ declare function ChoiceAnswer({ element, renderChildNodes }: ExamComponentProps): JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof ChoiceAnswer>;
5
+ export default _default;
6
+ //# sourceMappingURL=ChoiceAnswer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChoiceAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/grading/ChoiceAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAuEjE,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,eAyCtE;;AAED,wBAAuC"}
@@ -0,0 +1,57 @@
1
+ import classNames from 'classnames';
2
+ import React, { useContext } from 'react';
3
+ import { getNumericAttribute, mapChildElements, query } from '../../dom-utils';
4
+ import { useExamTranslation } from '../../i18n';
5
+ import { ScreenReaderOnly } from '../ScreenReaderOnly';
6
+ import { findMultiChoiceFromGradingStructure, ResultsContext } from '../context/ResultsContext';
7
+ import ResultsExamQuestionAutoScore from './internal/QuestionAutoScore';
8
+ function ChoiceAnswerOption({ renderChildNodes, selected, element, questionId, direction, isCorrect, }) {
9
+ const { t } = useExamTranslation();
10
+ const className = element.getAttribute('class');
11
+ const optionId = element.getAttribute('option-id');
12
+ const content = (React.createElement("div", { className: classNames('e-choice-answer-option e-column', className, {
13
+ 'e-choice-answer-option--selected': selected,
14
+ }) }, renderChildNodes(element)));
15
+ const Content = ({ narrow = false }) => (React.createElement(React.Fragment, null,
16
+ React.createElement("input", { type: "radio", className: classNames('e-radio-button', { 'e-column e-column--narrow': narrow }), name: String(questionId), value: optionId, checked: selected, readOnly: true }),
17
+ content,
18
+ isCorrect && React.createElement(ScreenReaderOnly, null, t('screen-reader.correct-answer'))));
19
+ return direction === 'vertical' ? (React.createElement("div", { className: "e-mrg-b-1" },
20
+ React.createElement("label", { className: classNames('e-columns', {
21
+ 'e-correct-answer-left': isCorrect,
22
+ 'e-columns--inline': query(element, ['image', 'video']) == null /* Force full width for options containing responsive media */,
23
+ }) },
24
+ React.createElement(Content, { narrow: true })))) : (React.createElement("div", { className: "e-column e-mrg-b-1" },
25
+ React.createElement("label", { className: classNames('e-block e-text-center', { 'e-correct-answer-bottom': isCorrect }) },
26
+ React.createElement(Content, null))));
27
+ }
28
+ function ChoiceAnswer({ element, renderChildNodes }) {
29
+ const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
30
+ const questionId = getNumericAttribute(element, 'question-id');
31
+ const answer = answersByQuestionId[questionId];
32
+ const direction = element.getAttribute('direction') || 'vertical';
33
+ const className = element.getAttribute('class');
34
+ const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
35
+ const scoreValue = answer && choice.options.find((option) => option.id === Number(answer.value)).score;
36
+ const maxScore = getNumericAttribute(element, 'max-score');
37
+ return (React.createElement(React.Fragment, null,
38
+ scoreValue !== undefined && React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore }),
39
+ React.createElement("div", { className: classNames('e-choice-answer', className, {
40
+ 'e-columns': direction === 'horizontal',
41
+ }) }, mapChildElements(element, (childElement) => {
42
+ const optionId = getNumericAttribute(childElement, 'option-id');
43
+ const selected = answer != null && Number(answer.value) === optionId;
44
+ const grading = choice.options.find((option) => option.id === optionId);
45
+ return (React.createElement(ChoiceAnswerOption, { ...{
46
+ element: childElement,
47
+ renderChildNodes,
48
+ questionId,
49
+ key: optionId,
50
+ direction,
51
+ selected,
52
+ isCorrect: grading.correct,
53
+ } }));
54
+ }))));
55
+ }
56
+ export default React.memo(ChoiceAnswer);
57
+ //# sourceMappingURL=ChoiceAnswer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChoiceAnswer.js","sourceRoot":"","sources":["../../../src/components/grading/ChoiceAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mCAAmC,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/F,OAAO,4BAA4B,MAAM,8BAA8B,CAAA;AASvE,SAAS,kBAAkB,CAAC,EAC1B,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,SAAS,GACe;IACxB,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;IAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,WAAW,CAAE,CAAA;IAEnD,MAAM,OAAO,GAAG,CACd,6BACE,SAAS,EAAE,UAAU,CAAC,iCAAiC,EAAE,SAAS,EAAE;YAClE,kCAAkC,EAAE,QAAQ;SAC7C,CAAC,IAED,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAA;IACD,MAAM,OAAO,GAAkD,CAAC,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACrF;QACE,+BACE,IAAI,EAAC,OAAO,EACZ,SAAS,E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,6 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../../createRenderChildNodes';
3
+ declare function DropdownAnswer({ element, renderChildNodes }: ExamComponentProps): JSX.Element | null;
4
+ declare const _default: React.MemoExoticComponent<typeof DropdownAnswer>;
5
+ export default _default;
6
+ //# sourceMappingURL=DropdownAnswer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/grading/DropdownAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AASjE,iBAAS,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,sBA2DxE;;AAED,wBAAyC"}
@@ -0,0 +1,43 @@
1
+ import classNames from 'classnames';
2
+ import React, { useContext } from 'react';
3
+ import { findChildElement, getNumericAttribute } from '../../dom-utils';
4
+ import { useExamTranslation } from '../../i18n';
5
+ import { shortDisplayNumber } from '../../shortDisplayNumber';
6
+ import { QuestionContext } from '../context/QuestionContext';
7
+ import { ScreenReaderOnly } from '../ScreenReaderOnly';
8
+ import { findMultiChoiceFromGradingStructure, ResultsContext } from '../context/ResultsContext';
9
+ import ResultsExamQuestionAutoScore from './internal/QuestionAutoScore';
10
+ function DropdownAnswer({ element, renderChildNodes }) {
11
+ const { t } = useExamTranslation();
12
+ const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
13
+ const { answers } = useContext(QuestionContext);
14
+ const questionId = getNumericAttribute(element, 'question-id');
15
+ const answer = answersByQuestionId[questionId];
16
+ const selectedOption = findChildElement(element, (childElement) => (answer === null || answer === void 0 ? void 0 : answer.value) === childElement.getAttribute('option-id'));
17
+ const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
18
+ if (selectedOption) {
19
+ const correctIds = choice.options.filter((o) => o.correct).map((o) => o.id);
20
+ const correctOptions = Array.from(element.children).filter((childElement) => correctIds.includes(getNumericAttribute(childElement, 'option-id')));
21
+ const isAnswerCorrect = correctIds.includes(getNumericAttribute(selectedOption, 'option-id'));
22
+ const displayNumber = shortDisplayNumber(element.getAttribute('display-number'));
23
+ const scoreValue = answer && choice.options.find((option) => option.id === Number(answer.value)).score;
24
+ const maxScore = getNumericAttribute(element, 'max-score');
25
+ return (React.createElement(React.Fragment, null,
26
+ answers.length > 1 && React.createElement("sup", null, displayNumber),
27
+ React.createElement("span", { className: classNames('e-dropdown-answer__answered', {
28
+ 'e-dropdown-answer__answered--correct': isAnswerCorrect,
29
+ 'e-dropdown-answer__answered--wrong': !isAnswerCorrect,
30
+ }) },
31
+ React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
32
+ renderChildNodes(selectedOption),
33
+ React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-end')),
34
+ isAnswerCorrect && React.createElement(ScreenReaderOnly, null, t('screen-reader.correct-answer'))),
35
+ !isAnswerCorrect && (React.createElement("span", { className: "e-dropdown-answer__correct", "aria-hidden": true }, correctOptions.map((correctOption, i) => (React.createElement(React.Fragment, { key: i },
36
+ renderChildNodes(correctOption),
37
+ i < correctOptions.length - 1 && ', '))))),
38
+ scoreValue != null && (React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore, displayNumber: displayNumber }))));
39
+ }
40
+ return null;
41
+ }
42
+ export default React.memo(DropdownAnswer);
43
+ //# sourceMappingURL=DropdownAnswer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownAnswer.js","sourceRoot":"","sources":["../../../src/components/grading/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;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BAC/B,CAAC,GAAG,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CACvB,CAClB,CAAC,CACG,CACR;YACA,UAAU,IAAI,IAAI,IAAI,CACrB,oBAAC,4BAA4B,IAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,GAAI,CACtG,CACA,CACJ,CAAA;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
3
+ export default _default;
4
+ //# sourceMappingURL=Grading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grading.d.ts","sourceRoot":"","sources":["../../../src/components/grading/Grading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAA;;AAmHtE,wBAA6E"}
@@ -0,0 +1,81 @@
1
+ import React, { useContext, useEffect, useRef, useState } from 'react';
2
+ import { I18nextProvider } from 'react-i18next';
3
+ import { changeLanguage, initI18n } from '../../i18n';
4
+ import { useCached } from '../../useCached';
5
+ import { withCommonExamContext } from '../context/CommonExamContext';
6
+ import { ResultsContext, withResultsContext } from '../context/ResultsContext';
7
+ import { GradingAnswer } from './GradingAnswer';
8
+ function Grading() {
9
+ const { answersByQuestionId } = useContext(ResultsContext);
10
+ const i18n = useCached(() => initI18n('FI-fi'));
11
+ useEffect(changeLanguage(i18n, 'FI-fi'));
12
+ const answerIds = Object.keys(answersByQuestionId).map(Number);
13
+ if (answerIds.length === 0) {
14
+ return React.createElement("div", null, "No answers");
15
+ }
16
+ const [answerId, setAnswerId] = useState(answerIds[0]);
17
+ const annotationsStorage = useRef(Object.fromEntries(answerIds.map((id) => [
18
+ id,
19
+ {
20
+ pregrading: [
21
+ {
22
+ startIndex: 2,
23
+ length: 5,
24
+ message: '+1',
25
+ },
26
+ {
27
+ x: 0.07434944237918215,
28
+ y: 0.8599562363238512,
29
+ type: 'rect',
30
+ width: 0.16604708798017348,
31
+ height: 0.03063457330415753,
32
+ message: '+2',
33
+ attachmentIndex: 0,
34
+ },
35
+ {
36
+ x1: 0.4035532994923858,
37
+ x2: 0.5621827411167513,
38
+ y1: 0.957983193277311,
39
+ y2: 0.957983193277311,
40
+ type: 'line',
41
+ message: 'trk, +1',
42
+ attachmentIndex: 0,
43
+ },
44
+ ],
45
+ censoring: [],
46
+ },
47
+ ])));
48
+ const [annotations, setAnnotations] = useState({
49
+ pregrading: [],
50
+ censoring: [],
51
+ });
52
+ useEffect(() => {
53
+ setAnnotations(annotationsStorage.current[answerId]);
54
+ });
55
+ const { type: answerType, value } = answersByQuestionId[answerId];
56
+ if (answerType === 'choice') {
57
+ return React.createElement("div", null, "choice answer");
58
+ }
59
+ function selectQuestion(e, id) {
60
+ e.preventDefault();
61
+ setAnswerId(id);
62
+ setAnnotations(annotationsStorage.current[id]);
63
+ }
64
+ function saveAnnotations(annotations) {
65
+ annotationsStorage.current[answerId] = annotations;
66
+ setAnnotations({ ...annotationsStorage.current[answerId] });
67
+ }
68
+ return (React.createElement(I18nextProvider, { i18n: i18n },
69
+ React.createElement("main", { className: "e-exam" },
70
+ React.createElement("div", { className: "grading-navi" }, answerIds.map((id) => id === answerId ? (React.createElement("span", { key: id, className: "grading-navi-item" }, answersByQuestionId[id].displayNumber)) : (React.createElement("a", { className: "grading-navi-item", href: "", onClick: (e) => selectQuestion(e, id), key: id }, answersByQuestionId[id].displayNumber)))),
71
+ React.createElement(GradingAnswer, { ...{
72
+ isReadOnly: false,
73
+ answerType,
74
+ gradingRole: 'censoring',
75
+ value,
76
+ annotations,
77
+ saveAnnotations,
78
+ } }))));
79
+ }
80
+ export default React.memo(withResultsContext(withCommonExamContext(Grading)));
81
+ //# sourceMappingURL=Grading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grading.js","sourceRoot":"","sources":["../../../src/components/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AA;IAC7D,CAAC;IAED,OAAO,CACL,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI;QACzB,8BAAM,SAAS,EAAC,QAAQ;YACtB,6BAAK,SAAS,EAAC,cAAc,IAC1B,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CACpB,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,CAChB,8BAAM,GAAG,EAAE,EAAE,EAAE,SAAS,EAAC,mBAAmB,IACzC,mBAAmB,CAAC,EAAE,CAAC,CAAC,aAAa,CACjC,CACR,CAAC,CAAC,CAAC,CACF,2BAAG,SAAS,EAAC,mBAAmB,EAAC,IAAI,EAAC,EAAE,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,IACpF,mBAAmB,CAAC,EAAE,CAAC,CAAC,aAAa,CACpC,CACL,CACF,CACG;YAEN,oBAAC,aAAa,OACR;oBACF,UAAU,EAAE,KAAK;oBACjB,UAAU;oBACV,WAAW,EAAE,WAAW;oBACxB,KAAK;oBACL,WAAW;oBACX,eAAe;iBAChB,GACD,CACG,CACS,CACnB,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"GradingAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/grading/GradingAnswer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyBlC,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,UAAU,EAAE,CAAC;IAAC,SAAS,EAAE,UAAU,EAAE,CAAA;CAAE,CAAA;AAExE,KAAK,WAAW,GAAG,YAAY,GAAG,WAAW,CAAA;AAC7C,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,cA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AE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;CACpD,eAmSA"}
@@ -50,6 +50,7 @@ export function GradingAnswer({ answer: { type, characterCount, value }, languag
50
50
  toggle(tooltipRef.current, false);
51
51
  toggle(popupRef.current, false);
52
52
  renderAnswerWithAnnotations(savedAnnotations);
53
+ answerRef.current.setAttribute('lang', language);
53
54
  }
54
55
  window.onresize = () => {
55
56
  clearTimeout(windowResizeTimeout);
@@ -1 +1 @@
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,MAAM,OAAO,CAAA;AAE5E,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,eAAe,EAEf,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,aAAa,GACd,MAAM,yBAAyB,CAAA;AAChC,OAAO,2BAA2B,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,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;AAKjE,MAAM,UAAU,aAAa,CAAC,EAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,EACvC,QAAQ,EACR,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,SAAS,GASV;IACC,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CA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GAAG,OAAO,CAAA;SAClG;aAAM;YACL,wBAAwB;YACxB,gBAAgB,CAAC,WAAW,CAAC,GAAG,eAAe,CAC7C,SAAS,CAAC,OAAQ,EAClB,EAAE,GAAG,mBAAoB,EAAE,OAAO,EAAE,EACpC,gBAAgB,CAAC,WAAW,CAAC,IAAI,EAAE,CACpC,CAAA;SACF;QACD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAC/B,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACnC,CAAC;IAED,SAAS,wBAAwB,CAAC,CAAgB;QAChD,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,IAAI,4BAA4B,EAAE;YACtD,6BAA6B,EAAE,CAAA;SAChC;IACH,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,CAAQ;IAC/B,CAAC,CAAC,cAAc,EAAE,CAAA;IAClB,CAAC,CAAC,eAAe,EAAE,CAAA;AACrB,CAAC;AAED,SAAS,MAAM,CAAC,OAA2B,EAAE,SAAkB;IAC7D,IAAI,OAAO,YAAY,WAAW,EAAE;QAClC,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAA;KACvD;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Score } from '../..';
3
+ export declare const MultiLineAnswer: React.FunctionComponent<{
4
+ type: 'rich-text' | 'single-line';
5
+ value?: string;
6
+ score?: Score;
7
+ }>;
8
+ export declare function calculatePosition(answerTextNode: HTMLDivElement, range: Range): {
9
+ startIndex: number;
10
+ length: number;
11
+ };
12
+ export declare function toNodeLength(node: Node): number | undefined;
13
+ export declare function allNodesUnder(el: Node, documentObject?: Document): Node[];
14
+ //# sourceMappingURL=MultiLineAnswer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiLineAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/grading/MultiLineAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAM7B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACpD,IAAI,EAAE,WAAW,GAAG,aAAa,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAwCA,CAAA;AAED,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK;;;EAgB7E;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,sBAEtC;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,cAAc,WAAW,GAAG,IAAI,EAAE,CAQzE"}
@@ -0,0 +1,61 @@
1
+ import React, { useLayoutEffect, useRef } from 'react';
2
+ import { useExamTranslation } from '../../i18n';
3
+ import { renderAnnotations } from '../../renderAnnotations';
4
+ import { ScreenReaderOnly } from '../ScreenReaderOnly';
5
+ import * as _ from 'lodash-es';
6
+ export const MultiLineAnswer = ({ type, score, value }) => {
7
+ const { t } = useExamTranslation();
8
+ const answerRef = useRef(null);
9
+ useLayoutEffect(() => {
10
+ var _a, _b, _c, _d;
11
+ if (answerRef.current) {
12
+ renderAnnotations(answerRef.current, (_b = (_a = score === null || score === void 0 ? void 0 : score.pregrading) === null || _a === void 0 ? void 0 : _a.annotations) !== null && _b !== void 0 ? _b : [], (_d = (_c = score === null || score === void 0 ? void 0 : score.censoring) === null || _c === void 0 ? void 0 : _c.annotations) !== null && _d !== void 0 ? _d : []);
13
+ document.addEventListener('selectionchange', onSelect);
14
+ console.log('annotations rendered2');
15
+ }
16
+ });
17
+ function onSelect(e) {
18
+ console.log(e);
19
+ const selection = window.getSelection();
20
+ if (selection && answerRef.current !== null) {
21
+ const range = selection.getRangeAt(0);
22
+ const position = calculatePosition(answerRef.current, range);
23
+ console.log(position, '\n=== position');
24
+ }
25
+ }
26
+ return type === 'rich-text' ? (React.createElement("div", { className: "e-multiline-results-text-answer e-line-height-l e-pad-l-2 e-mrg-b-1" },
27
+ React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
28
+ type === 'rich-text' ? (React.createElement("div", { dangerouslySetInnerHTML: { __html: value || '' }, ref: answerRef })) : (React.createElement("div", { className: "e-pre-wrap", ref: answerRef }, value)))) : (React.createElement("span", { className: "text-answer text-answer--single-line" },
29
+ React.createElement(ScreenReaderOnly, null, t('screen-reader.answer-begin')),
30
+ React.createElement("span", { className: "e-inline-block", ref: answerRef }, value)));
31
+ };
32
+ export function calculatePosition(answerTextNode, range) {
33
+ const answerNodes = allNodesUnder(answerTextNode);
34
+ const charactersBefore = charactersBeforeContainer(range.startContainer, range.startOffset);
35
+ const charactersUntilEnd = charactersBeforeContainer(range.endContainer, range.endOffset);
36
+ return {
37
+ startIndex: charactersBefore,
38
+ length: charactersUntilEnd - charactersBefore,
39
+ };
40
+ function charactersBeforeContainer(rangeContainer, offset) {
41
+ const containerIsTag = rangeContainer === answerTextNode;
42
+ const container = containerIsTag ? rangeContainer.childNodes[offset] : rangeContainer;
43
+ const offsetInside = containerIsTag ? 0 : offset;
44
+ const nodesBeforeContainer = _.takeWhile(answerNodes, (node) => node !== container);
45
+ return offsetInside + _.sum(nodesBeforeContainer.map(toNodeLength));
46
+ }
47
+ }
48
+ export function toNodeLength(node) {
49
+ var _a;
50
+ return node.nodeType === Node.TEXT_NODE ? (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.length : node.nodeName === 'IMG' ? 1 : 0;
51
+ }
52
+ export function allNodesUnder(el, documentObject = document) {
53
+ let n = null;
54
+ const a = [];
55
+ const walk = documentObject.createTreeWalker(el, NodeFilter.SHOW_ALL, null);
56
+ while ((n = walk.nextNode())) {
57
+ a.push(n);
58
+ }
59
+ return a;
60
+ }
61
+ //# sourceMappingURL=MultiLineAnswer.js.map
@@ -0,0 +1 @@
1
+ {"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../createRenderChildNodes';
3
+ declare const _default: React.MemoExoticComponent<React.ComponentType<ExamComponentProps>>;
4
+ export default _default;
5
+ //# sourceMappingURL=Question.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Question.d.ts","sourceRoot":"","sources":["../../../src/components/grading/Question.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;;AA2BjE,wBAAwD"}
@@ -0,0 +1,23 @@
1
+ import classNames from 'classnames';
2
+ import React, { useContext } from 'react';
3
+ import { findChildrenAnswers, getNumericAttribute } from '../../dom-utils';
4
+ import { QuestionContext, withQuestionContext } from '../context/QuestionContext';
5
+ import AnnotationList from './internal/AnnotationList';
6
+ import { ResultsContext } from '../context/ResultsContext';
7
+ function Question({ element, renderChildNodes }) {
8
+ const { answersByQuestionId } = useContext(ResultsContext);
9
+ const { displayNumber, level } = useContext(QuestionContext);
10
+ const hasAnswers = questionHasAnswers(element, answersByQuestionId);
11
+ return hasAnswers ? (React.createElement("div", { className: classNames('exam-question', {
12
+ 'e-mrg-b-8 e-clearfix': level === 0,
13
+ 'e-mrg-l-8 e-mrg-y-4': level > 0,
14
+ }), id: displayNumber },
15
+ renderChildNodes(element),
16
+ React.createElement(AnnotationList, null))) : null;
17
+ }
18
+ function questionHasAnswers(element, answers) {
19
+ const answerElems = findChildrenAnswers(element);
20
+ return answerElems.some((e) => answers[getNumericAttribute(e, 'question-id')]);
21
+ }
22
+ export default React.memo(withQuestionContext(Question));
23
+ //# sourceMappingURL=Question.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/grading/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;AAI1D,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;IAEnE,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,6BACE,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE;YACrC,sBAAsB,EAAE,KAAK,KAAK,CAAC;YACnC,qBAAqB,EAAE,KAAK,GAAG,CAAC;SACjC,CAAC,EACF,EAAE,EAAE,aAAa;QAEhB,gBAAgB,CAAC,OAAO,CAAC;QAC1B,oBAAC,cAAc,OAAG,CACd,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAgB,EAAE,OAAmC;IAC/E,MAAM,WAAW,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAChD,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,aAAa,CAAE,CAAC,CAAC,CAAA;AACjF,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../../createRenderChildNodes';
3
+ declare function QuestionTitle({ element, renderChildNodes }: ExamComponentProps): JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof QuestionTitle>;
5
+ export default _default;
6
+ //# sourceMappingURL=QuestionTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionTitle.d.ts","sourceRoot":"","sources":["../../../src/components/grading/QuestionTitle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,eAwBvE;;AAED,wBAAwC"}
@@ -0,0 +1,21 @@
1
+ import classNames from 'classnames';
2
+ import React, { useContext } from 'react';
3
+ import AnsweringInstructions from '../AnsweringInstructions';
4
+ import NotificationIcon from '../NotificationIcon';
5
+ import { QuestionContext } from '../context/QuestionContext';
6
+ import { formatQuestionDisplayNumber } from '../../formatting';
7
+ function QuestionTitle({ element, renderChildNodes }) {
8
+ const { displayNumber, level, maxAnswers, childQuestions } = useContext(QuestionContext);
9
+ const Tag = `h${Math.min(3 + level, 6)}`;
10
+ return (React.createElement(React.Fragment, null,
11
+ React.createElement(Tag, { className: classNames('exam-question-title', { 'e-normal e-font-size-m': level > 0 }) },
12
+ React.createElement("strong", { className: classNames('exam-question-title__display-number', {
13
+ 'exam-question-title__display-number--indented': level > 0,
14
+ }) }, formatQuestionDisplayNumber(displayNumber) + ' '),
15
+ renderChildNodes(element)),
16
+ maxAnswers != null && childQuestions.length > 0 && (React.createElement("p", { className: "e-italic" },
17
+ React.createElement(NotificationIcon, null),
18
+ React.createElement(AnsweringInstructions, { ...{ maxAnswers, childQuestions, elementType: 'question' } })))));
19
+ }
20
+ export default React.memo(QuestionTitle);
21
+ //# sourceMappingURL=QuestionTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionTitle.js","sourceRoot":"","sources":["../../../src/components/grading/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA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
4
+ export interface ResultsProps extends CommonExamProps {
5
+ /** Contains grading structure for the exam, and in addition scores and metadata (comments and annotations) */
6
+ gradingStructure: GradingStructure;
7
+ /** Custom grading text to be displayed for the whole exam. For example total grade for the exam. */
8
+ gradingText?: string;
9
+ /** Scores for exam answers */
10
+ scores: Score[];
11
+ singleGrading?: boolean;
12
+ }
13
+ declare const _default: React.MemoExoticComponent<React.ComponentType<import("../results/Results").ResultsProps>>;
14
+ export default _default;
15
+ //# sourceMappingURL=Results.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../../src/components/grading/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;AAgB9C,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;CACxB;;AA8ED,wBAA6E"}