@digabi/exam-engine-core 19.15.6-alpha.3 → 19.17.0-abitti2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/__tests__/examServerApi.d.ts.map +1 -1
  2. package/dist/__tests__/examServerApi.js +1 -0
  3. package/dist/__tests__/examServerApi.js.map +1 -1
  4. package/dist/__tests__/results/ResultsContext.test.js +1 -1
  5. package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
  6. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  7. package/dist/components/context/CommonExamContext.d.ts +1 -0
  8. package/dist/components/context/CommonExamContext.d.ts.map +1 -1
  9. package/dist/components/context/CommonExamContext.js +2 -1
  10. package/dist/components/context/CommonExamContext.js.map +1 -1
  11. package/dist/components/exam/DropdownAnswer.d.ts.map +1 -1
  12. package/dist/components/exam/DropdownAnswer.js +1 -0
  13. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  14. package/dist/components/exam/Exam.d.ts +1 -0
  15. package/dist/components/exam/Exam.d.ts.map +1 -1
  16. package/dist/components/exam/Exam.js +22 -17
  17. package/dist/components/exam/Exam.js.map +1 -1
  18. package/dist/components/exam/FinishExam.d.ts +5 -0
  19. package/dist/components/exam/FinishExam.d.ts.map +1 -0
  20. package/dist/components/exam/FinishExam.js +17 -0
  21. package/dist/components/exam/FinishExam.js.map +1 -0
  22. package/dist/components/results/DropdownAnswer.js +1 -1
  23. package/dist/components/results/EndExamSession.d.ts +6 -3
  24. package/dist/components/results/EndExamSession.d.ts.map +1 -1
  25. package/dist/components/results/EndExamSession.js +4 -27
  26. package/dist/components/results/EndExamSession.js.map +1 -1
  27. package/dist/components/results/QuestionTitle.js +1 -1
  28. package/dist/components/results/Results.d.ts.map +1 -1
  29. package/dist/components/results/Results.js +24 -4
  30. package/dist/components/results/Results.js.map +1 -1
  31. package/dist/components/results/internal/QuestionScoresContainer.js +1 -1
  32. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  33. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  34. package/dist/components/results/isExamFinishPageHook.js +7 -0
  35. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  36. package/dist/components/results/{isExamExaminePageHook.d.ts → isExamineExamPageHook.d.ts} +1 -1
  37. package/dist/components/results/isExamineExamPageHook.d.ts.map +1 -0
  38. package/dist/components/results/{isExamExaminePageHook.js → isExamineExamPageHook.js} +1 -1
  39. package/dist/components/results/{isExamExaminePageHook.js.map → isExamineExamPageHook.js.map} +1 -1
  40. package/dist/components/shared/AnswerIndicator.d.ts +1 -0
  41. package/dist/components/shared/AnswerIndicator.d.ts.map +1 -1
  42. package/dist/components/shared/AnswerIndicator.js +14 -12
  43. package/dist/components/shared/AnswerIndicator.js.map +1 -1
  44. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  45. package/dist/components/shared/TableOfContents.js +15 -5
  46. package/dist/components/shared/TableOfContents.js.map +1 -1
  47. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
  48. package/dist/components/shared/internal/RestrictedAudioPlayer.js +16 -2
  49. package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
  50. package/dist/main-bundle.js +1 -1
  51. package/dist/main.css +1 -1
  52. package/dist/store/audio/reducer.d.ts +5 -0
  53. package/dist/store/audio/reducer.d.ts.map +1 -1
  54. package/dist/store/audio/reducer.js.map +1 -1
  55. package/dist/store/audio/sagas.d.ts.map +1 -1
  56. package/dist/store/audio/sagas.js +18 -3
  57. package/dist/store/audio/sagas.js.map +1 -1
  58. package/dist/types/ExamServerAPI.d.ts +8 -0
  59. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  60. package/package.json +2 -2
  61. package/dist/components/results/isExamExaminePageHook.d.ts.map +0 -1
@@ -51,7 +51,7 @@ export const mkTableOfContents = (options) => {
51
51
  const externalMaterial = showAttachmentLinks && displayNumber != null && query(element, 'external-material');
52
52
  const subquestions = [];
53
53
  let answersById = {};
54
- let hasQuestionValidationError;
54
+ let hasQuestionValidationError = false;
55
55
  if (isInSidebar) {
56
56
  const answers = useSelector((state) => state.answers);
57
57
  answersById = (answers === null || answers === void 0 ? void 0 : answers.answersById) || {};
@@ -59,12 +59,22 @@ export const mkTableOfContents = (options) => {
59
59
  const questionValidationErrors = (_a = answers.validationErrors) === null || _a === void 0 ? void 0 : _a.filter(i => (i === null || i === void 0 ? void 0 : i.elementType) === 'question');
60
60
  hasQuestionValidationError = !!(questionValidationErrors === null || questionValidationErrors === void 0 ? void 0 : questionValidationErrors.find(i => i.displayNumber === displayNumber));
61
61
  subquestionNodes.forEach(e => {
62
+ var _a;
62
63
  const id = Number(e.getAttribute('question-id'));
63
64
  const type = e.getAttribute('type') || '';
64
65
  const subQuestionDisplayNumber = e.getAttribute('display-number') || '';
65
- const error = !!(questionValidationErrors === null || questionValidationErrors === void 0 ? void 0 : questionValidationErrors.find(i => i.displayNumber === subQuestionDisplayNumber));
66
+ const hasError = !!(questionValidationErrors === null || questionValidationErrors === void 0 ? void 0 : questionValidationErrors.find(i => i.displayNumber === subQuestionDisplayNumber));
67
+ const childQuestionHasError = questionValidationErrors
68
+ .flatMap(i => ('childQuestions' in i ? i.childQuestions : []))
69
+ .includes(subQuestionDisplayNumber);
70
+ const hasAnswer = !!((_a = answersById[id]) === null || _a === void 0 ? void 0 : _a.value);
66
71
  if (id) {
67
- subquestions.push({ id, type, error });
72
+ subquestions.push({
73
+ id,
74
+ type,
75
+ error: hasError || (childQuestionHasError && hasAnswer),
76
+ displayNumber: Number(subQuestionDisplayNumber)
77
+ });
68
78
  }
69
79
  });
70
80
  }
@@ -72,7 +82,7 @@ export const mkTableOfContents = (options) => {
72
82
  const subquestionsAnswered = subquestions === null || subquestions === void 0 ? void 0 : subquestions.filter(i => { var _a; return (_a = answersById[i.id]) === null || _a === void 0 ? void 0 : _a.value; }).length;
73
83
  const maxAnswers = Number(element.getAttribute('max-answers'));
74
84
  const requiredAnswers = maxAnswers || subquestions.length;
75
- return (React.createElement("li", { "data-list-number": `${displayNumber}.`, onClick: () => (isInSidebar ? (window.location.href = `#question-nr-${displayNumber}`) : undefined), className: `level-${level} ${hasQuestionValidationError ? 'error' : ''}` },
85
+ return (React.createElement("li", { "data-list-number": `${displayNumber}.`, onClick: () => (isInSidebar ? (window.location.href = `#question-nr-${displayNumber}`) : undefined), className: classNames(`level-${level}`, { error: hasQuestionValidationError }) },
76
86
  React.createElement("span", { className: "e-column e-question-title" },
77
87
  React.createElement("a", { href: url('', { hash: `question-nr-${displayNumber}` }), tabIndex: isInSidebar ? -1 : undefined },
78
88
  React.createElement("span", null, renderChildNodes(questionTitle)))),
@@ -90,7 +100,7 @@ export const mkTableOfContents = (options) => {
90
100
  React.createElement("span", { className: "e-column e-column--narrow table-of-contents--score-column" }, t('points', { count: maxScore })),
91
101
  isInSidebar && (React.createElement("span", { className: "e-column e-column--narrow e-external-material" }, externalMaterial && React.createElement(FontAwesomeIcon, { size: "sm", icon: faPaperclip, fixedWidth: true }))),
92
102
  React.createElement("div", { className: "answers" },
93
- subquestions.map(i => (React.createElement(Indicator, { key: i.id, type: i.type, id: i.id, answer: answersById[i.id], error: i.error }))),
103
+ subquestions.map(i => (React.createElement(Indicator, { key: i.id, type: i.type, id: i.id, answer: answersById[i.id], error: i.error, displayNumber: i.displayNumber }))),
94
104
  ' ')));
95
105
  };
96
106
  const renderChildNodes = createRenderChildNodes({
@@ -1 +1 @@
1
- {"version":3,"file":"TableOfContents.js","sourceRoot":"","sources":["../../../src/components/shared/TableOfContents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAqC,MAAM,8BAA8B,CAAA;AACxG,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,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ts","sourceRoot":"","sources":["../../../../src/components/shared/internal/RestrictedAudioPlayer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAKlD,iBAAS,qBAAqB,CAAC,EAC7B,GAAG,EACH,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB,qBAmCA;;AAED,wBAAgD"}
1
+ {"version":3,"file":"RestrictedAudioPlayer.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/internal/RestrictedAudioPlayer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6B,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAMlD,iBAAS,qBAAqB,CAAC,EAC7B,GAAG,EACH,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,OAAO,EACR,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB,qBAqDA;;AAED,wBAAgD"}
@@ -1,11 +1,12 @@
1
1
  import { faPlay } from '@fortawesome/free-solid-svg-icons';
2
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
3
  import classNames from 'classnames';
4
- import React from 'react';
4
+ import React, { useContext, useRef } from 'react';
5
5
  import { useDispatch, useSelector } from 'react-redux';
6
6
  import { useExamTranslation } from '../../../i18n';
7
7
  import { playAudio } from '../../../store/audio/actions';
8
8
  import { getAudioState, getDurationRemaining, getPlaybackTimesRemaining } from '../../../store/selectors';
9
+ import { CommonExamContext } from '../../context/CommonExamContext';
9
10
  function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelId }) {
10
11
  const audioState = useSelector(getAudioState(src, restrictedAudioId));
11
12
  const durationRemaining = useSelector(getDurationRemaining(src, restrictedAudioId));
@@ -17,10 +18,23 @@ function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelI
17
18
  const disabled = !stopped || playbackTimesRemaining === 0;
18
19
  const remainingLabelId = `audio-remaining-${restrictedAudioId}`;
19
20
  const labels = playing ? [] : [remainingLabelId, labelId];
21
+ const { abitti2 } = useContext(CommonExamContext);
22
+ const audioRef = useRef(null);
20
23
  return (React.createElement("div", { className: classNames('restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1', { 'restricted-audio-player--disabled': disabled }), lang: i18n.language },
24
+ abitti2 && (React.createElement("audio", { ref: audioRef, className: "e-column e-column--narrow", "aria-describedby": labelId, preload: 'none' },
25
+ React.createElement("source", null))),
21
26
  React.createElement("button", { className: classNames('restricted-audio-player__play e-column e-column--narrow', {
22
27
  'restricted-audio-player__play--playing': playing
23
- }), disabled: disabled, onClick: () => stopped && dispatch(playAudio({ src, restrictedAudioId, duration })), "aria-labelledby": labels.join(' ') }, !playing && React.createElement(FontAwesomeIcon, { icon: faPlay, fixedWidth: true })),
28
+ }), disabled: disabled, onClick: () => {
29
+ if (stopped) {
30
+ dispatch(playAudio({
31
+ src,
32
+ restrictedAudioId,
33
+ duration,
34
+ audioRef
35
+ }));
36
+ }
37
+ }, "aria-labelledby": labels.join(' ') }, !playing && React.createElement(FontAwesomeIcon, { icon: faPlay, fixedWidth: true })),
24
38
  React.createElement("span", { className: "restricted-audio-player__duration e-column e-text-right", id: remainingLabelId }, formatDuration(durationRemaining !== null && durationRemaining !== void 0 ? durationRemaining : duration))));
25
39
  }
26
40
  export default React.memo(RestrictedAudioPlayer);
@@ -1 +1 @@
1
- {"version":3,"file":"RestrictedAudioPlayer.js","sour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