analytica-frontend-lib 1.2.69 → 1.2.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActivityCardQuestionBanks/index.js +8 -2
- package/dist/ActivityCardQuestionBanks/index.js.map +1 -1
- package/dist/ActivityCardQuestionBanks/index.mjs +8 -2
- package/dist/ActivityCardQuestionBanks/index.mjs.map +1 -1
- package/dist/ActivityCardQuestionPreview/index.js +8 -2
- package/dist/ActivityCardQuestionPreview/index.js.map +1 -1
- package/dist/ActivityCardQuestionPreview/index.mjs +8 -2
- package/dist/ActivityCardQuestionPreview/index.mjs.map +1 -1
- package/dist/ActivityDetails/index.d.ts +1 -1
- package/dist/ActivityDetails/index.d.ts.map +1 -1
- package/dist/ActivityDetails/index.js +55 -8
- package/dist/ActivityDetails/index.js.map +1 -1
- package/dist/ActivityDetails/index.mjs +55 -8
- package/dist/ActivityDetails/index.mjs.map +1 -1
- package/dist/ActivityPreview/index.js +8 -2
- package/dist/ActivityPreview/index.js.map +1 -1
- package/dist/ActivityPreview/index.mjs +8 -2
- package/dist/ActivityPreview/index.mjs.map +1 -1
- package/dist/CorrectActivityModal/index.js +54 -3
- package/dist/CorrectActivityModal/index.js.map +1 -1
- package/dist/CorrectActivityModal/index.mjs +54 -3
- package/dist/CorrectActivityModal/index.mjs.map +1 -1
- package/dist/index.js +55 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -8
- package/dist/index.mjs.map +1 -1
- package/dist/utils/questionRenderer/alternative/index.d.ts.map +1 -1
- package/dist/utils/questionRenderer/multipleChoice/index.d.ts.map +1 -1
- package/dist/utils/studentActivityCorrection/utils.d.ts +14 -0
- package/dist/utils/studentActivityCorrection/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3274,12 +3274,15 @@ var renderQuestionAlternative = ({
|
|
|
3274
3274
|
question,
|
|
3275
3275
|
result
|
|
3276
3276
|
}) => {
|
|
3277
|
+
const hasAutoValidation = result?.options?.some(
|
|
3278
|
+
(op) => op.isCorrect !== void 0 && op.isCorrect !== null
|
|
3279
|
+
);
|
|
3277
3280
|
const alternatives = question.options?.map((option) => {
|
|
3278
3281
|
const isCorrectOption = result?.options?.find((op) => op.id === option.id)?.isCorrect || false;
|
|
3279
3282
|
const isSelected = result?.selectedOptions?.some(
|
|
3280
3283
|
(selectedOption) => selectedOption.optionId === option.id
|
|
3281
3284
|
) || false;
|
|
3282
|
-
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO
|
|
3285
|
+
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO */ || hasAutoValidation;
|
|
3283
3286
|
let status;
|
|
3284
3287
|
if (shouldShowCorrectAnswers) {
|
|
3285
3288
|
if (isCorrectOption) {
|
|
@@ -3453,12 +3456,15 @@ var renderQuestionMultipleChoice = ({
|
|
|
3453
3456
|
question,
|
|
3454
3457
|
result
|
|
3455
3458
|
}) => {
|
|
3459
|
+
const hasAutoValidation = result?.options?.some(
|
|
3460
|
+
(op) => op.isCorrect !== void 0 && op.isCorrect !== null
|
|
3461
|
+
);
|
|
3456
3462
|
const choices = question.options?.map((option) => {
|
|
3457
3463
|
const isCorrectOption = result?.options?.find((op) => op.id === option.id)?.isCorrect || false;
|
|
3458
3464
|
const isSelected = result?.selectedOptions?.some(
|
|
3459
3465
|
(op) => op.optionId === option.id
|
|
3460
3466
|
);
|
|
3461
|
-
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO */ && result?.answerStatus !== "NAO_RESPONDIDO" /* NAO_RESPONDIDO
|
|
3467
|
+
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO */ && result?.answerStatus !== "NAO_RESPONDIDO" /* NAO_RESPONDIDO */ || hasAutoValidation;
|
|
3462
3468
|
let status;
|
|
3463
3469
|
if (shouldShowCorrectAnswers) {
|
|
3464
3470
|
if (isCorrectOption) {
|