@digabi/exam-engine-core 19.10.1 → 19.10.4-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/dist/__tests__/examServerApi.d.ts.map +1 -1
  2. package/dist/__tests__/examServerApi.js +2 -1
  3. package/dist/__tests__/examServerApi.js.map +1 -1
  4. package/dist/__tests__/testExamRendering.js +9 -1
  5. package/dist/__tests__/testExamRendering.js.map +1 -1
  6. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  7. package/dist/assets/logo.png +0 -0
  8. package/dist/components/exam/Exam.d.ts +10 -0
  9. package/dist/components/exam/Exam.d.ts.map +1 -1
  10. package/dist/components/exam/Exam.js +7 -2
  11. package/dist/components/exam/Exam.js.map +1 -1
  12. package/dist/components/exam/ExamFooter.d.ts.map +1 -1
  13. package/dist/components/exam/ExamFooter.js +11 -2
  14. package/dist/components/exam/ExamFooter.js.map +1 -1
  15. package/dist/components/exam/StudentNameHeader.d.ts +8 -0
  16. package/dist/components/exam/StudentNameHeader.d.ts.map +1 -0
  17. package/dist/components/exam/StudentNameHeader.js +3 -0
  18. package/dist/components/exam/StudentNameHeader.js.map +1 -0
  19. package/dist/components/exam/UndoHistoryEntry.d.ts +20 -0
  20. package/dist/components/exam/UndoHistoryEntry.d.ts.map +1 -0
  21. package/dist/components/exam/UndoHistoryEntry.js +42 -0
  22. package/dist/components/exam/UndoHistoryEntry.js.map +1 -0
  23. package/dist/components/exam/UndoView.d.ts +36 -0
  24. package/dist/components/exam/UndoView.d.ts.map +1 -0
  25. package/dist/components/exam/UndoView.js +162 -0
  26. package/dist/components/exam/UndoView.js.map +1 -0
  27. package/dist/components/exam/undo-view.d.ts +36 -0
  28. package/dist/components/exam/undo-view.d.ts.map +1 -0
  29. package/dist/components/exam/undo-view.js +162 -0
  30. package/dist/components/exam/undo-view.js.map +1 -0
  31. package/dist/components/grading/GradingAnswer.d.ts.map +1 -1
  32. package/dist/components/grading/GradingAnswer.js.map +1 -1
  33. package/dist/components/grading/editAnnotations.d.ts +1 -1
  34. package/dist/components/grading/editAnnotations.d.ts.map +1 -1
  35. package/dist/components/grading/editAnnotations.js +0 -1
  36. package/dist/components/grading/editAnnotations.js.map +1 -1
  37. package/dist/components/shared/ExamTranslation.d.ts.map +1 -1
  38. package/dist/components/shared/ExamTranslation.js +0 -1
  39. package/dist/components/shared/ExamTranslation.js.map +1 -1
  40. package/dist/components/shared/internal/AudioPlaybackError.d.ts.map +1 -1
  41. package/dist/components/shared/internal/AudioPlaybackError.js +1 -0
  42. package/dist/components/shared/internal/AudioPlaybackError.js.map +1 -1
  43. package/dist/i18n/fi-FI.d.ts +17 -0
  44. package/dist/i18n/fi-FI.d.ts.map +1 -1
  45. package/dist/i18n/fi-FI.js +17 -0
  46. package/dist/i18n/fi-FI.js.map +1 -1
  47. package/dist/i18n/sv-FI.d.ts.map +1 -1
  48. package/dist/i18n/sv-FI.js +17 -0
  49. package/dist/i18n/sv-FI.js.map +1 -1
  50. package/dist/main-bundle.js +1 -1
  51. package/dist/main-bundle.js.LICENSE.txt +14 -0
  52. package/dist/main.css +1 -1
  53. package/dist/store/index.d.ts.map +1 -1
  54. package/dist/store/index.js +1 -0
  55. package/dist/store/index.js.map +1 -1
  56. package/dist/types/ExamServerAPI.d.ts +1 -0
  57. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  58. package/package.json +2 -2
Binary file
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExamAnswer, ExamServerAPI, InitialCasStatus, RestrictedAudioPlaybackStats } from '../../index';
3
+ import { TextAnswer as TextAnswerType, RichTextAnswer } from '../../types/ExamAnswer';
3
4
  /** Props common to taking the exams and viewing results */
4
5
  export interface CommonExamProps {
5
6
  /** Initial answers */
@@ -13,6 +14,12 @@ export interface CommonExamProps {
13
14
  /** @deprecated Not used anymore */
14
15
  language?: string;
15
16
  }
17
+ interface UndoViewProps {
18
+ close: () => void;
19
+ restoreAnswer: (examAnswer: TextAnswerType | RichTextAnswer) => void;
20
+ questionId: number;
21
+ title: string;
22
+ }
16
23
  /** Props related to taking the exam, 'executing' it */
17
24
  export interface ExamProps extends CommonExamProps {
18
25
  /** The status of CAS software on the OS */
@@ -26,6 +33,9 @@ export interface ExamProps extends CommonExamProps {
26
33
  restrictedAudioPlaybackStats: RestrictedAudioPlaybackStats[];
27
34
  /** Exam Server API implementation */
28
35
  examServerApi: ExamServerAPI;
36
+ studentName: string;
37
+ showUndoView: boolean;
38
+ undoViewProps: UndoViewProps;
29
39
  }
30
40
  declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
31
41
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA8CvG,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,mBAAmB;IACnB,GAAG,EAAE,WAAW,CAAA;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,4BAA4B,EAAE,CAAA;IAC5D,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAA;CAC7B;;AAkMD,wBAAuE"}
1
+ {"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA+CvG,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAErF,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,mBAAmB;IACnB,GAAG,EAAE,WAAW,CAAA;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,UAAU,EAAE,cAAc,GAAG,cAAc,KAAK,IAAI,CAAA;IACpE,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,4BAA4B,EAAE,CAAA;IAC5D,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,aAAa,CAAA;CAC7B;;AAwMD,wBAAuE"}
@@ -45,6 +45,8 @@ import RenderChildNodes from '../RenderChildNodes';
45
45
  import { QuestionNumber } from '../shared/QuestionNumber';
46
46
  import ExamTranslation from '../shared/ExamTranslation';
47
47
  import * as _ from 'lodash-es';
48
+ import { StudentNameHeader } from './StudentNameHeader';
49
+ import { UndoView } from './UndoView';
48
50
  const renderChildNodes = createRenderChildNodes({
49
51
  attachment: ExamAttachment,
50
52
  'attachment-link': mkAttachmentLink('link'),
@@ -76,7 +78,7 @@ const renderChildNodes = createRenderChildNodes({
76
78
  video: Video,
77
79
  'image-overlay': ImageOverlay
78
80
  });
79
- const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi }) => {
81
+ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi, studentName, showUndoView, undoViewProps }) => {
80
82
  const { date, dateTimeFormatter, dayCode, examCode, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
81
83
  const examTitle = findChildElement(root, 'exam-title');
82
84
  const examInstruction = findChildElement(root, 'exam-instruction');
@@ -160,6 +162,7 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
160
162
  React.createElement(TableOfContentsSidebar, { element: tableOfContents, renderChildNodes }))),
161
163
  React.createElement("div", { className: "main-exam-container" },
162
164
  React.createElement("div", { className: "main-exam" },
165
+ React.createElement(StudentNameHeader, { studentName: studentName }),
163
166
  React.createElement(SectionElement, { "aria-labelledby": examTitleId },
164
167
  examTitle && React.createElement(DocumentTitle, { id: examTitleId }, renderChildNodes(examTitle)),
165
168
  date && (React.createElement("p", null,
@@ -170,9 +173,11 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
170
173
  renderChildNodes }))),
171
174
  externalMaterial && (React.createElement(ExternalMaterial, { element: externalMaterial, renderChildNodes, forceRender: true }))),
172
175
  renderChildNodes(root)))),
176
+ React.createElement("div", { className: "e-section e-exam-footer-content" }),
173
177
  React.createElement("div", { className: "e-footer" },
174
178
  React.createElement(ErrorIndicator, null),
175
- React.createElement(SaveIndicator, null))))));
179
+ React.createElement(SaveIndicator, null)),
180
+ showUndoView && React.createElement(UndoView, { ...undoViewProps })))));
176
181
  };
177
182
  export default React.memo(withExamContext(withCommonExamContext(Exam)));
178
183
  //# sourceMappingURL=Exam.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,UAAU,MAAM,sBAAsB,CAAA;AAC7C,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,cAAc,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE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,oBAAC,cAAc,uBAAkB,WAAW;gCACzC,SAAS,IAAI,oBAAC,aAAa,IAAC,EAAE,EAAE,WAAW,IAAG,gBAAgB,CAAC,SAAS,CAAC,CAAiB;gCAC1F,IAAI,IAAI,CACP;oCACE,oCAAS,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAU,CAC/C,CACL;gCACA,eAAe,IAAI,oBAAC,eAAe,IAAO,OAAO,EAAE,eAAe,EAAE,gBAAgB,GAAM;gCAE1F,eAAe,IAAI,CAClB,6BAAK,SAAS,EAAC,oBAAoB;oCACjC,oBAAC,eAAe,IAEZ,OAAO,EAAE,eAAe;wCACxB,gBAAgB,GAElB,CACE,CACP;gCACA,gBAAgB,IAAI,CACnB,oBAAC,gBAAgB,IAAO,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,GAAM,CAC7F,CACc;4BAChB,gBAAgB,CAAC,IAAI,CAAC,CACnB,CACF,CACF;gBACN,6BAAK,SAAS,EAAC,iCAAiC,GAAG;gBACnD,6BAAK,SAAS,EAAC,UAAU;oBACvB,oBAAC,cAAc,OAAG;oBAClB,oBAAC,aAAa,OAAG,CACb;gBACL,YAAY,IAAI,oBAAC,QAAQ,OAAK,aAAa,GAAI,CAC3C,CACS,CACT,CACZ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExamFooter.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAEpE;;AAED,wBAAqC"}
1
+ {"version":3,"file":"ExamFooter.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAkBpE;;AAED,wBAAqC"}
@@ -1,7 +1,16 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import SectionElement from '../SectionElement';
3
+ import { ExamContext } from '../context/ExamContext';
4
+ import { useExamTranslation } from '../../i18n';
3
5
  function ExamFooter({ element, renderChildNodes }) {
4
- return React.createElement(SectionElement, null, renderChildNodes(element));
6
+ const { examServerApi } = useContext(ExamContext);
7
+ const { finishExam } = examServerApi;
8
+ const { t } = useExamTranslation();
9
+ return (React.createElement(SectionElement, null,
10
+ React.createElement("div", { className: "e-exam-footer" },
11
+ renderChildNodes(element),
12
+ React.createElement("button", { id: "finishExam", onClick: () => void finishExam(), "aria-describedby": "finishExamInstructions" }, t('finish-exam.finish')),
13
+ React.createElement("div", { className: "e-finish-exam-instructions", id: "finishExamInstructions" }, t('finish-exam.instructions')))));
5
14
  }
6
15
  export default React.memo(ExamFooter);
7
16
  //# sourceMappingURL=ExamFooter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExamFooter.js","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAG9C,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACnE,OAAO,oBAAC,cAAc,QAAE,gBAAgB,CAAC,OAAO,CAAC,CAAkB,CAAA;AACrE,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"ExamFooter.js","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACnE,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IACjD,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAA;IACpC,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,oBAAC,cAAc;QACb,6BAAK,SAAS,EAAC,eAAe;YAC3B,gBAAgB,CAAC,OAAO,CAAC;YAC1B,gCAAQ,EAAE,EAAC,YAAY,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,UAAU,EAAE,sBAAmB,wBAAwB,IAChG,CAAC,CAAC,oBAAoB,CAAC,CACjB;YACT,6BAAK,SAAS,EAAC,4BAA4B,EAAC,EAAE,EAAC,wBAAwB,IACpE,CAAC,CAAC,0BAA0B,CAAC,CAC1B,CACF,CACS,CAClB,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ studentName?: string;
4
+ allowLanguageChange?: boolean;
5
+ }
6
+ export declare const StudentNameHeader: (props: Props) => React.JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=StudentNameHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StudentNameHeader.d.ts","sourceRoot":"","sources":["../../../src/components/exam/StudentNameHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,eAAO,MAAM,iBAAiB,UAAW,KAAK,sBAAwE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export const StudentNameHeader = (props) => React.createElement("div", { className: "e-student-name-container" }, props.studentName);
3
+ //# sourceMappingURL=StudentNameHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StudentNameHeader.js","sourceRoot":"","sources":["../../../src/components/exam/StudentNameHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,0BAA0B,IAAE,KAAK,CAAC,WAAW,CAAO,CAAA"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export interface UndoHistoryEntryProps {
3
+ croppedAnswer: string;
4
+ minutesSinceAnswer: number;
5
+ answerIndex: number;
6
+ selected: boolean;
7
+ onChange: (index: number) => void;
8
+ wordCount: number;
9
+ characterCount: number;
10
+ screenshotCount: number;
11
+ }
12
+ export declare class UndoHistoryEntry extends React.PureComponent<UndoHistoryEntryProps> {
13
+ private entryInputRef;
14
+ private labelInputRef;
15
+ constructor(props: UndoHistoryEntryProps);
16
+ componentDidMount(): void;
17
+ private inputValueChanged;
18
+ render(): React.JSX.Element;
19
+ }
20
+ //# sourceMappingURL=UndoHistoryEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoHistoryEntry.d.ts","sourceRoot":"","sources":["../../../src/components/exam/UndoHistoryEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC;IAC9E,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,aAAa,CAAmC;gBAE5C,KAAK,EAAE,qBAAqB;IAMjC,iBAAiB;IAMxB,OAAO,CAAC,iBAAiB,CAKxB;IAEM,MAAM;CA2Bd"}
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { useExamTranslation } from '../../i18n';
3
+ export class UndoHistoryEntry extends React.PureComponent {
4
+ constructor(props) {
5
+ super(props);
6
+ this.inputValueChanged = () => {
7
+ this.props.onChange(this.props.answerIndex);
8
+ if (this.labelInputRef && this.labelInputRef.current) {
9
+ this.labelInputRef.current.scrollIntoView({ block: 'center' });
10
+ }
11
+ };
12
+ this.entryInputRef = React.createRef();
13
+ this.labelInputRef = React.createRef();
14
+ }
15
+ componentDidMount() {
16
+ if (this.entryInputRef.current && this.props.answerIndex === 0) {
17
+ this.entryInputRef.current.focus();
18
+ }
19
+ }
20
+ render() {
21
+ const { selected, croppedAnswer, wordCount, characterCount, screenshotCount, answerIndex, minutesSinceAnswer } = this.props;
22
+ return (React.createElement("label", { ref: this.labelInputRef, className: "js-undo-history-entry" },
23
+ React.createElement("input", { type: "radio", className: "k-undo-view-entry-tab", name: "undoHistory", value: answerIndex, checked: selected, onChange: this.inputValueChanged, ref: this.entryInputRef }),
24
+ React.createElement("div", { className: "k-undo-view-entry js-undo-entry-content" },
25
+ React.createElement(UndoEntry, { croppedAnswer: croppedAnswer, wordCount: wordCount, characterCount: characterCount, screenshotCount: screenshotCount, answerIndex: answerIndex, minutesSinceAnswer: minutesSinceAnswer }))));
26
+ }
27
+ }
28
+ const UndoEntry = ({ croppedAnswer, wordCount, characterCount, screenshotCount, answerIndex, minutesSinceAnswer }) => {
29
+ const { t } = useExamTranslation();
30
+ const wordCountText = wordCount > 0 ? t('undo.answerWordCount', { count: wordCount }) : null;
31
+ const characterCountText = characterCount > 0 ? t('undo.answerCharacterCount', { count: characterCount }) : null;
32
+ const imageCountText = screenshotCount > 0 ? t('undo.answerImageCount', { count: screenshotCount }) : null;
33
+ const arr = [wordCountText, characterCountText, imageCountText].filter(x => x !== null);
34
+ return (React.createElement("div", { className: "k-undo-view-entry js-undo-entry-content" },
35
+ React.createElement("div", { className: "k-undo-view-answer-cropped js-undo-history-entry-answer" }, croppedAnswer || t('undo.answerNoText')),
36
+ React.createElement("div", { className: "k-undo-view-answer-length js-undo-history-entry-stats" }, arr.map((el, index) => (React.createElement(React.Fragment, null,
37
+ el,
38
+ " ",
39
+ index < arr.length - 1 && React.createElement("span", null, ", "))))),
40
+ React.createElement("div", { className: "k-undo-view-answer-length js-undo-history-entry-time" }, answerIndex === 0 ? t('undo.latestVersion') : t('undo.minutesSinceAnswer', { minutes: minutesSinceAnswer }))));
41
+ };
42
+ //# sourceMappingURL=UndoHistoryEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoHistoryEntry.js","sourceRoot":"","sources":["../../../src/components/exam/UndoHistoryEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAa/C,MAAM,OAAO,gBAAiB,SAAQ,KAAK,CAAC,aAAoC;IAI9E,YAAY,KAA4B;QACtC,KAAK,CAAC,KAAK,CAAC,CAAA;QAWN,sBAAiB,GAAG,GAAG,EAAE;YAC/B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;YAC3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC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AACH,CAAC,CAAA"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import moment from 'moment';
3
+ import { RichTextAnswer, TextAnswer } from '../../types/ExamAnswer';
4
+ export interface AnswerHistoryEntry {
5
+ type: 'text' | 'richText';
6
+ value: string;
7
+ characterCount: number;
8
+ answerTime: moment.Moment;
9
+ }
10
+ export interface UndoViewProps {
11
+ close: () => void;
12
+ restoreAnswer: (examAnswer: TextAnswer | RichTextAnswer) => void;
13
+ questionId: number;
14
+ title: string;
15
+ }
16
+ interface UndoViewState {
17
+ answers: AnswerHistoryEntry[];
18
+ selectedAnswerIndex: number;
19
+ loading: boolean;
20
+ loadRetryTimeout: number | null;
21
+ }
22
+ export declare class UndoView extends React.PureComponent<UndoViewProps, UndoViewState> {
23
+ private source;
24
+ constructor(props: UndoViewProps);
25
+ toggleBodyScroll: (scrollEnabled: boolean) => boolean;
26
+ componentDidMount(): void;
27
+ componentWillUnmount(): void;
28
+ componentDidUpdate(prevProps: UndoViewProps): void;
29
+ private overlayClicked;
30
+ private keydownListener;
31
+ private fetchAnswerHistory;
32
+ private close;
33
+ render(): React.JSX.Element;
34
+ }
35
+ export {};
36
+ //# sourceMappingURL=UndoView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoView.d.ts","sourceRoot":"","sources":["../../../src/components/exam/UndoView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,MAAM,MAAM,QAAQ,CAAA;AAI3B,OAAO,EAAc,cAAc,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,KAAK,IAAI,CAAA;IAChE,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AA+FD,qBAAa,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAuB;gBAEzB,KAAK,EAAE,aAAa;IAUhC,gBAAgB,kBAAmB,OAAO,aAC0C;IAE7E,iBAAiB;IAMjB,oBAAoB;IAMpB,kBAAkB,CAAC,SAAS,EAAE,aAAa;IAMlD,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,eAAe,CAQtB;YAEa,kBAAkB;IAmBhC,OAAO,CAAC,KAAK;IASN,MAAM;CAgDd"}
@@ -0,0 +1,162 @@
1
+ import axios from 'axios';
2
+ import React from 'react';
3
+ //import { Spinner } from '../components/spinner'
4
+ import moment from 'moment';
5
+ import { UndoHistoryEntry } from './UndoHistoryEntry';
6
+ import FocusTrap from 'focus-trap-react';
7
+ import { useExamTranslation } from '../../i18n';
8
+ const CancelToken = axios.CancelToken;
9
+ function toAnswerHistoryEntry(answer) {
10
+ return {
11
+ type: answer.type,
12
+ value: answer.value,
13
+ answerTime: moment(answer.answer_time),
14
+ characterCount: answer.character_count
15
+ };
16
+ }
17
+ function AnswerDisplay(props) {
18
+ const { selectedAnswer } = props;
19
+ return selectedAnswer ? (selectedAnswer.type === 'richText' ? (React.createElement("div", { className: "k-undo-view-answer-content js-undo-answer-detail", dangerouslySetInnerHTML: { __html: selectedAnswer.value } })) : (React.createElement("div", { className: "k-undo-view-answer-content js-undo-answer-detail plainText" }, selectedAnswer.value))) : null;
20
+ }
21
+ function BottomBar(props) {
22
+ const { selectedAnswer, selectedAnswerIndex, restoreAnswer, questionId } = props;
23
+ const disableRestoreButton = !selectedAnswer || selectedAnswerIndex === 0;
24
+ return (React.createElement("div", { className: "k-undo-view-bottom-bar" },
25
+ React.createElement("button", { className: "k-button-default k-button js-restore-answer-button", disabled: disableRestoreButton, onClick: () => selectedAnswer && restoreAnswer({ ...selectedAnswer, questionId }) },
26
+ React.createElement(RestoreButtonLabel, null))));
27
+ }
28
+ function escapedHtml(html) {
29
+ const container = document.createElement('div');
30
+ container.innerHTML = html;
31
+ return container.innerText;
32
+ }
33
+ function getAnswerText(answer) {
34
+ const fullText = answer.type === 'text' ? answer.value : escapedHtml(answer.value);
35
+ return fullText.replace(/\s+/g, ' ').trim();
36
+ }
37
+ function truncateAnswer(answer, length = 50) {
38
+ const answerText = getAnswerText(answer);
39
+ if (answerText.length <= length) {
40
+ return answerText;
41
+ }
42
+ const separator = '…';
43
+ const charsToShow = length - separator.length;
44
+ const startChars = Math.ceil(charsToShow / 2);
45
+ const endChars = charsToShow - startChars;
46
+ return answerText.substr(0, startChars) + separator + answerText.substr(answerText.length - endChars);
47
+ }
48
+ function countWords(answer) {
49
+ const text = getAnswerText(answer);
50
+ return text.length === 0 ? 0 : text.split(/\s+/gi).filter(s => s.length > 0).length;
51
+ }
52
+ function countCharacters(answer) {
53
+ const text = getAnswerText(answer);
54
+ return text.replace(/\s/g, '').length;
55
+ }
56
+ function countScreenshots(answer) {
57
+ const answerElement = document.createElement('div');
58
+ answerElement.innerHTML = answer.value;
59
+ const equationImageSelector = 'img[src^="/math.svg"], img[src^="data:image/svg+xml"]';
60
+ const imageCount = answerElement.querySelectorAll('img').length;
61
+ const emptyImageCount = answerElement.querySelectorAll('img[src=""]').length;
62
+ const equationCount = answerElement.querySelectorAll(equationImageSelector).length;
63
+ return imageCount - equationCount - emptyImageCount;
64
+ }
65
+ export class UndoView extends React.PureComponent {
66
+ constructor(props) {
67
+ super(props);
68
+ this.source = CancelToken.source();
69
+ this.toggleBodyScroll = (scrollEnabled) => document.documentElement.classList.toggle('k-exam-body-no-scroll', !scrollEnabled);
70
+ this.keydownListener = (event) => {
71
+ if (event.keyCode === 13) {
72
+ const selectedAnswer = this.state.answers[this.state.selectedAnswerIndex];
73
+ this.props.restoreAnswer({ ...selectedAnswer, questionId: this.props.questionId });
74
+ this.close();
75
+ }
76
+ else if (event.keyCode === 27) {
77
+ this.close();
78
+ }
79
+ };
80
+ this.state = {
81
+ answers: [],
82
+ selectedAnswerIndex: 0,
83
+ loading: true,
84
+ loadRetryTimeout: null
85
+ };
86
+ }
87
+ componentDidMount() {
88
+ this.toggleBodyScroll(false);
89
+ document.addEventListener('keydown', this.keydownListener, false);
90
+ void this.fetchAnswerHistory(this.props.questionId);
91
+ }
92
+ componentWillUnmount() {
93
+ this.source.cancel();
94
+ document.removeEventListener('keydown', this.keydownListener, false);
95
+ this.toggleBodyScroll(true);
96
+ }
97
+ componentDidUpdate(prevProps) {
98
+ if (this.props.questionId !== prevProps.questionId) {
99
+ void this.fetchAnswerHistory(this.props.questionId);
100
+ }
101
+ }
102
+ overlayClicked(event) {
103
+ const targetClass = event.target.className;
104
+ if (targetClass.includes('js-undo-overlay')) {
105
+ this.close();
106
+ }
107
+ }
108
+ async fetchAnswerHistory(questionId) {
109
+ try {
110
+ const answerHistoryResult = await axios.get(`/rest/answer-history/${questionId}`, {
111
+ cancelToken: this.source.token
112
+ });
113
+ const answerHistory = answerHistoryResult.data;
114
+ const answers = answerHistory.map(toAnswerHistoryEntry);
115
+ this.setState({ answers, selectedAnswerIndex: 0, loading: false, loadRetryTimeout: null });
116
+ }
117
+ catch (error) {
118
+ if (!axios.isCancel(error)) {
119
+ this.setState({
120
+ loadRetryTimeout: window.setTimeout(() => {
121
+ void this.fetchAnswerHistory(questionId);
122
+ }, 4000)
123
+ });
124
+ }
125
+ }
126
+ }
127
+ close() {
128
+ const timeout = this.state.loadRetryTimeout;
129
+ if (timeout) {
130
+ clearTimeout(timeout);
131
+ }
132
+ this.source.cancel();
133
+ this.props.close();
134
+ }
135
+ render() {
136
+ const selectedAnswer = this.state.answers[this.state.selectedAnswerIndex];
137
+ const now = moment();
138
+ return (React.createElement(FocusTrap, null,
139
+ React.createElement("div", { onClick: this.overlayClicked.bind(this), className: "k-overlay js-undo-overlay", "aria-modal": "true" },
140
+ React.createElement("div", { id: "undo", className: "k-undo-view" },
141
+ React.createElement("div", { className: "k-undo-view-header js-undo-view-header" },
142
+ React.createElement("h3", { className: "k-undo-view-title js-undo-view-title" }, this.props.title),
143
+ React.createElement(CloseButton, { close: this.close.bind(this) })),
144
+ this.state.loading ? ('Loading...') : (
145
+ //<Spinner />
146
+ React.createElement("div", { className: "k-undo-view-content" },
147
+ React.createElement("div", { className: "k-undo-view-answer-index js-undo-answer-index" }, this.state.answers.map((answer, index) => (React.createElement(UndoHistoryEntry, { key: answer.answerTime.unix(), answerIndex: index, selected: index === this.state.selectedAnswerIndex, onChange: index => this.setState({ selectedAnswerIndex: index }), croppedAnswer: truncateAnswer(answer), minutesSinceAnswer: now.diff(answer.answerTime, 'minutes'), wordCount: countWords(answer), characterCount: countCharacters(answer), screenshotCount: countScreenshots(answer) })))),
148
+ React.createElement("div", { className: "k-undo-view-right-panel" },
149
+ React.createElement(AnswerDisplay, { selectedAnswer: selectedAnswer }),
150
+ React.createElement(BottomBar, { selectedAnswer: selectedAnswer, selectedAnswerIndex: this.state.selectedAnswerIndex, restoreAnswer: this.props.restoreAnswer, questionId: this.props.questionId }))))))));
151
+ }
152
+ }
153
+ const CloseButton = ({ close }) => {
154
+ const { t } = useExamTranslation();
155
+ return (React.createElement("div", null,
156
+ React.createElement("img", { src: "img/closeButton.svg", id: "closeUndoDialogButton", className: "k-undo-view-close-overlay-button js-close-undo-dialog-button", onClick: close, tabIndex: 0, role: "button", "aria-label": t('undo.close') })));
157
+ };
158
+ const RestoreButtonLabel = () => {
159
+ const { t } = useExamTranslation();
160
+ return React.createElement("div", null, t('undo.restoreAnswer'));
161
+ };
162
+ //# sourceMappingURL=UndoView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoView.js","sourceRoot":"","sources":["../../../src/components/exam/UndoView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,iDAAiD;AACjD,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,SAAS,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAG/C,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;AA4BrC,SAAS,oBAAoB,CAAC,MAA2B;IACvD,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;QACtC,cAAc,EAAE,MAAM,CAAC,eAAe;KACvC,CAAA;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAA8C;IACnE,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAA;IAChC,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,cAAc,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CACnC,6BACE,SAAS,EAAC,kDAAkD,EAC5D,uBAAuB,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,GACzD,CACH,CAAC,CAAC,CAAC,CACF,6BAAK,SAAS,EAAC,4DAA4D,IAAE,cAAc,CAAC,KAAK,CAAO,CACzG,CACF,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,SAAS,SAAS,CAAC,KAKlB;IACC,MAAM,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,KAAK,CAAA;IAChF,MAAM,oBAAoB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,CAAA;AAC7C,CAAC,CAAA"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import moment from 'moment';
3
+ import { RichTextAnswer, TextAnswer } from '../../types/ExamAnswer';
4
+ export interface AnswerHistoryEntry {
5
+ type: 'text' | 'richText';
6
+ value: string;
7
+ characterCount: number;
8
+ answerTime: moment.Moment;
9
+ }
10
+ export interface UndoViewProps {
11
+ close: () => void;
12
+ restoreAnswer: (examAnswer: TextAnswer | RichTextAnswer) => void;
13
+ questionId: number;
14
+ title: string;
15
+ }
16
+ interface UndoViewState {
17
+ answers: AnswerHistoryEntry[];
18
+ selectedAnswerIndex: number;
19
+ loading: boolean;
20
+ loadRetryTimeout: number | null;
21
+ }
22
+ export declare class UndoView extends React.PureComponent<UndoViewProps, UndoViewState> {
23
+ private source;
24
+ constructor(props: UndoViewProps);
25
+ toggleBodyScroll: (scrollEnabled: boolean) => boolean;
26
+ componentDidMount(): void;
27
+ componentWillUnmount(): void;
28
+ componentDidUpdate(prevProps: UndoViewProps): void;
29
+ private overlayClicked;
30
+ private keydownListener;
31
+ private fetchAnswerHistory;
32
+ private close;
33
+ render(): React.JSX.Element;
34
+ }
35
+ export {};
36
+ //# sourceMappingURL=undo-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"undo-view.d.ts","sourceRoot":"","sources":["../../../src/components/exam/undo-view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,MAAM,MAAM,QAAQ,CAAA;AAI3B,OAAO,EAAc,cAAc,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,KAAK,IAAI,CAAA;IAChE,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AA+FD,qBAAa,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAuB;gBAEzB,KAAK,EAAE,aAAa;IAUhC,gBAAgB,kBAAmB,OAAO,aAC0C;IAE7E,iBAAiB;IAMjB,oBAAoB;IAMpB,kBAAkB,CAAC,SAAS,EAAE,aAAa;IAMlD,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,eAAe,CAQtB;YAEa,kBAAkB;IAmBhC,OAAO,CAAC,KAAK;IASN,MAAM;CAgDd"}