@digabi/exam-engine-core 23.2.0-alpha.0 → 23.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.js +10 -6
  2. package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.js.map +1 -1
  3. package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.d.ts.map +1 -1
  4. package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.js +0 -1
  5. package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.js.map +1 -1
  6. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  7. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  8. package/dist/components/context/ResultsContext.js +3 -1
  9. package/dist/components/context/ResultsContext.js.map +1 -1
  10. package/dist/components/exam/DNDAnswerContainer.d.ts +3 -1
  11. package/dist/components/exam/DNDAnswerContainer.d.ts.map +1 -1
  12. package/dist/components/exam/DNDAnswerContainer.js +29 -25
  13. package/dist/components/exam/DNDAnswerContainer.js.map +1 -1
  14. package/dist/components/results/AudioContainer.d.ts +4 -0
  15. package/dist/components/results/AudioContainer.d.ts.map +1 -0
  16. package/dist/components/results/AudioContainer.js +26 -0
  17. package/dist/components/results/AudioContainer.js.map +1 -0
  18. package/dist/components/results/CorrectDNDAnswers.d.ts.map +1 -1
  19. package/dist/components/results/CorrectDNDAnswers.js +6 -8
  20. package/dist/components/results/CorrectDNDAnswers.js.map +1 -1
  21. package/dist/components/results/DNDAnswerContainer.d.ts.map +1 -1
  22. package/dist/components/results/DNDAnswerContainer.js +5 -18
  23. package/dist/components/results/DNDAnswerContainer.js.map +1 -1
  24. package/dist/components/results/Results.js +2 -2
  25. package/dist/components/results/Results.js.map +1 -1
  26. package/dist/components/shared/DNDTitleAndDroppable.d.ts.map +1 -1
  27. package/dist/components/shared/DNDTitleAndDroppable.js +10 -25
  28. package/dist/components/shared/DNDTitleAndDroppable.js.map +1 -1
  29. package/dist/i18n/fi-FI.js +1 -1
  30. package/dist/i18n/fi-FI.js.map +1 -1
  31. package/dist/i18n/sv-FI.js +6 -6
  32. package/dist/i18n/sv-FI.js.map +1 -1
  33. package/dist/main-bundle.js +3 -3
  34. package/dist/main.css +1 -1
  35. package/dist/parser/parseExam.js +1 -1
  36. package/dist/parser/parseExam.js.map +1 -1
  37. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"ResultsContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/ResultsContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAgB,iBAAiB,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAI9G,MAAM,WAAW,cAAc;IAC7B,mBAAmB,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACnD,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,eAAO,MAAM,cAAc,+BAA4D,CAAA;AAEvF,eAAO,MAAM,kBAAkB,cAfR,MAAM,aAAa,UAAO,MAAO,aAAa,KA+BpE,CAAA;AAED,wBAAgB,mCAAmC,CACjD,gBAAgB,EAAE,gBAAgB,EAClC,EAAE,EAAE,MAAM,GACT,iBAAiB,GAAG,SAAS,CAY/B;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAEhF;AAED,wBAAgB,+BAA+B,CAC7C,iBAAiB,EAAE,OAAO,EAAE,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,KAAK,EAAE,EACf,mBAAmB,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAClD,M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eAAe,EAAE,OAAO,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,KAAK,EAAE,EACf,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAC1C,MAAM,CAkCR"}
@@ -38,7 +38,9 @@ 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
+ const option = choice === null || choice === void 0 ? void 0 : choice.options.find(o => o.id === Number(scoredAnswer.value));
42
+ const score = (_a = option === null || option === void 0 ? void 0 : option.score) !== null && _a !== void 0 ? _a : 0;
43
+ return (option === null || option === void 0 ? void 0 : option.correct) || score < 0 ? score : 0;
42
44
  };
43
45
  const textQuestionScore = (questionId) => {
44
46
  var _a, _b;
@@ -1 +1 @@
1
- {"version":3,"file":"ResultsContext.js","sourceRoot":"","sources":["../../../src/components/context/ResultsContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAEpG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAY3C,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAAiB,EAAoB,CAAC,CAAA;AAEvF,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAC3C,cAAc,EACd,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;IACzE,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,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AW,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,0CAAE,KAAK,KAAI,CAAC;YAC/G,CAAC,CAAC,CAAC,CAAA;IACP,CAAC,CAAA;IAED,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CACpB,mBAAmB,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAChD,MAAM,UAAU,GAAG,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAE,CAAA;QAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,CAAA;QAC5C,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO,CAAC,CAAA;QACV,CAAC;QACD,IAAI,YAAY,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACnC,OAAO,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;QACtD,CAAC;aAAM,CAAC;YACN,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAA;QACtC,CAAC;IACH,CAAC,CAAC,CACH,CAAA;IACD,oDAAoD;IACpD,IAAI,cAAc,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QAC7E,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { UniqueIdentifier } from '@dnd-kit/core';
2
2
  import React from 'react';
3
- import { ExamComponentProps } from '../..';
3
+ import { ExamAnswer, ExamComponentProps, QuestionId } from '../..';
4
4
  export type ItemsState = {
5
5
  root: UniqueIdentifier[];
6
6
  [key: UniqueIdentifier]: UniqueIdentifier[];
7
7
  };
8
+ export declare const getAnswerOptionIdsByQuestionId: (element: Element, answersById: Record<QuestionId, ExamAnswer>) => ItemsState;
9
+ export declare const getAnswerOptionsByOptionId: (element: Element) => Record<UniqueIdentifier, Element>;
8
10
  export declare const DNDAnswerContainer: ({ element, renderChildNodes }: ExamComponentProps) => React.JSX.Element;
9
11
  //# sourceMappingURL=DNDAnswerContainer.d.ts.map
@@ -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,sBA+JnF,CAAA"}
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,UAAU,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAQlE,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,CAAC,GAAG,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,8BAA8B,YAAa,OAAO,eAAe,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,eAiB3G,CAAA;AAED,eAAO,MAAM,0BAA0B,YAAa,OAAO,sCAO1D,CAAA;AAED,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,sBA+HnF,CAAA"}
@@ -7,31 +7,41 @@ import { saveAnswer } from '../../store/answers/actions';
7
7
  import { DNDTitleAndDroppable } from '../shared/DNDTitleAndDroppable';
8
8
  import { AllDNDOptions } from './DNDAllOptions';
9
9
  import { DNDAnswerOptionDraggable } from './DNDAnswerOptionDraggable';
10
+ export const getAnswerOptionIdsByQuestionId = (element, answersById) => {
11
+ const dndAnswers = queryAll(element, 'dnd-answer');
12
+ const dndAnswerOptions = queryAll(element, 'dnd-answer-option');
13
+ const answerOptionIdsByQuestionId = dndAnswers.reduce((acc, group) => {
14
+ var _a;
15
+ const questionId = group.getAttribute('question-id');
16
+ const answer = (_a = answersById[Number(questionId)]) === null || _a === void 0 ? void 0 : _a.value;
17
+ return {
18
+ ...acc,
19
+ [questionId]: answer ? [Number(answer)] : [],
20
+ root: acc.root.filter(e => e !== Number(answer))
21
+ };
22
+ }, { root: dndAnswerOptions.map(e => Number(e.getAttribute('option-id'))) });
23
+ return answerOptionIdsByQuestionId;
24
+ };
25
+ export const getAnswerOptionsByOptionId = (element) => {
26
+ const dndAnswerOptions = queryAll(element, 'dnd-answer-option');
27
+ const answerOptionsByOptionId = dndAnswerOptions.reduce((acc, el) => {
28
+ const optionId = el.getAttribute('option-id');
29
+ return { ...acc, [optionId]: el };
30
+ }, {});
31
+ return answerOptionsByOptionId;
32
+ };
10
33
  export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
11
34
  var _a;
35
+ const dispatch = useDispatch();
12
36
  const [activeId, setActiveId] = useState();
13
37
  const [optionIdsByQuestionId, setOptionIdsByQuestionId] = useState({});
14
38
  const [answerOptionsById, setAnswerOptionsById] = useState({});
15
39
  const [displayNumbersById, setDisplayNumbersById] = useState({});
16
- const dispatch = useDispatch();
17
40
  const answers = useSelector((state) => state.answers);
18
41
  useEffect(() => {
19
42
  const dndAnswers = queryAll(element, 'dnd-answer').filter(e => !!query(e, 'dnd-answer-title'));
20
- const dndAnswerOptions = queryAll(element, 'dnd-answer-option');
21
- const answerOptionIdsByQuestionId = dndAnswers.reduce((acc, group) => {
22
- var _a;
23
- const questionId = group.getAttribute('question-id');
24
- const answer = (_a = answers.answersById[Number(questionId)]) === null || _a === void 0 ? void 0 : _a.value;
25
- return {
26
- ...acc,
27
- [questionId]: answer ? [Number(answer)] : [],
28
- root: acc.root.filter(e => e !== Number(answer))
29
- };
30
- }, { root: dndAnswerOptions.map(e => Number(e.getAttribute('option-id'))) });
31
- const answerOptionsByOptionId = dndAnswerOptions.reduce((acc, el) => {
32
- const optionId = el.getAttribute('option-id');
33
- return { ...acc, [optionId]: el };
34
- }, {});
43
+ const answerOptionIdsByQuestionId = getAnswerOptionIdsByQuestionId(element, answers.answersById);
44
+ const answerOptionsByOptionId = getAnswerOptionsByOptionId(element);
35
45
  const displayNumbersById = dndAnswers.reduce((acc, el) => {
36
46
  const questionId = el.getAttribute('question-id');
37
47
  const displayNumber = el.getAttribute('display-number');
@@ -50,9 +60,6 @@ export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
50
60
  }
51
61
  return Object.keys(optionIdsByQuestionId).find(key => optionIdsByQuestionId[key].includes(id));
52
62
  }
53
- function handleDragStart(event) {
54
- setActiveId(event.active.id);
55
- }
56
63
  function getContainers(event) {
57
64
  const { active, over } = event;
58
65
  const activeId = active.id;
@@ -61,11 +68,8 @@ export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
61
68
  const overContainer = overId ? findContainer(overId) : null;
62
69
  return { activeId, activeContainer, overContainer };
63
70
  }
64
- function handleDragOver(event) {
65
- const { activeContainer, overContainer } = getContainers(event);
66
- if (!activeContainer || !overContainer || activeContainer === overContainer) {
67
- return;
68
- }
71
+ function handleDragStart(event) {
72
+ setActiveId(event.active.id);
69
73
  }
70
74
  function handleDragEnd(event) {
71
75
  const { activeId, activeContainer, overContainer } = getContainers(event);
@@ -92,7 +96,7 @@ export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
92
96
  const allAnswerOptionElements = (_a = optionIdsByQuestionId.root) === null || _a === void 0 ? void 0 : _a.map(id => answerOptionsById[id] || null).filter(Boolean);
93
97
  // We can not render the prop 'element' (XML) here, because we will change the DOM structure when items are dragged around¯, but the XML can not be changed
94
98
  return (React.createElement("div", { className: "e-dnd-answer-container" },
95
- React.createElement(DndContext, { sensors: sensors, onDragStart: handleDragStart, onDragOver: handleDragOver, onDragEnd: handleDragEnd },
99
+ React.createElement(DndContext, { sensors: sensors, onDragStart: handleDragStart, onDragEnd: handleDragEnd },
96
100
  dndAnswersWithQuestion.map(element => {
97
101
  var _a;
98
102
  const questionId = element.getAttribute('question-id');
@@ -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,UAAU,EACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAOrE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB,EAAE,EAAE;;IACtF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,EAA2B,CAAA;IACnE,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAa,EAAgB,CAAC,CAAA;IAChG,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAA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GAAG,CAAC,KAAK,CAAC,CAAA;IACxB,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../../createRenderChildNodes';
3
+ export declare const AudioContainer: React.FC<ExamComponentProps>;
4
+ //# sourceMappingURL=AudioContainer.d.ts.map
@@ -0,0 +1 @@
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":"CorrectDNDAnswers.d.ts","sourceRoot":"","sources":["../../../src/components/results/CorrectDNDAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAuB,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAK/D,eAAO,MAAM,iBAAiB,qDAI3B,kBAAkB,GAAG;IACtB,iBAAiB,EAAE,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;CACrD,sBAwBA,CAAA"}
1
+ {"version":3,"file":"CorrectDNDAnswers.d.ts","sourceRoot":"","sources":["../../../src/components/results/CorrectDNDAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAK1C,eAAO,MAAM,iBAAiB,qDAI3B,kBAAkB,GAAG;IACtB,iBAAiB,EAAE,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;CACrD,sBAsBA,CAAA"}
@@ -1,17 +1,15 @@
1
1
  import React, { useContext } from 'react';
2
- import { ResultsContext } from '../context/ResultsContext';
3
- import { DNDDroppable } from '../shared/DNDDroppable';
4
2
  import { useExamTranslation } from '../../i18n';
3
+ import { findMultiChoiceFromGradingStructure, ResultsContext } from '../context/ResultsContext';
4
+ import { DNDDroppable } from '../shared/DNDDroppable';
5
5
  export const CorrectDNDAnswers = ({ element, renderChildNodes, answerOptionsById }) => {
6
6
  var _a;
7
- const { gradingStructure } = useContext(ResultsContext);
8
- const displayNumber = element.getAttribute('display-number');
9
7
  const questionId = Number(element.getAttribute('question-id'));
10
- const thisQuestion = gradingStructure === null || gradingStructure === void 0 ? void 0 : gradingStructure.questions.find(q => q.displayNumber === displayNumber);
11
- const options = ((_a = thisQuestion === null || thisQuestion === void 0 ? void 0 : thisQuestion.choices.find(c => c.id === questionId)) === null || _a === void 0 ? void 0 : _a.options) || [];
12
- const correctOptionIds = options === null || options === void 0 ? void 0 : options.filter(o => o.correct).map(o => o.id);
13
- const correctDNDAnswerOptions = correctOptionIds === null || correctOptionIds === void 0 ? void 0 : correctOptionIds.map(id => (answerOptionsById === null || answerOptionsById === void 0 ? void 0 : answerOptionsById[id]) || null).filter(Boolean);
14
8
  const { t } = useExamTranslation();
9
+ const { gradingStructure } = useContext(ResultsContext);
10
+ const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
11
+ const correctOptionIds = (_a = choice === null || choice === void 0 ? void 0 : choice.options) === null || _a === void 0 ? void 0 : _a.filter(o => o.correct).map(o => o.id);
12
+ const correctDNDAnswerOptions = correctOptionIds === null || correctOptionIds === void 0 ? void 0 : correctOptionIds.map(id => (answerOptionsById === null || answerOptionsById === void 0 ? void 0 : answerOptionsById[id]) || null).filter(Boolean);
15
13
  return (React.createElement(React.Fragment, null,
16
14
  React.createElement("span", { className: "droppable-title align-right" }, t('dnd-answers.correct-answers')),
17
15
  React.createElement(DNDDroppable, { renderChildNodes: renderChildNodes, answerOptionElements: correctDNDAnswerOptions, correctIds: correctOptionIds, questionId: questionId, page: "results", classes: ['correct-answers'] })));
@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CAAC,gBAAgB,EAAE,UAAU,CAAE,CAAA;IACjF,MAAM,gBAAgB,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,0CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC/E,MAAM,uBAAuB,GAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,EAAE,CAAC,KAAI,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;IAE5G,OAAO,CACL;QACE,8BAAM,SAAS,EAAC,6BAA6B,IAAE,CAAC,CAAC,6BAA6B,CAAC,CAAQ;QACvF,oBAAC,YAAY,IACX,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,uBAAuB,EAC7C,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,CAAC,iBAAiB,CAAC,GAC5B,CACD,CACJ,CAAA;AACH,CAAC,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,sBA8DnF,CAAA"}
1
+ {"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAO1C,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,sBAuCnF,CAAA"}
@@ -1,35 +1,22 @@
1
1
  import React, { useContext } from 'react';
2
2
  import { query, queryAll } from '../../dom-utils';
3
3
  import { ResultsContext } from '../context/ResultsContext';
4
+ import { getAnswerOptionIdsByQuestionId, getAnswerOptionsByOptionId } from '../exam/DNDAnswerContainer';
4
5
  import { DNDTitleAndDroppable } from '../shared/DNDTitleAndDroppable';
5
6
  import { CorrectDNDAnswers } from './CorrectDNDAnswers';
6
7
  export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
7
8
  const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
8
- const dndAnswers = queryAll(element, 'dnd-answer').filter(e => !!query(e, 'dnd-answer-title'));
9
- const dndAnswerOptions = queryAll(element, 'dnd-answer-option');
10
- const answerOptionIdsByQuestionId = dndAnswers.reduce((acc, group) => {
11
- var _a;
12
- const questionId = group.getAttribute('question-id');
13
- const answer = (_a = answersByQuestionId[Number(questionId)]) === null || _a === void 0 ? void 0 : _a.value;
14
- return {
15
- ...acc,
16
- [questionId]: answer ? [Number(answer)] : [],
17
- root: acc.root.filter(e => e !== Number(answer))
18
- };
19
- }, { root: dndAnswerOptions.map(e => Number(e.getAttribute('option-id'))) });
20
- const answerOptionsById = dndAnswerOptions.reduce((acc, el) => {
21
- const optionId = el.getAttribute('option-id');
22
- return { ...acc, [optionId]: el };
23
- }, {});
9
+ const answerOptionIdsByQuestionId = getAnswerOptionIdsByQuestionId(element, answersByQuestionId);
10
+ const answerOptionsByOptionId = getAnswerOptionsByOptionId(element);
24
11
  const dndAnswersWithQuestion = queryAll(element, 'dnd-answer').filter(e => !!query(e, 'dnd-answer-title'));
25
12
  return (React.createElement("div", { className: "e-dnd-answer-container" }, dndAnswersWithQuestion.map(element => {
26
13
  var _a;
27
14
  const questionId = element.getAttribute('question-id');
28
- const answerOptionElements = (_a = (answerOptionIdsByQuestionId[questionId] || [])) === null || _a === void 0 ? void 0 : _a.map(id => (answerOptionsById === null || answerOptionsById === void 0 ? void 0 : answerOptionsById[id]) || null).filter(Boolean);
29
15
  const itemIds = answerOptionIdsByQuestionId[questionId] || [];
16
+ const answerOptionElements = (_a = (answerOptionIdsByQuestionId[questionId] || [])) === null || _a === void 0 ? void 0 : _a.map(id => (answerOptionsByOptionId === null || answerOptionsByOptionId === void 0 ? void 0 : answerOptionsByOptionId[id]) || null).filter(Boolean);
30
17
  return (React.createElement(React.Fragment, { key: questionId },
31
18
  React.createElement(DNDTitleAndDroppable, { key: questionId, element: element, answerOptionElements: answerOptionElements, renderChildNodes: renderChildNodes, itemIds: itemIds, page: "results" }),
32
- gradingStructure && (React.createElement(CorrectDNDAnswers, { key: `${questionId}-correct`, element: element, renderChildNodes: renderChildNodes, answerOptionsById: answerOptionsById }))));
19
+ gradingStructure && (React.createElement(CorrectDNDAnswers, { key: `${questionId}-correct`, element: element, renderChildNodes: renderChildNodes, answerOptionsById: answerOptionsByOptionId }))));
33
20
  })));
34
21
  };
35
22
  //# sourceMappingURL=DNDAnswerContainer.js.map
@@ -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,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB,EAAE,EAAE;IACtF,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC5E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C,OAAO,EAAE,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAE1G,OAAO,CACL,6BAAK,SAAS,EAAC,wBAAwB,IACpC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;;QACpC,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAE,CAAA;QAEvD,MAAM,oBAAoB,GAAG,MAAA,CAAC,2BAA2B,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,0CACxE,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,EAAE,CAAC,KAAI,IAAI,EAC1C,MAAM,CAAC,OAAO,CAAC,CAAA;QAClB,MAAM,OAAO,GAAG,2BAA2B,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;QAE7D,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,UAAU;YAC7B,oBAAC,oBAAoB,IACnB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,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"}
1
+ {"version":3,"file":"DNDAnswerContainer.js","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAA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AC,OAAO,CAAC,CAAA;QAElB,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,UAAU;YAC7B,oBAAC,oBAAoB,IACnB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,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,uBAAuB,GAC1C,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 { AudioPlaceholder } from './AudioPlaceholder';
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: AudioPlaceholder,
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,O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E,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAG9D,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAuB,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAS/D,eAAO,MAAM,oBAAoB,uEAM9B;IACD,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;IACxD,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,oBAAoB,EAAE,OAAO,EAAE,CAAA;CAChC,sBA+DA,CAAA"}
1
+ {"version":3,"file":"DNDTitleAndDroppable.d.ts","sourceRoot":"","sources":["../../../src/components/shared/DNDTitleAndDroppable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAG9D,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAS1C,eAAO,MAAM,oBAAoB,uEAM9B;IACD,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;IACxD,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,oBAAoB,EAAE,OAAO,EAAE,CAAA;CAChC,sBAoEA,CAAA"}
@@ -3,14 +3,14 @@ import { SortableContext } from '@dnd-kit/sortable';
3
3
  import classNames from 'classnames';
4
4
  import React, { useContext } from 'react';
5
5
  import { getNumericAttribute, query } from '../../dom-utils';
6
+ import { useExamTranslation } from '../../i18n';
7
+ import { shortDisplayNumber } from '../../shortDisplayNumber';
6
8
  import { findMultiChoiceFromGradingStructure, ResultsContext } from '../context/ResultsContext';
7
9
  import ResultsExamQuestionAutoScore from '../results/internal/QuestionAutoScore';
8
10
  import { DNDDroppable } from './DNDDroppable';
9
11
  import { Score } from './Score';
10
- import { useExamTranslation } from '../../i18n';
11
- import { shortDisplayNumber } from '../../shortDisplayNumber';
12
12
  export const DNDTitleAndDroppable = ({ element, renderChildNodes, itemIds, page, answerOptionElements }) => {
13
- var _a;
13
+ var _a, _b, _c, _d;
14
14
  const { t } = useExamTranslation();
15
15
  const questionId = element.getAttribute('question-id');
16
16
  const questionIdNumber = Number(questionId);
@@ -21,35 +21,20 @@ export const DNDTitleAndDroppable = ({ element, renderChildNodes, itemIds, page,
21
21
  const hasTitle = titleElement && renderChildNodes(titleElement).length > 0;
22
22
  const { gradingStructure, answersByQuestionId } = useContext(ResultsContext);
23
23
  const isStudentsExam = !gradingStructure;
24
- const hasAnswer = answersByQuestionId && !!((_a = answersByQuestionId[questionIdNumber]) === null || _a === void 0 ? void 0 : _a.value);
25
- const { correctOptionIds, scoreValue } = getCorrectOptionIds(questionIdNumber, displayNumber);
26
- const { setNodeRef, isOver } = useDroppable({ id: questionId });
24
+ const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionIdNumber);
25
+ const correctOptionIds = (_a = choice === null || choice === void 0 ? void 0 : choice.options) === null || _a === void 0 ? void 0 : _a.filter(o => o.correct).map(o => o.id);
26
+ const answer = (_b = answersByQuestionId === null || answersByQuestionId === void 0 ? void 0 : answersByQuestionId[questionIdNumber]) !== null && _b !== void 0 ? _b : undefined;
27
+ const scoreValue = (answer && ((_d = (_c = choice === null || choice === void 0 ? void 0 : choice.options) === null || _c === void 0 ? void 0 : _c.find(option => option.id === Number(answer === null || answer === void 0 ? void 0 : answer.value) && option.correct)) === null || _d === void 0 ? void 0 : _d.score)) || 0;
27
28
  const lastLevelOfDisplayNumber = shortDisplayNumber(displayNumber);
29
+ const { setNodeRef, isOver } = useDroppable({ id: questionId });
28
30
  return (React.createElement(SortableContext, { id: questionId, items: itemIds },
29
31
  React.createElement("span", { ref: setNodeRef },
30
- React.createElement("div", { className: classNames('e-dnd-answer', { 'no-answer': page === 'results' && !hasAnswer }), "data-question-id": questionId, key: questionId },
32
+ React.createElement("div", { className: classNames('e-dnd-answer', { 'no-answer': page === 'results' && !(answer === null || answer === void 0 ? void 0 : answer.value) }), "data-question-id": questionId, key: questionId },
31
33
  React.createElement("div", { className: "anchor", id: `question-nr-${displayNumber}` }),
32
34
  titleElement &&
33
35
  (!hasTitle ? (React.createElement("i", { style: { color: 'grey' } }, t('dnd-answers.question-missing'))) : (React.createElement("span", { className: classNames('e-dnd-answer-title', { 'has-images': hasImages, hovered: isOver }) }, renderChildNodes(titleElement)))),
34
36
  React.createElement("div", { className: "connection-line" }),
35
37
  React.createElement(DNDDroppable, { page: page, answerOptionElements: answerOptionElements, questionId: questionId, renderChildNodes: renderChildNodes, correctIds: correctOptionIds }),
36
- isStudentsExam ? (maxScore && React.createElement(Score, { score: maxScore, size: "small" })) : (React.createElement(ResultsExamQuestionAutoScore, { score: scoreValue, maxScore: maxScore, displayNumber: lastLevelOfDisplayNumber, questionId: questionIdNumber }))))));
37
- };
38
- const getCorrectOptionIds = (questionId, displayNumber) => {
39
- var _a, _b, _c, _d;
40
- const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
41
- if (!gradingStructure) {
42
- return { correctOptionIds: undefined, scoreValue: undefined };
43
- }
44
- const hasAnswer = !!answersByQuestionId && ((_a = answersByQuestionId[questionId]) === null || _a === void 0 ? void 0 : _a.value);
45
- const answer = hasAnswer ? answersByQuestionId[questionId] : undefined;
46
- const choice = findMultiChoiceFromGradingStructure(gradingStructure, questionId);
47
- const scoreValue = !(answer === null || answer === void 0 ? void 0 : answer.value)
48
- ? undefined
49
- : ((_c = (_b = choice === null || choice === void 0 ? void 0 : choice.options.find(option => option.id === Number(answer.value) && option.correct)) === null || _b === void 0 ? void 0 : _b.score) !== null && _c !== void 0 ? _c : 0);
50
- const thisQuestion = gradingStructure === null || gradingStructure === void 0 ? void 0 : gradingStructure.questions.find(q => q.displayNumber === displayNumber);
51
- const options = ((_d = thisQuestion === null || thisQuestion === void 0 ? void 0 : thisQuestion.choices.find(c => c.id === questionId)) === null || _d === void 0 ? void 0 : _d.options) || [];
52
- const correctOptionIds = options === null || options === void 0 ? void 0 : options.filter(o => o.correct).map(o => o.id);
53
- return { correctOptionIds, scoreValue };
38
+ isStudentsExam ? (maxScore && React.createElement(Score, { score: maxScore, size: "small" })) : (React.createElement(ResultsExamQuestionAutoScore, { score: (answer === null || answer === void 0 ? void 0 : answer.value) ? scoreValue : undefined, maxScore: maxScore, displayNumber: lastLevelOfDisplayNumber, questionId: questionIdNumber }))))));
54
39
  };
55
40
  //# sourceMappingURL=DNDTitleAndDroppable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DNDTitleAndDroppable.js","sourceRoot":"","sources":["../../../src/components/shared/DNDTitleAndDroppable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,mCAAmC,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/F,OAAO,4BAA4B,MAAM,uCAAuC,CAAA;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,OAAO,EACP,gBAAgB,EAChB,OAAO,EACP,IAAI,EACJ,oBAAoB,EAOrB,EAAE,EAAE;;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CA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,GAC5B,CACH,CACG,CACD,CACS,CACnB,CAAA;AACH,CAAC,CAAA"}
@@ -70,7 +70,7 @@ export const fi_FI = {
70
70
  'dnd-answers': {
71
71
  'all-answer-options': 'Vastausvaihtoehdot:',
72
72
  'correct-answers': 'Oikeat vastaukset',
73
- 'question-missing': 'Tästä puuttuu tehtävä...',
73
+ 'question-missing': 'Tästä puuttuu osio...',
74
74
  'answer-missing': 'Tästä puuttuu vastaus...',
75
75
  'drop-here': 'Pudota tänne',
76
76
  'no-answer': '(Ei vastausta)'
@@ -1 +1 @@
1
- {"version":3,"file":"fi-FI.js","sourceRoot":"","sources":["../../src/i18n/fi-FI.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,UAAU;IAC3B,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,WAAW;IAC5B,wBAAwB,EAAE,WAAW;IACrC,yBAAyB,EAAE,UAAU;IACrC,iCAAiC,EAAE,4BAA4B;IAC/D,OAAO,EAAE,wBAAwB;IACjC,QAAQ,EAAE,4BAA4B;IACtC,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,cAAc;IACtB,SAAS,EAAE,UAAU;IACrB,cAAc,EAAE;QACd,kBAAkB,EAAE,kDAAkD;QACtE,iBAAiB,EAAE,gCAAgC;QACnD,aAAa,EAAE,2DAA2D;KAC3E;IACD,YAAY,EAAE;QACZ,YAAY,EAAE,4CAA4C;QAC1D,IAAI,EAAE,8BAA8B;QACpC,MAAM,EAAE,6DAA6D;KACtE;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,sCAAsC;QAC7C,KAAK,EAAE,iBAAiB;KACzB;IACD,OAAO,EAAE;QACP,wBAAwB,EAAE,2CAA2C;QACrE,oBAAoB,EAAE,oBAAoB;QAC1C,mBAAmB,EAAE,QAAQ;QAC7B,2BAA2B,EAAE,IAAI;QACjC,SAAS,EAAE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,gBAAgB,EAAE,kDAAkD;QACpE,gBAAgB,EAAE,iDAAiD;QACnE,kBAAkB,EAAE,iDAAiD;QACrE,gBAAgB,EAAE,mEAAmE;QACrF,gBAAgB,EAAE,8DAA8D;QAChF,eAAe,EAAE,0BAA0B;QAC3C,eAAe,EAAE,2BAA2B;QAC5C,eAAe,EAAE,2BAA2B;QAC5C,eAAe,EAAE,2BAA2B;QAC5C,eAAe,EAAE,2BAA2B;QAC5C,eAAe,EAAE,2BAA2B;QAC5C,eAAe,EAAE,8BAA8B;QAC/C,eAAe,EAAE,8BAA8B;QAC/C,eAAe,EAAE,6BAA6B;QAC9C,iBAAiB,EAAE,6BAA6B;QAChD,eAAe,EAAE,wCAAwC;QACzD,eAAe,EAAE,qEAAqE;QACtF,eAAe,EAAE,0CAA0C;QAC3D,mBAAmB,EAAE,0BAA0B;QAC/C,mBAAmB,EAAE,2BAA2B;QAChD,mBAAmB,EAAE,2BAA2B;QAChD,mBAAmB,EAAE,2BAA2B;QAChD,mBAAmB,EAAE,2BAA2B;QAChD,mBAAmB,EAAE,2BAA2B;QAChD,mBAAmB,EAAE,8BAA8B;QACnD,mBAAmB,EAAE,8BAA8B;QACnD,mBAAmB,EAAE,6BAA6B;QAClD,qBAAqB,EAAE,6BAA6B;QACpD,mBAAmB,EAAE,wCAAwC;QAC7D,mBAAmB,EAAE,qEAAqE;QAC1F,mBAAmB,EAAE,0CAA0C;KAChE;IACD,eAAe,EAAE;QACf,oBAAoB,EAClB,0GAA0G;QAC5G,+BAA+B,EAC7B,kHAAkH;QACpH,0BAA0B,EAAE,qDAAqD;QACjF,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,eAAe,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,YAAY,EAAE,mBAAmB;QACjC,gBAAgB,EAAE,sBAAsB;KACzC;CACF,CAAA"}
@@ -67,12 +67,12 @@ export const sv_FI = {
67
67
  instructions: 'Efter att du granskat dina svar kan du ännu gå tillbaka och redigera svaren eller avsluta provet.'
68
68
  },
69
69
  'dnd-answers': {
70
- 'all-answer-options': 'TODO TODO:',
71
- 'correct-answers': 'TODO TODO',
72
- 'question-missing': 'Här saknas ett objekt...',
73
- 'answer-missing': 'Här kommer rätta alternativet...',
74
- 'drop-here': 'TODO TODO',
75
- 'no-answer': '(TODO TODO)'
70
+ 'all-answer-options': 'Svarsalternativ:',
71
+ 'correct-answers': 'Rätta svar',
72
+ 'question-missing': 'Här fattas en item...',
73
+ 'answer-missing': 'Här fattas svaret...',
74
+ 'drop-here': 'Släpp här',
75
+ 'no-answer': '(Inget svar)'
76
76
  },
77
77
  undo: {
78
78
  loading: 'Laddar...',
@@ -1 +1 @@
1
- {"version":3,"file":"sv-FI.js","sourceRoot":"","sources":["../../src/i18n/sv-FI.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAiB;IACjC,YAAY,EAAE,mBAAmB;IACjC,eAAe,EAAE,YAAY;IAC7B,QAAQ,EAAE,UAAU;IACpB,wBAAwB,EAAE,WAAW;IACrC,yBAAyB,EAAE,UAAU;IACrC,iCAAiC,EAAE,6BAA6B;IAChE,OAAO,EAAE,wBAAwB;IACjC,QAAQ,EAAE,4BAA4B;IACtC,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,cAAc;IACtB,SAAS,EAAE,cAAc;IACzB,cAAc,EAAE;QACd,kBAAkB,EAAE,uDAAuD;QAC3E,iBAAiB,EAAE,sCAAsC;QACzD,aAAa,EAAE,oDAAoD;KACpE;IACD,YAAY,EAAE;QACZ,YAAY,EAAE,4CAA4C;QAC1D,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,0DAA0D;KACnE;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,sCAAsC;QAC7C,KAAK,EAAE,yBAAyB;KACjC;IACD,OAAO,EAAE;QACP,wBAAwB,EAAE,gDAAgD;QAC1E,oBAAoB,EAAE,uBAAuB;QAC7C,mBAAmB,EAAE,OAAO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