@digabi/exam-engine-core 19.15.6-alpha.3 → 19.17.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/results/ResultsContext.test.js +1 -1
- package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
- package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +6 -3
- package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js.map +1 -1
- package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +2 -1
- package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/exam/DropdownAnswer.d.ts.map +1 -1
- package/dist/components/exam/DropdownAnswer.js +1 -0
- package/dist/components/exam/DropdownAnswer.js.map +1 -1
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +22 -17
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/FinishExam.d.ts +5 -0
- package/dist/components/exam/FinishExam.d.ts.map +1 -0
- package/dist/components/exam/FinishExam.js +17 -0
- package/dist/components/exam/FinishExam.js.map +1 -0
- package/dist/components/exam/ProceedToExamineAnswers.d.ts +5 -0
- package/dist/components/exam/ProceedToExamineAnswers.d.ts.map +1 -0
- package/dist/components/exam/ProceedToExamineAnswers.js +20 -0
- package/dist/components/exam/ProceedToExamineAnswers.js.map +1 -0
- package/dist/components/results/ChoiceAnswer.js +1 -1
- package/dist/components/results/ChoiceAnswer.js.map +1 -1
- package/dist/components/results/DropdownAnswer.d.ts.map +1 -1
- package/dist/components/results/DropdownAnswer.js +2 -2
- package/dist/components/results/DropdownAnswer.js.map +1 -1
- package/dist/components/results/EndExamSession.d.ts +6 -3
- package/dist/components/results/EndExamSession.d.ts.map +1 -1
- package/dist/components/results/EndExamSession.js +5 -27
- package/dist/components/results/EndExamSession.js.map +1 -1
- package/dist/components/results/Question.d.ts.map +1 -1
- package/dist/components/results/Question.js +7 -2
- package/dist/components/results/Question.js.map +1 -1
- package/dist/components/results/QuestionTitle.js +1 -1
- package/dist/components/results/Results.d.ts.map +1 -1
- package/dist/components/results/Results.js +29 -7
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/results/ScoredTextAnswer.d.ts.map +1 -1
- package/dist/components/results/ScoredTextAnswer.js +1 -1
- package/dist/components/results/ScoredTextAnswer.js.map +1 -1
- package/dist/components/results/TextAnswer.d.ts.map +1 -1
- package/dist/components/results/TextAnswer.js +2 -2
- package/dist/components/results/TextAnswer.js.map +1 -1
- package/dist/components/results/internal/QuestionAutoScore.d.ts +2 -1
- package/dist/components/results/internal/QuestionAutoScore.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionAutoScore.js +2 -2
- package/dist/components/results/internal/QuestionAutoScore.js.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.d.ts +2 -1
- package/dist/components/results/internal/QuestionManualScore.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.js +2 -2
- package/dist/components/results/internal/QuestionManualScore.js.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.d.ts +2 -1
- package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.js +9 -2
- package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
- package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
- package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
- package/dist/components/results/isExamFinishPageHook.js +7 -0
- package/dist/components/results/isExamFinishPageHook.js.map +1 -0
- package/dist/components/results/isExamineExamPageHook.d.ts +2 -0
- package/dist/components/results/isExamineExamPageHook.d.ts.map +1 -0
- package/dist/components/results/isExamineExamPageHook.js +7 -0
- package/dist/components/results/isExamineExamPageHook.js.map +1 -0
- package/dist/components/shared/AnswerIndicator.d.ts +1 -0
- package/dist/components/shared/AnswerIndicator.d.ts.map +1 -1
- package/dist/components/shared/AnswerIndicator.js +14 -12
- package/dist/components/shared/AnswerIndicator.js.map +1 -1
- package/dist/components/shared/Reference.d.ts.map +1 -1
- package/dist/components/shared/Reference.js +1 -1
- package/dist/components/shared/Reference.js.map +1 -1
- package/dist/components/shared/TableOfContents.d.ts.map +1 -1
- package/dist/components/shared/TableOfContents.js +15 -5
- package/dist/components/shared/TableOfContents.js.map +1 -1
- package/dist/i18n/fi-FI.d.ts +1 -0
- package/dist/i18n/fi-FI.d.ts.map +1 -1
- package/dist/i18n/fi-FI.js +2 -1
- package/dist/i18n/fi-FI.js.map +1 -1
- package/dist/i18n/sv-FI.d.ts.map +1 -1
- package/dist/i18n/sv-FI.js +2 -1
- package/dist/i18n/sv-FI.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/types/ExamAnswer.d.ts +1 -0
- package/dist/types/ExamAnswer.d.ts.map +1 -1
- package/package.json +2 -2
@@ -145,7 +145,7 @@ describe(`Total score calculation for ${testExam}`, () => {
|
|
145
145
|
const choiceAnswer = {
|
146
146
|
type: 'choice',
|
147
147
|
questionId: 1,
|
148
|
-
value: '
|
148
|
+
value: '100',
|
149
149
|
displayNumber: '1.1'
|
150
150
|
};
|
151
151
|
expect((0, ResultsContext_1.calculateQuestionSumScore)(topLevelQuestions[0], result.gradingStructure, [], (0, lodash_es_1.keyBy)([choiceAnswer], 'questionId'))).toBe(3);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsContext.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsContext.test.tsx"],"names":[],"mappings":";;;;;AAAA,+FAAsE;AACtE,iEAAqD;AACrD,yEAA6F;AAC7F,2BAAmC;AACnC,yCAAiC;AAEjC,gFAAwH;AACxH,mDAA8C;AAE9C,MAAM,SAAS,GAAY;IACzB;QACE,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,CAAC;QACX,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;KAC1B;IACD;QACE,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,UAAU,EAAE;YACV,KAAK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AAC,gBAAgB,EACvB,yBAAyB,EACzB,IAAA,iBAAK,EAAC,UAAU,EAAE,YAAY,CAAC,CAChC,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACX,CAAC,CAAC,CAAA;IACF,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,yBAAyB,GAAY;YACzC;gBACE,UAAU,EAAE,CAAC;gBACb,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE;oBACV,KAAK,EAAE,CAAC;iBACT;gBACD,SAAS,EAAE;oBACT,MAAM,EAAE;wBACN,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;wBAC9B,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;qBAC/B;iBACF;gBACD,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;aACrD;SACF,CAAA;QACD,MAAM,CACJ,IAAA,0CAAyB,EACvB,iBAAiB,CAAC,CAAC,CAAC,EACpB,MAAM,CAAC,gBAAgB,EACvB,yBAAyB,EACzB,IAAA,iBAAK,EAAC,UAAU,EAAE,YAAY,CAAC,CAChC,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACX,CAAC,CAAC,CAAA;IACF,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,YAAY,GAAe;YAC/B,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,CAAC;YACb,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"ResultsContext.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsContext.test.tsx"],"names":[],"mappings":";;;;;AAAA,+FAAsE;AACtE,iEAAqD;AACrD,yEAA6F;AAC7F,2BAAmC;AACnC,yCAAiC;AAEjC,gFAAwH;AACxH,mDAA8C;AAE9C,MAAM,SAAS,GAAY;IACzB;QACE,UAAU,EAAE,GAAG;QACf,QAAQ,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gBAAgB,EAAE,EAAE,EAAE,IAAA,iBAAK,EAAC,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAClH,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACX,CAAC,CAAC,CAAA;IACF,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,gBAAgB,GAAiB;YACrC;gBACE,IAAI,EAAE,MAAM;gBACZ,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE,0CAA0C;gBACjD,cAAc,EAAE,EAAE;gBAClB,aAAa,EAAE,MAAM;aACtB;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE,SAAS;gBAChB,cAAc,EAAE,CAAC;gBACjB,aAAa,EAAE,MAAM;aACtB;SACF,CAAA;QAED,MAAM,eAAe,GAAY;YAC/B;gBACE,UAAU,EAAE,EAAE;gBACd,QAAQ,EAAE,EAAE;gBACZ,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;aAC1B;YACD;gBACE,UAAU,EAAE,EAAE;gBACd,QAAQ,EAAE,EAAE;gBACZ,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;aAC1B;SACF,CAAA;QAED,MAAM,CACJ,IAAA,0CAAyB,EACvB,iBAAiB,CAAC,EAAE,CAAC,EACrB,MAAM,CAAC,gBAAgB,EACvB,eAAe,EACf,IAAA,iBAAK,EAAC,gBAAgB,EAAE,YAAY,CAAC,CACtC,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACX,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -18,7 +18,8 @@ describe('<QuestionAutoScore />', () => {
|
|
18
18
|
const props = {
|
19
19
|
score: undefined,
|
20
20
|
maxScore: 3,
|
21
|
-
displayNumber: '1'
|
21
|
+
displayNumber: '1',
|
22
|
+
questionId: 1
|
22
23
|
};
|
23
24
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
24
25
|
});
|
@@ -26,7 +27,8 @@ describe('<QuestionAutoScore />', () => {
|
|
26
27
|
const props = {
|
27
28
|
score: 1,
|
28
29
|
maxScore: 3,
|
29
|
-
displayNumber: '1'
|
30
|
+
displayNumber: '1',
|
31
|
+
questionId: 1
|
30
32
|
};
|
31
33
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
32
34
|
});
|
@@ -34,7 +36,8 @@ describe('<QuestionAutoScore />', () => {
|
|
34
36
|
const props = {
|
35
37
|
score: 1,
|
36
38
|
maxScore: 3,
|
37
|
-
displayNumber: '1'
|
39
|
+
displayNumber: '1',
|
40
|
+
questionId: 1
|
38
41
|
};
|
39
42
|
expect(renderWithContext(props, [{}, {}]).toJSON()).toMatchSnapshot();
|
40
43
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsExamQuestionAutoScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionAutoScore.test.tsx"],"names":[],"mappings":";;;;;AACA,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAC5C,kFAA8E;AAC9E,gHAAmH;AACnH,yCAAyC;AAEzC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,IAAkB,CAAA;IAEtB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,IAAA,eAAQ,EAAC,OAAO,CAAC,CAAA;IAC1B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,KAAK,GAAG;YACZ,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,CAAC;YACX,aAAa,EAAE,GAAG;
|
1
|
+
{"version":3,"file":"ResultsExamQuestionAutoScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionAutoScore.test.tsx"],"names":[],"mappings":";;;;;AACA,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAC5C,kFAA8E;AAC9E,gHAAm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;QAC1B,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,cAAc,EAAE,EAAE;QAClB,gBAAgB,EAAE,EAAE;KACrB,CAAA;IAED,SAAS,iBAAiB,CAAC,KAA6B,EAAE,OAAkB;QAC1E,OAAO,IAAA,4BAAM,EACX,8BAAC,iCAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,OAAO,EAAE;YAC3D,8BAAC,+BAAe,IAAC,IAAI,EAAE,IAAI;gBACzB,8BAAC,2BAAiB,OAAK,KAAK,GAAI,CAChB,CACO,CAC5B,CAAA;IACH,CAAC;AACH,CAAC,CAAC,CAAA"}
|
@@ -12,7 +12,8 @@ const QuestionManualScore_1 = __importDefault(require("../../src/components/resu
|
|
12
12
|
const i18n_1 = require("../../src/i18n");
|
13
13
|
const defaultProps = {
|
14
14
|
maxScore: 6,
|
15
|
-
displayNumber: '1'
|
15
|
+
displayNumber: '1',
|
16
|
+
questionId: 1
|
16
17
|
};
|
17
18
|
const defaultScores = {
|
18
19
|
questionId: 1,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsExamQuestionManualScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionManualScore.test.tsx"],"names":[],"mappings":";;;;;AACA,oDAAsB;AACtB,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAE5C,kFAA8E;AAC9E,oHAEkE;AAClE,yCAAyC;AAEzC,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,CAAC;IACX,aAAa,EAAE,GAAG;
|
1
|
+
{"version":3,"file":"ResultsExamQuestionManualScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionManualScore.test.tsx"],"names":[],"mappings":";;;;;AACA,oDAAsB;AACtB,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAE5C,kFAA8E;AAC9E,oHAEkE;AAClE,yCAAyC;AAEzC,MAA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