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
|
@@ -3483,12 +3483,15 @@ var renderQuestionAlternative = ({
|
|
|
3483
3483
|
question,
|
|
3484
3484
|
result
|
|
3485
3485
|
}) => {
|
|
3486
|
+
const hasAutoValidation = result?.options?.some(
|
|
3487
|
+
(op) => op.isCorrect !== void 0 && op.isCorrect !== null
|
|
3488
|
+
);
|
|
3486
3489
|
const alternatives = question.options?.map((option) => {
|
|
3487
3490
|
const isCorrectOption = result?.options?.find((op) => op.id === option.id)?.isCorrect || false;
|
|
3488
3491
|
const isSelected = result?.selectedOptions?.some(
|
|
3489
3492
|
(selectedOption) => selectedOption.optionId === option.id
|
|
3490
3493
|
) || false;
|
|
3491
|
-
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO
|
|
3494
|
+
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO */ || hasAutoValidation;
|
|
3492
3495
|
let status;
|
|
3493
3496
|
if (shouldShowCorrectAnswers) {
|
|
3494
3497
|
if (isCorrectOption) {
|
|
@@ -3662,12 +3665,15 @@ var renderQuestionMultipleChoice = ({
|
|
|
3662
3665
|
question,
|
|
3663
3666
|
result
|
|
3664
3667
|
}) => {
|
|
3668
|
+
const hasAutoValidation = result?.options?.some(
|
|
3669
|
+
(op) => op.isCorrect !== void 0 && op.isCorrect !== null
|
|
3670
|
+
);
|
|
3665
3671
|
const choices = question.options?.map((option) => {
|
|
3666
3672
|
const isCorrectOption = result?.options?.find((op) => op.id === option.id)?.isCorrect || false;
|
|
3667
3673
|
const isSelected = result?.selectedOptions?.some(
|
|
3668
3674
|
(op) => op.optionId === option.id
|
|
3669
3675
|
);
|
|
3670
|
-
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO */ && result?.answerStatus !== "NAO_RESPONDIDO" /* NAO_RESPONDIDO
|
|
3676
|
+
const shouldShowCorrectAnswers = result?.answerStatus !== "PENDENTE_AVALIACAO" /* PENDENTE_AVALIACAO */ && result?.answerStatus !== "NAO_RESPONDIDO" /* NAO_RESPONDIDO */ || hasAutoValidation;
|
|
3671
3677
|
let status;
|
|
3672
3678
|
if (shouldShowCorrectAnswers) {
|
|
3673
3679
|
if (isCorrectOption) {
|