@digabi/exam-engine-core 19.6.1 → 19.7.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/testExamRendering.js +1 -0
- package/dist/__tests__/testExamRendering.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/__tests__/validateAnswers.test.js +3 -0
- package/dist/__tests__/validateAnswers.test.js.map +1 -1
- package/dist/components/SectionElement.js +1 -1
- package/dist/components/SectionElement.js.map +1 -1
- package/dist/components/attachments/Attachments.js +1 -1
- package/dist/components/attachments/Attachments.js.map +1 -1
- package/dist/components/attachments/ExternalMaterial.js +1 -1
- package/dist/components/attachments/ExternalMaterial.js.map +1 -1
- package/dist/components/exam/ChoiceAnswer.js +8 -10
- package/dist/components/exam/ChoiceAnswer.js.map +1 -1
- package/dist/components/exam/Exam.d.ts +1 -0
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +73 -15
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/Hints.js +1 -1
- package/dist/components/exam/Hints.js.map +1 -1
- package/dist/components/exam/Question.d.ts.map +1 -1
- package/dist/components/exam/Question.js +6 -3
- package/dist/components/exam/Question.js.map +1 -1
- package/dist/components/exam/QuestionTitle.js +1 -1
- package/dist/components/exam/QuestionTitle.js.map +1 -1
- package/dist/components/exam/RichTextAnswer.js +2 -1
- package/dist/components/exam/RichTextAnswer.js.map +1 -1
- package/dist/components/exam/SectionTitle.js +1 -1
- package/dist/components/exam/SectionTitle.js.map +1 -1
- package/dist/components/exam/internal/ErrorIndicator.js +2 -2
- package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
- package/dist/components/exam/internal/TextAnswerInput.js +8 -10
- package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
- package/dist/components/grading-instructions/AutogradedAnswer.js +2 -2
- package/dist/components/grading-instructions/AutogradedAnswer.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +7 -3
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/components/results/ChoiceAnswer.js +7 -9
- package/dist/components/results/ChoiceAnswer.js.map +1 -1
- package/dist/components/results/QuestionTitle.js +1 -1
- package/dist/components/results/QuestionTitle.js.map +1 -1
- package/dist/components/results/TextAnswer.js +9 -13
- package/dist/components/results/TextAnswer.js.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.js +1 -1
- package/dist/components/results/internal/QuestionManualScore.js.map +1 -1
- package/dist/components/shared/AnswerIndicator.d.ts +11 -0
- package/dist/components/shared/AnswerIndicator.d.ts.map +1 -0
- package/dist/components/shared/AnswerIndicator.js +22 -0
- package/dist/components/shared/AnswerIndicator.js.map +1 -0
- package/dist/components/shared/AttachmentLink.js +2 -2
- package/dist/components/shared/AttachmentLink.js.map +1 -1
- package/dist/components/shared/AttachmentLinks.js +2 -2
- package/dist/components/shared/AttachmentLinks.js.map +1 -1
- package/dist/components/shared/Audio.js +1 -1
- package/dist/components/shared/Audio.js.map +1 -1
- package/dist/components/shared/ExamTranslation.d.ts +6 -0
- package/dist/components/shared/ExamTranslation.d.ts.map +1 -0
- package/dist/components/shared/ExamTranslation.js +10 -0
- package/dist/components/shared/ExamTranslation.js.map +1 -0
- package/dist/components/shared/Image.js +6 -8
- package/dist/components/shared/Image.js.map +1 -1
- package/dist/components/shared/ImageOverlay.js +2 -4
- package/dist/components/shared/ImageOverlay.js.map +1 -1
- package/dist/components/shared/QuestionNumber.d.ts +4 -0
- package/dist/components/shared/QuestionNumber.d.ts.map +1 -0
- package/dist/components/shared/QuestionNumber.js +12 -0
- package/dist/components/shared/QuestionNumber.js.map +1 -0
- package/dist/components/shared/Reference.js +2 -2
- package/dist/components/shared/Reference.js.map +1 -1
- package/dist/components/shared/TableOfContents.d.ts +3 -0
- package/dist/components/shared/TableOfContents.d.ts.map +1 -1
- package/dist/components/shared/TableOfContents.js +78 -26
- package/dist/components/shared/TableOfContents.js.map +1 -1
- package/dist/components/shared/Video.js +1 -1
- package/dist/components/shared/Video.js.map +1 -1
- package/dist/createRenderChildNodes.js +1 -1
- package/dist/createRenderChildNodes.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/validateAnswers.d.ts +1 -0
- package/dist/validateAnswers.d.ts.map +1 -1
- package/dist/validateAnswers.js +1 -0
- package/dist/validateAnswers.js.map +1 -1
- package/package.json +2 -2
@@ -66,6 +66,7 @@ describe('Answer length validation', () => {
|
|
66
66
|
displayNumber: '1',
|
67
67
|
type: 'AnswerTooLong',
|
68
68
|
characterCount: 8,
|
69
|
+
elementType: 'question',
|
69
70
|
},
|
70
71
|
]);
|
71
72
|
});
|
@@ -75,11 +76,13 @@ describe('Answer length validation', () => {
|
|
75
76
|
displayNumber: '1',
|
76
77
|
type: 'AnswerTooLong',
|
77
78
|
characterCount: 8,
|
79
|
+
elementType: 'question',
|
78
80
|
},
|
79
81
|
{
|
80
82
|
displayNumber: '2.1',
|
81
83
|
type: 'AnswerTooLong',
|
82
84
|
characterCount: 8,
|
85
|
+
elementType: 'question',
|
83
86
|
},
|
84
87
|
]);
|
85
88
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validateAnswers.test.js","sourceRoot":"","sources":["../../__tests__/validateAnswers.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAwD;AACxD,wEAA+C;AAC/C,yEAAkF;AAClF,yEAAkF;AAClF,yEAA0D;AAE1D,0CAA2B;AAE3B,IAAI,aAA0B,CAAA;AAC9B,IAAI,gBAAkC,CAAA;AAEtC,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,IAAI,GAAG,IAAA,oCAAY,EAAC;QACxB,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE;oBACT,IAAA,gCAAQ,EAAC,CAAC,IAAA,kCAAU,EAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,C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AAE,OAAO,CAAC,CAAA;AAC1C,CAAC,CAAA;AAED,MAAM,OAAO,GAAG,CAAI,KAAU,EAAS,EAAE,CACvC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAU,CAAC,CAAA"}
|
@@ -2,7 +2,7 @@ import classNames from 'classnames';
|
|
2
2
|
import React from 'react';
|
3
3
|
const SectionElement = (props) => {
|
4
4
|
const className = classNames('e-section e-bg-color-off-white e-pad-6', props.className);
|
5
|
-
return React.createElement("section", { ...
|
5
|
+
return React.createElement("section", { ...props, className }, props.children);
|
6
6
|
};
|
7
7
|
export default SectionElement;
|
8
8
|
//# sourceMappingURL=SectionElement.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../src/components/SectionElement.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,cAAc,GAEhB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,SAAS,GAAG,UAAU,CAAC,wCAAwC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IACvF,OAAO,
|
1
|
+
{"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../src/components/SectionElement.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,cAAc,GAEhB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,SAAS,GAAG,UAAU,CAAC,wCAAwC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IACvF,OAAO,iCAAe,GAAG,KAAK,EAAE,SAAS,IAAK,KAAK,CAAC,QAAQ,CAAW,CAAA;AACzE,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
@@ -41,7 +41,7 @@ const Attachments = () => {
|
|
41
41
|
NBSP,
|
42
42
|
renderChildNodes(examTitle))),
|
43
43
|
React.createElement("div", { className: "e-semibold e-mrg-b-6" }, dateTimeFormatter.format(date)),
|
44
|
-
externalMaterial && (React.createElement(AttachmentsExternalMaterial, {
|
44
|
+
externalMaterial && (React.createElement(AttachmentsExternalMaterial, { element: externalMaterial, renderChildNodes, forceRender: true }))),
|
45
45
|
renderChildNodes(root))));
|
46
46
|
};
|
47
47
|
// Wrap to a separate component, since we can't use translation hooks in the root component.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Attachments.js","sourceRoot":"","sources":["../../../src/components/attachments/Attachments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,2BAA2B,MAAM,oBAAoB,CAAA;AAC5D,OAAO,mBAAmB,MAAM,YAAY,CAAA;AAC5C,OAAO,wBAAwB,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,OAA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AG;YACnB,cAAc,IAAI,8BAAM,GAAG,EAAC,YAAY,EAAC,IAAI,EAAE,iBAAiB,CAAC,cAAc,CAAC,GAAI;YACrF,oBAAC,cAAc,uBAAkB,WAAW;gBACzC,SAAS,IAAI,CACZ,oBAAC,aAAa,IAAC,EAAE,EAAE,WAAW;oBAC5B,oBAAC,oBAAoB,OAAG;oBACvB,IAAI;oBACJ,gBAAgB,CAAC,SAAS,CAAC,CACd,CACjB;gBACD,6BAAK,SAAS,EAAC,sBAAsB,IAAE,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAO;gBAC3E,gBAAgB,IAAI,CACnB,oBAAC,2BAA2B,IAAO,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,GAAM,CACxG,CACc;YAChB,gBAAgB,CAAC,IAAI,CAAC,CAClB,CACS,CACnB,CAAA;AACH,CAAC,CAAA;AAED,4FAA4F;AAC5F,MAAM,CAAC,MAAM,oBAAoB,GAA4B,GAAG,EAAE;IAChE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,OAAO,0CAAG,CAAC,CAAC,wBAAwB,CAAC,CAAI,CAAA;AAC3C,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA"}
|
@@ -35,7 +35,7 @@ function ExternalMaterial({ element, forceRender = false }) {
|
|
35
35
|
}
|
36
36
|
const attachmentCount = element.children.length;
|
37
37
|
return (React.createElement(React.Fragment, null,
|
38
|
-
attachmentCount > 1 && (React.createElement(ExamExternalMaterial, {
|
38
|
+
attachmentCount > 1 && (React.createElement(ExamExternalMaterial, { element, renderChildNodes, showTitle: false, forceRender })),
|
39
39
|
renderChildNodes(element)));
|
40
40
|
}
|
41
41
|
export default React.memo(ExternalMaterial);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExternalMaterial.js","sourceRoot":"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,EAAE,eAAe;IACnC,UAAU,EAAE,UAAU;IACtB,KAAK,EAAE,KAAK;IACZ,aAAa,EAAE,gBAAgB;IAC/B,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,QAAQ,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,yBAAyB,EAAE,CAAC;IAC/E,eAAe,EAAE,YAAY;CAC9B,CAAC,CAAA;AAMF,SAAS,gBAAgB,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,KAAK,EAAoC;IAC1F,IAAI,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE;QAC/D,OAAO,IAAI,CAAA;KACZ;IAED,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAA;IAE/C,OAAO,CACL;QACG,eAAe,GAAG,CAAC,IAAI,CACtB,oBAAC,oBAAoB,IAAO,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,GAAM,CAC3F;QACA,gBAAgB,CAAC,OAAO,CAAC,CACzB,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA"}
|
@@ -37,16 +37,14 @@ const ChoiceAnswer = ({ element, renderChildNodes }) => {
|
|
37
37
|
const isNoAnswer = childElement.getAttribute('type') === 'no-answer';
|
38
38
|
const value = isNoAnswer ? '' : optionId;
|
39
39
|
const selected = answer != null && answer.value === value;
|
40
|
-
return (React.createElement(ChoiceAnswerOption, {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
value,
|
49
|
-
} }));
|
40
|
+
return (React.createElement(ChoiceAnswerOption, { element: childElement,
|
41
|
+
onSelect,
|
42
|
+
renderChildNodes,
|
43
|
+
questionId,
|
44
|
+
key: optionId,
|
45
|
+
direction,
|
46
|
+
selected,
|
47
|
+
value }));
|
50
48
|
})));
|
51
49
|
};
|
52
50
|
export default React.memo(ChoiceAnswer);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChoiceAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/ChoiceAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAG9E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAWxD,MAAM,kBAAkB,GAAG,CAAC,EAC1B,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,SAAS,EACT,KAAK,GACmB,EAAE,EAAE;IAC5B,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;IAE/C,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;IAED,OAAO,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,CAChC,6BAAK,SAAS,EAAC,WAAW;QACxB,+BACE,SAAS,EAAE,UAAU,CAAC,WAAW,EAAE;gBACjC,mBAAmB,EACjB,KAAK,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,IAAI,CAAC,8DAA8D;aAC5G,CAAC;YAEF,+BACE,IAAI,EAAC,OAA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AI,IAAI,MAAM,CAAC,KAAK,KAAK,KAAK,CAAA;QAEzD,OAAO,CACL,oBAAC,kBAAkB,IAEf,OAAO,EAAE,YAAY;YACrB,QAAQ;YACR,gBAAgB;YAChB,UAAU;YACV,GAAG,EAAE,QAAQ;YACb,SAAS;YACT,QAAQ;YACR,KAAK,GAEP,CACH,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
|
@@ -26,6 +26,7 @@ export interface ExamProps extends CommonExamProps {
|
|
26
26
|
restrictedAudioPlaybackStats: RestrictedAudioPlaybackStats[];
|
27
27
|
/** Exam Server API implementation */
|
28
28
|
examServerApi: ExamServerAPI;
|
29
|
+
type: 'normal' | 'visually-impaired' | 'hearing-impaired';
|
29
30
|
}
|
30
31
|
declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
|
31
32
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA6CvG,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,mBAAmB;IACnB,GAAG,EAAE,WAAW,CAAA;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,4BAA4B,EAAE,CAAA;IAC5D,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,IAAI,EAAE,QAAQ,GAAG,mBAAmB,GAAG,kBAAkB,CAAA;CAC1D;;AAmLD,wBAAuE"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, { useContext, useEffect } from 'react';
|
1
|
+
import React, { createRef, useContext, useEffect } from 'react';
|
2
2
|
import { I18nextProvider } from 'react-i18next';
|
3
3
|
import { Provider } from 'react-redux';
|
4
4
|
import { createRenderChildNodes } from '../../createRenderChildNodes';
|
@@ -42,6 +42,8 @@ import { mkTableOfContents } from '../shared/TableOfContents';
|
|
42
42
|
import TextAnswer from './TextAnswer';
|
43
43
|
import Video from '../shared/Video';
|
44
44
|
import RenderChildNodes from '../RenderChildNodes';
|
45
|
+
import * as _ from 'lodash-es';
|
46
|
+
import classNames from 'classnames';
|
45
47
|
const renderChildNodes = createRenderChildNodes({
|
46
48
|
attachment: ExamAttachment,
|
47
49
|
'attachment-link': mkAttachmentLink('link'),
|
@@ -71,34 +73,90 @@ const renderChildNodes = createRenderChildNodes({
|
|
71
73
|
video: Video,
|
72
74
|
'image-overlay': ImageOverlay,
|
73
75
|
});
|
74
|
-
const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi, }) => {
|
76
|
+
const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi, type, }) => {
|
75
77
|
const { date, dateTimeFormatter, dayCode, examCode, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
|
76
78
|
const examTitle = findChildElement(root, 'exam-title');
|
77
79
|
const examInstruction = findChildElement(root, 'exam-instruction');
|
78
80
|
const tableOfContents = findChildElement(root, 'table-of-contents');
|
79
81
|
const externalMaterial = findChildElement(root, 'external-material');
|
80
82
|
const examStylesheet = root.getAttribute('exam-stylesheet');
|
83
|
+
const examRef = createRef();
|
81
84
|
const store = useCached(() => initializeExamStore(parseExamStructure(doc), casStatus, answers, restrictedAudioPlaybackStats, examServerApi));
|
82
|
-
const
|
85
|
+
const answersState = store.getState().answers;
|
86
|
+
const TableOfContentsSidebar = useCached(() => mkTableOfContents({
|
87
|
+
showAttachmentLinks: true,
|
88
|
+
showAnsweringInstructions: true,
|
89
|
+
isInSidebar: true,
|
90
|
+
answers: answersState,
|
91
|
+
}));
|
92
|
+
const TableOfContents = useCached(() => mkTableOfContents({
|
93
|
+
showAttachmentLinks: true,
|
94
|
+
showAnsweringInstructions: true,
|
95
|
+
isInSidebar: false,
|
96
|
+
answers: answersState,
|
97
|
+
}));
|
83
98
|
const i18n = useCached(() => initI18n(language, examCode, dayCode));
|
84
99
|
useEffect(changeLanguage(i18n, language));
|
85
100
|
useEffect(scrollToHash, []);
|
101
|
+
const isInViewport = (element) => {
|
102
|
+
const rect = element.getBoundingClientRect();
|
103
|
+
return rect.top >= 100 && rect.bottom <= window.innerHeight - 100;
|
104
|
+
};
|
105
|
+
const handleExamScroll = (e) => {
|
106
|
+
const scrollY = e.currentTarget.scrollTop;
|
107
|
+
const sections = document.querySelectorAll('.exam-question.e-level-0');
|
108
|
+
const sideNavigation = document.querySelector(`.sidebar-toc-container`);
|
109
|
+
const lis = document.querySelectorAll(`.sidebar-toc-container li[data-list-number]`);
|
110
|
+
lis.forEach((i) => i.classList.remove('current'));
|
111
|
+
// Find the section currently in view
|
112
|
+
sections.forEach((section) => {
|
113
|
+
var _a;
|
114
|
+
const sectionTop = section.getBoundingClientRect().top + scrollY;
|
115
|
+
const sectionBottom = section.getBoundingClientRect().bottom + scrollY;
|
116
|
+
const sectionBeginsInView = sectionTop < scrollY + window.innerHeight && sectionTop > scrollY;
|
117
|
+
const sectionEndsInView = sectionBottom < scrollY + window.innerHeight && sectionBottom > scrollY;
|
118
|
+
const sectionFillsView = sectionTop < scrollY && sectionBottom > scrollY + window.innerHeight;
|
119
|
+
const sectionId = ((_a = section.querySelector('.anchor')) === null || _a === void 0 ? void 0 : _a.id) || '';
|
120
|
+
if (sectionBeginsInView || sectionEndsInView || sectionFillsView) {
|
121
|
+
const currentNavTitle = document.querySelector(`.table-of-contents li[data-list-number="${sectionId}."]`);
|
122
|
+
if (currentNavTitle) {
|
123
|
+
currentNavTitle.classList.add('current');
|
124
|
+
const isVisible = isInViewport(currentNavTitle);
|
125
|
+
if (!isVisible && sideNavigation) {
|
126
|
+
const navHeight = sideNavigation.getBoundingClientRect().height;
|
127
|
+
const scrollToPos = currentNavTitle.offsetTop - navHeight / 2;
|
128
|
+
sideNavigation.scrollTo({ behavior: 'smooth', top: scrollToPos });
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
});
|
133
|
+
};
|
134
|
+
const throttledScroll = _.throttle(handleExamScroll, 100, { trailing: false });
|
135
|
+
const visuallyImpaired = type === 'visually-impaired';
|
86
136
|
return (React.createElement(Provider, { store: store },
|
87
137
|
React.createElement(I18nextProvider, { i18n: i18n },
|
88
|
-
React.createElement("main", { className: "e-exam", lang: subjectLanguage, "aria-labelledby": examTitleId },
|
138
|
+
React.createElement("main", { className: "e-exam", lang: subjectLanguage, "aria-labelledby": examTitleId, ref: examRef },
|
89
139
|
React.createElement(React.StrictMode, null),
|
90
140
|
examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
|
91
|
-
React.createElement(
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
141
|
+
React.createElement("div", { className: "e-halves" },
|
142
|
+
tableOfContents && !visuallyImpaired && (React.createElement("div", { className: "sidebar-toc-container" },
|
143
|
+
React.createElement(TableOfContentsSidebar, { element: tableOfContents, renderChildNodes, isInSidebar: true }))),
|
144
|
+
React.createElement("div", { className: "main-exam-container", onScroll: throttledScroll },
|
145
|
+
React.createElement("div", { className: classNames('main-exam', { center: visuallyImpaired }) },
|
146
|
+
React.createElement(SectionElement, { "aria-labelledby": examTitleId },
|
147
|
+
examTitle && React.createElement(DocumentTitle, { id: examTitleId }, renderChildNodes(examTitle)),
|
148
|
+
date && (React.createElement("p", null,
|
149
|
+
React.createElement("strong", null, dateTimeFormatter.format(date)))),
|
150
|
+
examInstruction && React.createElement(ExamInstruction, { element: examInstruction, renderChildNodes }),
|
151
|
+
tableOfContents && (React.createElement("div", { className: "main-toc-container" },
|
152
|
+
React.createElement(TableOfContents, { element: tableOfContents,
|
153
|
+
renderChildNodes,
|
154
|
+
isInSideBar: false }))),
|
155
|
+
externalMaterial && (React.createElement(ExternalMaterial, { element: externalMaterial, renderChildNodes, forceRender: true }))),
|
156
|
+
renderChildNodes(root),
|
157
|
+
React.createElement("div", { className: "e-footer" },
|
158
|
+
React.createElement(ErrorIndicator, null),
|
159
|
+
React.createElement(SaveIndicator, null)))))))));
|
102
160
|
};
|
103
161
|
export default React.memo(withExamContext(withCommonExamContext(Exam)));
|
104
162
|
//# sourceMappingURL=Exam.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,sBAAsB,E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,KAAK,GAEpB,CACE,CACP;gCACA,gBAAgB,IAAI,CACnB,oBAAC,gBAAgB,IAAO,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,GAAM,CAC7F,CACc;4BAChB,gBAAgB,CAAC,IAAI,CAAC;4BACvB,6BAAK,SAAS,EAAC,UAAU;gCACvB,oBAAC,cAAc,OAAG;gCAClB,oBAAC,aAAa,OAAG,CACb,CACF,CACF,CACF,CACD,CACS,CACT,CACZ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA"}
|
@@ -8,7 +8,7 @@ const Hints = ({ element, renderChildNodes }) => {
|
|
8
8
|
const answersWithHints = queryAll(element, ['text-answer', 'scored-text-answer']).filter((answer) => findChildElement(answer, 'hint') != null);
|
9
9
|
return answersWithHints.length > 0 ? (React.createElement("div", { className: "e-columns" },
|
10
10
|
React.createElement("div", { className: "e-column e-column--8" }, renderChildNodes(element)),
|
11
|
-
React.createElement("div", { className: "e-hints e-column e-column--4", "aria-hidden": "true" }, answersWithHints.map((answer, i) => (React.createElement(Hint, {
|
11
|
+
React.createElement("div", { className: "e-hints e-column e-column--4", "aria-hidden": "true" }, answersWithHints.map((answer, i) => (React.createElement(Hint, { answer, focusedQuestionId, renderChildNodes, key: i })))))) : (React.createElement(React.Fragment, null, renderChildNodes(element)));
|
12
12
|
};
|
13
13
|
function Hint({ answer, focusedQuestionId, renderChildNodes, }) {
|
14
14
|
const questionId = getNumericAttribute(answer, 'question-id');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Hints.js","sourceRoot":"","sources":["../../../src/components/exam/Hints.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,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G,EAAE;YACZ,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAc,kCAAkC,UAAU,IAAI,CAAC,CAAA;YACtG,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,KAAK,EAAE,CAAA;aACjB;QACH,CAAC,sBACiB,UAAU;QAE3B,kBAAkB,CAAC,aAAa,CAAC;;QAAG,gBAAgB,CAAC,IAAI,CAAC,CACzD,CACL,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Question.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Question.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;;
|
1
|
+
{"version":3,"file":"Question.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Question.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;;AA0BzC,wBAAwD"}
|
@@ -8,9 +8,12 @@ function Question({ element, renderChildNodes }) {
|
|
8
8
|
const { casForbidden } = useContext(SectionContext);
|
9
9
|
const { displayNumber, level } = useContext(QuestionContext);
|
10
10
|
return !casForbidden || casStatus === 'forbidden' ? (React.createElement("div", { className: classNames('exam-question', {
|
11
|
-
'e-
|
12
|
-
'e-
|
13
|
-
|
11
|
+
'e-level-0': level === 0,
|
12
|
+
'e-pad-b-4 e-pad-t-4 e-clearfix': level === 0,
|
13
|
+
'e-mrg-l-8': level > 0,
|
14
|
+
}) },
|
15
|
+
React.createElement("div", { className: "anchor", id: displayNumber }),
|
16
|
+
renderChildNodes(element))) : null;
|
14
17
|
}
|
15
18
|
export default React.memo(withQuestionContext(Question));
|
16
19
|
//# sourceMappingURL=Question.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/exam/Question.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAA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AAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAE5D,OAAO,CAAC,YAAY,IAAI,SAAS,KAAK,WAAW,CAAC,CAAC,CAAC,CAClD,6BACE,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE;YACrC,WAAW,EAAE,KAAK,KAAK,CAAC;YACxB,gCAAgC,EAAE,KAAK,KAAK,CAAC;YAC7C,WAAW,EAAE,KAAK,GAAG,CAAC;SACvB,CAAC;QAEF,6BAAK,SAAS,EAAC,QAAQ,EAAC,EAAE,EAAE,aAAa,GAAI;QAC5C,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA"}
|
@@ -20,7 +20,7 @@ const QuestionTitle = ({ element, renderChildNodes }) => {
|
|
20
20
|
React.createElement(Score, { score: maxScore, size: level === 0 ? 'large' : 'small' })),
|
21
21
|
maxAnswers != null && childQuestions.length > 0 && (React.createElement("p", { className: "e-italic" },
|
22
22
|
React.createElement(NotificationIcon, null),
|
23
|
-
React.createElement(AnsweringInstructions, {
|
23
|
+
React.createElement(AnsweringInstructions, { maxAnswers, childQuestions, elementType: 'question' })))));
|
24
24
|
};
|
25
25
|
export default React.memo(QuestionTitle);
|
26
26
|
//# sourceMappingURL=QuestionTitle.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QuestionTitle.js","sourceRoot":"","sources":["../../../src/components/exam/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO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cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAClD,2BAAG,SAAS,EAAC,UAAU;YACrB,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,qBAAqB,IAAO,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,GAAM,CACpF,CACL,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
|
@@ -2,7 +2,7 @@ import * as _ from 'lodash-es';
|
|
2
2
|
import React from 'react';
|
3
3
|
import { CommonExamContext } from '../context/CommonExamContext';
|
4
4
|
import { makeRichText } from 'rich-text-editor';
|
5
|
-
|
5
|
+
class RichTextAnswer extends React.PureComponent {
|
6
6
|
constructor(props) {
|
7
7
|
super(props);
|
8
8
|
this.handleSaveError = (err) => {
|
@@ -55,4 +55,5 @@ export default class RichTextAnswer extends React.PureComponent {
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
RichTextAnswer.contextType = CommonExamContext;
|
58
|
+
export default RichTextAnswer;
|
58
59
|
//# sourceMappingURL=RichTextAnswer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RichTextAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/RichTextAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAmB/C,
|
1
|
+
{"version":3,"file":"RichTextAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/RichTextAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,Y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Q,EAAE,CAAC,EACX,IAAI,EAAE,IAAI,qBACO,UAAU,GAC3B,CACH,CAAA;IACH,CAAC;;AAlFM,0BAAW,GAAG,iBAAiB,AAApB,CAAoB;eADnB,cAAc"}
|
@@ -16,7 +16,7 @@ function SectionTitle({ element, renderChildNodes }) {
|
|
16
16
|
renderChildNodes(element))),
|
17
17
|
maxAnswers != null && (React.createElement("span", { className: "notification notification--inline" },
|
18
18
|
React.createElement(NotificationIcon, null),
|
19
|
-
React.createElement(AnsweringInstructions, {
|
19
|
+
React.createElement(AnsweringInstructions, { maxAnswers, minAnswers, childQuestions, elementType: 'section' })))));
|
20
20
|
}
|
21
21
|
export default React.memo(SectionTitle);
|
22
22
|
//# sourceMappingURL=SectionTitle.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SectionTitle.js","sourceRoot":"","sources":["../../../src/components/exam/SectionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,SAAS,YAAY,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAClD,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC5F,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL;QACG,O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M,GAAG,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,CAAC;;YAAG,gBAAgB,CAAC,OAAO,CAAC,CAChF,CACN;QACA,UAAU,IAAI,IAAI,IAAI,CACrB,8BAAM,SAAS,EAAC,mCAAmC;YACjD,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,qBAAqB,IAAO,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,GAAM,CAC5F,CACR,CACA,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
|
@@ -32,9 +32,9 @@ export function ErrorIndicatorForErrors({ validationErrors, inExam, }) {
|
|
32
32
|
const key = validationError.type + validationError.displayNumber;
|
33
33
|
switch (validationError.type) {
|
34
34
|
case 'ExtraAnswer':
|
35
|
-
return React.createElement(ExtraAnswerError, { ...
|
35
|
+
return React.createElement(ExtraAnswerError, { ...validationError, key });
|
36
36
|
default:
|
37
|
-
return React.createElement(AnswerTooLongError, { ...
|
37
|
+
return React.createElement(AnswerTooLongError, { ...validationError, key });
|
38
38
|
}
|
39
39
|
})))) : null;
|
40
40
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ErrorIndicator.js","sourceRoot":"","sources":["../../../../src/components/exam/internal/ErrorIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,qBAAqB,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,i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,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC1G,OAAO,oBAAC,uBAAuB,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,GAAI,CAAA;AACtF,CAAC,CAAA;AAED,MAAM,aAAa,GAAyC,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;IAC7F,6EAA6E;IAC7E,8EAA8E;IAC9E,6EAA6E;IAC7E,0CAA0C;IAC1C,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;QAC9C,MAAM,OAAO,GAAG,gBAAgB,CAC9B,IAAI,EACJ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,YAAY,CAAC,gBAAgB,CAAC,KAAK,aAAa,CACvF,CAAA;QACD,IAAI,OAAO,EAAE;YACX,MAAM,YAAY,GAAG,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAA;YAC/D,IAAI,YAAY,EAAE;gBAChB,OAAO,0CAAG,GAAG,YAAY,CAAC,WAAY,CAAC,IAAI,EAAE,GAAG,CAAI,CAAA;aACrD;SACF;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
|
@@ -78,17 +78,15 @@ const TextAnswerInput = ({ element, className }) => {
|
|
78
78
|
switch (type) {
|
79
79
|
case 'rich-text':
|
80
80
|
return (React.createElement(React.Fragment, null,
|
81
|
-
maxLength != null && React.createElement(AnswerLengthInfo, {
|
81
|
+
maxLength != null && React.createElement(AnswerLengthInfo, { maxLength, id: answerLengthInfoId(element) }),
|
82
82
|
React.createElement(RichTextAnswer, { answer: answer, className: classNames('text-answer text-answer--rich-text', className), saveScreenshot: (data) => examServerApi.saveScreenshot(questionId, data), onChange: onRichTextChange, onError: onError, questionId: questionId, lang: lang, invalid: invalid, labelledBy: labelledBy }),
|
83
|
-
React.createElement(AnswerToolbar, {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
validationError,
|
91
|
-
} })));
|
83
|
+
React.createElement(AnswerToolbar, { answer,
|
84
|
+
element,
|
85
|
+
selectAnswerVersion: wrappedSelectAnswerVersion,
|
86
|
+
showAnswerHistory,
|
87
|
+
supportsAnswerHistory,
|
88
|
+
screenshotError,
|
89
|
+
validationError })));
|
92
90
|
case 'single-line':
|
93
91
|
default:
|
94
92
|
return (React.createElement("span", { className: "e-nowrap" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextAnswerInput.js","sourceRoot":"","sources":["../../../../src/components/exam/internal/TextAnswerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE3F,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,cAAmC,MAAM,mBAAmB,CAAA;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEhE,OAAO,gBAAgB,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,EAAE,aAAa,E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}
|
@@ -9,9 +9,9 @@ const AutogradedAnswer = ({ element, renderChildNodes }) => {
|
|
9
9
|
const gradingInstructions = findChildElement(element, 'answer-grading-instruction');
|
10
10
|
const maxLength = getNumericAttribute(element, 'max-length');
|
11
11
|
const content = (React.createElement(React.Fragment, null,
|
12
|
-
maxLength != null && React.createElement(AnswerLengthInfo, {
|
12
|
+
maxLength != null && React.createElement(AnswerLengthInfo, { maxLength }),
|
13
13
|
React.createElement("ul", null, renderChildNodes(element)),
|
14
|
-
gradingInstructions && React.createElement(AnswerGradingInstruction, {
|
14
|
+
gradingInstructions && React.createElement(AnswerGradingInstruction, { element: gradingInstructions, renderChildNodes })));
|
15
15
|
if (answers.length === 1) {
|
16
16
|
return content;
|
17
17
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AutogradedAnswer.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AutogradedAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AACjE,OAAO,gBAAgB,MAAM,4BAA4B,CAAA;AAEzD,MAAM,gBAAgB,GAAiC,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACvF,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAC/C,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,OAAO,EAAE,4BAA4B,CAAC,CAAA;IACnF,MAAM,SAAS,GAAG,mBAAmB,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;IAE5D,MAAM,OAAO,GAAG,CACd;QACG,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AI,GAAG,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;QAE9C,OAAO,CACL,6BAAK,SAAS,EAAC,WAAW;YACxB,2BAAG,SAAS,EAAC,qBAAqB;gBAChC,8BAAM,SAAS,EAAC,0DAA0D;oBAAE,aAAa;wBAAS;gBACjG,IAAI,IAAI,gBAAgB,CAAC,IAAI,CAAC;;gBAAE,oBAAC,KAAK,IAAC,KAAK,EAAE,QAAQ,GAAI,CACzD;YACH,OAAO,CACJ,CACP,CAAA;KACF;AACH,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructions.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"GradingInstructions.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAwH9C,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;AAED,wBAAqE"}
|