@digabi/exam-engine-core 19.14.3 → 19.14.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/results/AnnotationList.test.js +1 -1
- package/dist/__tests__/testExamRendering.js +2 -2
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.js +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
- package/dist/components/results/internal/AnnotationList.js +1 -1
- package/dist/components/results/internal/AnnotationList.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/package.json +2 -2
- package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
- package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
- package/dist/components/results/isExamFinishPageHook.js +0 -7
- package/dist/components/results/isExamFinishPageHook.js.map +0 -1
@@ -4,7 +4,7 @@ function GradingAnswerAnnotationList({ pregrading, censoring, singleGrading }) {
|
|
4
4
|
const getListOfAnnotations = (annotations, listNumberOffset = 0) => {
|
5
5
|
var _a;
|
6
6
|
return (_a = annotations
|
7
|
-
.filter(a => a.
|
7
|
+
.filter(a => ('length' in a ? !!a.length : true))
|
8
8
|
.map((annotation, i) => {
|
9
9
|
const numbering = `${String(listNumberOffset + i + 1)})`;
|
10
10
|
const message = annotation.message;
|
@@ -1 +1 @@
|
|
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,
|
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,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aAChD,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"}
|
@@ -18,7 +18,7 @@ function ResultsAnnotationList() {
|
|
18
18
|
});
|
19
19
|
const getListOfAnnotations = (answerElementAndScores, annotationsFrom, listNumberOffset = 0) => _.flatMap(answerElementAndScores, ([answer, score]) => {
|
20
20
|
var _a, _b, _c;
|
21
|
-
return (_c = (_b = (_a = score[annotationsFrom]) === null || _a === void 0 ? void 0 : _a.annotations) === null || _b === void 0 ? void 0 : _b.filter(a => a.
|
21
|
+
return (_c = (_b = (_a = score[annotationsFrom]) === null || _a === void 0 ? void 0 : _a.annotations) === null || _b === void 0 ? void 0 : _b.filter(a => ('length' in a ? !!a.length : true)).map((annotation, i) => {
|
22
22
|
const numbering = `${getPrefix(answers, answer) + String(listNumberOffset + i + 1)})`;
|
23
23
|
const message = annotation.message;
|
24
24
|
return { numbering, message };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnnotationList.js","sourceRoot":"","sources":["../../../../src/components/results/internal/AnnotationList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,cAAc,GAAG,CAAC,KAAY,EAAE,EAAE,uBACtC,OAAA,OAAO,CAAC,CAAA,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,WAAW,0CAAE,MAAM,MAAI,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,0CAAE,WAAW,0CAAE,MAAM,CAAA,CAAC,CAAA,EAAA,CAAA;AAE1F,MAAM,SAAS,GAAG,CAAC,OAAkB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