@digabi/exam-engine-core 23.2.2-alpha.0 → 23.2.2-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/context/AnnotationProvider.d.ts +1 -1
- package/dist/components/context/ResultsContext.d.ts.map +1 -1
- package/dist/components/context/ResultsContext.js +3 -2
- package/dist/components/context/ResultsContext.js.map +1 -1
- package/dist/components/exam/DNDAnswerContainer.d.ts +1 -3
- package/dist/components/exam/DNDAnswerContainer.d.ts.map +1 -1
- package/dist/components/exam/DNDAnswerContainer.js +1 -24
- package/dist/components/exam/DNDAnswerContainer.js.map +1 -1
- package/dist/components/grading-instructions/AutogradedAnswerOption.d.ts.map +1 -1
- package/dist/components/grading-instructions/AutogradedAnswerOption.js +2 -1
- package/dist/components/grading-instructions/AutogradedAnswerOption.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +5 -1
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/components/grading-instructions/Recording.d.ts.map +1 -1
- package/dist/components/grading-instructions/Recording.js +3 -2
- package/dist/components/grading-instructions/Recording.js.map +1 -1
- package/dist/components/results/Results.js +2 -2
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/shared/DNDAnswerContainer.d.ts +6 -0
- package/dist/components/shared/DNDAnswerContainer.d.ts.map +1 -0
- package/dist/components/shared/DNDAnswerContainer.js +23 -0
- package/dist/components/shared/DNDAnswerContainer.js.map +1 -0
- package/dist/components/shared/DNDDroppable.d.ts +2 -2
- package/dist/components/shared/DNDDroppable.d.ts.map +1 -1
- package/dist/components/shared/DNDTitleAndDroppable.d.ts +2 -2
- package/dist/components/shared/DNDTitleAndDroppable.d.ts.map +1 -1
- package/dist/components/shared/DNDTitleAndDroppable.js +3 -1
- package/dist/components/shared/DNDTitleAndDroppable.js.map +1 -1
- package/dist/dom-utils.d.ts +6 -0
- package/dist/dom-utils.d.ts.map +1 -1
- package/dist/dom-utils.js +36 -0
- package/dist/dom-utils.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/types/ExamAnswer.d.ts +1 -0
- package/dist/types/ExamAnswer.d.ts.map +1 -1
- package/package.json +2 -2
@@ -16,6 +16,6 @@ export interface AnnotationContextType extends RenderableAnnotationProps {
|
|
16
16
|
setNewAnnotationRef: (ref: HTMLElement | null) => void;
|
17
17
|
}
|
18
18
|
export declare const AnnotationContext: React.Context<AnnotationContextType>;
|
19
|
-
export declare const AnnotationProvider: ({ children, annotations, onClickAnnotation, onSaveAnnotation }: Props & AnnotationProps) => string | number | boolean |
|
19
|
+
export declare const AnnotationProvider: ({ children, annotations, onClickAnnotation, onSaveAnnotation }: Props & AnnotationProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
20
20
|
export {};
|
21
21
|
//# sourceMappingURL=AnnotationProvider.d.ts.map
|
@@ -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,g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AM,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,MAAM,CAMR;AAED,wBAAgB,yBAAyB,CACvC,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,8 +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
|
-
const option = choice === null || choice === void 0 ? void 0 : choice.options.find(o => o.id === Number(scoredAnswer.value)
|
42
|
-
|
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;
|
43
44
|
};
|
44
45
|
const textQuestionScore = (questionId) => {
|
45
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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CAAC;QAC7E,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
2
2
|
import React from 'react';
|
3
|
-
import {
|
3
|
+
import { ExamComponentProps } 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>;
|
10
8
|
export declare const DNDAnswerContainer: ({ element, renderChildNodes }: ExamComponentProps) => React.JSX.Element;
|
11
9
|
//# 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,
|
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,sBA6HnF,CAAA"}
|
@@ -2,34 +2,11 @@ import { DndContext, DragOverlay, KeyboardSensor, PointerSensor, useSensor, useS
|
|
2
2
|
import { sortableKeyboardCoordinates } from '@dnd-kit/sortable';
|
3
3
|
import React, { useEffect, useState } from 'react';
|
4
4
|
import { useDispatch, useSelector } from 'react-redux';
|
5
|
-
import { query, queryAll } from '../../dom-utils';
|
5
|
+
import { getAnswerOptionIdsByQuestionId, getAnswerOptionsByOptionId, query, queryAll } from '../../dom-utils';
|
6
6
|
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
|
-
};
|
33
10
|
export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
|
34
11
|
var _a;
|
35
12
|
const dispatch = useDispatch();
|
@@ -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;
|
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,8BAA8B,EAAE,0BAA0B,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC7G,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,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S,SAAS,CAAC,KAAiB,EAAE,IAAsB,EAAE,EAAoB,EAAE,KAAuB;IACzG,MAAM,QAAQ,GAAe,EAAE,GAAG,KAAK,EAAE,CAAA;IACzC,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,CAAA;IAE9D,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;QAClB,wBAAwB;QACxB,QAAQ,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;SAAM,CAAC;QACN,6EAA6E;QAC7E,IAAI,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,MAAM,aAAa,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;YACrC,QAAQ,CAAC,IAAI,GAAG,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QACnD,CAAC;QACD,6CAA6C;QAC7C,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IACxB,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AutogradedAnswerOption.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/AutogradedAnswerOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,
|
1
|
+
{"version":3,"file":"AutogradedAnswerOption.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/AutogradedAnswerOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAcvE,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
@@ -3,8 +3,9 @@ import { getNumericAttribute, NBSP } from '../../dom-utils';
|
|
3
3
|
import { useExamTranslation } from '../../i18n';
|
4
4
|
const AutogradedAnswerOption = ({ element, renderChildNodes }) => {
|
5
5
|
const score = getNumericAttribute(element, 'score');
|
6
|
-
if (!score)
|
6
|
+
if (!score) {
|
7
7
|
return null;
|
8
|
+
}
|
8
9
|
const { t } = useExamTranslation();
|
9
10
|
return (React.createElement("li", null,
|
10
11
|
renderChildNodes(element),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AutogradedAnswerOption.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AutogradedAnswerOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,sBAAsB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5G,MAAM,KAAK,GAAG,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACnD,IAAI,CAAC,KAAK;
|
1
|
+
{"version":3,"file":"AutogradedAnswerOption.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AutogradedAnswerOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,sBAAsB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5G,MAAM,KAAK,GAAG,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACnD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL;QACG,gBAAgB,CAAC,OAAO,CAAC;QACzB,IAAI;;QAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;YAClC,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,sBAAsB,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,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,eAAe,EAAE,MAAM,cAAc,CAAA;AAuI/D,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;sBArJuB,MAAO,aAAa;;;;;AAuJ5C,wBAAqE"}
|
@@ -31,6 +31,7 @@ import Recording from './Recording';
|
|
31
31
|
import Section from './Section';
|
32
32
|
import SectionTitle from './SectionTitle';
|
33
33
|
import { GradingInstructionProvider } from './GradingInstructionProvider';
|
34
|
+
import { DNDAnswerContainer } from '../shared/DNDAnswerContainer';
|
34
35
|
const renderIfWithinGradingInstructionContent = renderIf(({ element }) => queryAncestors(element, [
|
35
36
|
// Keep in sync with lists in mastering/index.ts
|
36
37
|
'answer-grading-instruction',
|
@@ -40,7 +41,9 @@ const renderIfWithinGradingInstructionContent = renderIf(({ element }) => queryA
|
|
40
41
|
'question-grading-instruction',
|
41
42
|
'hint',
|
42
43
|
'question-title',
|
43
|
-
'question-instruction'
|
44
|
+
'question-instruction',
|
45
|
+
'dnd-answer-title',
|
46
|
+
'dnd-answer-option'
|
44
47
|
]) != null);
|
45
48
|
const renderIfNotWithinExternalMaterial = renderIf(({ element }) => queryAncestors(element, ['external-material']) == null);
|
46
49
|
const renderChildNodes = createRenderChildNodes({
|
@@ -54,6 +57,7 @@ const renderChildNodes = createRenderChildNodes({
|
|
54
57
|
'choice-answer-option': AutogradedAnswerOption,
|
55
58
|
'dropdown-answer': AutogradedAnswer,
|
56
59
|
'dropdown-answer-option': AutogradedAnswerOption,
|
60
|
+
'dnd-answer-container': props => React.createElement(DNDAnswerContainer, { ...props, page: "grading-instructions" }),
|
57
61
|
'external-material': RenderExamElements,
|
58
62
|
file: renderIfWithinGradingInstructionContent(File),
|
59
63
|
formula: renderIfWithinGradingInstructionContent(Formula),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructions.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.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,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,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,aAAa,MAAM,kBAAkB,CAAA;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEvF,OAAO,mBAAmB,MAAM,6BAA6B,CAAA;AAC7D,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,IAAI,MAAM,gBAAgB,CAAA;AACjC,OAAO,OAAO,MAAM,mBAAmB,CAAA;AACvC,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AACjE,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;
|
1
|
+
{"version":3,"file":"GradingInstructions.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,S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C,CAAC,CAAI,CAAA;AACpD,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Recording.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/Recording.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,
|
1
|
+
{"version":3,"file":"Recording.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/Recording.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAmBjE,CAAA;AAED,eAAe,SAAS,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { findChildElement } from '../../dom-utils';
|
2
|
+
import { findChildElement, queryAncestors } from '../../dom-utils';
|
3
3
|
import { useExamTranslation } from '../../i18n';
|
4
4
|
export const Recording = ({ element, renderChildNodes }) => {
|
5
5
|
const transcription = findChildElement(element, ['audio-transcription', 'video-transcription']);
|
@@ -13,7 +13,8 @@ export const Recording = ({ element, renderChildNodes }) => {
|
|
13
13
|
title && React.createElement("em", null, renderChildNodes(title))),
|
14
14
|
renderChildNodes(transcription)));
|
15
15
|
}
|
16
|
-
|
16
|
+
const isInDndAnswer = queryAncestors(element, 'dnd-answer');
|
17
|
+
return isInDndAnswer ? '[Audio]' : null;
|
17
18
|
};
|
18
19
|
export default Recording;
|
19
20
|
//# sourceMappingURL=Recording.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Recording.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/Recording.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"Recording.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/Recording.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,CAAC,MAAM,SAAS,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACtG,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC,CAAA;IAE/F,IAAI,aAAa,EAAE,CAAC;QAClB,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;QAClC,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAA;QAEvE,OAAO,CACL,iCAAS,SAAS,EAAC,mDAAmD;YACpE;gBACE,oCAAS,CAAC,CAAC,WAAW,CAAC,CAAU;;gBAAE,KAAK,IAAI,gCAAK,gBAAgB,CAAC,KAAK,CAAC,CAAM,CACtE;YACT,gBAAgB,CAAC,aAAa,CAAC,CACxB,CACX,CAAA;IACH,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;IAC3D,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;AACzC,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
|
@@ -32,7 +32,7 @@ import { useIsStudentsExamineExamPage } from './isExamineExamPageHook';
|
|
32
32
|
import classNames from 'classnames';
|
33
33
|
import { EndExamSession } from './EndExamSession';
|
34
34
|
import { Footer } from '../shared/Footer';
|
35
|
-
import { DNDAnswerContainer } from '
|
35
|
+
import { DNDAnswerContainer } from '../shared/DNDAnswerContainer';
|
36
36
|
import { AudioContainer } from './AudioContainer';
|
37
37
|
const renderChildNodes = createRenderChildNodes({
|
38
38
|
attachment: RenderChildNodes,
|
@@ -41,7 +41,7 @@ const renderChildNodes = createRenderChildNodes({
|
|
41
41
|
'audio-group': RenderChildNodes,
|
42
42
|
audio: renderIf(({ element }) => queryAncestors(element, 'dnd-answer-container') != null)(AudioContainer),
|
43
43
|
'choice-answer': ResultsChoiceAnswer,
|
44
|
-
'dnd-answer-container': DNDAnswerContainer,
|
44
|
+
'dnd-answer-container': props => React.createElement(DNDAnswerContainer, { ...props, page: "results" }),
|
45
45
|
'dropdown-answer': DropdownAnswer,
|
46
46
|
formula: Formula,
|
47
47
|
question: Question,
|
@@ -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,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA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EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC9D,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,kBAAkB;QAC/B,+BAAO,SAAS,EAAC,uCAAuC;YACtD;gBACE;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,eAAe,CAAC,CAAM;oBAC5D,4BAAI,SAAS,EAAC,mCAAmC,IAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAM,CACxF;gBACJ,WAAW,IAAI,CACd;oBACE,4BAAI,SAAS,EAAC,oBAAoB,IAAE,CAAC,CAAC,OAAO,CAAC,CAAM;oBACpD,4BAAI,SAAS,EAAC,mCAAmC,IAAE,WAAW,CAAM,CACjE,CACN,CACK,CACF,CACJ,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ExamComponentProps } from '../..';
|
3
|
+
export declare const DNDAnswerContainer: ({ element, renderChildNodes, page }: ExamComponentProps & {
|
4
|
+
page: "results" | "grading-instructions";
|
5
|
+
}) => React.JSX.Element;
|
6
|
+
//# sourceMappingURL=DNDAnswerContainer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/shared/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAY1C,eAAO,MAAM,kBAAkB,wCAI5B,kBAAkB,GAAG;IACtB,IAAI,EAAE,SAAS,GAAG,sBAAsB,CAAA;CACzC,sBAwCA,CAAA"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import React, { useContext } from 'react';
|
2
|
+
import { getAnswerOptionIdsByQuestionId, getAnswerOptionsByOptionId, getCorrectAnswerOptionIdsByQuestionId, query, queryAll } from '../../dom-utils';
|
3
|
+
import { ResultsContext } from '../context/ResultsContext';
|
4
|
+
import { CorrectDNDAnswers } from '../results/CorrectDNDAnswers';
|
5
|
+
import { DNDTitleAndDroppable } from './DNDTitleAndDroppable';
|
6
|
+
export const DNDAnswerContainer = ({ element, renderChildNodes, page }) => {
|
7
|
+
const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
|
8
|
+
const dndAnswersWithQuestion = queryAll(element, 'dnd-answer').filter(e => !!query(e, 'dnd-answer-title'));
|
9
|
+
const answerOptionsByOptionId = getAnswerOptionsByOptionId(element);
|
10
|
+
const answerOptionIdsByQuestionId = page === 'results'
|
11
|
+
? getAnswerOptionIdsByQuestionId(element, answersByQuestionId)
|
12
|
+
: getCorrectAnswerOptionIdsByQuestionId(element);
|
13
|
+
return (React.createElement("div", { className: "e-dnd-answer-container" }, dndAnswersWithQuestion.map(element => {
|
14
|
+
var _a;
|
15
|
+
const questionId = element.getAttribute('question-id');
|
16
|
+
const itemIds = answerOptionIdsByQuestionId[questionId] || [];
|
17
|
+
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);
|
18
|
+
return (React.createElement(React.Fragment, { key: questionId },
|
19
|
+
React.createElement(DNDTitleAndDroppable, { element: element, answerOptionElements: answerOptionElements, renderChildNodes: renderChildNodes, itemIds: itemIds, page: page }),
|
20
|
+
page === 'results' && gradingStructure && (React.createElement(CorrectDNDAnswers, { element: element, renderChildNodes: renderChildNodes, answerOptionsById: answerOptionsByOptionId }))));
|
21
|
+
})));
|
22
|
+
};
|
23
|
+
//# sourceMappingURL=DNDAnswerContainer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,IAAI,EAAE,CAAA;QAC7D,MAAM,oBAAoB,GAAG,MAAA,CAAC,2BAA2B,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,0CACxE,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAG,EAAE,CAAC,KAAI,IAAI,EAChD,MAAM,CAAC,OAAO,CAAC,CAAA;QAElB,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,UAAU;YAC7B,oBAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,GACV;YAED,IAAI,KAAK,SAAS,IAAI,gBAAgB,IAAI,CACzC,oBAAC,iBAAiB,IAChB,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"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
2
2
|
import React from 'react';
|
3
|
-
import { ExamComponentProps } from '../..';
|
3
|
+
import { ExamComponentProps, ExamPage } from '../..';
|
4
4
|
export declare const DNDDroppable: ({ renderChildNodes, correctIds, classes, questionId, page, answerOptionElements }: {
|
5
5
|
renderChildNodes: ExamComponentProps["renderChildNodes"];
|
6
6
|
correctIds?: UniqueIdentifier[];
|
7
7
|
classes?: string[];
|
8
8
|
questionId: UniqueIdentifier;
|
9
|
-
page:
|
9
|
+
page: ExamPage;
|
10
10
|
answerOptionElements: Element[];
|
11
11
|
}) => React.JSX.Element;
|
12
12
|
//# sourceMappingURL=DNDDroppable.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DNDDroppable.d.ts","sourceRoot":"","sources":["../../../src/components/shared/DNDDroppable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"DNDDroppable.d.ts","sourceRoot":"","sources":["../../../src/components/shared/DNDDroppable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAMpD,eAAO,MAAM,YAAY,sFAOtB;IACD,gBAAgB,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAA;IACxD,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,IAAI,EAAE,QAAQ,CAAA;IACd,oBAAoB,EAAE,OAAO,EAAE,CAAA;CAChC,sBA6CA,CAAA"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
2
2
|
import React from 'react';
|
3
|
-
import { ExamComponentProps } from '../..';
|
3
|
+
import { ExamComponentProps, ExamPage } from '../..';
|
4
4
|
export declare const DNDTitleAndDroppable: ({ element, renderChildNodes, itemIds, page, answerOptionElements }: {
|
5
5
|
element: Element;
|
6
6
|
renderChildNodes: ExamComponentProps["renderChildNodes"];
|
7
7
|
itemIds: UniqueIdentifier[];
|
8
|
-
page:
|
8
|
+
page: ExamPage;
|
9
9
|
answerOptionElements: Element[];
|
10
10
|
}) => React.JSX.Element;
|
11
11
|
//# sourceMappingURL=DNDTitleAndDroppable.d.ts.map
|
@@ -1 +1 @@
|
|
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;
|
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,QAAQ,EAAE,MAAM,OAAO,CAAA;AASpD,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,QAAQ,CAAA;IACd,oBAAoB,EAAE,OAAO,EAAE,CAAA;CAChC,sBAsEA,CAAA"}
|
@@ -29,7 +29,9 @@ export const DNDTitleAndDroppable = ({ element, renderChildNodes, itemIds, page,
|
|
29
29
|
const { setNodeRef, isOver } = useDroppable({ id: questionId });
|
30
30
|
return (React.createElement(SortableContext, { id: questionId, items: itemIds },
|
31
31
|
React.createElement("span", { ref: setNodeRef },
|
32
|
-
React.createElement("div", { className: classNames('e-dnd-answer', {
|
32
|
+
React.createElement("div", { className: classNames('e-dnd-answer', {
|
33
|
+
'no-answer': page === 'results' && !(answer === null || answer === void 0 ? void 0 : answer.value)
|
34
|
+
}), "data-question-id": questionId, key: questionId },
|
33
35
|
React.createElement("div", { className: "anchor", id: `question-nr-${displayNumber}` }),
|
34
36
|
titleElement &&
|
35
37
|
(!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)))),
|
@@ -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,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,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;AAE/B,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,CAAA;IAClC,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAE,CAAA;IACvD,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;IAC3C,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAA;IAE7D,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;IAC1D,M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,CAAC,CAAC,SAAS,EAC7C,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,wBAAwB,EACvC,UAAU,EAAE,gBAAgB,GAC5B,CACH,CACG,CACD,CACS,CACnB,CAAA;AACH,CAAC,CAAA"}
|
package/dist/dom-utils.d.ts
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
import { ExamAnswer, QuestionId } from './types/ExamAnswer';
|
2
|
+
import { ItemsState } from './components/exam/DNDAnswerContainer';
|
3
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
1
4
|
export declare const NBSP = "\u00A0";
|
2
5
|
export declare function parentElements(element: Element, selector?: Selector): Element[];
|
3
6
|
type Selector = string | string[] | ((element: Element) => boolean);
|
@@ -16,5 +19,8 @@ export declare function createElement<K extends keyof HTMLElementTagNameMap>(tag
|
|
16
19
|
export declare function setProperties(element: HTMLElement, properties?: Record<string, string> | null): void;
|
17
20
|
export declare function useIsElementInViewport(elementType: 'question' | 'section', displayNumber: string): boolean;
|
18
21
|
export declare function getElementPath(element: Element): string;
|
22
|
+
export declare const getAnswerOptionIdsByQuestionId: (element: Element, answersById: Record<QuestionId, ExamAnswer>) => ItemsState;
|
23
|
+
export declare const getAnswerOptionsByOptionId: (element: Element) => Record<UniqueIdentifier, Element>;
|
24
|
+
export declare const getCorrectAnswerOptionIdsByQuestionId: (element: Element) => Omit<ItemsState, "root">;
|
19
25
|
export {};
|
20
26
|
//# sourceMappingURL=dom-utils.d.ts.map
|
package/dist/dom-utils.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dom-utils.d.ts","sourceRoot":"","sources":["../src/dom-utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dom-utils.d.ts","sourceRoot":"","sources":["../src/dom-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAA;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E,EAAE,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE,CAO1G;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,CAM/D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,uBAIlD;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,qBAAqB,EACjE,OAAO,EAAE,CAAC,EACV,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,EAC1C,GAAG,QAAQ,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,GACrC,qBAAqB,CAAC,CAAC,CAAC,CAK1B;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,IAAI,CAWpG;AAED,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,EAAE,aAAa,EAAE,MAAM,WAehG;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAiBvD;AAID,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,qCAAqC,YAAa,OAAO,6BAcrE,CAAA"}
|
package/dist/dom-utils.js
CHANGED
@@ -163,4 +163,40 @@ export function getElementPath(element) {
|
|
163
163
|
}
|
164
164
|
return path;
|
165
165
|
}
|
166
|
+
// For DND answers
|
167
|
+
export const getAnswerOptionIdsByQuestionId = (element, answersById) => {
|
168
|
+
const dndAnswers = queryAll(element, 'dnd-answer');
|
169
|
+
const dndAnswerOptions = queryAll(element, 'dnd-answer-option');
|
170
|
+
const answerOptionIdsByQuestionId = dndAnswers.reduce((acc, group) => {
|
171
|
+
var _a;
|
172
|
+
const questionId = group.getAttribute('question-id');
|
173
|
+
const answer = (_a = answersById[Number(questionId)]) === null || _a === void 0 ? void 0 : _a.value;
|
174
|
+
return {
|
175
|
+
...acc,
|
176
|
+
[questionId]: answer ? [Number(answer)] : [],
|
177
|
+
root: acc.root.filter(e => e !== Number(answer))
|
178
|
+
};
|
179
|
+
}, { root: dndAnswerOptions.map(e => Number(e.getAttribute('option-id'))) });
|
180
|
+
return answerOptionIdsByQuestionId;
|
181
|
+
};
|
182
|
+
export const getAnswerOptionsByOptionId = (element) => {
|
183
|
+
const dndAnswerOptions = queryAll(element, 'dnd-answer-option');
|
184
|
+
const answerOptionsByOptionId = dndAnswerOptions.reduce((acc, el) => {
|
185
|
+
const optionId = el.getAttribute('option-id');
|
186
|
+
return { ...acc, [optionId]: el };
|
187
|
+
}, {});
|
188
|
+
return answerOptionsByOptionId;
|
189
|
+
};
|
190
|
+
export const getCorrectAnswerOptionIdsByQuestionId = (element) => {
|
191
|
+
const correctAnswerOptionsByQuestionId = queryAll(element, 'dnd-answer-option').reduce((acc, el) => {
|
192
|
+
const questionId = el.getAttribute('for-question-id');
|
193
|
+
const optionId = el.getAttribute('option-id');
|
194
|
+
if (!questionId) {
|
195
|
+
return acc;
|
196
|
+
}
|
197
|
+
const current = acc[questionId] || [];
|
198
|
+
return { ...acc, [questionId]: current.concat(optionId) };
|
199
|
+
}, {});
|
200
|
+
return correctAnswerOptionsByQuestionId;
|
201
|
+
};
|
166
202
|
//# sourceMappingURL=dom-utils.js.map
|
package/dist/dom-utils.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dom-utils.js","sourceRoot":"","sources":["../src/dom-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,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