@digabi/exam-engine-core 19.8.0 → 19.8.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/AnsweringInstructions.test.js +11 -11
- package/dist/__tests__/AnsweringInstructions.test.js.map +1 -1
- package/dist/__tests__/examServerApi.js +2 -2
- package/dist/__tests__/examServerApi.js.map +1 -1
- package/dist/__tests__/renderAnnotations.test.js +18 -18
- package/dist/__tests__/results/AnnotationList.test.js +27 -27
- package/dist/__tests__/results/ResultsContext.test.js +37 -37
- package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
- package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +4 -4
- package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +19 -19
- package/dist/__tests__/testExamRendering.js +14 -16
- package/dist/__tests__/testExamRendering.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/__tests__/validateAnswers.test.js +28 -28
- package/dist/__tests__/validateAnswers.test.js.map +1 -1
- package/dist/components/AnswerToolbar.d.ts +1 -1
- package/dist/components/AnswerToolbar.d.ts.map +1 -1
- package/dist/components/AnswerToolbar.js +2 -2
- package/dist/components/AnswerToolbar.js.map +1 -1
- package/dist/components/AnsweringInstructions.js +1 -1
- package/dist/components/AnsweringInstructions.js.map +1 -1
- package/dist/components/DocumentTitle.js +1 -1
- package/dist/components/DocumentTitle.js.map +1 -1
- package/dist/components/SectionElement.js +1 -1
- package/dist/components/SectionElement.js.map +1 -1
- package/dist/components/attachments/Attachments.js +1 -1
- package/dist/components/attachments/ExternalMaterial.js +1 -1
- package/dist/components/attachments/Question.js +1 -1
- package/dist/components/attachments/Question.js.map +1 -1
- package/dist/components/context/CommonExamContext.js +1 -1
- package/dist/components/context/ExamContext.js +1 -1
- package/dist/components/context/QuestionContext.js +1 -1
- package/dist/components/context/ResultsContext.js +6 -6
- package/dist/components/context/ResultsContext.js.map +1 -1
- package/dist/components/context/SectionContext.js +2 -2
- package/dist/components/context/SectionContext.js.map +1 -1
- package/dist/components/exam/ChoiceAnswer.js +6 -6
- package/dist/components/exam/ChoiceAnswer.js.map +1 -1
- package/dist/components/exam/DropdownAnswer.js +10 -10
- package/dist/components/exam/DropdownAnswer.js.map +1 -1
- package/dist/components/exam/Exam.js +2 -2
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/ExternalMaterial.js +1 -1
- package/dist/components/exam/Hints.js +3 -3
- package/dist/components/exam/Hints.js.map +1 -1
- package/dist/components/exam/Question.js +1 -1
- package/dist/components/exam/QuestionTitle.js +1 -1
- package/dist/components/exam/RichTextAnswer.d.ts +6 -1
- package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
- package/dist/components/exam/RichTextAnswer.js +1 -1
- package/dist/components/exam/RichTextAnswer.js.map +1 -1
- package/dist/components/exam/Section.js +2 -2
- package/dist/components/exam/Section.js.map +1 -1
- package/dist/components/exam/internal/ErrorIndicator.d.ts +1 -1
- package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
- package/dist/components/exam/internal/ErrorIndicator.js +4 -4
- package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
- package/dist/components/exam/internal/ProgressBar.js +1 -1
- package/dist/components/exam/internal/ProgressBar.js.map +1 -1
- package/dist/components/exam/internal/TextAnswerInput.js +6 -6
- package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
- package/dist/components/grading/AnswerCharacterCounter.d.ts +1 -1
- package/dist/components/grading/AnswerCharacterCounter.d.ts.map +1 -1
- package/dist/components/grading/AnswerCharacterCounter.js +3 -3
- package/dist/components/grading/AnswerCharacterCounter.js.map +1 -1
- package/dist/components/grading/GradingAnswer.js +9 -9
- package/dist/components/grading/GradingAnswer.js.map +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.d.ts +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.d.ts.map +1 -1
- package/dist/components/grading/GradingAnswerAnnotationList.js +2 -2
- package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
- package/dist/components/grading/editAnnotations.js +14 -14
- package/dist/components/grading/editAnnotations.js.map +1 -1
- package/dist/components/grading/largeImageDetector.js +2 -2
- package/dist/components/grading/largeImageDetector.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +2 -2
- package/dist/components/grading-instructions/Question.js +1 -1
- package/dist/components/grading-instructions/QuestionTitle.js +1 -1
- package/dist/components/results/ChoiceAnswer.js +7 -7
- package/dist/components/results/ChoiceAnswer.js.map +1 -1
- package/dist/components/results/DropdownAnswer.js +5 -5
- package/dist/components/results/DropdownAnswer.js.map +1 -1
- package/dist/components/results/Question.js +2 -2
- package/dist/components/results/Question.js.map +1 -1
- package/dist/components/results/QuestionTitle.js +1 -1
- package/dist/components/results/Results.js +1 -1
- package/dist/components/results/Section.js +1 -1
- package/dist/components/results/Section.js.map +1 -1
- package/dist/components/results/SingleLineAnswer.d.ts +1 -1
- package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
- package/dist/components/results/SingleLineAnswer.js +1 -1
- package/dist/components/results/SingleLineAnswer.js.map +1 -1
- package/dist/components/results/internal/AnnotationList.js +2 -2
- package/dist/components/results/internal/AnnotationList.js.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.js +3 -3
- package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.js +2 -2
- package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
- package/dist/components/shared/AnnotationLists.d.ts +1 -1
- package/dist/components/shared/AnnotationLists.d.ts.map +1 -1
- package/dist/components/shared/AnnotationLists.js +1 -1
- package/dist/components/shared/AnnotationLists.js.map +1 -1
- package/dist/components/shared/AttachmentLink.js +1 -1
- package/dist/components/shared/AttachmentLink.js.map +1 -1
- package/dist/components/shared/AttachmentLinks.js +3 -3
- package/dist/components/shared/AttachmentLinks.js.map +1 -1
- package/dist/components/shared/ImageOverlay.js +3 -3
- package/dist/components/shared/ImageOverlay.js.map +1 -1
- package/dist/components/shared/Reference.js +1 -1
- package/dist/components/shared/References.js +1 -1
- package/dist/components/shared/References.js.map +1 -1
- package/dist/components/shared/Score.js +1 -1
- package/dist/components/shared/TableOfContents.js +2 -2
- package/dist/components/shared/internal/ResponsiveMediaContainer.js +3 -3
- package/dist/components/shared/internal/ResponsiveMediaContainer.js.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js +2 -2
- package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
- package/dist/dom-utils.js +1 -1
- package/dist/dom-utils.js.map +1 -1
- package/dist/fonts.js +1 -1
- package/dist/fonts.js.map +1 -1
- package/dist/i18n/A_E.js +2 -2
- package/dist/i18n/BA.js +1 -1
- package/dist/i18n/CA.js +1 -1
- package/dist/i18n/EA.js +2 -2
- package/dist/i18n/FA.js +2 -2
- package/dist/i18n/GC.js +2 -2
- package/dist/i18n/I.js +3 -3
- package/dist/i18n/M.js +1 -1
- package/dist/i18n/O_E.js +2 -2
- package/dist/i18n/PA.js +2 -2
- package/dist/i18n/SA.js +2 -2
- package/dist/i18n/TC.js +2 -2
- package/dist/i18n/VA.js +2 -2
- package/dist/i18n/Z.js +3 -3
- package/dist/i18n/fi-FI.js +13 -13
- package/dist/i18n/index.d.ts +2 -137
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +8 -8
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/sv-FI.js +13 -13
- package/dist/main-bundle.js +1 -1
- package/dist/main-bundle.js.LICENSE.txt +0 -5
- package/dist/main.css +1 -1
- package/dist/parser/parseExam.js +5 -5
- package/dist/parser/parseExam.js.map +1 -1
- package/dist/parser/parseExamStructure.js +4 -4
- package/dist/renderAnnotations.js +8 -8
- package/dist/renderAnnotations.js.map +1 -1
- package/dist/store/answers/reducer.js +2 -2
- package/dist/store/audio/reducer.js +3 -3
- package/dist/store/audio/sagas.js +1 -1
- package/dist/store/audio/sagas.js.map +1 -1
- package/dist/store/cas/reducer.js +1 -1
- package/dist/store/cas/sagas.js +1 -1
- package/dist/store/countdown.js +1 -1
- package/dist/store/countdown.js.map +1 -1
- package/dist/store/index.js +4 -4
- package/dist/validateAnswers.js +8 -8
- package/dist/validateAnswers.js.map +1 -1
- package/package.json +18 -18
@@ -8,16 +8,16 @@ const mkAttachmentLinks = (type) => {
|
|
8
8
|
const AttachmentLinks = ({ element }) => {
|
9
9
|
const { root, attachmentsURL } = useContext(CommonExamContext);
|
10
10
|
const { t } = useExamTranslation();
|
11
|
-
const displayNumbers = mapChildElements(element,
|
11
|
+
const displayNumbers = mapChildElements(element, attachmentLink => {
|
12
12
|
const name = attachmentLink.getAttribute('ref');
|
13
|
-
const attachment = query(root,
|
13
|
+
const attachment = query(root, el => el.localName === 'attachment' && el.getAttribute('name') === name);
|
14
14
|
return attachment.getAttribute('display-number');
|
15
15
|
});
|
16
16
|
const groupedDisplayNumbers = splitWhen(displayNumbers, (displayNumber, i) => i > 0 && !isSuccessive(displayNumbers[i - 1], displayNumber));
|
17
17
|
const isShort = element.getAttribute('type') === 'short';
|
18
18
|
const href = url(attachmentsURL, { hash: displayNumbers[0] });
|
19
19
|
const displayNumbersString = groupedDisplayNumbers
|
20
|
-
.map(
|
20
|
+
.map(group => (group.length > 1 ? `${group[0]}–${group[group.length - 1]}` : group[0]))
|
21
21
|
.join(', ');
|
22
22
|
const count = groupedDisplayNumbers[0].length;
|
23
23
|
return isShort ? (React.createElement(AttachmentLinkAnchor, { href, type }, displayNumbersString)) : (React.createElement(React.Fragment, null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AttachmentLinks.js","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE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CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;AAC1G,CAAC;AAED,eAAe,iBAAiB,CAAA"}
|
@@ -7,7 +7,7 @@ import { findChildElement, getNumericAttribute, mapChildElements } from '../../d
|
|
7
7
|
import { CommonExamContext } from '../context/CommonExamContext';
|
8
8
|
import ResponsiveMediaContainer from './internal/ResponsiveMediaContainer';
|
9
9
|
function ImageOverlay({ element, renderChildNodes }) {
|
10
|
-
const [opacities, setOpacities] = useState(() => _.times(element.children.length,
|
10
|
+
const [opacities, setOpacities] = useState(() => _.times(element.children.length, i => (i === 0 ? 1 : 0)));
|
11
11
|
const mkSetOpacity = (index) => (opacity) => {
|
12
12
|
const updatedOpacities = [...opacities];
|
13
13
|
updatedOpacities[index] = opacity;
|
@@ -24,7 +24,7 @@ function Slider({ opacity, setOpacity, element, renderChildNodes }) {
|
|
24
24
|
return (React.createElement("div", { className: "e-columns e-columns--center-v e-mrg-b-1" },
|
25
25
|
React.createElement("div", { className: "e-column e-text-right e-mrg-r-1" }, title && renderChildNodes(title)),
|
26
26
|
React.createElement(FontAwesomeIcon, { icon: faEyeSlash, className: "e-mrg-r-1 e-pointer", onClick: () => setOpacity(0) }),
|
27
|
-
React.createElement("input", { type: "range", min: 0, max: 1, step: 0.01, value: opacity, onChange:
|
27
|
+
React.createElement("input", { type: "range", min: 0, max: 1, step: 0.01, value: opacity, onChange: e => setOpacity(Number(e.target.value)) }),
|
28
28
|
React.createElement(FontAwesomeIcon, { icon: faEye, className: "e-mrg-l-1 e-pointer", onClick: () => setOpacity(1) })));
|
29
29
|
}
|
30
30
|
function ImageOverlayImage({ element, absolute, opacity }) {
|
@@ -33,7 +33,7 @@ function ImageOverlayImage({ element, absolute, opacity }) {
|
|
33
33
|
const height = getNumericAttribute(element, 'height');
|
34
34
|
const imgUrl = useContext(CommonExamContext).resolveAttachment(src);
|
35
35
|
return (React.createElement("div", { className: classNames('e-columns e-columns--center-h', { 'e-image-overlay__image-absolute': absolute }), style: {
|
36
|
-
opacity: opacity
|
36
|
+
opacity: opacity
|
37
37
|
} },
|
38
38
|
React.createElement(ResponsiveMediaContainer, { width,
|
39
39
|
height },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ImageOverlay.js","sourceRoot":"","sources":["../../../src/components/shared/ImageOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,wBAAwB,MAAM,qCAAqC,CAAA;AAE1E,SAAS,YAAY,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACrE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAW,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"ImageOverlay.js","sourceRoot":"","sources":["../../../src/components/shared/ImageOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OA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AA;IACxC,MAAM,KAAK,GAAG,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAE,CAAA;IACpD,MAAM,MAAM,GAAG,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAE,CAAA;IACtD,MAAM,MAAM,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAA;IACnE,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CAAC,+BAA+B,EAAE,EAAE,iCAAiC,EAAE,QAAQ,EAAE,CAAC,EACvG,KAAK,EAAE;YACL,OAAO,EAAE,OAAO;SACjB;QAED,oBAAC,wBAAwB,IAErB,KAAK;YACL,MAAM;YAGR,6BAAK,SAAS,EAAC,SAAS,EAAC,GAAG,EAAE,MAAM,GAAI,CACf,CACvB,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
|
@@ -38,7 +38,7 @@ function Reference({ element, renderChildNodes }) {
|
|
38
38
|
renderWithPrefix('reference-date', 'references.reference-date', AsDate),
|
39
39
|
renderWithPrefix('translator', 'references.translator', RenderChildNodes),
|
40
40
|
renderWithPrefix('modified-by', 'references.modified-by', RenderChildNodes),
|
41
|
-
renderWith('note', RenderChildNodes)
|
41
|
+
renderWith('note', RenderChildNodes)
|
42
42
|
])));
|
43
43
|
}
|
44
44
|
function Italic({ element, renderChildNodes }) {
|
@@ -11,7 +11,7 @@ const renderChildNodes = createRenderChildNodes({});
|
|
11
11
|
function References(_props) {
|
12
12
|
const { root } = useContext(CommonExamContext);
|
13
13
|
const { t } = useExamTranslation();
|
14
|
-
const internalReferences = queryAll(root, 'reference').filter(
|
14
|
+
const internalReferences = queryAll(root, 'reference').filter(reference => queryAncestors(reference, 'external-material') == null);
|
15
15
|
return internalReferences.length > 0 ? (React.createElement(SectionElement, { "aria-labelledby": referencesTitleId },
|
16
16
|
React.createElement("h2", { id: referencesTitleId }, t('references.heading')),
|
17
17
|
React.createElement("ol", { className: "e-list-data" }, internalReferences.map((reference, i) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"References.js","sourceRoot":"","sources":["../../../src/components/shared/References.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAsB,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAE9C,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,EAAE,CAAC,CAAA;AACnD,SAAS,UAAU,CAAC,MAA0B;IAC5C,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAC9C,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,MAAM,CAC3D,
|
1
|
+
{"version":3,"file":"References.js","sourceRoot":"","sources":["../../../src/components/shared/References.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAsB,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,kBAAkB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CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
|
@@ -7,7 +7,7 @@ export const Score = ({ id, size = 'small', score }) => {
|
|
7
7
|
return (React.createElement(Tag, { className: classNames('e-score e-nowrap', {
|
8
8
|
'e-score--small e-font-size-m e-semibold': size === 'small',
|
9
9
|
'e-score--large e-font-size-l e-semibold': size === 'large',
|
10
|
-
'e-score--inline e-font-size-xs': size === 'inline'
|
10
|
+
'e-score--inline e-font-size-xs': size === 'inline'
|
11
11
|
}), id: id }, t('points', { count: score })));
|
12
12
|
};
|
13
13
|
//# sourceMappingURL=Score.js.map
|
@@ -42,13 +42,13 @@ export const mkTableOfContents = (options) => {
|
|
42
42
|
React.createElement("a", { href: url('', { hash: displayNumber }) }, renderChildNodes(questionTitle))),
|
43
43
|
externalMaterial && (React.createElement("span", { className: "e-column e-column--narrow" },
|
44
44
|
React.createElement("a", { href: url(attachmentsURL, {
|
45
|
-
hash: getAttribute(queryAncestors(externalMaterial, 'question'), 'display-number')
|
45
|
+
hash: getAttribute(queryAncestors(externalMaterial, 'question'), 'display-number')
|
46
46
|
}), target: "attachments" }, t('material')))),
|
47
47
|
React.createElement("span", { className: "e-column e-column--narrow table-of-contents--score-column" }, t('points', { count: maxScore })))));
|
48
48
|
};
|
49
49
|
const renderChildNodes = createRenderChildNodes({
|
50
50
|
section: withSectionContext(TOCSection),
|
51
|
-
question: withQuestionContext(TOCQuestion)
|
51
|
+
question: withQuestionContext(TOCQuestion)
|
52
52
|
});
|
53
53
|
const TableOfContents = () => {
|
54
54
|
const { root, maxScore } = useContext(CommonExamContext);
|
@@ -6,14 +6,14 @@ const borderedPaddingAndBorderPx = 18;
|
|
6
6
|
* finish loading, see https://www.perpetual-beta.org/weblog/responsive-images-without-browser-reflow.html for more
|
7
7
|
* information.
|
8
8
|
*/
|
9
|
-
const ResponsiveMediaContainer = ({ bordered = false, className, children, height, width, caption, captionId
|
9
|
+
const ResponsiveMediaContainer = ({ bordered = false, className, children, height, width, caption, captionId }) => {
|
10
10
|
const paddingBottom = `${(height / width) * 100}%`;
|
11
11
|
const maxWidth = width + (bordered ? borderedPaddingAndBorderPx : 0);
|
12
12
|
return (React.createElement("span", { className: classNames('responsive-media-container', { 'responsive-media-container--bordered': bordered }, className), style: {
|
13
|
-
maxWidth
|
13
|
+
maxWidth
|
14
14
|
} },
|
15
15
|
React.createElement("span", { className: "responsive-media-container__inner", style: {
|
16
|
-
paddingBottom
|
16
|
+
paddingBottom
|
17
17
|
} }, children),
|
18
18
|
caption && (React.createElement("span", { className: "e-block e-mrg-t-1 e-font-size-s e-light", id: captionId }, caption))));
|
19
19
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResponsiveMediaContainer.js","sourceRoot":"","sources":["../../../../src/components/shared/internal/ResponsiveMediaContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,0BAA0B,GAAG,EAAE,CAAA;AAYrC;;;;GAIG;AACH,MAAM,wBAAwB,GAA2D,CAAC,EACxF,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,KAAK,EACL,OAAO,EACP,SAAS,
|
1
|
+
{"version":3,"file":"ResponsiveMediaContainer.js","sourceRoot":"","sources":["../../../../src/components/shared/internal/ResponsiveMediaContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,0BAA0B,GAAG,EAAE,CAAA;AAYrC;;;;GAIG;AACH,MAAM,wBAAwB,GAA2D,CAAC,EACxF,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,KAAK,EACL,OAAO,EACP,SAAS,EACV,EAAE,EAAE;IACH,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,GAAG,GAAG,GAAG,CAAA;IAClD,MAAM,QAAQ,GAAG,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAEpE,OAAO,CACL,8BACE,SAAS,EAAE,UAAU,CACnB,4BAA4B,EAC5B,EAAE,sCAAsC,EAAE,QAAQ,EAAE,EACpD,SAAS,CACV,EACD,KAAK,EAAE;YACL,QAAQ;SACT;QAED,8BACE,SAAS,EAAC,mCAAmC,EAC7C,KAAK,EAAE;gBACL,aAAa;aACd,IAEA,QAAQ,CACJ;QACN,OAAO,IAAI,CACV,8BAAM,SAAS,EAAC,yCAAyC,EAAC,EAAE,EAAE,SAAS,IACpE,OAAO,CACH,CACR,CACI,CACR,CAAA;AACH,CAAC,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { RestrictedAudioId } from '../../../index';
|
3
|
-
declare function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelId
|
3
|
+
declare function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelId }: {
|
4
4
|
src: string;
|
5
5
|
restrictedAudioId: RestrictedAudioId;
|
6
6
|
duration: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RestrictedAudioPlayer.d.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,
|
1
|
+
{"version":3,"file":"RestrictedAudioPlayer.d.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,eAmCA;;AAED,wBAAgD"}
|
@@ -6,7 +6,7 @@ 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
|
-
function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelId
|
9
|
+
function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelId }) {
|
10
10
|
const audioState = useSelector(getAudioState(src, restrictedAudioId));
|
11
11
|
const durationRemaining = useSelector(getDurationRemaining(src, restrictedAudioId));
|
12
12
|
const playbackTimesRemaining = useSelector(getPlaybackTimesRemaining(restrictedAudioId, times));
|
@@ -19,7 +19,7 @@ function RestrictedAudioPlayer({ src, restrictedAudioId, duration, times, labelI
|
|
19
19
|
const labels = playing ? [] : [remainingLabelId, labelId];
|
20
20
|
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 },
|
21
21
|
React.createElement("button", { className: classNames('restricted-audio-player__play e-column e-column--narrow', {
|
22
|
-
'restricted-audio-player__play--playing': playing
|
22
|
+
'restricted-audio-player__play--playing': playing
|
23
23
|
}), disabled: disabled, onClick: () => stopped && dispatch(playAudio({ src, restrictedAudioId, duration })), "aria-labelledby": labels.join(' ') }, !playing && React.createElement(FontAwesomeIcon, { icon: faPlay, fixedWidth: true })),
|
24
24
|
React.createElement("span", { className: "restricted-audio-player__duration e-column e-text-right", id: remainingLabelId }, formatDuration(durationRemaining !== null && durationRemaining !== void 0 ? durationRemaining : duration))));
|
25
25
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RestrictedAudioPlayer.js","sourceRoot":"","sources":["../../../../src/components/shared/internal/RestrictedAudioPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzG,SAAS,qBAAqB,CAAC,EAC7B,GAAG,EACH,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,OAAO,
|
1
|
+
{"version":3,"file":"RestrictedAudioPlayer.js","sourceRoot":"","sources":["../../../../src/components/shared/internal/RestrictedAudioPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,E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C,SAAS,CAAC,EAAE,GAAG,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,CAAC,qBAClE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAEhC,CAAC,OAAO,IAAI,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,EAAE,UAAU,SAAG,CAClD;QACT,8BAAM,SAAS,EAAC,yDAAyD,EAAC,EAAE,EAAE,gBAAgB,IAC3F,cAAc,CAAC,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,QAAQ,CAAC,CACzC,CACH,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhD,SAAS,cAAc,CAAC,QAAgB;IACtC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAA;IACzC,MAAM,OAAO,GAAG,QAAQ,GAAG,EAAE,CAAA;IAE7B,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,CAAA;AAC9D,CAAC;AAED,SAAS,aAAa,CAAC,GAAW;IAChC,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;AACxC,CAAC"}
|
package/dist/dom-utils.js
CHANGED
@@ -106,7 +106,7 @@ export function findChildrenAnswers(element) {
|
|
106
106
|
export function createElement(tagName, properties, ...children) {
|
107
107
|
const element = document.createElement(tagName);
|
108
108
|
setProperties(element, properties);
|
109
|
-
children.forEach(
|
109
|
+
children.forEach(c => element.appendChild(typeof c === 'string' ? new Text(c) : c));
|
110
110
|
return element;
|
111
111
|
}
|
112
112
|
export function setProperties(element, properties) {
|
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,EAAE,gBAA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AAChB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAoB,EAAE,UAA0C;IAC5F,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC7B,IAAI,CAAC,KAAK,KAAK,EAAE;YACf,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAA;SAC1B;aAAM,IAAI,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YAChC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;SAC3B;aAAM;YACL,sEAAsE;YACtE,CAAC;YAAC,OAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;SACzB;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/fonts.js
CHANGED
@@ -4,7 +4,7 @@ import * as _ from 'lodash-es';
|
|
4
4
|
export const ready = Promise.all([
|
5
5
|
new FontFaceObserver('Noto Sans', { weight: 300 }).load(),
|
6
6
|
new FontFaceObserver('Noto Sans', { weight: 400 }).load(),
|
7
|
-
new FontFaceObserver('Noto Sans', { weight: 600 }).load()
|
7
|
+
new FontFaceObserver('Noto Sans', { weight: 600 }).load() // Semibold
|
8
8
|
])
|
9
9
|
// eslint-disable-next-line promise/always-return
|
10
10
|
.then(() => {
|
package/dist/fonts.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../src/fonts.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,gFAAgF;AAChF,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC;IAC/B,IAAI,gBAAgB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE;IACzD,IAAI,gBAAgB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE;IACzD,IAAI,gBAAgB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../src/fonts.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,gFAAgF;AAChF,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC;IAC/B,IAAI,gBAAgB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE;IACzD,IAAI,gBAAgB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE;IACzD,IAAI,gBAAgB,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW;CACtE,CAAC;IACA,iDAAiD;KAChD,IAAI,CAAC,GAAG,EAAE;IACT,MAAM,GAAG,IAAI,CAAA;AACf,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;AAEhB,qEAAqE;AACrE,MAAM,CAAC,IAAI,MAAM,GAAG,KAAK,CAAA"}
|
package/dist/i18n/A_E.js
CHANGED
@@ -2,7 +2,7 @@ export const A_E = {
|
|
2
2
|
'external-material-title': 'Aineistot',
|
3
3
|
'answering-instructions': {
|
4
4
|
'toc-section_*_1_1': 'Valitse yksi aihe.',
|
5
|
-
'section_*_1_1': 'Valitse yksi aihe.'
|
6
|
-
}
|
5
|
+
'section_*_1_1': 'Valitse yksi aihe.'
|
6
|
+
}
|
7
7
|
};
|
8
8
|
//# sourceMappingURL=A_E.js.map
|
package/dist/i18n/BA.js
CHANGED
package/dist/i18n/CA.js
CHANGED
package/dist/i18n/EA.js
CHANGED
@@ -9,8 +9,8 @@ export const EA = {
|
|
9
9
|
date: 'Published:',
|
10
10
|
'reference-date': 'Accessed:',
|
11
11
|
translator: 'Translation:',
|
12
|
-
'modified-by': 'Adaptation:'
|
12
|
+
'modified-by': 'Adaptation:'
|
13
13
|
},
|
14
|
-
'toc-heading': 'Contents'
|
14
|
+
'toc-heading': 'Contents'
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=EA.js.map
|
package/dist/i18n/FA.js
CHANGED
@@ -10,8 +10,8 @@ export const FA = {
|
|
10
10
|
date: 'Publication le',
|
11
11
|
'reference-date': 'Téléchargement le',
|
12
12
|
translator: 'Traduction\u00A0:',
|
13
|
-
'modified-by': 'Modifications\u00A0:'
|
13
|
+
'modified-by': 'Modifications\u00A0:'
|
14
14
|
},
|
15
|
-
'toc-heading': 'Sommaire'
|
15
|
+
'toc-heading': 'Sommaire'
|
16
16
|
};
|
17
17
|
//# sourceMappingURL=FA.js.map
|
package/dist/i18n/GC.js
CHANGED
@@ -9,8 +9,8 @@ export const GC = {
|
|
9
9
|
date: 'Publicado:',
|
10
10
|
'reference-date': 'Acedido:',
|
11
11
|
translator: 'Tradução:',
|
12
|
-
'modified-by': 'Adaptação:'
|
12
|
+
'modified-by': 'Adaptação:'
|
13
13
|
},
|
14
|
-
'toc-heading': 'Conteúdo'
|
14
|
+
'toc-heading': 'Conteúdo'
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=GC.js.map
|
package/dist/i18n/I.js
CHANGED
@@ -10,12 +10,12 @@ export const I = {
|
|
10
10
|
date: 'Almostittum:',
|
11
11
|
'reference-date': 'Čujottum:',
|
12
12
|
translator: 'Jurgâlus:',
|
13
|
-
'modified-by': 'Heiviittâs:'
|
13
|
+
'modified-by': 'Heiviittâs:'
|
14
14
|
},
|
15
15
|
'answering-instructions': {
|
16
16
|
'toc-section_*_1_1': 'Fáádáh',
|
17
|
-
'section_*_1_1': 'Valjii oovtâ fáádá.'
|
17
|
+
'section_*_1_1': 'Valjii oovtâ fáádá.'
|
18
18
|
},
|
19
|
-
'toc-heading': 'Siskáldâs'
|
19
|
+
'toc-heading': 'Siskáldâs'
|
20
20
|
};
|
21
21
|
//# sourceMappingURL=I.js.map
|
package/dist/i18n/M.js
CHANGED
package/dist/i18n/O_E.js
CHANGED
package/dist/i18n/PA.js
CHANGED
@@ -9,8 +9,8 @@ export const PA = {
|
|
9
9
|
date: 'Publicado:',
|
10
10
|
'reference-date': 'Consultado:',
|
11
11
|
translator: 'Traducción:',
|
12
|
-
'modified-by': 'Adaptado:'
|
12
|
+
'modified-by': 'Adaptado:'
|
13
13
|
},
|
14
|
-
'toc-heading': 'Contenido'
|
14
|
+
'toc-heading': 'Contenido'
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=PA.js.map
|
package/dist/i18n/SA.js
CHANGED
@@ -9,8 +9,8 @@ export const SA = {
|
|
9
9
|
date: 'Veröffentlicht:',
|
10
10
|
'reference-date': 'Zugriff:',
|
11
11
|
translator: 'Übersetzung:',
|
12
|
-
'modified-by': 'Bearbeitung:'
|
12
|
+
'modified-by': 'Bearbeitung:'
|
13
13
|
},
|
14
|
-
'toc-heading': 'Inhalt'
|
14
|
+
'toc-heading': 'Inhalt'
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=SA.js.map
|
package/dist/i18n/TC.js
CHANGED
@@ -9,8 +9,8 @@ export const TC = {
|
|
9
9
|
date: 'Pubblicato:',
|
10
10
|
'reference-date': 'Consultato:',
|
11
11
|
translator: 'Traduzione:',
|
12
|
-
'modified-by': 'Adattamento:'
|
12
|
+
'modified-by': 'Adattamento:'
|
13
13
|
},
|
14
|
-
'toc-heading': 'Contenuto'
|
14
|
+
'toc-heading': 'Contenuto'
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=TC.js.map
|
package/dist/i18n/VA.js
CHANGED
@@ -9,8 +9,8 @@ export const VA = {
|
|
9
9
|
date: 'Опубликовано',
|
10
10
|
'reference-date': 'Дата обращения',
|
11
11
|
translator: 'Перевод',
|
12
|
-
'modified-by': 'Адаптировано'
|
12
|
+
'modified-by': 'Адаптировано'
|
13
13
|
},
|
14
|
-
'toc-heading': 'Содержание'
|
14
|
+
'toc-heading': 'Содержание'
|
15
15
|
};
|
16
16
|
//# sourceMappingURL=VA.js.map
|
package/dist/i18n/Z.js
CHANGED
@@ -11,12 +11,12 @@ export const Z = {
|
|
11
11
|
date: 'Almmuhuvvon:',
|
12
12
|
'reference-date': 'Vižžojuvvon:',
|
13
13
|
translator: 'Jorgalus',
|
14
|
-
'modified-by': 'Heivehus:'
|
14
|
+
'modified-by': 'Heivehus:'
|
15
15
|
},
|
16
16
|
'answering-instructions': {
|
17
17
|
'toc-section_*_1_1': 'Fáttát',
|
18
|
-
'section_*_1_1': 'Vállje ovtta fáttá.'
|
18
|
+
'section_*_1_1': 'Vállje ovtta fáttá.'
|
19
19
|
},
|
20
|
-
'toc-heading': 'Sisdoallu'
|
20
|
+
'toc-heading': 'Sisdoallu'
|
21
21
|
};
|
22
22
|
//# sourceMappingURL=Z.js.map
|
package/dist/i18n/fi-FI.js
CHANGED
@@ -15,16 +15,16 @@ export const fi_FI = {
|
|
15
15
|
'audio-errors': {
|
16
16
|
'already-accessed': 'Olet jo toistanut tämän äänitteen. Päivitä sivu.',
|
17
17
|
'already-playing': 'Kuuntele äänite ensin loppuun.',
|
18
|
-
'other-error': 'Äänitteen toistaminen epäonnistui, pyydä apua valvojalta.'
|
18
|
+
'other-error': 'Äänitteen toistaminen epäonnistui, pyydä apua valvojalta.'
|
19
19
|
},
|
20
20
|
'audio-test': {
|
21
21
|
instructions: 'Koe sisältää kuullunymmärtämisen tehtäviä.',
|
22
22
|
play: 'Testaa äänitteiden kuuluvuus',
|
23
|
-
volume: 'Äänen voimakkuutta voit säätää ruudun oikeasta yläkulmasta.'
|
23
|
+
volume: 'Äänen voimakkuutta voit säätää ruudun oikeasta yläkulmasta.'
|
24
24
|
},
|
25
25
|
'dropdown-answer': {
|
26
26
|
label: 'Valitse parhaiten sopiva vaihtoehto.',
|
27
|
-
clear: 'Poista valinta.'
|
27
|
+
clear: 'Poista valinta.'
|
28
28
|
},
|
29
29
|
grading: {
|
30
30
|
'pregrading-annotations': 'Alustavan arvostelun merkinnät (opettaja)',
|
@@ -34,7 +34,7 @@ export const fi_FI = {
|
|
34
34
|
'round.1': '1.s',
|
35
35
|
'round.2': '2.s',
|
36
36
|
'round.3': '3.s',
|
37
|
-
annotate: 'Merkitse'
|
37
|
+
annotate: 'Merkitse'
|
38
38
|
},
|
39
39
|
references: {
|
40
40
|
heading: 'Lähteet',
|
@@ -42,20 +42,20 @@ export const fi_FI = {
|
|
42
42
|
date: 'Julkaistu:',
|
43
43
|
'reference-date': 'Viitattu:',
|
44
44
|
translator: 'Käännös:',
|
45
|
-
'modified-by': 'Muokkaus:'
|
45
|
+
'modified-by': 'Muokkaus:'
|
46
46
|
},
|
47
47
|
cas: {
|
48
48
|
forbidden: {
|
49
49
|
infoText: 'Saat estetyt laskinohjelmat käyttöön palautettuasi A-osan.',
|
50
|
-
buttonText: 'Palauta A-osa'
|
50
|
+
buttonText: 'Palauta A-osa'
|
51
51
|
},
|
52
52
|
allowing: {
|
53
53
|
infoText: 'A-osan vastaukset lukitaan. Saat estetyt laskinohjelmat käyttöösi hetken kuluttua.',
|
54
|
-
cancel: 'Peruuta ({{count}} s)'
|
54
|
+
cancel: 'Peruuta ({{count}} s)'
|
55
55
|
},
|
56
56
|
allowed: {
|
57
|
-
infoText: 'A-osa palautettu'
|
58
|
-
}
|
57
|
+
infoText: 'A-osa palautettu'
|
58
|
+
}
|
59
59
|
},
|
60
60
|
'toc-heading': 'Sisällys',
|
61
61
|
'answer-saved': 'Tallennettu',
|
@@ -123,18 +123,18 @@ export const fi_FI = {
|
|
123
123
|
'toc-section_*_10_10': 'Vastaa kymmeneen tehtävään.',
|
124
124
|
'toc-section_1_*_1': 'Vastaa tehtävään {{questions, range}}.',
|
125
125
|
'toc-section_2_*_1': 'Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.',
|
126
|
-
'toc-section_*_*_*': 'Vastaa {{answerCount, range}} tehtävään.'
|
126
|
+
'toc-section_*_*_*': 'Vastaa {{answerCount, range}} tehtävään.'
|
127
127
|
},
|
128
128
|
'answer-errors': {
|
129
129
|
'screenshot-too-big': 'Ottamasi kuvakaappaus on liian iso. Ota uusi kuvakaappaus pienemmästä osasta näyttöä ja yritä uudelleen.',
|
130
130
|
'screenshot-byte-limit-reached': 'Kokeesi kuvakaappauksille varattu tila on täyttynyt. (Voit viitata aineistokuviin suoraan ilman kuvakaappausta.)',
|
131
131
|
'screenshot-upload-failed': 'Kuvan liittäminen ei onnistunut. Kokeile uudestaan.',
|
132
|
-
'answer-too-long': 'Vastaus on liian pitkä.'
|
132
|
+
'answer-too-long': 'Vastaus on liian pitkä.'
|
133
133
|
},
|
134
134
|
'screen-reader': {
|
135
135
|
'answer-begin': '[Vastaus alkaa]',
|
136
136
|
'answer-end': '[Vastaus päättyy]',
|
137
|
-
'correct-answer': '[Hyväksytty vastaus]'
|
138
|
-
}
|
137
|
+
'correct-answer': '[Hyväksytty vastaus]'
|
138
|
+
}
|
139
139
|
};
|
140
140
|
//# sourceMappingURL=fi-FI.js.map
|