@digabi/exam-engine-core 23.1.2-alpha.0 → 23.1.3-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.js +10 -6
- package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.js.map +1 -1
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.d.ts.map +1 -1
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.js +0 -1
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/context/ResultsContext.js +1 -1
- package/dist/components/context/ResultsContext.js.map +1 -1
- package/dist/components/exam/DNDAnswerContainer.d.ts.map +1 -1
- package/dist/components/exam/DNDAnswerContainer.js.map +1 -1
- package/dist/components/results/AudioContainer.d.ts +4 -0
- package/dist/components/results/AudioContainer.d.ts.map +1 -0
- package/dist/components/results/AudioContainer.js +26 -0
- package/dist/components/results/AudioContainer.js.map +1 -0
- package/dist/components/results/DNDAnswerContainer.d.ts.map +1 -1
- package/dist/components/results/DNDAnswerContainer.js.map +1 -1
- package/dist/components/results/Results.js +2 -2
- package/dist/components/results/Results.js.map +1 -1
- package/dist/main-bundle.js +3 -3
- package/dist/main.css +1 -1
- package/package.json +3 -3
@@ -38,7 +38,7 @@ export function calculateQuestionSumScore(questionElement, gradingStructure, sco
|
|
38
38
|
const choiceQuestionScore = (questionId, scoredAnswer) => {
|
39
39
|
var _a;
|
40
40
|
const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
|
41
|
-
return choice ? (_a = choice.options.find(o => o.id === Number(scoredAnswer.value))) === null || _a === void 0 ? void 0 : _a.score : 0;
|
41
|
+
return choice ? (_a = choice.options.find(o => o.id === Number(scoredAnswer.value) && o.correct)) === null || _a === void 0 ? void 0 : _a.score : 0;
|
42
42
|
};
|
43
43
|
const textQuestionScore = (questionId) => {
|
44
44
|
var _a, _b;
|
@@ -1 +1 @@
|
|
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AU,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QAC7E,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,gBAAgB,EAGjB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAQ1C,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,CAAC,GAAG,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,gBAAgB,EAGjB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAQ1C,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,CAAC,GAAG,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,sBAyJnF,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DNDAnswerContainer.js","sourceRoot":"","sources":["../../../src/components/exam/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAGV,WAAW,EAEX,cAAc,EACd,aAAa,EAEb,SAAS,EACT,UA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
1
|
+
{"version":3,"file":"AudioContainer.d.ts","sourceRoot":"","sources":["../../../src/components/results/AudioContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAQjE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAUvD,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { getNumericAttribute } from '../../dom-utils';
|
3
|
+
import { audioLabelId } from '../../ids';
|
4
|
+
import Audio from '../shared/Audio';
|
5
|
+
import { faPlay } from '@fortawesome/free-solid-svg-icons';
|
6
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
7
|
+
import { formatDuration } from '../shared/internal/RestrictedAudioPlayer';
|
8
|
+
export const AudioContainer = ({ element, renderChildNodes }) => {
|
9
|
+
const restricted = !!getNumericAttribute(element, 'times');
|
10
|
+
const duration = getNumericAttribute(element, 'duration');
|
11
|
+
const labelId = audioLabelId(element);
|
12
|
+
if (restricted) {
|
13
|
+
return React.createElement(AudioPlaceholder, { duration: duration, labelId: labelId });
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
return React.createElement(Audio, { element: element, renderChildNodes: renderChildNodes });
|
17
|
+
}
|
18
|
+
};
|
19
|
+
const AudioPlaceholder = ({ duration, labelId }) => (React.createElement("div", { className: "audio e-columns e-columns--center-v e-mrg-b-2" },
|
20
|
+
React.createElement("div", { className: "e-pad-1 restricted-audio-player restricted-audio-player--disabled e-columns e-columns--center-v" },
|
21
|
+
React.createElement("button", { className: "restricted-audio-player__play e-column e-column--narrow", disabled: true, onClick: () => undefined },
|
22
|
+
React.createElement(FontAwesomeIcon, { icon: faPlay, fixedWidth: true })),
|
23
|
+
React.createElement("span", { className: "e-column e-text-right e-column" }, formatDuration(duration))),
|
24
|
+
React.createElement("span", { className: "e-pad-l-2", id: labelId },
|
25
|
+
React.createElement("em", null, "Ei kuunneltavissa"))));
|
26
|
+
//# sourceMappingURL=AudioContainer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AudioContainer.js","sourceRoot":"","sources":["../../../src/components/results/AudioContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAEzE,MAAM,CAAC,MAAM,cAAc,GAAiC,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5F,MAAM,UAAU,GAAG,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC1D,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,EAAE,UAAU,CAAE,CAAA;IAC1D,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAErC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAI,CAAA;IACnE,CAAC;SAAM,CAAC;QACN,OAAO,oBAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAAA;IACxE,CAAC;AACH,CAAC,CAAA;AAED,MAAM,gBAAgB,GAAoD,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACnG,6BAAK,SAAS,EAAC,+CAA+C;IAC5D,6BAAK,SAAS,EAAC,iGAAiG;QAC9G,gCACE,SAAS,EAAC,yDAAyD,EACnE,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;YAExB,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,EAAE,UAAU,SAAG,CACrC;QACT,8BAAM,SAAS,EAAC,gCAAgC,IAAE,cAAc,CAAC,QAAQ,CAAC,CAAQ,CAC9E;IAEN,8BAAM,SAAS,EAAC,WAAW,EAAC,EAAE,EAAE,OAAO;QACrC,oDAA0B,CACrB,CACH,CACP,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAO1C,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAO1C,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,sBA2DnF,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DNDAnswerContainer.js","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGvD,MAAM,CA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,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,GACd;YAED,gBAAgB,IAAI,CACnB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,GAAG,UAAU,UAAU,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CACc,CAClB,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA"}
|
@@ -33,13 +33,13 @@ import classNames from 'classnames';
|
|
33
33
|
import { EndExamSession } from './EndExamSession';
|
34
34
|
import { Footer } from '../shared/Footer';
|
35
35
|
import { DNDAnswerContainer } from './DNDAnswerContainer';
|
36
|
-
import {
|
36
|
+
import { AudioContainer } from './AudioContainer';
|
37
37
|
const renderChildNodes = createRenderChildNodes({
|
38
38
|
attachment: RenderChildNodes,
|
39
39
|
'attachment-link': mkAttachmentLink('plain'),
|
40
40
|
'attachment-links': mkAttachmentLinks('plain'),
|
41
41
|
'audio-group': RenderChildNodes,
|
42
|
-
audio: renderIf(({ element }) => queryAncestors(element, 'dnd-answer-container') != null)(
|
42
|
+
audio: renderIf(({ element }) => queryAncestors(element, 'dnd-answer-container') != null)(AudioContainer),
|
43
43
|
'choice-answer': ResultsChoiceAnswer,
|
44
44
|
'dnd-answer-container': DNDAnswerContainer,
|
45
45
|
'dropdown-answer': DropdownAnswer,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Results.js","sourceRoot":"","sources":["../../../src/components/results/Results.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,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